| Author |
Message |
Saszoo

Joined: 07 Jun 2006 Posts: 410 Location: Norway |
|
Gravatar support |
|
Things todo:
Add a new field to the commentform to write in the emailadress of the commenter (the one that is now I use as optional for commenters to write the URL to their homepages)
A {gravatar} tag in the template
this might be of help: gravatar.com implementation help
thanks[/url]
_________________ My cute.ru site |
|
| Mon Oct 02, 2006 11:52 pm |
|
 |
Guest
|
|
|
Please login to hide the ads.
|
|
|
|
 |
Saszoo

Joined: 07 Jun 2006 Posts: 410 Location: Norway |
|
|
| Wed Oct 04, 2006 10:06 pm |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2857 Location: Germany |
|
|
|
This seems to be very easy. What's the code you used?
|
|
| Wed Oct 04, 2006 10:12 pm |
|
 |
Saszoo

Joined: 07 Jun 2006 Posts: 410 Location: Norway |
|
|
|
I tried to put that code into various files like inc/shownews.php and inc/show.commentform.php
And the I tried to add a {gravatar} in my templates, but I couldn't get it to work.
The main problems I think is
1. I use the email field as an URL field by now so I tried to make another field, but that din't go well...
2. I don't know which file is the correct to out this code in 
_________________ My cute.ru site |
|
| Wed Oct 04, 2006 10:18 pm |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2857 Location: Germany |
|
|
|
 |  | 1. I use the email field as an URL field by now so I tried to make another field, but that din't go well... |
You have to create a new field in your comments form. Then you have to add a new column to the comments database. And finally you have to save the value from the comments form in the database by adding the new field to this code in show.addcomment.php:
 |  | $sql->insert(array(
'table' => 'comments',
'values' => array(
'post_id' => $id,
'date' => $time,
'author' => $name,
'mail' => $mail,
'column' => $new_value,
'ip' => $_SERVER['REMOTE_ADDR'],
'comment' => $comments
)
)); |
'column' is the name of the new table column. And $new_value is the name of the new field in the comments form.
 |  | 2. I don't know which file is the correct to out this code in  |
It's show.comments.php.
|
|
| Wed Oct 04, 2006 10:50 pm |
|
 |
Saszoo

Joined: 07 Jun 2006 Posts: 410 Location: Norway |
|
|
| Wed Oct 04, 2006 10:57 pm |
|
 |
Saszoo

Joined: 07 Jun 2006 Posts: 410 Location: Norway |
|
|
|
 |  | Then you have to add a new column to the comments database. |
How do I do this? 
_________________ My cute.ru site |
|
| Wed Oct 04, 2006 11:31 pm |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2857 Location: Germany |
|
|
|
MySQL -> phpmyadmin or small script
txtSQL -> small script
|
|
| Wed Oct 04, 2006 11:35 pm |
|
 |
Saszoo

Joined: 07 Jun 2006 Posts: 410 Location: Norway |
|
|
|
Okay, I see to the work then!
wow I made it, I think... Time will show as the gravatar site is down so I'll need to wait til it's up again, but the comments are still saving and there's showing a image border... thank you for your help
_________________ My cute.ru site |
|
| Wed Oct 04, 2006 11:57 pm |
|
 |
Saszoo

Joined: 07 Jun 2006 Posts: 410 Location: Norway |
|
|
|
do'h seems like the gravatar site will be long down...
I just wondered if someone with a gravatar account could please just leave a test comment to see if it works..?
thanks in advance:D
_________________ My cute.ru site |
|
| Mon Oct 09, 2006 9:16 pm |
|
 |
|