MyBB Community Forums

Full Version: change post structure
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
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
you can try using this method or see replies here and here
but sir i want add adense code between content and on the right / left of the content Smile
^ can you show your requirement with a image please
i want add adsense every where i want in the first post only
for ex :
[Image: U2EQl.png]

viewed by 3,040 until now Smile
^ 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 Smile
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
Pages: 1 2