Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Not Solved Where Is The First Post Template?
#1
Not Solved
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
#2
Not Solved
There is no First post template.
#3
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
#4
Not Solved
Most probably in the postbit template.
No longer involved in the MyBB project.
#5
Not Solved
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?
#6
Not Solved
What ad plugin are you using?
-Paul H.

Cogisne lingua latina?
#7
Not Solved
This one mate: http://community.mybb.com/thread-70018.html
#8
Not Solved
You can use php to show content only in first post.

(PHP In Tempaltes or Template Conditionals plugin)
#9
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
#10
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)