miniBB ® miniBB®
miniBB Support Forums
 | Forums | Register | Reply | Search | Statistics | Manual |
Custom Tutorials and Modifications miniBB Support Forums / Custom Tutorials and Modifications /   

Adsense Support

Page  Page 1 of 2:  1  2  Next »  
Author Ant Eksiler
Guest
#1 | Posted: 6 Jun 2005 17:55 
Vbulletin and phpBB has some plugins to implement adsense code into the post. THe adsense appear after the first post of the topic and never appear again. This way you get more clicks from your website... Is there a way to do this in miniBB?

Author realitybytes
Registered
#2 | Posted: 6 Jun 2005 17:58 | Edited by: realitybytes 
google adsense?

sounds like a good idea, I have not signed up to adsense but I plan to, if you can post some sample code that you use for adsense here I will work on a plugin.

It should not be to hard just check for the action view post then #1 post insert the google adsense code to it.

Author Team
8-)
#3 | Posted: 6 Jun 2005 22:27 | Edited by: Team 
Could the adsense be designed more naturally with the thread layout? For example, with the same width as the message cell.

Author realitybytes
Registered
#4 | Posted: 6 Jun 2005 22:34 | Edited by: realitybytes 
Team:
Could the adsense be designed more naturally with the thread layout? For example, with the same width as the message cell.

Adsense is fully customisable when requesting the code from google.

I presume it will be possible to get the required width or very close at least.

I will sign up to adsense however it maybe some time before I get approval.

I am just messing about with some different designs on my test server, adding it to a new row etc. I will update if I hit on anything that looks better.

Author Team
8-)
#5 | Posted: 7 Jun 2005 13:36 | Edited by: Team 
This is better example of the function (parseMessage() could be used also for another purposes - be sure you combine this code with other, if it's existing). This needs to be pasted in bb_plugins.php.

Download and extract the code from the attached link, copying/pasting it from browser gives parsing errors.

Link: Adsense Code.zip

Don't forget to paste {$adsense} in templates/main_posts_cell.html (most likely above closing </td> )

Author realitybytes
Registered
#6 | Posted: 18 Jun 2005 03:59 
It works very well!

Got denied from adsense though due to gambling content, nevermind will put some use to it with other ads...

Author Moony
Registered
#7 | Posted: 15 Sep 2005 11:44 | Edited by: Moony 
Could the adsense be designed more naturally with the thread layout? For example, with the same width as the message cell.

It is customizable only as far as colors are concerned. Otherwise it is IFRAME and you cannot customize its wisth, etc.

I have already implemented with Yandex codes it into main_last_discussions, main_forums, main_posts, search, etc. on my forum an site: www.indostan.ru/forum

You can even click at a couple of links to see how it works :)

Author Danny2000
Registered
#8 | Posted: 28 Apr 2006 13:35 
Team
Do you have any other idea to placing ads between posts?

Author Team
8-)
#9 | Posted: 28 Apr 2006 19:34 
Hmm... what do you mean precisely? New ad after EACH post?

Author Danny2000
Registered
#10 | Posted: 30 Apr 2006 19:17 
Hmm... what do you mean precisely? New ad after EACH post?
Yes, something like that, or new ad after second post in each page.

Author Team
8-)
#11 | Posted: 1 May 2006 07:32 
If after each message, you just need to remove if ($GLOBALS['anchor'] == 1){ condition in the code I've placed above. Of use $GLOBALS['anchor'] == 2 condition for displaying after each second post.

We will release new issues soon, and $anchor counting will be included in bb_func_vthread.php script, again, so it will be possible to use code mentioned.

Author Danny2000
Registered
#12 | Posted: 28 Sep 2006 18:58 | Edited by: Danny2000 
We will release new issues soon, and $anchor counting will be included in bb_func_vthread.php script, again, so it will be possible to use code mentioned.

Did you add "$anchor" in current minibb version?

Author Paul
Lead Developer
#13 | Posted: 29 Sep 2006 02:22 
It's added actually a long time ago and yes, available in current release for sure. So mentioned code should work for the latest release.

Author Anonymous
Guest
#14 | Posted: 5 Aug 2007 22:36 
This might be dumb but when adding that code to bb_plugins.php I get a

PHP Fatal error: Cannot redeclare parsemessage() (previously declared in /srv/www/htdocs/forum/bb_plugins.php:8

I noticed I am already using the parsemessage() function for the custom signature addons? Whats the way around this?

Author tom322
Registered
#15 | Posted: 6 Aug 2007 00:12 
Whats the way around this?
Paste the adsense code in the parsemessage function so that this function appears once only in the bb_plugins.php

Page  Page 1 of 2:  1  2  Next » 
Custom Tutorials and Modifications miniBB Support Forums / Custom Tutorials and Modifications / Adsense Support Top

Your Reply Click this icon to move up to the quoted message

 Short link for this topic:

 ?
You are welcome to post anonymously, by entering a nickname with no password (if the similar Username has not been taken yet), or by leaving both fields empty. If you have a forums account, you can also sign in from this page without posting a message, or sign in and post at once.


Before posting, make sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.
 
 
miniBB Support Forums Powered by Forum Software miniBB ® Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contacts
Try the Captcha add-on: protect your miniBB-forums from the automated spam and flood.
Captcha Addon for miniBB