The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Style Certain Posts - Possible?
Hi guys
I would like to make my first posts in a certain forum section appear like this: http://www.f30post.com/bpnews/style....d.php?t=728763 Any if this is possible? Am i missing something really simple? I;ve posted a request in the mod request section too. Thanks! Screenshot: --------------- Added [DATE]1350811069[/DATE] at [TIME]1350811069[/TIME] --------------- I tried to create a plugin and hook the "template_hook.postbit_messagearea_start" but I can't seem to successfully apply some CSS/style tags to this. I managed to inject some text above the title of the message body however. Any assistance would be appreciated thx |
#2
|
||||
|
||||
I would go about it like this...
You appear to be using postbit_legacy so go edit the existing postbit_legacy template. Highlight THE ENTIRE TEMPLATE with your mouse cursor and "COPY" it to the clipboard. Then add the following- Code:
<vb:if condition="$post['postcount'] == 1"> <!--- SPECIAL FIRST POST TEMPLAE --> [ORIGINAL TEMPLATE CODE HERE] <vb:else /> <!-- Standard postbit-legacy template --> ["Paste" code you copied here] </vb:if> Now just use HTML to customize the top half into the special first post you want. Again make sure you are doing this to postbit_legacy since that is the template you currently use. |
Благодарность от: | ||
aae55555 |
#3
|
|||
|
|||
Thank you very much BirdOPrey5. I really really appreciate it.
Let me see what I can come up with I will update on my progress. --------------- Added [DATE]1350861304[/DATE] at [TIME]1350861304[/TIME] --------------- BirdOPrey5 - you are a legend thank you. That worked wonders. |
Благодарность от: | ||
BirdOPrey5 |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|