Log in

View Full Version : Style Certain Posts - Possible?


aae55555
10-20-2012, 06:06 PM
Hi guys

I would like to make my first posts in a certain forum section appear like this:

www.f30post.com/bpnews/style.cssforums/showthread.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:

https://vborg.vbsupport.ru/external/2012/10/22.jpg

--------------- Added 1350811069 at 1350811069 ---------------

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

BirdOPrey5
10-21-2012, 09:36 AM
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-


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


So basically your final template will be twice as big as it was. The first half is the special template only for the first post. The second half will be for all other posts.

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
10-21-2012, 10:23 AM
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 1350861304 at 1350861304 ---------------

BirdOPrey5 - you are a legend thank you. That worked wonders.