PDA

View Full Version : Need to add a link only to first post in specific forum


JPetrillo
09-26-2009, 08:46 PM
Hello,

Hopefully someone call tell me how to do this. Here's what I want to accomplish:

For all new threads created in this forum (http://www.gamersthrone.com/forum/s414) only, I would like to put this code at the bottom left of only the first post of each thread:

<br />
<script type="text/javascript" src="http://www.reddit.com/button.js?t=3"></script>

I basically want that to show up at the end of the post, in the bottom left corner, just before the signature. I want it in the actual post though, not the "left side" as in the part that shows the username and post count, ect. How can I do this?

Any help would be appreciated!

Thanks in advance

Lynne
09-26-2009, 10:38 PM
You can probably put it where you want in the postbit and then wrap a condition around it:

<if condition="$thread['forumid'] == x AND $post['postid']==$thread['firstpostid']">
link
</if>

JPetrillo
09-26-2009, 10:47 PM
This worked perfectly! Thank you!!

Now, on that same forum, I want to NOT show signatures... for all posts, but ONLY if the user is browsing as a guest. I still want signatures to show up on all other forums. How can I do this?

Thanks again!! :D

Lynne
09-26-2009, 11:00 PM
Another condition maybe like this one (not sure you can use $show[member] in this template):
<if condition="$show['member'] OR $thread['forumid'] != x">
signature stuff
</if>

JPetrillo
09-26-2009, 11:05 PM
Awesome! Worked great!! Thanks again :D

--------------- Added 1254010715 at 1254010715 ---------------

How can I remove the signature on the first post only for all users, regardless of whether they are a member or guest? I want to do this instead of removing all sigs for guests... thanks :)

Lynne
09-26-2009, 11:34 PM
Then just a modified version of the first condition I wrote:
<if condition="$post['postid'] != $thread['firstpostid']">
signature
</if>

JPetrillo
09-27-2009, 04:24 AM
Great! Thanks again ;)