Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
  #1  
Old 09-26-2009, 08:46 PM
JPetrillo JPetrillo is offline
 
Join Date: Apr 2009
Location: CT
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
Reply With Quote
  #2  
Old 09-26-2009, 10:38 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
Reply With Quote
  #3  
Old 09-26-2009, 10:47 PM
JPetrillo JPetrillo is offline
 
Join Date: Apr 2009
Location: CT
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!!
Reply With Quote
  #4  
Old 09-26-2009, 11:00 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
Reply With Quote
  #5  
Old 09-26-2009, 11:05 PM
JPetrillo JPetrillo is offline
 
Join Date: Apr 2009
Location: CT
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awesome! Worked great!! Thanks again

--------------- 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
Reply With Quote
  #6  
Old 09-26-2009, 11:34 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Then just a modified version of the first condition I wrote:
HTML Code:
<if condition="$post['postid'] != $thread['firstpostid']">
signature
</if>
Reply With Quote
  #7  
Old 09-27-2009, 04:24 AM
JPetrillo JPetrillo is offline
 
Join Date: Apr 2009
Location: CT
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great! Thanks again
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:01 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.03972 seconds
  • Memory Usage 2,208KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (3)bbcode_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete