The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Thread Starter in Postbit for vB 4 Details »» | |||||||||||||||||||||||||||||||||||
Thread Starter in Postbit for vB 4
Version 1.0.3 (By Boofo) What does this product do? This will add a thread starter icon/text to the postbit. There are 4 locations to choose from (2 icon and 2 text). I know this had been done already, but I didn't like how it showed in the postbit. You do not have to have a signature for this to work. This product is just an upgrade to the manual template edit I have used in the past. Note: This product was written using the postbit_legacy template and has not been tested on the postbit template, although it should work fine. Version Information: Version 1.0.0 --Initial release for vBulletin 4.0.0 Version 1.0.1 --Fixed to work for vB 4.0.4 Version 1.0.2 --Added 2 new locations with highlighted text. Version 1.0.3 --All 4 options are now linked to the first post of the thread. Also fixed a template cache error that was showing up for PMs. Installation Overview: ----------------------------------------------------- 1 Product XML (2 Plugins, 1 template, 7 phrases and 1 setting) 1 image file Installation Instructions: ----------------------------------------------------- 1. Upload thread_starter.gif to the forums/images/misc folder on your site. 2. Go to your Admin CP Scroll down to 'Plugins & Products' Click 'Manage Products' Click 'Add/Import Product' Click the 'Browse' button, and locate the product-boofo_threadstarter.xml file on your computer 3. Go to your Admin CP -> vBulletin Options -> 'Thread Starter in Postbit' and set the following option: --Show Thread Starter Icon/Text?: This will add the Thread Starter icon/text to your chosen location in the postbit. --"No" will disable the Thread Starter icon/text from showing anywhere in the postbit. (Default) --"Yes, Show icon under userinfo" will place the Thread Starter icon under the userinfo. --"Yes, Show icon in message area" will place the Thread Starter icon at the top right of the message area. --"Yes, Show text in button bar" will place the highlighted Thread Starter text in the button bar at the bottom of the post. --"Yes, Show text in message area" will place the highlighted Thread Starter text at the top center of the message area. ----------------------------------------------------- Done! Enjoy! Code:
if ($mark_as_installed != 'clicked') { $you_get = 'squat'; } else { $you_get = 'support'; } Download Now
Screenshots
Show Your Support
|
4 благодарности(ей) от: | ||
hazem_aliraqi, iiioroh, sodasusu, thecore762 |
Comments |
#42
|
||||
|
||||
Just look in the xml file and it will show you where each piece of code goes.
|
#43
|
||||
|
||||
I see the code, but I'm having trouble figuring out where to insert it in the postbit.
|
#44
|
||||
|
||||
You need to look for the template hooks in the code where I insert it:
Code:
$template_hook['postbit_userinfo_right_after_posts'] $template_hook['postbit_controls'] $template_hook['postbit_messagearea_start'] |
#45
|
||||
|
||||
Thanks much! Turns out I had forgotten to flush my cache after loading the product so the template edits were actually not needed!
|
#46
|
||||
|
||||
Ah, so you are running a server cache, I take it? If I had known that I could have saved you some grief.
|
#47
|
||||
|
||||
If I had remembered that I had a cache running, I would have saved myself the grief! But I jumped to the wrong conclusion. I've done some serious customization of the postbit template, laid out here: https://vborg.vbsupport.ru/showthread.php?t=250423 and just thought that it was the cause of the issue, instead of thinking about the cache.
|
#48
|
||||
|
||||
The best way to handle things like that is to make sure the hooks are in the template. If they are, then it has to be something else causing the issue, as you found out.
|
#49
|
|||
|
|||
Nice work Boofo
|
#50
|
|||
|
|||
Hi,
when edit a post were the threadstarter icon i visible to the left, it breaks the quick reply box. Any idea? vB 4.1.3 - postbit |
#51
|
||||
|
||||
Post a pic here so I can see what you are talking about.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|