Forum Index
RegisterSearchFAQMemberlistUsergroupsLog in
Gravatar support

 
Reply to topic    Forum Index » Suggestions View previous topic
View next topic
Gravatar support
Author Message
Saszoo



Joined: 07 Jun 2006
Posts: 410
Location: Norway

Post Gravatar support Reply with quote
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 View user's profile Send private message Visit poster's website
Guest








Please login to hide the ads.

Saszoo



Joined: 07 Jun 2006
Posts: 410
Location: Norway

Post Reply with quote
so I tried to do this to day http://cutephp.com/forum/index.php?showtopic=8809

surprise! no luck Rolling Eyes



Oh I hate this, why can't I make it happen? Embarassed Someone else interested in this who wants to give it a go?

_________________
My cute.ru site
Wed Oct 04, 2006 10:06 pm View user's profile Send private message Visit poster's website
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2857
Location: Germany

Post Reply with quote
This seems to be very easy. What's the code you used?
Wed Oct 04, 2006 10:12 pm View user's profile Send private message
Saszoo



Joined: 07 Jun 2006
Posts: 410
Location: Norway

Post Reply with quote
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 Embarassed

_________________
My cute.ru site
Wed Oct 04, 2006 10:18 pm View user's profile Send private message Visit poster's website
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2857
Location: Germany

Post Reply with quote
Saszoo wrote:
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:

Code:
$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.



Quote:
2. I don't know which file is the correct to out this code in Embarassed


It's show.comments.php.
Wed Oct 04, 2006 10:50 pm View user's profile Send private message
Saszoo



Joined: 07 Jun 2006
Posts: 410
Location: Norway

Post Reply with quote
You're spoiling me, thanks!

_________________
My cute.ru site
Wed Oct 04, 2006 10:57 pm View user's profile Send private message Visit poster's website
Saszoo



Joined: 07 Jun 2006
Posts: 410
Location: Norway

Post Reply with quote
FI-DD wrote:
Then you have to add a new column to the comments database.


How do I do this? Rolling Eyes

_________________
My cute.ru site
Wed Oct 04, 2006 11:31 pm View user's profile Send private message Visit poster's website
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2857
Location: Germany

Post Reply with quote
MySQL -> phpmyadmin or small script

txtSQL -> small script
Wed Oct 04, 2006 11:35 pm View user's profile Send private message
Saszoo



Joined: 07 Jun 2006
Posts: 410
Location: Norway

Post Reply with quote
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 View user's profile Send private message Visit poster's website
Saszoo



Joined: 07 Jun 2006
Posts: 410
Location: Norway

Post Reply with quote
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 View user's profile Send private message Visit poster's website
Display posts from previous:    
Reply to topic    Forum Index » Suggestions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum



Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Music Lyrics.