vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   Thread Starter on postbit. (https://vborg.vbsupport.ru/showthread.php?t=98925)

deathemperor 10-20-2005 10:00 PM

Thread Starter on postbit.
 
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 ! ^^

Azhrialilu 10-21-2005 09:09 AM

Sometimes the simplest ones are the nicest :D Thanx!

Snake 10-21-2005 10:03 AM

Wohoo thanks...

Boofo 10-22-2005 01:21 AM

Can you post this in a text file please so others can use it if they need to re-install or upgrade? ;)

deathemperor 10-22-2005 03:02 AM

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

Mathiau 12-23-2005 01:44 AM

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>


deathemperor 12-23-2005 01:48 AM

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.

TyleR 12-23-2005 01:50 AM

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>


deathemperor 12-23-2005 01:59 AM

oops, my bad.

thanks for poiting me out, hack edited.

Mike-D 10-21-2006 04:31 PM

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


All times are GMT. The time now is 11:43 AM.

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.01106 seconds
  • Memory Usage 1,747KB
  • 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
  • (2)bbcode_code_printable
  • (5)bbcode_html_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete