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)
-   -   Show Thread Enhancements - Thread Starter Image in Postbit for OP (https://vborg.vbsupport.ru/showthread.php?t=295277)

addamroy 02-18-2013 11:00 PM

Thread Starter Image in Postbit for OP
 
1 Attachment(s)
This modification is simple. It will display a 'Thread Starter' graphic on all posts made by the original poster ("The OP") in each thread.

Only 1 image upload and 1 template edit required to make this work.

Step 1 - Upload the OP.png image to your forum's /images folder.

Step 2 - In your postbit_legacy template...

FIND
Code:

{vb:raw template_hook.postbit_userinfo_left}
<vb:if condition="$show['reputation']">

ABOVE that code ADD
Code:

<!-- SHOW OP IMAGE FOR POSTS -->

<vb:if condition="$thread[postusername]==$post[username]">
<div align="left" style="float:left;padding:7px;margin-bottom:5px;background-color:#252525;border:1px solid #000000;">
<img src="images/OP.png" alt="{vb:raw post.username} started this thread." />
</div>
</vb:if>

<!-- SHOW OP IMAGE FOR POSTS -->

That's it :)

Check out my other Template Modifications for 4.x!

[Postbit-Legacy Hack] Attractive User Info Boxes for Posts

Link Private Forums to thread instead of error message

Sidebar Anywhere Enhancement - Custom Blocks Per Forum or Page

Change Thread Title Color for Specific Forums on Homepage

Change Background Color for Specific Forums on Homepage

Change Title Color of Specific Forums on Homepage

CUSTOM BUTTONS that look like your forum!

Custom User Rank Box in Posts

Alan_SP 02-19-2013 08:57 AM

It's a nice idea, but this isn't mod, thiis is template modification.

deadlySniper 02-22-2013 04:39 AM

Quote:

Originally Posted by Alan_SP (Post 2405160)
It's a nice idea, but this isn't mod, thiis is template modification.

Agreed. But good idea

Justinphx 02-22-2013 07:36 AM

Nice. Great idea.

Dorgham 03-04-2013 10:31 PM

Thanks
I liked this idea very :)

Spangle 03-06-2013 08:47 AM

This is a good idea, but the background and border make it look really ugly, so I would suggest removing the bit in red

Code:

<!-- SHOW OP IMAGE FOR POSTS -->

<vb:if condition="$thread[postusername]==$post[username]">
<div align="left" style="float:left;padding:7px;margin-bottom:5px;background-color:#252525;border:1px solid #000000;">
<img src="images/OP.png" alt="{vb:raw post.username} started this thread." />
</div>
</vb:if>

<!-- SHOW OP IMAGE FOR POSTS -->

Also for 4.2 Patch 3 the find is wrong, if you place it below this code :

Code:

                                        <dd id="reppower_{vb:raw post.postid}_{vb:raw post.userid}">{vb:raw post.reppower}</dd>
                                                </vb:if>
                                        </vb:if>
                                </dl>
                                </vb:if>

It will appear above the contact icons

datoneer 05-12-2013 01:48 AM

Thanks for this looks cool


All times are GMT. The time now is 09:28 PM.

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.00960 seconds
  • Memory Usage 1,730KB
  • 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
  • (4)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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