PDA

View Full Version : Mini Mods - Tag OP on thread starter's postbit


Hades-
05-22-2015, 09:00 PM
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

{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:


{vb:raw post.icqicon} {vb:raw post.aimicon} {vb:raw post.msnicon} {vb:raw post.yahooicon} {vb:raw post.skypeicon}


Then AFTER that add:


<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/attachment.php?attachmentid=152526&stc=1&d=1432365222

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


Credits to Boofo for the original modification found here. (https://vborg.vbsupport.ru/showthread.php?t=244238)

Heres the link to the collapsible postbit information (https://vborg.vbsupport.ru/showthread.php?t=315521&highlight=postbit) 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
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
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?