vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Mini Mods - Tag OP on thread starter's postbit (https://vborg.vbsupport.ru/showthread.php?t=318773)

Hades- 05-22-2015 09:00 PM

Tag OP on thread starter's postbit
 
1 Attachment(s)
Ok, well I seen there was an actual modification for this but that is completely unnesscary and this method makes it much easier to place it where YOU want and you can easily change the image path or what it says. Basically this is for people who want to place it somewhere else other then

Code:

{vb:raw template_hook.postbit_userinfo_right_after_posts}
Personally my issue was that the DBTech thanks mod uses that hook also and I made my users information a AJAX collapsible box to give a cleaner look but I didn't want the OP tag to be in the drop down, I wanted it to always display. So here is MY fix!


If you use my fix please mark as installed! If you need help placing it feel free to ask for help and I'll do my best to assist.



Open up postbit_legacy and find:

Code:

{vb:raw post.icqicon} {vb:raw post.aimicon} {vb:raw post.msnicon} {vb:raw post.yahooicon} {vb:raw post.skypeicon}
Then AFTER that add:

Code:

                                <vb:if condition="$thread['postuserid'] == $post['userid'] && $thread['firstpostid'] != $post['postid']">
                                <div align="center"><img src="path/to/your/image/thread_starter.png" class="inlineimg" alt="Thread Starter" title="Thread Starter" /></div>
                                </vb:if>

You can also place it elsewhere, I just used the IM icons as an example. Well, that's all. ENJOY!


https://vborg.vbsupport.ru/attachmen...1&d=1432365222

https://vborg.vbsupport.ru/external/2015/05/10.png


Credits to Boofo for the original modification found here.

Heres the link to the collapsible postbit information for anyone interested in using it also...I did modify that a bit also so if you have a question about that feel free to ask.




SaN-DeeP 05-26-2015 04:54 PM

Thanks, saw this working on some great forums.. you easily have a code for same.

Not tested if working or not yet..

Regards,

boss22 05-27-2015 02:38 PM

For me works not - tried both codes - come no image in userinfo???

Use vb 4.2.3 RC1

regards
bosss

Hades- 06-01-2015 03:03 AM

Quote:

Originally Posted by boss22 (Post 2546564)
For me works not - tried both codes - come no image in userinfo???

Use vb 4.2.3 RC1

regards
bosss

I've only tested this on vB 4.2.2, did you upload the image? Check the image URL you are using also and make sure it is correct.

MarkFL 06-01-2015 03:10 AM

Quote:

Originally Posted by boss22 (Post 2546564)
For me works not - tried both codes - come no image in userinfo???

Use vb 4.2.3 RC1

regards
bosss

It would also help if you posted a link to a live page where the image should be displayed...this can make diagnosing the issue much easier. :D

Ravallojr 07-06-2015 02:26 PM

How did you get your reputation like that, along with rep power also?


All times are GMT. The time now is 03:56 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.01064 seconds
  • Memory Usage 1,725KB
  • 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
  • (3)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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