PDA

View Full Version : Message in First Post of Thread


squishi
04-06-2009, 08:19 AM
I know about a plugin that lets you use a different template for the first post.
https://vborg.vbsupport.ru/showthread.php?t=93706&highlight=first+post
I am using it and it works fine.

Now, though, the need has come up to show a message in the first post of some forums other than the ones where I use the plugin.
How can I do that?

Mr-Moo
04-06-2009, 12:24 PM
I am a little unclear,

Is there an example and a more vivid description for us to better assist you?

Thank you,

Lynne
04-06-2009, 01:30 PM
I think this will work to put a message in the first post (test it to make sure):
<if condition="$post[postcount] == '1'">
Your message here.</if>
You might also be able to use $ad_location[ad_showthread_firstpost_start] but again, I don't know since I've never done so, so make sure to test this stuff out on a test site.

Mr-Moo
04-06-2009, 02:09 PM
Ah, I think I understand now.

Also you may want to add functions in to define which forums to have this in. So what Lynne posted possibly could have to be altered to a IF ELSE statement.

squishi
04-06-2009, 03:39 PM
Thank you, Lynne! That worked great. Big hug for you!