Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Template Modifications

Reply
 
Thread Tools
Thread Starter on postbit. Details »»
Thread Starter on postbit.
Version: 1.00, by deathemperor deathemperor is offline
Developer Last Online: Jul 2011 Show Printable Version Email this Page

Version: 3.5.0 Rating:
Released: 10-20-2005 Last Update: Never Installs: 34
 
No support by the author.

I saw this on a Burning Board 2.3.3 system, but vb misses it so I make it for my board and to share it here.

Pretty simple in a mind of a coder, just one line of template condition.

It won't show in the first post of the thread because, of course first poster is the thread starter.

FIND IN TEMPLATES postbit:

HTML Code:
					<div>
						$vbphrase[posts]: $post[posts]
					</div>
ADD BELOW:
HTML Code:
					<if condition="$thread['postuserid'] == $post['userid'] && $thread['firstpostid'] != $post['postid']"><div>$vbphrase[thread_starter] <img alt="$vbphrase[thread_starter]" src="$stylevar[imgdir_misc]/thread_starter.gif" /></div>
					</if>
put the file thread_starter.gif in your images/misc directory. You can use my image in the attachment.

repeat the method if you want to show it on postbit_legacy, and of course you can put it anywhere you feel like in the postbit.

Live Demo: http://www.holvn.org


Enjoy and remember to click install ! ^^

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 10-21-2005, 09:09 AM
Azhrialilu's Avatar
Azhrialilu Azhrialilu is offline
 
Join Date: Aug 2003
Location: Stretton, Derbyshire
Posts: 445
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sometimes the simplest ones are the nicest Thanx!
Reply With Quote
  #3  
Old 10-21-2005, 10:03 AM
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Posts: 3,832
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wohoo thanks...
Reply With Quote
  #4  
Old 10-22-2005, 01:21 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can you post this in a text file please so others can use it if they need to re-install or upgrade?
Reply With Quote
  #5  
Old 10-22-2005, 03:02 AM
deathemperor's Avatar
deathemperor deathemperor is offline
 
Join Date: Jul 2003
Location: HOL
Posts: 1,270
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Boofo
Can you post this in a text file please so others can use it if they need to re-install or upgrade?
as you desire, updated
Reply With Quote
  #6  
Old 12-23-2005, 01:44 AM
Mathiau's Avatar
Mathiau Mathiau is offline
 
Join Date: Jan 2002
Location: Costa Rica and toronto
Posts: 227
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

mmm, how could i make this work with the post count search hack...

Code:
<div>
$vbphrase[posts]: <a href="search.php?do=finduser&u=$post[userid]">$post[posts]</a>
</div>
Reply With Quote
  #7  
Old 12-23-2005, 01:48 AM
deathemperor's Avatar
deathemperor deathemperor is offline
 
Join Date: Jul 2003
Location: HOL
Posts: 1,270
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

you can add:
HTML Code:
					<div><if condition="$thread['postuserid'] == $post['userid'] && $thread['firstpostid'] != $post['postid']">$vbphrase[thread_starter] <img alt="$vbphrase[thread_starter]" src="$stylevar[imgdir_misc]/thread_starter.gif" /></if>
					</div>
below the code you give.
Reply With Quote
  #8  
Old 12-23-2005, 01:50 AM
TyleR's Avatar
TyleR TyleR is offline
 
Join Date: Nov 2004
Location: North Carolina
Posts: 349
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by deathemperor
HTML Code:
					<div><if condition="$thread['postuserid'] == $post['userid'] && $thread['firstpostid'] != $post['postid']">$vbphrase[thread_starter] <img alt="$vbphrase[thread_starter]" src="$stylevar[imgdir_misc]/thread_starter.gif" /></if>
					</div>
rather than possibly breaking someone's XHTML compliance, you should wrap the conditional around the div tag's, so it'd be:

HTML Code:
					<if condition="$thread['postuserid'] == $post['userid'] && $thread['firstpostid'] != $post['postid']"><div>$vbphrase[thread_starter] <img alt="$vbphrase[thread_starter]" src="$stylevar[imgdir_misc]/thread_starter.gif" />
					</div></if>
Reply With Quote
  #9  
Old 12-23-2005, 01:59 AM
deathemperor's Avatar
deathemperor deathemperor is offline
 
Join Date: Jul 2003
Location: HOL
Posts: 1,270
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

oops, my bad.

thanks for poiting me out, hack edited.
Reply With Quote
  #10  
Old 10-21-2006, 04:31 PM
Mike-D Mike-D is offline
 
Join Date: Jan 2006
Location: Cologne / Germany
Posts: 270
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does someone knows how to place the icon over the horizontal line in the postbit_legacy template?

Template postbit_legacy
Code:
				<if condition="$post['title']"><strong>$post[title]</strong></if>
                             <if condition="$thread['postuserid'] == $post['userid'] && $thread['firstpostid'] != $post['postid']">
<div class="smallfont">
<img class="thread_starter" src="$stylevar[imgdir_misc]/thread_starter.gif" alt="Themenautor" align="$stylevar[right]" /></div>
			     </if>
The Bold letters is the code I use. Below you can see 2 attachments:

The 1st one is the problem I have right now.
The 2nd one is that what I'd like to have. Note: This pic is photoshoped!!! It should just tell you how I'd get placed the icon.

Someone here who knows how to solve the problem? -Mike
Reply With Quote
Reply

Thread Tools

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 08:03 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.12659 seconds
  • Memory Usage 2,295KB
  • Queries Executed 23 (?)
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
  • (2)bbcode_code
  • (5)bbcode_html
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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_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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete