MyBB Community Forums

Full Version: mybb plugin to show adsense ad in first post of every thread
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I need to know about any mybb plugin to show adsense ad in first post of every thread. I am using latest mybb version.
(2012-01-02, 03:51 PM)ranjani Wrote: [ -> ]you can use my advertisements plugin

But that don't have option to show ads only in every first post of the thread.
Yes it does. Edit the Postbit zone under the Zones menu and choose "First Post only".
if you add code for adsense you must wait couple minutes to adsense be visible in your site
(2012-01-02, 03:57 PM)Fábio Maia Wrote: [ -> ]Yes it does. Edit the Postbit zone under the Zones menu and choose "First Post only".

But there is no option like that in configuration panel, i am using latest version. I have three adzones like header,footer and sidebar are there.

When i manually created zone like "First Post only" ads still not showing.
not sure how you have sidebar as a default zone
By default, there are three zones: * Header , * Footer , * Postbit
These cannot be deleted and are automatically added to the templates.

Edit :
plugin's main file (myadvertisements.php) requires a setting change to enable postbit advertisements

on line 50 , find define("MYADS_DIF_POST", 0);
above needs to be changed to define("MYADS_DIF_POST", 1);

(2012-01-02, 04:15 PM)ranjani Wrote: [ -> ]not sure how you have sidebar as a default zone
By default, there are three zones: * Header , * Footer , * Postbit
These cannot be deleted and are automatically added to the templates.

Edit :
plugin's main file (myadvertisements.php) requires a setting change to enable postbit advertisements

on line 50 , find define("MYADS_DIF_POST", 0);
above needs to be changed to define("MYADS_DIF_POST", 1);

Thanks for the help. Now it is showing.
(2012-01-02, 03:57 PM)Yaldaram Wrote: [ -> ]There are many;
http://yaldaram.com/showthread.php?tid=1824
http://yaldaram.com/showthread.php?tid=923
http://mods.mybb.com/view/postad-lite

Also the second plugin working like a charm