vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Show Thread Enhancements - YBMF-Bellardia-Thread-Starter-v1.00 (https://vborg.vbsupport.ru/showthread.php?t=201696)

TimberFloorAu 01-13-2009 10:00 PM

YBMF-Bellardia-Thread-Starter-v1.00
 
1 Attachment(s)
YoBroMoFo Thread Starter Hack.

V1.00 should work on all VB versions.

From Timberfloorau from code provided by Bellardia

Bellardia > https://vborg.vbsupport.ru/member.php?u=209699
Timberfloorau > https://vborg.vbsupport.ru/member.php?u=252664

This very simple template hack, is awesome. You and your users will love it. It requires one template edit, and one image to be uploaded.
I have included the zip, which has the template edit, and couple of images we use, and the PSD.

No linkbacks required for this hack, but would like for you to recognise this great hack, by clicking "installed"

************************************************** *
14th January 2009 release YBMF-Bellardia-Thread-Starter-v1.00

What does this hack do ?

Answer: quite simply, it displays in the signature of the thread starter a thread starter graphic.

Gee thats brilliant, WHY !!!!! ???

Answer: why not, how often do you read thru latest posts and think what a great THREAD ! Then want to give Karma/Thanks to the original thread

starter ? Now you can.. its VERY simple.

TRY IT your members will love it.


************************************************** *
Graphics included for french , dutch
PSD included:
Just open in Adobe Photoshop, highlight layer style for border, and change colour. Or change text, save as thread_starter.gif

Template changes.

Goto AdminCP > Styles And Templates, search in templates ( in current style )

in dropdown box choose ( current style )
in search for Text type : postbit_legacy ( or postbit if you use that )

radio button for Search Titles Only click YES
Click FIND

Open the postbit_legacy template

in Search In Template type :
Code:

$template_hook[postbit_signature_start]
$ad_location[ad_showthread_firstpost_sig]

After this add:
Code:

<!--YoBroMoFo Bellardia Thread Starter-->
<if condition="$post['signature'] OR $thread[postuserid] == $post[userid]">
                <!-- sig -->
                        <div>
                                __________________<br />
                <if condition="$thread[postuserid] == $post[userid]">
                        <img src="http://yourwebsite.com/forum/images/thread_starter.gif" alt="Thread Starter"><br />
                </if>
                       
                        </div>
                <!-- / sig -->
                </if>
<!--end of YoBroMoFo Bellardia Thread Starter-->

************************************************** ***********************************************

Change http://yourwebsite.com/forum/images/thread_starter.gif to your filepath for the image
Upload the image to this destination using FTP
Change the alt="Thread Starter" above to your language translation or leave as is.

Click Save

DONE !!!!!

If the image does not display on new threads, in post view, then check you have the correct filepath.

As always full assistance given.

Please note this code was designed by Bellardia based on our request. Full attributation to Bellardia.

If you use, please MARK AS INSTALLED and/or click Nominate for Mod of the Month.

14th October: removed $post[signature] from original code. This should work flawlessly now.
With thanks to: troppodel

troppodel 01-15-2009 07:50 AM

hi there nice
but i see double signature, i removed the variable $post[signature]
here the code corrected:

<!--YoBroMoFo Bellardia Thread Starter-->
<if condition="$post['signature'] OR $thread[postuserid] == $post[userid]">
<!-- sig -->
<div>
__________________<br />
<if condition="$thread[postuserid] == $post[userid]">
<img src="http://yourwebsite.com/forum/images/thread_starter.gif" alt="Thread Starter"><br />
</if>
</div>
<!-- / sig -->
</if>
<!--end of YoBroMoFo Bellardia Thread Starter-->

TimberFloorAu 10-13-2009 08:18 PM

Seems weird, as this works with no issues on our forums.

Thanks for the change

linuxututs 10-13-2009 08:57 PM

Ours to.

Thank You, simple hacks like this is what makes a board. ( To me anyway )

Thanks,

TimberFloorAu 10-13-2009 11:55 PM

Quote:

Originally Posted by linuxututs (Post 1899307)
Ours to.

Thank You, simple hacks like this is what makes a board. ( To me anyway )

Thanks,

Very simple hack, but very very popular. You are more than welcome :)

TheLastSuperman 10-14-2009 04:27 AM

Just like the Developer/Installed here on the .org, I like it nice thinking and way to implement ;)

TimberFloorAu 10-14-2009 10:19 AM

Quote:

Originally Posted by TheLastSuperman (Post 1899521)
Just like the Developer/Installed here on the .org, I like it nice thinking and way to implement ;)


Cheers Mike :up:

TheLastSuperman 10-14-2009 01:21 PM

Quote:

Originally Posted by TimberFloorAu (Post 1899602)
Cheers Mike :up:

No no sir, it all yours as long as you keep coming up with innovative ideas no matter how small or large :D

(Ok I'm not going to spam anymore compliments in your thread so everyone else as you were lol)

Mike

TimberFloorAu 10-15-2009 07:32 PM

UPDATE:

My original code is in fact correct.
Please revert postbit template changes, with this code below.

Open the postbit_legacy template

in Search In Template type :
$template_hook[postbit_signature_start]
$ad_location[ad_showthread_firstpost_sig]

After this add:

<!--YoBroMoFo Bellardia Thread Starter-->
<if condition="$post['signature'] OR $thread[postuserid] == $post[userid]">
<!-- sig -->
<div>
__________________<br />
<if condition="$thread[postuserid] == $post[userid]">
<img src="http://yourwebsite.com/forum/images/thread_starter.gif" alt="Thread Starter"><br />
</if>
$post[signature]
</div>
<!-- / sig -->
</if>
<!--end of YoBroMoFo Bellardia Thread Starter-->

************************************************** ***********************************************

Change http://yourwebsite.com/forum/images/thread_starter.gif to your filepath for the image
Upload the image to this destination using FTP
Change the alt="Thread Starter" above to your language translation or leave as is.

Please make special note to INCLUDE

$post[signature]

so that members signatures also appear.

Verionia 04-05-2010 11:01 PM

works for 4.02?


All times are GMT. The time now is 09:15 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.00995 seconds
  • Memory Usage 1,743KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete