PDA

View Full Version : Add message in first post


redfinite
04-17-2014, 12:53 AM
I was hoping someone could help me with a simple mod. I would like to add a small .png graphic to the end of the first post of a thread. I dont want this repeated for the every post the threadstarter makes after this, just the original post.

The small catch is I would also like to be able to limit this feature to select forum ID's also.

I have searched but while there are a few mods based around this most highlighted the threadstarter for the whole thread and couldn't be limited to certain forums. Im hoping its just a matter of adding some code to the templates.

Thank you very much.

ForceHSS
04-17-2014, 01:35 AM
Posted in wrong section try unpaid or paid section

cellarius
04-17-2014, 04:30 AM
Oh, come on, Force, that's exactly what this sections here are about - people asking questions about little changes to the software. They do it all the time, and they get answers here. This one is a simple and straightforward template edit, no need for a full-blown modificaton request.

Edit your postbit and/or postbit_legacy template.

Find:
{vb:raw post.message}

After that line of code insert:
<div><vb:if condition="$post['postcount']=='1' AND in_array($thread['forumid'], array(X, Y, Z))"><img src="path/to/image.png" alt="Alt-Text" title="Your image title" /></vb:if></div>

Where X, Y, Z is a comma seperated list of Forum-IDs.

redfinite
04-18-2014, 05:17 AM
Thank you very much once again cellarius for your help and kindness!