hi
i want to change the structure ( html ) of the first post of anythread , i want give some spaces for google adsense
so what template i must change
NB/ i want change the first post of every thread not all posts
but sir i want add adense code between content and on the right / left of the content
^ can you show your requirement with a image please
i want add adsense every where i want in the first post only
for ex :
viewed by 3,040 until now
^ you can have the advertisements at the left side and at the right side within post by using floated contents.
in general, we use
template conditionals plugin to put required content in a specific post & add style code to adjust position
however it is difficult to put advertisement in between of the post content. see replies in threads
143122,
143389 &
143808
sir thanks for ur help
i'm a beginner and i want an esay solution
download and install
template conditionals plugin
find
{$post['message']} in the
postbit templates (both
postbit and
postbit_classic templates)
you can use code like below
<if ($postcounter - 1) % $mybb->settings['postsperpage'] == "0" then>
<span class="float_left">your first advertisement code</span>
<span class="float_right">your second advertisement code</span>
</if>
{$post['message']}
above code is expected to work for the left and right side advertisements within a post.
if that doesn't work then we have to wait for the guidance by experts
sir to make it easy for u
how can we add the cube ads ( in the picture that i upload " Ads here " )
it's in first and easy to add it but how we can make contect shown beside and under the ad not under it only ( soory for my english )
^ please try the suggested code and then show what happened with a image