PDA

View Full Version : Show Thread Enhancements - elmati - Ads inside postbit


elmati
05-04-2008, 10:00 PM
Hi all, this is my first hack and i want share here.

This product will give you the option to add advertising on postbit template without template edits. just upload the xml set your ad code and done!
This hack is for any ads service, not only for google adsense :)

> install
Go to your admin cp, then:
Plugin System -> Manage Products -> [Add/Import Product] -> Select 'product-ads_in_postbit.xml' from your computer then press 'Import'

> Mod Info
Plugins : 2
Phrases : 10
Templates : 1
Settings : 4

> Ads inside postbit Settings
Go to your admin cp, then:
vBulletin Options -> elmati - ADS inside postbit

> Versions:
v1.0 - 05 May 2008
-First release

v1.0.1 - 07 May 2008
- Usergroup permisions. (exclude usergroups)
- Added feature: Exclude forums.
- Added feature: Show ads every certain number of messages
- Minor bugs fixed

v1.0.2 - 07 May 2008
- Quick fix to quote overlap issue in IE.

> Next Update:
- Random Ads... (cooming soon)

> Bugs:
- There is a bug when using the quickreply and the new post created has advertising. That issue shows a blank page... I am still looking for a solution.
- Just tested in Firefox 2.x - 3 and IE 7.


For Support and questions just pm me

feedback, suggestions, issues, etc are welcome :)

Important: I will only give support to those who installed the plugin

If you use this hack please click install.

hcmagix
05-05-2008, 07:17 AM
nice :D

for further versions, I need an option for show ads in last post or every 10 post on a site.

gwerzal
05-05-2008, 10:38 AM
I have just installed it but the ad is not showing.

You can see where the ad is meant to be with the text wrapped around it but the ad doesn't show.

Edit - Got it working now. dont no what was playing up but its all looking good now.

Cheers dude

elmati
05-05-2008, 01:25 PM
nice :D

for further versions, I need an option for show ads in last post or every 10 post on a site.

Ok, i will do it!

I have just installed it but the ad is not showing.

You can see where the ad is meant to be with the text wrapped around it but the ad doesn't show.

Edit - Got it working now. dont no what was playing up but its all looking good now.

Cheers dude

If you create a new google adsense takes almost 10 minutes to show up.


Thanks all.

hnjco
05-05-2008, 03:48 PM
installed and working great

Thanks for this

gwerzal
05-05-2008, 05:44 PM
Ok, i will do it!



If you create a new google adsense takes almost 10 minutes to show up.


Thanks all.

Could have mentioned that before lol

anyways lookin good and i like the way you can turn the ads off for members

Icy
05-06-2008, 05:06 AM
Nice hack :D. Installed! As hcmagix said an option for show ads after X posts would be nice :)

elmati
05-06-2008, 05:18 AM
Right now Google adsense just let you put 3 ads with same code per page.
I'll make this option for you :)

Next update:
Exclude forums
Show ads after X posts.

Cooming soon! :)

elmati
05-07-2008, 05:54 PM
Version 1.0.1 is out!

v1.0.1 - 07 May 2008
- Added feature: Exclude forums.
- Added feature: Show ads every certain number of messages
- Minor bugs fixed

Please upgrade to new version :)

Best Regards!

duplu
05-07-2008, 07:30 PM
Thanks for this working well on my site. The only problem I have is that the ads sometime overwrite a post that has been quoted.

There's an example on this page of my site http://www.fruit-emu.com/forums/site-news/13353-site-changes-discussion-3.html#post117021

elmati
05-07-2008, 07:52 PM
Ok, im checking that because just happens in IE...
I'll try to fix today.

thanx for the feedback!

duplu
05-07-2008, 08:32 PM
I see what you mean it works OK in Firefox. It's not working for me in Safari.

Icy
05-08-2008, 03:24 AM
Updated! Thanks :)

figu120
05-08-2008, 03:30 AM
and posbit_legancy work?

tintructo
05-08-2008, 03:57 AM
Ok, im checking that because just happens in IE...
I'll try to fix today.

thanx for the feedback!

that's because in IE widths works different, and the Quote bbcode is a ' width="100%" ' table, and IE makes the 100% to the other side of the POST itself, while firefox and any good browser will see that 100% is to where the floated div starts. the workaround for that would be to set a fixed width of X% or Xpx to the table (only for ie)

esto pasa por que en IE es una porqueria como renderiza los tama?os, no toma en cuenta los elementos que flotan como algo de tama?o sino que toma el contenedor principal para el 100% y como ve que no entra, lo manda para abajo..la unica forma de arreglarlo que se me ocurre es ponerle un tama?o fijo el quote de manera que entre...lo que si me sorprende es que funcione bien en firefox...por que yo trato de reproducir el mismo caso y se me superpone el texto el ad de google con el quote, rarisimo realmente...pero con ie esta mas complicada la cosa

figu120
05-08-2008, 04:03 AM
Mi duda es pero sirve para el postbit vertical..

pues lo agrege tal cual y no me funciono.. muchas gracias

elmati
05-08-2008, 12:48 PM
Hi all!

yeah it's works with both templates: postbit & postbit_legacy

I'm workin on a whole upgrade to fix the bbcodes issue

Many thanks to those who installed the plugin
Muchas gracias a los que instalaron el plugin

fmfa-online
05-08-2008, 02:57 PM
Instalado gracias!!!

elmati
05-08-2008, 03:01 PM
Ok, i have implemented a temporary fix to quote overlap issue in IE.

Just upload the product again and dont forget to check rewrite to yes.
Go to product settings and add a message area width.

I hope that will help until i find a new way to fix it :)

elmati
05-08-2008, 03:02 PM
Instalado gracias!!!
Thanks!
please click install :)

duplu
05-08-2008, 03:30 PM
Ok, i have implemented a temporary fix to quote overlap issue in IE.

Just upload the product again and dont forget to check rewrite to yes.
Go to product settings and add a message area width.

I hope that will help until i find a new way to fix it :)

Thanks, this works perfectly for me. I prefer the way this display in Safari better than how it looked correctly before in Firefox.

elmati
05-08-2008, 04:03 PM
Thanks Duplu :)

I'm workin on a better upgrade

Best Regards

figu120
05-08-2008, 04:11 PM
instalado thank

lucamago
05-11-2008, 04:14 PM
Great Mod! Is it possible in a future version to enable this mod to display ads only for certain user group?
Thanx!

duplu
05-11-2008, 05:47 PM
Great Mod! Is it possible in a future version to enable this mod to display ads only for certain user group?
Thanx!

It already does this. There is a setting in the admincp where you put the numbers of the usergroups you want to see the ads.

michaelsilvia
05-12-2008, 04:41 AM
Very nice! If I could make a suggestion. Please provide an option where you can exclude specific usergroups. I have a premium membership on my site and one of the benefits is no ads.

elmati
05-12-2008, 06:50 PM
Very nice! If I could make a suggestion. Please provide an option where you can exclude specific usergroups. I have a premium membership on my site and one of the benefits is no ads.
Hi, the plugin has this feature!



Btw... Bug finded...
There is a bug when using the quickreply and the new post created has advertising. That issue shows a blank page... I am still looking for a solution.

If anyone find a possible solution please share :)

wtrk
05-13-2008, 03:10 AM
turn it on and off per forum would be awesome.

dancue
05-13-2008, 09:14 PM
Ok, elmati. I got a request for you.

I want to be able to use two different ad codes depending on what style I'm using. If I use a fixed style (or a style specified in AdminCP) it would result in one code, and a fluid style would result in another.

One possible set up would be like this:

Ad Code 1:
Ad Code 2:
Select A Style for AdCode 1: (Click and hold Cntrl to select multiple)
Select A Style for AdCode 2: (Click and hold Cntrl to select multiple)

What do you think?

dancue
05-13-2008, 09:16 PM
Also, does this use any iframes or float elements?

elmati
05-14-2008, 12:49 PM
Ok, elmati. I got a request for you.

I want to be able to use two different ad codes depending on what style I'm using. If I use a fixed style (or a style specified in AdminCP) it would result in one code, and a fluid style would result in another.

One possible set up would be like this:

Ad Code 1:
Ad Code 2:
Select A Style for AdCode 1: (Click and hold Cntrl to select multiple)
Select A Style for AdCode 2: (Click and hold Cntrl to select multiple)

What do you think?

Yeah, That could be a nice add on.
Added to the todo list :)

turn it on and off per forum would be awesome.

Added to the todo list for the next release! :)

Also, does this use any iframes or float elements?

Just use a div to contain the ads, but some ads uses a iframes.
And that's iframes are causing troubles when you use the quick reply and your post will have advertising. I'm trying to fix that.


Thanks all for your comments and sugestions :)

dancue
05-14-2008, 12:58 PM
I asked about the iframes and float elements because someone mentioned that one of these is against google policy.

Does your mod violate any terms by google?

elmati
05-14-2008, 01:08 PM
No, this mod respect the terms of google and every advertisement networks like linkshare.com.

your code will be something like this:
<!-- message -->
<div>
<div style="float:right">ADS CODE</div>
<div>Post message</div>
</div>
<!-- /message -->

That way is used in a lot of portals and websites without problems.

Best regards!

dancue
05-14-2008, 01:14 PM
Thank you for clearing that up!

Can't wait for your next update! When do you think you'll have that one out?

elmati
05-14-2008, 01:33 PM
i got a full time work so i'll work on this weekend :)

thanks for your interest.
Best regards!

dancue
05-14-2008, 01:36 PM
ok. Thank you.

rootnik
05-16-2008, 01:05 PM
These would be very useful options:

1. Location: last post.

2. Disable ad in first post if thread is sticky.

3. "All usergroups" setting. Allot of mods use 0 to equal all groups.

Very nice mod, installed.

quarum
05-16-2008, 02:12 PM
This seems to scruntch up the text in the posts - it pushes the text all to the left. Any idea what I missed that might cause this?

intensecool
05-16-2008, 02:31 PM
Sir,

Exclude forums is not working for me...As i have put the forum id's which i do not want the ads to appear in postbit but it appears to be on the whole forum

Can you fix this

elmati
05-20-2008, 02:09 AM
Hi all,

I'm fixin all the issues to the next release...
Please be patient cuz i dont have full time to work with this :(

Thanks for all the C&C!

rootnik
05-20-2008, 10:30 AM
This seems to scruntch up the text in the posts - it pushes the text all to the left. Any idea what I missed that might cause this?


Set the postbit width in the mod's vbulletin options.

intensecool
05-20-2008, 04:49 PM
Hi all,

I'm fixin all the issues to the next release...
Please be patient cuz i dont have full time to work with this :(

Thanks for all the C&C!
Ok...We are waiting
Thanks

neologan
06-20-2008, 11:56 AM
the issue with ie not following the ad borders, are you just looking for html that will fix this or is the issue more serious?

I use code on my main site that works in IE without having to enter a width, would that be useful to you?

neologan
06-20-2008, 12:09 PM
ok a few issues.

1) the quote problem, this must be rather simple surely?

2) instead of having "Each how many messages", why not have another system where you can choose when the ad should be repeated and how many times, so:

Display an ad every how many posts?: 4
Do this how many times?: 3

This would mean the ad shows 3 times on the first, fourth and 8th post. This is a better system i think.

aside from these two issues, it's bording on perfect. thanks! :)

Rat1972
09-26-2008, 06:38 AM
can it also set the adsense below the signature?

pnosko31
09-26-2008, 05:48 PM
he hasn't posted on this thread in 4 months so obviously he is not gonna do any more upgrades to this

vietfancy
09-26-2008, 07:01 PM
installed. and save for later use. :d

soner
10-21-2008, 06:43 AM
thank you super hack :)

Fungsten
10-29-2008, 07:27 PM
Installed. I"m using VB 3.7.3 in postbit legacy and the text is not wrapping around the ads. They are getting pushed to the left in a long narrow column. I saw in the thread that some others are having the same problem. Does anyone have a fix for this? TIA!

goldenchildren
11-10-2008, 06:12 PM
Hi every time I time and Import it comes up with "No file uploaded and no local file found" even though I am clearly pointing it to the right file on my machine, running cp in safari and vb 3.7.3 any ideas as it's driving me nuts!

nymyth
12-18-2008, 02:40 PM
anyone found a solution to the white page problem??

Thanks

nymyth
12-18-2008, 08:19 PM
Here is the solution....

<if condition="(!$GLOBALS['FIRSTPOSTID'] and !$GLOBALS['vbulletin']->GPC['ajax'])">

Peace

Riccardo83
01-01-2009, 08:54 PM
Love it! Great!

Nintendo-Daily
01-02-2009, 02:02 PM
I like it alot, but is there a way to display the ads at the bottom of the post instead of the right side?

Riccardo83
01-02-2009, 02:32 PM
That woudl be great yes... Most people Reply on things and the chance they read the last post is much higher...

Nintendo-Daily
01-02-2009, 10:20 PM
That woudl be great yes... Most people Reply on things and the chance they read the last post is much higher...

I'm not sure if you were replying to me but if you were that isn't what I meant. I still want the ad in the 1st post, but at the bottom of the post, not the right side of the post , where it is positioned by default.

How would I need to modify the <div> in the XML file?

Riccardo83
01-03-2009, 08:46 AM
Well I was replying to you indeed. What I ment was to have the ad inside the first post and the option to have it inside of the last post on every page as well.

I'd love to tell ya how but I'm not sure myself...

UKBusinessLive
01-03-2009, 10:35 AM
Installed and working Great ~ Well impressed,

have it working for Guests, Not Logged in and users awaiting moderatoration. Used it with my Amazon widget

http://www.ukbusinesslive.co.uk/forum/showthread.php?t=56

:D

UKBusinessLive
01-03-2009, 10:38 AM
Installed. I"m using VB 3.7.3 in postbit legacy and the text is not wrapping around the ads. They are getting pushed to the left in a long narrow column. I saw in the thread that some others are having the same problem. Does anyone have a fix for this? TIA!

You need to adjust the postbit width, I think its set to 200 by default, I have mine set at 750 http://www.ukbusinesslive.co.uk/forum/showthread.php?t=56

it depends if you have a fluid or fixed style, best thing to do is to pay with it and see, trial and error always works for me ;)

Nintendo-Daily
01-04-2009, 08:23 AM
bump...

I like it alot, but is there a way to display the ads at the bottom of the post instead of the right side?

ShawneyJ
01-05-2009, 07:01 AM
Sir,

Exclude forums is not working for me...As i have put the forum id's which i do not want the ads to appear in postbit but it appears to be on the whole forum

Can you fix this



yeah same, its messing my announcements forum up lol.

Nintendo-Daily
01-05-2009, 12:13 PM
bump...

I like it alot, but is there a way to display the ads at the bottom of the post instead of the right side?

Riccardo83
01-06-2009, 09:00 AM
Found another bug, when u have QUOTES in the first post its inside these quotes, any way to get this fixed?

Nintendo-Daily
01-07-2009, 10:52 PM
bump...

I like it alot, but is there a way to display the ads at the bottom of the post instead of the right side?

Nintendo-Daily
01-08-2009, 10:53 PM
bump...

I like it alot, but is there a way to display the ads at the bottom of the post instead of the right side?

Nintendo-Daily
01-10-2009, 01:49 PM
bump...

I like it alot, but is there a way to display the ads at the bottom of the post instead of the right side?

Nintendo-Daily
01-11-2009, 04:43 PM
bump...

I like it alot, but is there a way to display the ads at the bottom of the post instead of the right side?

DanTHEGREAT
01-11-2009, 08:51 PM
I don't get what to put "ads code"

I have google adsense with 3.8.0 but not sure what to put as a code.

Nintendo-Daily
01-11-2009, 09:41 PM
I don't get what to put "ads code"

I have google adsense with 3.8.0 but not sure what to put as a code.

First of all, you need a Google Adsense account. Once you have one set up you can create all kinds of different ads. Once you create ads you get an ad code. Once you get your ad code, use that. :)

floggerss
01-12-2009, 12:08 AM
Work great Thanks

Pure Dope
01-12-2009, 07:04 AM
are there any other mods like this one? i would like my users post to wrap around the ad.

geckoz
01-12-2009, 01:54 PM
Nice mod but how can I place the adsense ads on the left side instead on the right side within the first post?

DanTHEGREAT
01-12-2009, 10:08 PM
I placed the code and it didn't work.

Nintendo-Daily
01-12-2009, 10:49 PM
bump...

I like it alot, but is there a way to display the ads at the bottom of the post instead of the right side?

Nintendo-Daily
01-15-2009, 12:57 AM
bump...

I like it alot, but is there a way to display the ads at the bottom of the post instead of the right side?

MaR?
01-15-2009, 12:09 PM
Works PERFECT on 3.8.0

THANKS!

m2006
01-16-2009, 07:00 AM
feature: Exclude forums not work

Fix forums id 1,2,3 yes oy no

Nintendo-Daily
01-18-2009, 03:32 PM
bump...

I like it alot, but is there a way to display the ads at the bottom of the post instead of the right side?

Nintendo-Daily
01-20-2009, 11:55 AM
bump...

I like it alot, but is there a way to display the ads at the bottom of the post instead of the right side?

Nintendo-Daily
01-21-2009, 08:47 PM
bump...

I like it alot, but is there a way to display the ads at the bottom of the post instead of the right side?

Nintendo-Daily
01-23-2009, 12:27 AM
Bump...

What do I have to do to get support with this modification? This is the correct place right?? I've already marked the modification as installed and I am sure I am not the first one to ask the question.

I guess I'll keep asking until someone can assist.

How do I display the ads at the bottom of the post instead of the right side?

Nintendo-Daily
01-29-2009, 09:11 PM
Elmati, do you have an update for this mod yet?

ddo36
05-28-2009, 01:46 PM
how can i make this mod work ONLY on the first post???

ricardoNJ
06-02-2009, 08:49 PM
Gracias!

PAKIDIL
06-11-2009, 03:13 PM
only exclude forum is not working please fix it thanks