Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » Archives
  3. » Plugin: glx_gravatar

#31 2005-06-20 15:06:59

Andrew
Plugin Author
Registered: 2004-02-23
Posts: 730

Re: Plugin: glx_gravatar

You should probably go grab v0.1 – my changes turned out to be unnecessary and increased performance time. d’oh.

Last edited by Andrew (2005-06-20 15:07:49)

Offline

#32 2005-06-24 12:20:36

User61
New Member
From: Malaysia
Registered: 2005-04-01
Posts: 8

Re: Plugin: glx_gravatar

Does v0.1 display a default gravatar if the commenter don’t have one? I’m currently using v0.2. I thought it was just txp that’s slow. Now I know it’s the gravatar plugin :P. This is a cool plugin, I hope it’ll get updated soon. =)


I was born intelligent, but education ruined me.

Offline

#33 2005-07-02 22:54:17

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Plugin: glx_gravatar

So I’d like to get back to what sekhu was discussing or something similar. I have a call to show a returning visitor’s gravatar on the front-page. At the moment it only shows the default gravatar because it is not inside a comment so I’m thinking how can the plug-in be changed to pick up the email address from an existing cookie rather than the comment data so that it can fetch the appropriate gravatar? I believe the global will need changing and also the line that picks up the email address but how one wonders?

I should mention that I already have the code sitting inside an “if_cookie” conditional so it will only be called if there is a cookie in the first place.

Last edited by thebombsite (2005-07-02 22:57:21)


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#34 2005-07-03 15:59:55

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Plugin: glx_gravatar

Well I seem to have managed to sort it out myself. :) First I removed the global line. I wasn’t sure whether it actually should have one but it’s working without. I then changed the line that calls the “email” to this:-
<code>$email = pcs(‘email’);</code>
And it all seems to be working OK so far.


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#35 2005-07-03 20:29:49

sekhu
Member
Registered: 2005-05-12
Posts: 428
Website

Re: Plugin: glx_gravatar

great stuff stu! :)

Offline

#36 2005-07-03 21:37:51

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Plugin: glx_gravatar

I get there eventually. :grin:


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#37 2005-07-22 21:15:08

lcidw
New Member
From: The Netherlands
Registered: 2004-06-12
Posts: 8
Website

Re: Plugin: glx_gravatar

I guess i’m doing something wrong. I do have the 1.0rc3 Rev180, and inserted <code><txp:glx_gravatar /></code> in the form: comments (not comment_form).

Here is what the comments form looks like now..

<code><ol class=“commentlist”>
<li class=“alt”>
<div class=“lightblue”><txp:glx_gravatar /><txp:comment_name /> says:
<br />
<small class=“commentmetadata”><txp:comment_permlink><txp:comment_time /></txp:comment_permlink></small>
</div>
<br />
<txp:message /><br />
</li>
</ol></code>

But nothing changes, all the comments are just like they where before..

Last edited by lcidw (2005-07-22 21:16:43)

Offline

#38 2005-07-22 22:35:23

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Plugin: glx_gravatar

Have you switched the plug-in on?? :)

I also note that you have the “ol” in the form. I don’t think that’s right. The “ol” is hard-coded and the way you have it you will have an “ol” for every comment which will all be inside the hard-coded “ol”.

Last edited by thebombsite (2005-07-22 22:41:51)


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#39 2005-07-22 22:49:41

lcidw
New Member
From: The Netherlands
Registered: 2004-06-12
Posts: 8
Website

Re: Plugin: glx_gravatar

Well, see http://www.onedot.nl/blog/whieee-keyboard#commentaar

I removed the ol tags, and it seemed that it is all in the CSS of the MX4 template (from textpattern.org).

But still, having the tags removed making it all look bad, still didn’t show the gravatar.

Of the 3 posts, and 3 numbers, you see there.. removing the ol or changing it to something else like p, it will show 6 numbers, the post and the space between it seems.

Last edited by lcidw (2005-07-22 22:52:09)

Offline

#40 2005-07-22 23:09:30

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Plugin: glx_gravatar

OK. No problem. It’s just unusual to nest them like that. The plug-in is definitely switched on because the code is showing in the source so why don’t they show? I’ll have to think. Let me get used to your CSS.

In the mean time you seem to have not closed a “p” tag for your “more” link?


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#41 2005-07-23 01:16:17

lcidw
New Member
From: The Netherlands
Registered: 2004-06-12
Posts: 8
Website

Re: Plugin: glx_gravatar

Thanks :)

Actually it was a nested p tag, to get the more thing working: <code><p id=“more”><txp:body /></p></code> But since the body gets the p tags, it was double. Excerpts seem to get them too now. So i removed the whole more code, and the extra p tags. Looks a lot cleaner now.

I would be damn glad if you can find the problem with the Gravatar :)

Last edited by lcidw (2005-07-23 01:17:16)

Offline

#42 2005-07-23 01:28:17

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Plugin: glx_gravatar

First thing you need to do is add – class=“gravatar” – to your gravatar tag. See what happens.


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#43 2005-07-23 01:34:30

lcidw
New Member
From: The Netherlands
Registered: 2004-06-12
Posts: 8
Website

Re: Plugin: glx_gravatar

I believe that did it! At least, there are little squares now in front of the names at the comments. Doesn’t someone without a Gravatar account get a random Gravatar? Cause then i’ll find one :)

Offline

#44 2005-07-23 01:43:04

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Plugin: glx_gravatar

No you have to create one and upload it to your images directory then add default=“full/path/to/image” to the tag. You can also use size=“40”. I believe 40px is the default but if it’s there you can adjust the size to suit your layout

Last edited by thebombsite (2005-07-23 01:43:33)


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#45 2005-07-23 01:48:28

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Plugin: glx_gravatar

As I have a Gravatar I’ve popped a comment in so you can see it working. By all means delete it when you’re sorted.


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

  1. Index
  2. » Archives
  3. » Plugin: glx_gravatar

Board footer

Powered by FluxBB