miniBB ® 

miniBB

®
Support Forums
  
 | Start | Register | Search | Statistics | File Bank | 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
Partaker
#2 | Posted: 6 Jun 2005 17:58 
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 
Could the adsense be designed more naturally with the thread layout? For example, with the same width as the message cell.

Author realitybytes
Partaker
#4 | Posted: 6 Jun 2005 22:34 
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 
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
Partaker
#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
Partaker
#7 | Posted: 15 Sep 2005 11:44 
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
Partaker
#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
Partaker
#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
Partaker
#12 | Posted: 28 Sep 2006 18:58 
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
Active Member
#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
 Share Topic's Link

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


  ?
Post as a Guest, leaving the Password field blank. You could also enter a Guest name, if it's not taken by a member yet. Sign-in and post at once, or just sign-in, bypassing the message's text.


Before posting, make sure your message is compliant with forum rules; otherwise it could be locked or removed with no explanation.

 

 
 
miniBB Support Forums Powered by Forum Software miniBB ® Home  Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contact Us
Try the File and Picture Attachments add-on: extend your miniBB-forums, attaching images and files.


  ⇑