Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: [archived] gho_comments_invite
Yay! Thanks for this! I’ve just made a small change on my copy – taking out the span and putting the class attribut in the link tag.
$out .= '<a href="'.permlinkurl($thisarticle).'#'.gTxt('comment').'" class="'.$class.'">'.$before.'</a>';
Cheers,
Jon VC#9
Offline
Re: [archived] gho_comments_invite
@jonhicks: I decided to take a span because I’m intending to make it configurable what exactly will be linked, the whole invitation or only the part without numbers or whatever. so with the span around you can take the class to format the whole line and with “span.classname a” will be able to format the link itself.
without this (maybe) further developing setting the class into the link would of course be the better/shorter solution.
Samui? Samui! (about the life as farang in thailand)
David’s Neighbour
Offline
Re: [archived] gho_comments_invite
Its hard to know. Some people would put the link in something like a paragraph tag, and maybe give that a class, some would prefer a span for extra flexibility. Its not a big problem anyway, and it was a small tinker to remove the span.
Its a great plugin anyway – thanks!
Cheers,
Jon VC#9
Offline
#19 2005-05-01 19:35:52
- lee
- Member
- From: Normandy, France
- Registered: 2004-06-17
- Posts: 831
Re: [archived] gho_comments_invite
@graumeister: I am working on the extension with the name of the latest commentator. give me some days ;)
Just wondering if this is still in the works.
Thanks
Lee
Offline
Re: [archived] gho_comments_invite
I worked the weekend on the plugin, just now its on the notebook and will be transfered this evening.
Samui? Samui! (about the life as farang in thailand)
David’s Neighbour
Offline
Re: [archived] gho_comments_invite
@lee: the update is online. I made a new tag named gho_last_commentator which shows the “last commented by”-line. It it not yet fully configurable. Maybe it would be useful to link the name to the specific comment?
Samui? Samui! (about the life as farang in thailand)
David’s Neighbour
Offline
#22 2005-05-02 09:53:12
- lee
- Member
- From: Normandy, France
- Registered: 2004-06-17
- Posts: 831
Re: [archived] gho_comments_invite
Thanks for taking the trouble to do this. I’ll test it out.
Offline
Re: [archived] gho_comments_invite
what would be the regular expression for “comes from google and the query has both word1 and word2 in it”?
Offline
Re: [archived] gho_comments_invite
that could be a little problem because eventuelly the forumsoftware will cut letters out. lets try ;)
(.*)\.google\.(.*)search?(.*)q=([^+]*)word1([^+]*)word2(.*)
might be a dirty way but should work. (not tested)
Samui? Samui! (about the life as farang in thailand)
David’s Neighbour
Offline
Re: [archived] gho_comments_invite
hmm. it didnt work ;) instead of <sup> there should be a ^
Samui? Samui! (about the life as farang in thailand)
David’s Neighbour
Offline
#26 2005-05-03 09:16:01
- lee
- Member
- From: Normandy, France
- Registered: 2004-06-17
- Posts: 831
Re: [archived] gho_comments_invite
> graumeister wrote:
> @lee: the update is online. I made a new tag named gho_last_commentator which shows the “last commented by”-line. It it not yet fully configurable. Maybe it would be useful to link the name to the specific comment?
Works great, thanks again for this. Linking the name would be nice if it was optional. Also you’ve tried to put brackets around the name of the last commenter but only the closing bracket shows. Personally I’d leave them out, they can be put in using a form if there wanted.
Offline
Re: [archived] gho_comments_invite
hi lee, I dont know, if i understand that closing-brackets-thing ;) how does the whole tag displays? could you left a link? you can define what should be put before and after the namelist via the pretext- and posttext-attribute. there should be a
Samui? Samui! (about the life as farang in thailand)
David’s Neighbour
Offline
Re: [archived] gho_comments_invite
I just updated the plugin. there is now a attribute linknames to gho_last_commentator which will when set to true result in linked names (they will be linked to the comment).
Samui? Samui! (about the life as farang in thailand)
David’s Neighbour
Offline
Re: [archived] gho_comments_invite
Thanks Graumeister! I’ll try it out
Offline
#30 2005-06-10 23:42:51
- proph3t
- Member
- Registered: 2004-09-26
- Posts: 31
Re: [archived] gho_comments_invite
Link to the plugin isnt working, any way to get it?
Offline