vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Need to add a link only to first post in specific forum (https://vborg.vbsupport.ru/showthread.php?t=224026)

JPetrillo 09-26-2009 08:46 PM

Need to add a link only to first post in specific forum
 
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 only, I would like to put this code at the bottom left of only the first post of each thread:

Code:

<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:
HTML Code:

<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):
HTML Code:

<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 [DATE]1254010715[/DATE] at [TIME]1254010715[/TIME] ---------------

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:
HTML Code:

<if condition="$post['postid'] != $thread['firstpostid']">
signature
</if>


JPetrillo 09-27-2009 04:24 AM

Great! Thanks again ;)


All times are GMT. The time now is 11:47 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01114 seconds
  • Memory Usage 1,726KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (3)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete