Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Not Solved Where Is The First Post Template?
Not Solved

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,

Not Solved
There is no First post template.
Not Solved
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
Not Solved
Most probably in the postbit template.
No longer involved in the MyBB project.
Not Solved
Hmm, here's my postbit template:


<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 class="post_body">
<div class="post_content {$unapproved_shade}">{$post['message']}</div>
<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>


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?
Not Solved
What ad plugin are you using?
-Paul H.

Cogisne lingua latina?
Not Solved
This one mate:
Not Solved
You can use php to show content only in first post.

(PHP In Tempaltes or Template Conditionals plugin)
Not Solved
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
Not Solved
That plugin doesn't edit any templates, you'll need to edit the plugin itself.

Forum Jump:

Users browsing this thread: 1 Guest(s)