MyBB Community Forums

Full Version: Where Is The First Post Template?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hi,

I've just installed a plugin that adds an advert alongside the FIRST POST of each thread, but I would like to remove the advert from one of my themes.

I am just wondering, what template holds the code that shows the first post, as I've looked in showthread and postbit and can't seem to find it?

Thanks very much,

James
There is no First post template.
Thanks for the quick response Smile

I'll re-ask my question then in a different way, where will the code be held that will put the advert in my first post? It'll be a piece of code that says something like {$postad}

Thanks very much.
It would make sense to be in Showthread somewhere but it's not, there's stuff like {$posts} and it could be held in there but I don't know how to find what code the {$posts} is holding... hmm
Most probably in the postbit template.
Hmm, here's my postbit template:

---------------------

{$ignore_bit}
<div id="post_{$post['pid']}" style="{$post_visibility}">
<a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
<div class="post_author">
<span class="float_right datetime smalltext">({$post['postdate']} {$post['posttime']}) </span>
{$post['useravatar']} {$post['profilelink']} {$post['replink']}
</div>
<div class="post_body">
<div class="post_content {$unapproved_shade}">{$post['message']}</div>
{$post['attachments']}
<div class="post_manage"><span style="float: left;">{$post['inlinecheck']}<img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/posted_{$post['mobile']}.png" alt="" width="{$post['mobile']}8" height="{$post['mobile']}8" title="Posted from GoMobile (when icon is displayed)" /></span>{$post['button_warn']}{$post['button_pm']}{$post['button_edit']}{$post['button_quickdelete']}{$post['button_quote']}{$post['button_reply_pm']}{$post['button_replyall_pm']}{$post['button_forward_pm']}{$post['button_delete_pm']}</div>
</div>
</div>

---------------------

Any ideas what I need to edit to get rid of the advert?

Thanks kindly.
I've reverted the postbit back to original and it's still there so it's nothing in there, it might be help within {$post['message']}, do you know how I can edit the code in there?
What ad plugin are you using?
You can use php to show content only in first post.

(PHP In Tempaltes or Template Conditionals plugin)
What'll the PHP code be mate? And where will it go and that Confused

I'm confused at to where the code for this ad is held Confused
That plugin doesn't edit any templates, you'll need to edit the plugin itself.
Pages: 1 2