PDA

View Full Version : Major Additions - vB Ad Management 4


Pages : 1 2 [3] 4 5 6 7 8 9 10 11 12

twells22
02-21-2007, 10:57 PM
There is no &nbsp in my header template, where should I put $header_advertisement?

Never mind found what to do.

ra7al
02-21-2007, 11:44 PM
i love it .... i love it

install

twells22
02-22-2007, 12:48 AM
Is there a way to get these ads on the photo plog lite page?

milsirhc
02-22-2007, 05:26 AM
Apologies, I didn't see it. I'm going to have to disagree with you that it's Google's problem because if I throw three Google Ads into my template without your mod, they show. :(

I got the same problem but after a while it starts to appear for all.

knertified
02-22-2007, 05:51 AM
Excellent product. Works with little setup. I love the "Click here to Remove Advertisment" link that you can link to payment.php. Thats a nice touch :)

RedTyger
02-22-2007, 06:54 AM
Is there a way to get these ads on the photo plog lite page?

I'm not familiar with that modification, but both the header and footer advertisements should work on any other vB page by inserting $GLOBALS[header_advertisement] into the template instead of $header_advertisement.

I got the same problem but after a while it starts to appear for all.

Ah, that's good news. I couldn't think of any reason it would be an issue with my mod. :confused:

Does it matter where the footer copyright link is placed? As long as it's on the site?

Any one have an example site I could see it in action on?

You can put it into the footer yourself if you want, yes. I'd prefer the text remained the same but as long as it links to the right place I guess I'll survive. ;)

tommykjensen
02-22-2007, 05:43 PM
I am testing this mod and found a bug or inconveniency.

When adding the ad code in settings I found that if the ad code contain a tag like this

IMG alt="McAfee, Inc"

then it fails to parse the code correctly because of the comma inside the quotes. If I manually remove the comma it works.

echamberlain
02-22-2007, 06:44 PM
I am testing this mod and found a bug or inconveniency.

When adding the ad code in settings I found that if the ad code contain a tag like this

IMG alt="McAfee, Inc"

then it fails to parse the code correctly because of the comma inside the quotes. If I manually remove the comma it works.

This issue and workarounds have been discussed in past posts.

Some have opted to use | instead. I personally use ;; as the dilineator so as to not conflict with some ad types from OpenAds.

giovannicosta
02-22-2007, 07:00 PM
After being in style manager, what do I do? this is my first mod installation, so where is <!-- post $post[postid] popup menu -->?

edit: i learnt how to do it by myself, yipee :) Great mod!

AFemaleProdigy
02-22-2007, 07:14 PM
Forgive me if this has been discussed already, but it's hard to search 34 pages of past posts.

Everything seems to work fine with this except for one thing. I am running vB 3.6.4 and just installed this mod. When I ad my Google analytics code into the analytics input box in the vB ad mngmt section, it causes an error in IE. The site displays fine, but the browser says "Error" in the bottom left corner. When I look up the error, it's always a problem with the code that is inserted into the Analytics section. I have tried two different versions of code and keep getting the same problem. As soon as I remove the code from that input area, the error goes away.

Anyone have any idea what the problem may be? Great mod otherwise! Thanks!

Merriweather
02-23-2007, 01:28 AM
I got the same problem but after a while it starts to appear for all.

"After a while" as in it just randomly started working, or you messed with it enough that it started working?

milsirhc
02-23-2007, 08:49 AM
"After a while" as in it just randomly started working, or you messed with it enough that it started working?

I keep holding Shift+refresh and after 10 times or more, it starts to appear... I cant give you a definately yes it will still cont to work, cos my vbulletin skin is under development and I have shut the forum down for awhile.

But I will monitor it and let you know. Hope yours work too!

milsirhc
02-23-2007, 08:51 AM
RedTyger: Can you help me with these 2 questions?

1) How do I modify the settings such that after 20 posts later, the adsense code will be shared?

2) Is there a way to make it such that when the user login, he will never be able to see his own shared adsense appearing, this is to prevent him from clicking it accidentally and causing google to think he is frauding the system, which result him in a ban

Thanks for this plugin! I have clicked installed!

RedTyger
02-23-2007, 09:17 AM
RedTyger: Can you help me with these 2 questions?


1) How do I modify the settings such that after 20 posts later, the adsense code will be shared?

2) Is there a way to make it such that when the user login, he will never be able to see his own shared adsense appearing, this is to prevent him from clicking it accidentally and causing google to think he is frauding the system, which result him in a ban

Thanks for this plugin! I have clicked installed!

1) Set up a usergroup promotion (standard vBulletin feature) that will move users from Usergroup X to Usergroup Y after 20 posts. Then add Usergroup Y to the Ad Sharing enabled settings.

2) That's not possible. If enough people tell me it will be an issue I'll look into it, although I'm not sure how Google will determine that it's being abused based on that.

milsirhc
02-23-2007, 09:26 AM
Thanks. Created new group and see how it goes after the promotion.

2) Google track fraud click by looking at the IP address of the clicker (I think), if the login IP address and the clicker IP address are the same too many times, than it will ban the user.. this is a major issue.. but not sure whether will they be much modification of code in your plugin..

but.. if it's easy for you.. pleaaaaseeeee implement it!

Thanks buddy!

milsirhc
02-23-2007, 11:28 AM
Oopps!

UPdated and run my forum and got this error

Warning: explode(): Empty delimiter. in /includes/class_postbit.php(268) : eval()'d code on line 23

Warning: array_rand(): First argument has to be an array in /includes/class_postbit.php(268) : eval()'d code on line 24

Warning: explode(): Empty delimiter. in /includes/class_postbit.php(268) : eval()'d code on line 26

Warning: explode(): Empty delimiter. in /includes/class_postbit.php(268) : eval()'d code on line 77

Warning: explode(): Empty delimiter. in /includes/class_postbit.php(268) : eval()'d code on line 23

Warning: array_rand(): First argument has to be an array in /includes/class_postbit.php(268) : eval()'d code on line 24

Warning: explode(): Empty delimiter. in /includes/class_postbit.php(268) : eval()'d code on line 26

Warning: explode(): Empty delimiter. in /includes/class_postbit.php(268) : eval()'d code on line 77

projectego
02-23-2007, 12:16 PM
Thanks for the update, RedTyger! ;)

RedTyger
02-23-2007, 12:40 PM
Oopps!

UPdated and run my forum and got this error


Warning: explode(): Empty delimiter. in /includes/class_postbit.php(268) : eval()'d code on line 23

Warning: array_rand(): First argument has to be an array in /includes/class_postbit.php(268) : eval()'d code on line 24

Warning: explode(): Empty delimiter. in /includes/class_postbit.php(268) : eval()'d code on line 26

Warning: explode(): Empty delimiter. in /includes/class_postbit.php(268) : eval()'d code on line 77

Warning: explode(): Empty delimiter. in /includes/class_postbit.php(268) : eval()'d code on line 23

Warning: array_rand(): First argument has to be an array in /includes/class_postbit.php(268) : eval()'d code on line 24

Warning: explode(): Empty delimiter. in /includes/class_postbit.php(268) : eval()'d code on line 26

Warning: explode(): Empty delimiter. in /includes/class_postbit.php(268) : eval()'d code on line 77

You have chosen a delimiter, yes? In Global Settings, 2nd option down? You also have to do the same in Ad Sharing settings, 2nd option down. They both have a default already though...

milsirhc
02-23-2007, 12:47 PM
Strange, for some reason I only have delimiter options in global settings but not adsharing settings... do you know why?

I upgraded the product and select overwrite.. did I do anything wrong?

Appreciate your prompt reply!

RedTyger
02-23-2007, 12:50 PM
It's called "Adcode replacement" in Ad Sharing, although it does essentially the same thing. The default option should be #shared#, it can't be blank.

milsirhc
02-23-2007, 12:53 PM
Yup, I got | as the delimiter in global setting

and in ad sharing it is default as #shared#

RedTyger
02-23-2007, 01:19 PM
Oops, I see. Redownload from the 2nd post, should be fixed now.

rnmcd
02-23-2007, 01:26 PM
Please please please - allow specific ads for a particular forum! This would solve my problem if I could great individual forum sponsors (different static ad at the top of individual forums). Is there a way to do this? It looks like the same ad has to be displayed on the forums you choose. I need a different ad for each forum.

Is it possible to nominate different ads for each category of your forum?

I would like to run certain ads in certain categories so that I can use ads that are targeted for that category. This way I can target specific advertisers for each category. Advertisers would much rather have their ad targeted at a more defined group of people. The more you can assure your advertisers that their ad is being displayed at their target demographic the more they are willing to pay.

If it will be possible that would be fantastic.

Thanks

Aren't these people asking to do the same thing?

I asked RedTyger if this was possible (in an earlier thread) and RedTyger said it was possible.

Is it possible?

milsirhc
02-23-2007, 01:26 PM
Work like a charm!! Thanks buddy! You are a legend!

RedTyger
02-23-2007, 01:41 PM
Aren't these people asking to do the same thing?

I asked RedTyger if this was possible (in an earlier thread) and RedTyger said it was possible.

Is it possible?

Not in the sense that it's asked for, no. Any other method may be vaguely possible but you may as well just stick to template edits than use this modification.

ChristDivers
02-23-2007, 03:55 PM
This is one of the last Mods I've installed & Im thinking I have a Mod conflict or corruputed one of the templates. Im tried everything & search high n low for the problem in these areas: (Templates)

navbar
postbit
postbit legacy
header
FORUMHOME

I marked the area with a Red X & furthermore could anyone please tell me where the template is for this area. This box should not be there & the navbar seems to be expanded. I've done the following:

Made all plugins inactive
edited above templates (Originals are saved in text file)
All Mods installed thus far:

Forum Home Spacing
Vbgooglemapme
Ad management
Welcome Headers
Moderation Menu
GTsmilebox
GTusercp
No right click
Enhanced Reputations
Direct Link to VBGooglemap
Seperate Stickys from regular posts
PayPal Easy Donate
Who has Visited in the last 24 hrs
IbPro Arcade

Can you provide some help or must I uninstall to see what & who the problem really is.

Thanks & God Bless !!!

Gerry

RedTyger
02-23-2007, 04:24 PM
Try just disabling the modifications one at a time and seeing which makes a difference.

ChristDivers
02-23-2007, 04:53 PM
Thanks for the reply Redtyger but I've disabled all Mods & so the problem is probably me deleting an extra line to many or place code in a section that affected this box showing up as well as the Reply buttons missing above & below the post or posts

Looks like a long day for me :( On the bright side I saved all original templates in text. ;)

Before I do this maybe you can direct me in which template could cause this problem?

Thanks Again

Gerry

Ps. This Mod will be the first Mod I put back on after I uninstall all others & revert back to saved templates.

:up:

BACANERIA
02-23-2007, 04:58 PM
Hi, i love this pluging i love everything about it except that is conflicting with the uploading process of my attactments. When i disable it am able to upload fine but when its anable i get page not found at the end of the uploading process. I tryed turning off plugins/hooks and tests each and one of them and after many attemps i found out this is the one causing the problem

If you could please help me because i dont want to delete this pluging i really need it.

http://bacaneria.com/index.php

ChristDivers
02-23-2007, 05:50 PM
Try just disabling the modifications one at a time and seeing which makes a difference.


Well I found the problem after I uninstalled every single Mod & reverted all templates back to there original default. Do you want to know the problem !!!

After seeing that everything I did & still noticing the problem box was still there :eek:
I went into the Help Threaded / Hybrid Mode Options (VBulletin Options) & then
disabled the Enable Threaded / Hybrid Mode. :D

Now I would love to reply but I'll be spending the rest of the day installing my Mods back on again :(

Never fails ....... its always the simple problems that become the hardest one's to find.

God Bless Your Mod & You !!!

Gerry

ChristDivers
02-23-2007, 11:56 PM
Everything is Perfecto !!! Red Tyger U are Da Man. By far the best Mod on Vbulletin.

Fantastic !!! Now I can give my poor eyes a rest from reading hundreds of lines of Code :eek:

God Bless !!!

Gerry

milsirhc
02-24-2007, 07:38 AM
Everything is perfect in this script!

One quick question, how do I prevent the adsense ID to be displayed in the member profile? I tried login as administrator, I can see the adsense ID in there.. and I logged in as normal registered user, I can still see it there.

Is there anyway we can hide it?

RedTyger
02-24-2007, 08:55 AM
Hi, i love this pluging i love everything about it except that is conflicting with the uploading process of my attactments. When i disable it am able to upload fine but when its anable i get page not found at the end of the uploading process. I tryed turning off plugins/hooks and tests each and one of them and after many attemps i found out this is the one causing the problem

If you could please help me because i dont want to delete this pluging i really need it.

http://bacaneria.com/index.php

Strange, nobody else has reported this. Are you using the default attachment feature of vBulletin or any modifications related to attachments?

Try adding "newattachment" to the list of script exclusions in global settings, this will prevent the Ad Management from running on pages where you upload a new attachment. You might want to try adding "attachment" as well.

Everything is perfect in this script!

One quick question, how do I prevent the adsense ID to be displayed in the member profile? I tried login as administrator, I can see the adsense ID in there.. and I logged in as normal registered user, I can still see it there.

Is there anyway we can hide it?

Making the custom field private? It's in the custom field settings.

milsirhc
02-24-2007, 01:21 PM
Thanks, making it private works!

One lasssst question! If I put the thread start get 40% and the last post get 10%, in that case.. if both are logged in.. and both are seeing the same thread. Will they be able to see their ID?

Cos i know for sure the thread started will not be able to see (from your latest update note) but how abt the last poster?

RedTyger
02-24-2007, 01:24 PM
Nobody will see their own ads, period.

There is an easy way to test things like this, just make the last post in a thread and set the last poster to 100%. You should still see the default Admin adcode.

ahmednadir
02-25-2007, 07:54 AM
hi
thanks for this great mod
I've installed it on my forum but I'm (the admin) is the only one that can view the banners.
they don't appear for the members
is there something I need to configure to solve this

RedTyger
02-25-2007, 08:35 AM
You need to set up your usergroups in the Global Settings correctly.

ahmednadir
02-25-2007, 08:47 AM
yeh
thanks alot

milsirhc
02-25-2007, 09:56 AM
Nobody will see their own ads, period.

There is an easy way to test things like this, just make the last post in a thread and set the last poster to 100%. You should still see the default Admin adcode.

Thanks! Hahaa, sorry to keep bugging you on that!

Cheers buddy!

joeychgo
02-25-2007, 05:30 PM
I didnt want to search 11 pages for these answers, so forgive me if its been asked before.


1. If I do a revenue sharing, can the thread starter see his OWN ads? Reason I ask, it could hinder a member from clicking the ads if he doesnt know if they might be his or not, plus its a danger as far as being banned from adsense if the guy making the thread clicks his own ad.

2. Can this be by usergroup? Meaning only moderators are eligible for the revenue sharing part.

RedTyger
02-25-2007, 05:44 PM
1) No, that's prevented from happening now. It was added on the page before this one. :p

2) Yes, it can in just the same way as global usergroup settings are done. If a usergroup is not added to Ad sharing usergroups they will see the Admin's default adcode instead.

EricPSF
02-26-2007, 12:37 AM
Hi,

Pls help, I am a dumber in coding.

1) I am stuck with this. May I know how to modify the below $footer_advertisement placement so that the footer ad is not too close to the bottom menu? See attachement.

$footer_advertisement
<br />
<div class="smallfont" align="center">$vbphrase[all_times_are_gmt_x_time_now_is_y]</div>
<br/>

2) May I know what happened to my left column ads. There is a big gap when I maximize the window. How to re-adjust it back? This only happened in one of the catergory. See attachment.

3) How to center those ads in the left column

EmraHELL
02-26-2007, 03:07 AM
very nice... thxxx

RedTyger
02-26-2007, 09:04 AM
Hi,

Pls help, I am a dumber in coding.

1) I am stuck with this. May I know how to modify the below $footer_advertisement placement so that the footer ad is not too close to the bottom menu? See attachement.

$footer_advertisement
<br />
<div class="smallfont" align="center">$vbphrase[all_times_are_gmt_x_time_now_is_y]</div>
<br/>

2) May I know what happened to my left column ads. There is a big gap when I maximize the window. How to re-adjust it back? This only happened in one of the catergory. See attachment.

3) How to center those ads in the left column

1) Add a <br /> to the top of your footer Adcode.

2) The columns are buggy and unreliable, I'm using Jelsoft's suggested method of adding them and I couldn't improve it myself so that's as good as it gets I'm afraid.

3) Surround your left column Adcode with <span style="text-align:center;">ADCODE</span>.

EricPSF
02-26-2007, 12:46 PM
Thanks Redtyger for the fast reply!

rnmcd
02-26-2007, 01:38 PM
Here's a history of my questions/replies about adding a different banner ad for different forums/subforums:


I apologize if this has been asked and replied to before but I couldn't seem to find the answer in the 8 or 9 pages I read.

Are we able to have different ads for each forum/sub-forum?

Thank you redtyger.




Yes, but you have to add all but one set of ad code to the (whatever)_advertisement template.

<if condition="$foruminfo[forumid]" == '1'>
Ad code for forum ID 1
</if>
<if condition="$foruminfo[forumid]" == '2'>
$header(or whatever)_adcode
</if>
<if condition="$foruminfo[forumid]" == '3'>
Ad code for forum ID 3
</if>

And so on.




Please please please - allow specific ads for a particular forum! This would solve my problem if I could great individual forum sponsors (different static ad at the top of individual forums). Is there a way to do this? It looks like the same ad has to be displayed on the forums you choose. I need a different ad for each forum.

Is it possible to nominate different ads for each category of your forum?

I would like to run certain ads in certain categories so that I can use ads that are targeted for that category. This way I can target specific advertisers for each category. Advertisers would much rather have their ad targeted at a more defined group of people. The more you can assure your advertisers that their ad is being displayed at their target demographic the more they are willing to pay.

If it will be possible that would be fantastic.

Thanks

Aren't these people asking to do the same thing?

I asked RedTyger if this was possible (in an earlier thread) and RedTyger said it was possible.

Is it possible?

Not in the sense that it's asked for, no. Any other method may be vaguely possible but you may as well just stick to template edits than use this modification.


I just want to make sure I understand correctly and that I have explained what I am trying to do (have different banner ads on various forums/subforums within the same vB message board).

So would template edits be the best way to do this or would the method that redtyger mentioned above (see the quoted post in dark green font) be the better method?

Thank you.

RedTyger
02-26-2007, 01:41 PM
It's up to you. The reason I said what I did second time around is because what's in green essentially is just template edits. The Ad Management modification as a whole will ONLY deal with the $whatever_advertisement code, the rest will have to be done with template conditionals for usergroups, scripts etc separately in the template.

So while it is possible, if you need all of the above I'd suggest doing it manually or using a different modification, since only one of your forum ads will benefit from the settings and features it provides. If you use the Ad-Sharing version it's essentially impossible.

sandrodz
02-27-2007, 09:12 PM
so basically I need quick help... I'm using vb ad manager, and I have several other mods installed on the forum... I'm also using google analysis with vbadmanager. I'm wondering if google analysis script run via vbadmanager placed on all modified vb pages? I've like tags script, is it being tracked now? I don't see any stats in my google account, that's why I'm wondering... any help appreciated :)

RedTyger
02-27-2007, 09:14 PM
I don't follow sorry. But the easy way to test if the Analytics code is being included is to just view the source code of any page. It'll be right at the very end.

BigJimTheLug
02-28-2007, 02:01 AM
Wow, this is great. Thank you.

stwilson
02-28-2007, 03:24 AM
I ran into a small issue. I have Evercraft's Event Forums (https://vborg.vbsupport.ru/showthread.php?t=123416) installed and the thread ads do not show on any post that is an "Event" thread. If it is a normal post...the ads show...if it is an event...no show. Any suggestions?

RedTyger
02-28-2007, 09:22 AM
No idea I'm afraid, integration with non-standard setups is up to the individual user.

EricPSF
03-01-2007, 12:56 AM
Hi,

It is possible to enable showing of ads to guests/ visitors? People can't view those ads if they are not log on into my forum.

Thank you.

RedTyger
03-01-2007, 09:41 AM
Add 1 to your Usergroup settings in Global settings.

triphp
03-01-2007, 01:03 PM
Small error: I installed the mod and it works great. However, when I overwrite the product for the Ad Sharing, the ads on the posts (after first post and after last post) disappear.

Any solutions?

ghiboz
03-01-2007, 02:45 PM
I i've installed, but doesn't work

what are the steps to insert the adsense of google between x post in every topic?

thanks!

RedTyger
03-01-2007, 05:04 PM
Do the template edits as in the instructions, if all you want is an ad between posts you only need to do the postbit edit.

Paste the advertisement code into the postbit section of the vB Ad Management settings. Alter any settings necessary in Global Settings.

That's it...

BigJimTheLug
03-01-2007, 08:00 PM
Small error with the right side column.

When the right side column is enabled, and after a user logs out and in, it causes the navbar in the registration page to get get smaller and the right column tries to center itself. In short, it does not stay in the right when I log in and out using internet explorer.

How can I fix this?

BigJimTheLug
03-01-2007, 08:09 PM
Another thing, the right column is too close to the forum.

How can I change that without severely modifying your mod?

Hey, forget about my problem, I found the solution.

I have to enter this code:

<center><p> Ads </p> </center>

And it works!

Great mod!

Mohajer
03-01-2007, 11:44 PM
Tnx ,
Installed.

ghiboz
03-02-2007, 07:01 AM
Do the template edits as in the instructions, if all you want is an ad between posts you only need to do the postbit edit.

Paste the advertisement code into the postbit section of the vB Ad Management settings. Alter any settings necessary in Global Settings.

That's it...
thanks, works:up:

Fredrik_Arvid
03-02-2007, 08:50 AM
Hello,

I would liko to have 3 banners in the right column and every time the user refresh his browser the banners should change position. Is it possible with this mod? Please see attached image for better understanding. (I´m not so good in english)

Regards,
Fredrik Arvidsson

RedTyger
03-02-2007, 11:19 AM
I suppose it might be possible with some javascript, but I don't really know. If it is, you can use javascript in the code.

Fredrik_Arvid
03-02-2007, 11:28 AM
OK, thanks!

Gsmdenis
03-02-2007, 01:06 PM
very nice for this ! will be check it!

BR.,

Denis

Nikke
03-02-2007, 03:45 PM
Great product! Thank you!

One problem though. I would want to add a box above the left column advertising space. Where should I put the table, and how should the code look like? I have tried a hundred times with different solutions, but I haven't got it right yet.

I would be the happiest man alive if you'd help me out here!

RedTyger
03-02-2007, 03:55 PM
Immediately above where you pasted $leftcolumn_advertisement I would imagine. Something like


<table class="tborder" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td class="alt1">
Blah blah blah.
</td>
</tr>
</table>


Couldn't say exactly.

Edit: You have a really really nice forum by the way.

chkdgate
03-02-2007, 05:27 PM
Has anyone tried it with 3.6.5 yet?

Nikke
03-02-2007, 07:41 PM
Immediately above where you pasted $leftcolumn_advertisement I would imagine. Something like


<table class="tborder" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td class="alt1">
Blah blah blah.
</td>
</tr>
</table>


Couldn't say exactly.

Edit: You have a really really nice forum by the way.

Doesn't do it :( That makes a table above the whole navbar :(

Thanks, are you talking about pokerimestari.com? :)

raiderlax
03-02-2007, 08:56 PM
Will this work with VBSEO?

RedTyger
03-02-2007, 08:59 PM
Will this work with VBSEO?

Yes, it will.

raiderlax
03-02-2007, 09:06 PM
Sweet thats great news!

triphp
03-03-2007, 01:53 AM
I can't really get it work with the Ad Sharing on POSTBIT. NOTE: This will work on HEADER
Here's what I did:
1. Install V2.1 hack.
2. Make template edit on POSTBIT template.
3. Put my ad code on the VP Options.
4. Tested and it works - NO PROBLEM at all.

Now, when I try Ad Sharing, problems start to show.
These are my steps.
1. Uplaod the V3.1 XML file, thus overwriting the V2.1
2. Make Profile field, named field6.
3. Go to Ad Sharing Option, enter field6 on the Field ID, put my default ad code and enter 90% (really with % sign) for the thread starter.
4. Go to Post, PM and Announcement Option and replace the Static code with #shared#.
Example:
Before (V2.1): <a href="http://mydomain.com">Click This Test Link</a>
With Ad Sharing (Change): <a href="#shared#">Click This Test Link</a>
5. Testing by refreshing the POST, PROBLEMS HERE........... After first post, it only displays the "Sponsred Links" and no ad shown.

ANy suggestions?

d e s p e r a t e n o w.........

RedTyger
03-03-2007, 08:15 AM
Now that's how you report a bug!

Thanks, I'll look into that.

farooqaaa
03-04-2007, 03:21 PM
Easily... Mod of this month (march) :D..

installed...............

thanks tyger!

projectego
03-04-2007, 03:43 PM
Thanks for the update, RedTyger! :)

Pottsy
03-04-2007, 03:48 PM
Just updated, and my header and footer ads have vanished on all but the main forum index.

Will I do any harm in reverting to 2.1?

Pottsy
03-04-2007, 04:03 PM
The problem is this:

In: vb Ad management Global settings:


Display advertisements in ForumIDs:
Enter the IDs of the forums in which you want to display the advertisements, separated by your delimiter. (i.e. 1|2|3)

If you only want to exclude forums instead of including them, leave this blank to display the advertisement in every forum except those listed below, if any.

This setting does not apply to the header or footer or side columns.

I have this set to one forum number, since all I do is have in line post ads in one forum (forum 9). It looks like this setting is being applied to the header and footer, since the header and footer ads are on for forum 9, the index, and all "other" pages (like calendar and search and so on) but are disabled on all other forum indexes and thread view pages.

jluerken
03-04-2007, 04:14 PM
Hi,

I am using custom leftcolumn code for my board.
How can I add $leftcolumn_advertisement to left_column (my left column template) instead of the header template?

Kind regards
jluerken

RedTyger
03-04-2007, 06:13 PM
The problem is this:

In: vb Ad management Global settings:


Display advertisements in ForumIDs:
Enter the IDs of the forums in which you want to display the advertisements, separated by your delimiter. (i.e. 1|2|3)

If you only want to exclude forums instead of including them, leave this blank to display the advertisement in every forum except those listed below, if any.

This setting does not apply to the header or footer or side columns.

I have this set to one forum number, since all I do is have in line post ads in one forum (forum 9). It looks like this setting is being applied to the header and footer, since the header and footer ads are on for forum 9, the index, and all "other" pages (like calendar and search and so on) but are disabled on all other forum indexes and thread view pages.

It sounds like I forgot to update the phrase, it didn't seem consistent to not have control over all the advertisements in the same way, so header and footer now use the same rules as all the other ads.

If you want the header & footer to display everywhere but other ads to only apply to one forum, set all ads to display in every forum then alter the template of the ad you only want to apply to forum 9 and surround the entire template with:


<if condition="$foruminfo[forumid] == 9">
CONTENTS OF TEMPLATE
</if>



Hi,

I am using custom leftcolumn code for my board.
How can I add $leftcolumn_advertisement to left_column (my left column template) instead of the header template?

Kind regards
jluerken

I would suggest that if you're not using either the header or footer ads, you paste $header/footer_advertisement into your custom left column template, since both header and footer ads will work anywhere on a page.

Alternatively if this modification fulfils your needs you could simply remove the left column plugin you have now and use this one instead.

Pottsy
03-04-2007, 09:11 PM
Redtyger, thanks for that - but...

I use your software to post an ad and the end of a thread, the one where it looks like it's from a user. So I have enabled ads everywhere and now my headers and footers work. I enable the post at the bottom ad, and they appear everywhere. I put the conditional around the $postbit_advertisment and they all disappear. It's as if it doesn't know which forum the thread is in.

I really liked the way it worked in 2.1 - can I revert without horrible errors?

RedTyger
03-04-2007, 09:14 PM
Ah, for a postbit conditional it would be different, $thread[forumid] or something perhaps, I can't remember.

You can use any version you want without issue.

Mecho
03-04-2007, 09:44 PM
Thanks for update ..

problem is :
after upgrade when i active " threadbit " i got Blank page in forums !

any idea ?

alternity
03-05-2007, 01:40 AM
Is it possible to make it so there is an option that members can choose in their profile or somewhere so that they can choose if the ads will display or not, independent of their usergroup?

rnmcd
03-05-2007, 03:13 AM
If you use the Ad-Sharing version it's essentially impossible.
Is the NON Ad-sharing version still available?

Pottsy
03-05-2007, 06:30 AM
You can use any version you want without issue.

Thanks - did this and there were no problems, and now I can restrict adverts to one or two forums and keep the header/footer everywhere.

Roby75
03-05-2007, 07:26 AM
i've an error with nable threadbit advertisements? ON:


Warning: in_array() [function.in-array]: Wrong datatype for second argument in /forumdisplay.php(905) : eval()'d code on line 119

61430


What can i do?

RedTyger
03-05-2007, 08:08 AM
Thanks for update ..

problem is :
after upgrade when i active " threadbit " i got Blank page in forums !

any idea ?

You'll have to be more specific than that...

Is it possible to make it so there is an option that members can choose in their profile or somewhere so that they can choose if the ads will display or not, independent of their usergroup?

You could do it yourself with a custom field and a template edit, but there's no way for me to add it to the modification without significantly lowering performance (one extra query per page load).

RedTyger
03-05-2007, 09:38 AM
Is the NON Ad-sharing version still available?

Not officially, though there's nothing to stop you using it. There's no particular reason to do so though, since the Ad-sharing version performs slightly better than the 2.1 version whether you're using the Ad-sharing feature or not. You can just turn it off.

sensimilla
03-05-2007, 09:50 AM
i've an error with nable threadbit advertisements? ON:


Warning: in_array() [function.in-array]: Wrong datatype for second argument in /forumdisplay.php(905) : eval()'d code on line 119

61430


What can i do?

same errors here.. so its a bug.

RedTyger
03-05-2007, 09:51 AM
Didn't you get the update email? I've just fixed it, redownload the zip.

Roby75
03-05-2007, 09:55 AM
TNX!

it's all ok!

Pottsy
03-05-2007, 10:07 AM
Can we have an option to have headers and footers everywhere, but control all the remaining ads using the global settings? Just like in 2.1...? Please!

RedTyger
03-05-2007, 10:09 AM
Sorry, that will not happen. It makes much more sense this way and it's easy to use template conditionals to limit any ads manually.

triphp
03-05-2007, 10:26 AM
RedTyger, is there an update regarding the problem of Ad-Sahring on Postbit (no ads shown)?

Thanks, great hack :)

RedTyger
03-05-2007, 10:28 AM
RedTyger, is there an update regarding the problem of Ad-Sahring on Postbit (no ads shown)?

Thanks, great hack :)

There is a changelog at the bottom of the first post, that bug was fixed in v3.02. Are my updates not sending or something. :confused:

triphp
03-05-2007, 10:36 AM
Oops sorry but I got no updates.

Rated Excellent
Marked Installed
Nominated MOTM
Donate - Later ;)

Thanks again.

projectego
03-05-2007, 10:41 AM
Thanks for this latest update, RedTyger! vB Ad Management for hack of the year! ;)

Pottsy
03-05-2007, 11:56 AM
Sorry, that will not happen. It makes much more sense this way and it's easy to use template conditionals to limit any ads manually.


Ok, np. While I know how to use conditionals on banners, did you work out the conditional for the "poster in thread view" like we discussed before? Maybe putting this conditional in the readme would be cool too - I'm sure there are others who would like to control which forums ads appear in but would like headers and footers everywhere.

RedTyger
03-05-2007, 12:31 PM
According to this post (http://www.vbulletin.com/forum/showpost.php?p=1219145&postcount=3) I guessed right, it is $thread[forumid]. It's not really possible to list conditionals properly, as there's essentially an unlimited number of potential conditions. Anything in the format of if this equals that will work.

rnmcd
03-05-2007, 01:22 PM
...If you use the Ad-Sharing version it's essentially impossible.

Is the NON Ad-sharing version still available?

Not officially, though there's nothing to stop you using it. There's no particular reason to do so though, since the Ad-sharing version performs slightly better than the 2.1 version whether you're using the Ad-sharing feature or not. You can just turn it off.

So it wouldn't be impossible if I used the Ad-Sharing version (just as long as I turned it off), right?

RedTyger
03-05-2007, 01:24 PM
Not really, no. I'm afraid it's just not built to do what you're after.

Itworx4me
03-05-2007, 02:17 PM
Any chance that you will make this track ad clicks??? Then have it show how many clicks or impressions the ad gets to the buyer through some type of login area?

Thanks,
Itworx4me

Skipsoutdoors
03-05-2007, 02:20 PM
Red,

I appreciate your work on this item, it's something I need and will really use.

I've got one error that I have found so far, it's with the threadbit ad. This shows up at the top of the Forumdisplay page when it's turned on.


Warning: in_array() [function.in-array]: Wrong datatype for second argument in /forumdisplay.php(905) : eval()'d code on line 119

When it's turned off, no error.

Any idea where that might be coming from?


Another question:

If you notice in my header I have the large Google ad and 7 smaller 125x125 ad locations. I would like to fix it so that each of the smaller locations is controlled separately. Right now I moved the right and left ad location to those and that's why there's 3 and 3 the same. An alternate would be to fix the random ad display on the left and right locations so that instead of all 3 having the same ad, they each have a different ad from the random list.

Again, thanks for your work.

Skip

http://www.sportsmanshomepage.com

RedTyger
03-05-2007, 02:21 PM
Any chance that you will make this track ad clicks??? Then have it show how many clicks or impressions the ad gets to the buyer through some type of login area?

Thanks,
Itworx4me


That is not likely. It was intended for people using third party trackers like phpAdsNew, Google Adsense, Yahoo Ads etc. The other good reason not to is that currently aside from the optional Adsharing, this modification ads no queries to the running of the forum. Tracking would add database queries on every page by necessity, not something I want to do.



Red,

I appreciate your work on this item, it's something I need and will really use.

I've got one error that I have found so far, it's with the threadbit ad. This shows up at the top of the Forumdisplay page when it's turned on.


Warning: in_array() [function.in-array]: Wrong datatype for second argument in /forumdisplay.php(905) : eval()'d code on line 119

When it's turned off, no error.

Any idea where that might be coming from?


Another question:

If you notice in my header I have the large Google ad and 7 smaller 125x125 ad locations. I would like to fix it so that each of the smaller locations is controlled separately. Right now I moved the right and left ad location to those and that's why there's 3 and 3 the same. An alternate would be to fix the random ad display on the left and right locations so that instead of all 3 having the same ad, they each have a different ad from the random list.

Again, thanks for your work.

Skip

http://www.sportsmanshomepage.com


Are you using the latest version release a few hours ago? It should fix the first problem. As for the second, there's no way to control individually more than the default featureset without a significant amount of work. Sorry.

perju
03-05-2007, 02:27 PM
Sorry if this has been discussed before... I was wondering if this ad management system has a randomly appearing full-page ad feature where users must click a "Click Here to Continue" link to reach their desired page?

RedTyger
03-05-2007, 02:28 PM
It doesn't, that was something I was going to add into the latest version but never got around to. I'd like to add it at some point.

Skipsoutdoors
03-05-2007, 04:10 PM
That is not likely. It was intended for people using third party trackers like phpAdsNew, Google Adsense, Yahoo Ads etc. The other good reason not to is that currently aside from the optional Adsharing, this modification ads no queries to the running of the forum. Tracking would add database queries on every page by necessity, not something I want to do.






Are you using the latest version release a few hours ago? It should fix the first problem. As for the second, there's no way to control individually more than the default featureset without a significant amount of work. Sorry.

I'll try changing the versions tonight.

I may look through that install file and see if I could code in an extra sport or 2.

Skip

perju
03-05-2007, 04:28 PM
It doesn't, that was something I was going to add into the latest version but never got around to. I'd like to add it at some point.

Sounds great. I'm sure we'll have some tools to control these pages? I was envisioning something that allowed me to control the frequency of the full-page ads, and which members would be forced to view them.

Maybe something like this?

20% Unregistered Users
5% Registered Users
2% Moderators

NathanMc
03-05-2007, 09:40 PM
I'm using header, footer, and left column right now...on my main page the column works perfect, but on any other page it strecthes out about 100 pixels throwing the layout off a bit. Can anyone tell me how I can fix this? Should I edit something in the left column template or header? thanks in advance.

TrIn@dOr
03-06-2007, 09:24 AM
Updated from 2.01 to last one on vb 3.6.5

Thanks.

RedTyger
03-06-2007, 10:06 AM
Sounds great. I'm sure we'll have some tools to control these pages? I was envisioning something that allowed me to control the frequency of the full-page ads, and which members would be forced to view them.

Maybe something like this?

20% Unregistered Users
5% Registered Users
2% Moderators

I doubt it would be a per Usergroup setting, just a single percentage for anyone set to see ads. Which is slightly naff I agree, but there comes a point at which it all gets terribly complicated. For the admin, not me.

Skipsoutdoors
03-06-2007, 12:53 PM
Yes, I updated and it fixed it.

I'm not picking, but just making a suggestion.

The idea of this hack is excellent and very much needed. However, vBulletin itself has way too many whistles in it that few people ever use. The deal is it causes unneeded bandwidth transfer and server clock time issues that slow the sites down.

For me personally, I can see no reason that I would ever use the ad revenue sharing thing. Not that it's that many bites and processes, but a few here and there would save a lot if it were removed. We run a quarter million hits per day, and a small amount makes a big difference when you add it up.

If all of that code were stripped out of it it would cut down on a lot of unnecessary things.

The Forumbit, Treadbit, and Postbit routines pretty much need to be there like they are so you have control over where in those items they appear and how.

The right side, left side, header and footer ads are basically place anywhere you like so long as you take the right and left template and edit them like the header and footer templates to do away with the 2 leveled box, centering and columns.

If it were simplified down to where you could readily go in and add controls for say 15, 20 or whatever you need of these go anywhere you place them ads I feel like it would be more useful to a lot more people.

Skip Walden
Skip's Outdoors Publishing

tekstylez
03-06-2007, 02:27 PM
after the upgrade, my ads are no longer showing....

perju
03-06-2007, 06:15 PM
I doubt it would be a per Usergroup setting, just a single percentage for anyone set to see ads. Which is slightly naff I agree, but there comes a point at which it all gets terribly complicated. For the admin, not me.

Having one % would defeat my purpose of "click to skip ad". I was hoping to have this as a registration *perk*.

Here's how i envisioned this working. Tell me whether any of this can cripple the server, or if it's not feasible. Keep in mind that I'm not a programmer, so some of these routes might seem a bit crazy. you have been warned. :)

* Two new fields would be created inside the usergroup table called "skipad" and "skipad_tmp" or something like that.

* The admin sets % variables for each usergroup and stored in each appropriate field. All skipad_tmp fields are set to 0 in the database.

* On every page load ( above the HTML tag) the value of "skipad" is grabbed. If the value of $skipad_tmp is less than (100/$usergroup_skipad), then add 1 to the value of $usergroup_skipad_tmp. If $usergourp_skipad_tmp == int( 100 / $usergroup_skipad_pct ), then redirect to skipad.php. The value of $skipad for that usergroup is reset to 0. The desired URL will be passed to this new page and placed inside a link allowing the user to "skip the ad".

Example:

$usergroup_skipad = 5%
$usergroup_skipad_tmp = 0

100 / $usergroup_skipad = 100 / 5 = 20
This means... when $usergroup_skipad_tmp reaches 20, the user is redirected to the skipad.php page. $usergroup_skipad_tmp is then reset back to 0, and the process starts over again.

If $usergroup_skipad_tmp doesn't = 20, then it increases by 1. And it will continue to do so until it hits 20. At which point, it gets reset to 0.

Over time, the law of averages will kick in. Is something like this feasible?

RedTyger
03-06-2007, 08:45 PM
after the upgrade, my ads are no longer showing....

If you are using a custom delimiter or anything other than | to separate items in your Adcode or settings, ensure they match up with your specified delimiter in Global Settings or the ads won't show.

Yes, I updated and it fixed it.

I'm not picking, but just making a suggestion.

The idea of this hack is excellent and very much needed. However, vBulletin itself has way too many whistles in it that few people ever use. The deal is it causes unneeded bandwidth transfer and server clock time issues that slow the sites down.

For me personally, I can see no reason that I would ever use the ad revenue sharing thing. Not that it's that many bites and processes, but a few here and there would save a lot if it were removed. We run a quarter million hits per day, and a small amount makes a big difference when you add it up.

If all of that code were stripped out of it it would cut down on a lot of unnecessary things.

The Forumbit, Treadbit, and Postbit routines pretty much need to be there like they are so you have control over where in those items they appear and how.

The right side, left side, header and footer ads are basically place anywhere you like so long as you take the right and left template and edit them like the header and footer templates to do away with the 2 leveled box, centering and columns.

If it were simplified down to where you could readily go in and add controls for say 15, 20 or whatever you need of these go anywhere you place them ads I feel like it would be more useful to a lot more people.

Skip Walden
Skip's Outdoors Publishing

How so? All the new Ad-Sharing feature adds if turned off is a handful of extra IFs to process, nothing worth thinking about. Actually the 15/20/whatever extra generic placements would add just as many if not more IFs to deal with plus they'd have to use the global hook which would mean they're dealt with on every page load. Certainly it would be more of an issue than the Ad-sharing, although still not much of an issue I would think.

In short, don't worry about it. If anything is a concern to a large board it should be that they are using the plugin system which doesn't cache the code and keeps it in memory. If performance is an issue for you then I'd suggest taking the plugin code to a standard php file and not using the plugin system. All you'd need to do (I think, never done it myself) is transfer the plugin code to php files then alter the plugin to use include(yournewphpfile.php) and call the code externally.

I think you're right about the generic ads. While I don't want to add them as predefined for the reasons above, the code was deliberately written to be easy to extend and fiddle with. A short tutorial and a bit of cutting and pasting should have people adding more if they want very easily. I'll add it to the list...


Having one % would defeat my purpose of "click to skip ad". I was hoping to have this as a registration *perk*.

Here's how i envisioned this working. Tell me whether any of this can cripple the server, or if it's not feasible. Keep in mind that I'm not a programmer, so some of these routes might seem a bit crazy. you have been warned. :)

* Two new fields would be created inside the usergroup table called "skipad" and "skipad_tmp" or something like that.

* The admin sets % variables for each usergroup and stored in each appropriate field. All skipad_tmp fields are set to 0 in the database.

* On every page load ( above the HTML tag) the value of "skipad" is grabbed. If the value of $skipad_tmp is less than (100/$usergroup_skipad), then add 1 to the value of $usergroup_skipad_tmp. If $usergourp_skipad_tmp == int( 100 / $usergroup_skipad_pct ), then redirect to skipad.php. The value of $skipad for that usergroup is reset to 0. The desired URL will be passed to this new page and placed inside a link allowing the user to "skip the ad".

Example:

$usergroup_skipad = 5%
$usergroup_skipad_tmp = 0

100 / $usergroup_skipad = 100 / 5 = 20
This means... when $usergroup_skipad_tmp reaches 20, the user is redirected to the skipad.php page. $usergroup_skipad_tmp is then reset back to 0, and the process starts over again.

If $usergroup_skipad_tmp doesn't = 20, then it increases by 1. And it will continue to do so until it hits 20. At which point, it gets reset to 0.

Over time, the law of averages will kick in. Is something like this feasible?

Hmm. You really want those ads don't you? :p I'll have a look at per-usergroup and per-forum settings like this in the future, I've only just released one version with major changes I won't do another one for now.

perju
03-07-2007, 01:07 AM
Hmm. You really want those ads don't you? :p I'll have a look at per-usergroup and per-forum settings like this in the future, I've only just released one version with major changes I won't do another one for now.

It's not a vital tool, but it would be nice. :)

milsirhc
03-07-2007, 01:10 PM
Many Thanks RedTyger for this absolutely well designed and support plugin! This plugin worked flawlessly on my site (my first one!)

Thanks for your patience and support. This is definitely should be voted as mod of the month! Good luck!

RedTyger
03-07-2007, 02:30 PM
It's not a vital tool, but it would be nice. :)

Yes, custom usergroup and forum permissions are a logical next step. Keep your fingers crossed for the future.


Many Thanks RedTyger for this absolutely well designed and support plugin! This plugin worked flawlessly on my site (my first one!)

Thanks for your patience and support. This is definitely should be voted as mod of the month! Good luck!

Great to hear, you're very welcome.

bagfullofrice
03-08-2007, 01:17 AM
Hi guys,

I was using the vB Ad Management system, and I was wondering if I can insert PHP into the advertisement code. I've tried almost everything, but I just can't seem to get it working. Any suggestions?

I've tried:

<? php

echo $thread[title];
echo "$thread[title]";
echo 'TEST';
print("Hello World");
?>



Regards,
LPX

RedTyger
03-08-2007, 08:58 AM
No, can't do that.

bagfullofrice
03-08-2007, 10:36 AM
Well, is there any possible way around this? :( I really need this.


edit: Maybe I can add the PHP codes in the template and then assign a variable, then call the variable with JS?

RedTyger
03-08-2007, 10:38 AM
No, PHP cannot be used in templates.

djchris
03-08-2007, 11:54 AM
Hi RedTyger,

Love your mod. Just wanted to check if it is possible to display ads in a continuous mode instead of random?

RedTyger
03-08-2007, 03:03 PM
Continuous mode...you mean sequentially, first then second then third in the list? It's not I'm afraid.

skubaman
03-08-2007, 03:21 PM
Hi, I have installed it and set it up, but I can't get it to show the openads ads.
I have tried different types of openads ads and none of them display. I know the ad codes are working because I can run it on a test php page.

If I just write "XYZ" in the banner area of VB Ads setup it does show the XYZ in my forum.

So apparently the problem is compatibility between openads and vbads.

Here is the openads code

<?php
if (@include(getenv('DOCUMENT_ROOT').'/oa10/phpadsnew.inc.php')) {
if (!isset($phpAds_context)) $phpAds_context = array();
$phpAds_raw = view_raw ('zone:1', 0, '', '', '0', $phpAds_context);
echo $phpAds_raw['html'];
}
?>


My forum is at

http://www.snowbrasil.com/forum/showthread.php?t=1250

You can see the space for the banners between the posts, but nothing shows there.

And here you can see that the openads code works.

http://www.snowbrasil.com/ads.php

I appreciate your help.

Thanks so much

RedTyger
03-08-2007, 03:23 PM
You can't use PHP in a vBulletin template. Sounds like OpenAds integration would require some kind of additional plugin, there might be one here if you search.

skubaman
03-08-2007, 03:36 PM
I thought I read on this same thread that vb ads was compatible with openads.
So I guess I have to use javascript instead.
Thanks

echamberlain
03-08-2007, 05:18 PM
You have to use javascript or the phpadsnew plugin that adds an ad's tag to the code.

inbrissy
03-08-2007, 06:27 PM
Hi all,

I'm still new to php and vbulletin. I wanted to ask if its at all possible to add two more rotating banners to the header and footer of my forum. Is that something that is pretty easy to do? Can someone give me a hand with doing that?

It would be much appreciated.

RedTyger
03-09-2007, 07:38 AM
Hi all,

I'm still new to php and vbulletin. I wanted to ask if its at all possible to add two more rotating banners to the header and footer of my forum. Is that something that is pretty easy to do? Can someone give me a hand with doing that?

It would be much appreciated.

Very easy. Go to AdminCP > vBulletin Options > vBulletin Options > vB Ad Management (header & footer) and in both the random sections add your banner code for that section separated by a |. i.e.

<a href="nothing.htm"><img src="blah.jpg /></a>|
<a href="nothing1.htm"><img src="blah1.jpg /></a>

Then go to AdminCP > Styles > Styles Manager > Edit Templates (Style dropdown menu) and edit the header and footer templates, inserting $header_advertisement and $footer_advertisement in the appropriate templates where you want the banners to appear. Then just adjust your vB Ad Management Global Settings as necessary.

inbrissy
03-09-2007, 08:47 AM
Wow that easy.. I'm so glad I picked vBulletin and vb Ad Management!

Thanks heaps for your input. I'll go make the changes over the weekend.

inbrissy
03-09-2007, 06:13 PM
Ok one thing that makes it a bit more complicated. I have one banner in the header that I want to show 728x90 banners and two banners under that that I want to show 468x60 banners. How do i make them only display one size?

RedTyger
03-09-2007, 06:17 PM
<img src="banner.jpg" height="60px" width="468px" />

inbrissy
03-09-2007, 08:16 PM
Perhaps i'm missing something. I understand how to put the 468 banner in the admin cp section in the rotation field. But that means that there will be both 728 and 468 banners in the same section. So if I then add the $header_advertisement to the header, then it will rotate between both sizes.

What I'd like to achieve is to have the top banner only show the 728 banners and the two banners underneath only show the 468 banners. I hope this makes sense.

And I hope I'm just missing something and this is still easy to do.

Thanks again for the help.

Demon fox
03-10-2007, 07:27 AM
I cant get the revenue sharing to work ive tried everything with the one user but the link never changes to the one in my profile field ever.

RedTyger
03-10-2007, 07:44 AM
Perhaps i'm missing something. I understand how to put the 468 banner in the admin cp section in the rotation field. But that means that there will be both 728 and 468 banners in the same section. So if I then add the $header_advertisement to the header, then it will rotate between both sizes.

What I'd like to achieve is to have the top banner only show the 728 banners and the two banners underneath only show the 468 banners. I hope this makes sense.

And I hope I'm just missing something and this is still easy to do.

Thanks again for the help.

In the static header adcode:

<a href="nothing.htm"><img src="largead.jpg /></a>

In the random footer adcode:

<a href="nothing.htm"><img src=smallad1.jpg /></a>|
<a href="nothing.htm"><img src="smallad2.jpg /></a>

RedTyger
03-10-2007, 07:45 AM
I cant get the revenue sharing to work ive tried everything with the one user but the link never changes to the one in my profile field ever.

You never see your own advertisements.

NaughtyStud
03-10-2007, 09:49 AM
Upgraded to 3.03 and thanks again for all your hard work on it. ;)

Birdlepop
03-10-2007, 05:55 PM
Hi,

Thanks for a great add-on.

Just one thing... how do I have the side ads showing on the actual posting screens, but not on the threadlist?

Is this possible?

Demon fox
03-10-2007, 05:58 PM
You never see your own advertisements.

Ive checked using a guest if I could see my link in the profile field still doesnt show up I have percentages set to 50% 50%. What am I doing wrong I have this in my static ad code for posts

<a href="#shared#">Sponsored Link</a>

and everything set up in ad share. But I cant seem to ever be able to see the profile field link only the default one.

inbrissy
03-10-2007, 06:00 PM
I think, you're missing what I'm trying to do.

I want to have one rotating banner 728x90 to work in my header,
And I want two rotating banners 468x60 to display under the 728x90.

But both sizes I want to be rotating. So I want to be able to add both sizes to the rotations part of the header in the AdminCP. But I only want the big sized banners to show up in the very top banner, and the smaller banners to show up in the two positions directly under it.

728x90 Banners
468x60 Banners 468x60Banners

Like this. But I want all three to be rotating. I just don't want to end up having 468x60 banners to show up in the 728x90 spot and visa versa.

I'm I making this all way to complicated? or is something like this still possible?


In the static header adcode:

<a href="nothing.htm"><img src="largead.jpg /></a>

In the random footer adcode:

<a href="nothing.htm"><img src=smallad1.jpg /></a>|
<a href="nothing.htm"><img src="smallad2.jpg /></a>

diggz
03-11-2007, 06:26 AM
Installed this today. It works perfect so far. Thank You!

Will donate as soon as the forum goes live & the adsense starts dancing.

projectego
03-11-2007, 11:08 PM
Just installed v3.03 on my latest Assassin's Creed Forum (http://forum.assassinscreedx.com/) and everything is working flawlessly. Thanks again, RedTyger! ;)

Pure Dope
03-12-2007, 03:33 AM
i just installed this and absolutely nothing happend except your copyright at my footer.

whats wrong?

inbrissy
03-12-2007, 05:52 AM
Have you added any banners in the AdminCP?
You can add some there and they will show up. Its a great and easy to use Mod.

RedTyger
03-12-2007, 09:07 AM
i just installed this and absolutely nothing happend except your copyright at my footer.

whats wrong?

You probably have not set Usergroup permissions properly. Or if you are using javascript Adcode try just plain text for testing in case there's a problem with your code.

inbrissy
03-12-2007, 09:22 AM
Hi RedTyger,

Could you please reply to my previous request on the banners? If its not possible, I'll have to get some banner rotation stuff made, and I'd rather use what you have made so far cuz it works really well.

RedTyger
03-12-2007, 09:36 AM
Hi RedTyger,

Could you please reply to my previous request on the banners? If its not possible, I'll have to get some banner rotation stuff made, and I'd rather use what you have made so far cuz it works really well.

I didn't understand what you said, but I'll take another shot at it.

You want one large banner in the header that rotates.

You want two small banners side by side in the footer that independently rotate.

If this is correct then it is possible but the small banners will only show in pairs. You can't have them both randomly rotating independently.

Your header adcode:
<img src="large1" />|
<img src="large2" />|
<img src="large3" />

Your footer adcode:
<img src="small1.1" /> <img src="small1.2" />|
<img src="small2.1" /> <img src="small2.2" />|
<img src="small3.1" /> <img src="small3.2" />

So the footer will only be able to show .1 banners together, .2 banners together etc. But it will randomly rotate between 1. banners 2. banners etc.

inbrissy
03-12-2007, 06:32 PM
pretty close. I think i get what you're saying.

I want all the banners in the header, either way it will be the same. I can't rotate them independently. Which is what i'm after.

Thanks for all the help anyway RedTyger.

Dave Hybrid
03-12-2007, 11:32 PM
Installed this and it went smoothly.

I cannot get anything to display though no matter what settings I choose.

I am new to vB.

Suggestions please.

www.thecomputerforums.co.uk

Dave.

inbrissy
03-12-2007, 11:55 PM
As mentioned in a couple of posts earlier, you need to make sure you have all your usergroup permissions set correctly. Otherwise nothing will display.

Try that, you'll find that will work very well.

Dave Hybrid
03-12-2007, 11:58 PM
I am new to vB.

Where should I be looking? So i can edit the permissions.

Once there what should i edit, what box etc.

Thanks
Sorry for being a damb ass.

futureye
03-13-2007, 03:58 AM
I have tried it in 3.6.5

and i've add some ads in ADs CP

but it didn't show in the forum ?

www.surcity.net/forums/index.php

it did only show one thing in the footer

vB Ad Management by =RedTyger=

Dave Hybrid
03-13-2007, 07:42 AM
I have tried it in 3.6.5

and i've add some ads in ADs CP

but it didn't show in the forum ?

www.surcity.net/forums/index.php

it did only show one thing in the footer

vB Ad Management by =RedTyger=


Same problem, think im going to uninstall.

dizzy100
03-13-2007, 07:55 AM
Same problem, think im going to uninstall.

Silly question i know, but you said you was new to vbulletin, did you do the template edits ? You have to manually do these.

I've tested this on my local test copy and it works very well indeed.

Dave Hybrid
03-13-2007, 07:59 AM
Silly question i know, but you said you was new to vbulletin, did you do the template edits ? You have to manually do these.

I've tested this on my local test copy and it works very well indeed.

Im using the standard template and the download only came with one file and was all automated.

Where is the information on what files to manually edit?

Its all well and good telling us we are doing it wrong but by please tell us how to do it right.

Dave Hybrid
03-13-2007, 08:01 AM
I have it working in the archive but not the main forums.

dizzy100
03-13-2007, 09:37 AM
Im using the standard template and the download only came with one file and was all automated.

Where is the information on what files to manually edit?

Its all well and good telling us we are doing it wrong but by please tell us how to do it right.

Sorry i assumed you read the instructions situated at the top of this page.

Instructions
Upload the product using the Product Manager.
Go to Style Manager > Edit Templates and...
Find <!-- post $post[postid] popup menu --> and paste $postbit_advertisement above it in your postbit & postbit_legacy templates.
Paste $forumbit_advertisement at the bottom of your forumhome_forumbit_level1_post and forumhome_forumbit_level2_post templates.
Paste $threadbit_advertisement at the bottom of your threadbit template.
Paste $footer_advertisement at the top of your footer template.
Find $spacer_close in your footer template and below it paste $rightcolumn_advertisement.
Find &nbsp; in your header template and replace it with $header_advertisement.
Find $spacer_open in your header template and below it paste $leftcolumn_advertisement.For future reference, each hack will have a set of instructions to follow, it isn't just as simple as adding the product xml i'm afraid. These will often be in the archive you download, but can also be in the body of the hack post (like above),

Hope that helps.

Dave Hybrid
03-13-2007, 09:40 AM
Thank you very much.

revmitchell
03-13-2007, 10:34 AM
I have installed it on my forum. The space for adds only shows up in the threads and then the add does not show up just the box for it. It is not in my usergroup permissions page. What could be the issue?

RedTyger
03-13-2007, 10:35 AM
What adcode are you using? It's common for Google ads and things like that to display nothing sometimes.

revmitchell
03-13-2007, 02:51 PM
Yea thats it google adcode. anyway around that. I cannot get it to display at all in the main forum index. Is that the way it is supposed to be?

RedTyger
03-13-2007, 03:51 PM
When you set up adsense you can choose for it to display nothing or a public service announcement when it has nothing to display...so you might want to change that? Which section is it not working for on the main forum index. Header and footer ads should work everywhere no problem.

revmitchell
03-13-2007, 04:12 PM
It doesnt show up any where on the main forum index. I still do not uderstand what you are saying about the google adds

RedTyger
03-13-2007, 04:28 PM
Yes, what doesn't show up on the main index? Header ads? Forumbit ads?

Google sometimes give you the option to display something else when it has no adverts to display. That's an option when setting up the ads with Google themselves, it's not something I can do.

Pacman15
03-13-2007, 09:49 PM
Well, now lets see if I can come with more $$ for my forum :).
Big Thanks :)

LEAD_WEIGHT
03-13-2007, 10:15 PM
Will a version come out to be able to have ads display within specific post you choose or create?

RedTyger
03-13-2007, 10:16 PM
Well, now lets see if I can come with more $$ for my forum :).
Big Thanks :)

Good luck! I didn't even use my own modification...until today! So I'll be seeing if I can do the same. :)

Will a version come out to be able to have ads display within specific post you choose or create?

Can you explain further? You mean have ads display with specifc post IDs? That will not be an option, it's far too specific.

LEAD_WEIGHT
03-13-2007, 11:02 PM
Can you explain further? You mean have ads display with specifc post IDs? That will not be an option, it's far too specific.


Will this have file edits if that were possible? or just to complicated to add this and to upgrade it.

This member was inquiring on this is was able to achive.
http://www.vbulletin.com/forum/showpost.php?p=1321250&postcount=1

RedTyger
03-14-2007, 08:02 AM
It's not difficult, just not necessary enough people to make it worthwhile. You can do it by editing the plugin.

MariaWilkes
03-15-2007, 11:51 AM
I have spent the better part of the last 24 hours trying to get this mod to work.

I have it where it will rotate banners and ads, so long as they are added in the admin area, but it will not add users shared content.

I have even used the illustrated codes in the second post, and those work well but they will not add the information in the users fields.

I have the field setup properly in the configuration, and have my admin default code as http://www.test.com for testing,

this shows fine along with redtygers link when rotating. I also have another computer I use for testing, with a regular forum ID (not admin) yet when I place http://www.usertest.com in the edit profile for that user, the usertest.com never appears in the rotations.

The mod is a fantastic mod, but I do not completely understand how members can share ads, because this function is not working for me. I am using VB 3.6.3 and
vb_ad_management_303

MariaWilkes
03-15-2007, 01:39 PM
I wanted to say that I got it working.

RedTyger
03-15-2007, 02:11 PM
What was the problem? Click install please, don't miss updates.

MariaWilkes
03-15-2007, 09:10 PM
Where do I click install? I'm sorry, I don't use mods often and am not very familiar with using them.

The problem was my own error, I was unaware that you would not see your own ads and I was also unaware that if a user had not made any posts then their ads wouldn't show anyways.

I was testing with a user account that I use for testing purposes only, no posts with that ID, so naturally the shared banners did not appear.

I re-read post 2 several times before it clicked what was wrong, then I had one of my moderators post a link with her ID and it worked just as it is supposed to.

I now have it running fine on my forum, and it's already generated 6 sign-ups to a beauty course I just launched this past monday and forum members are loving it. So it's already producing very positive results not only for me, but for forum members as well who want to advertise affiliate links but couldn't because they are not allowed. They are all very excited to finally have a feature they can use their affiliate links with.

Expect a donation within the next month, after I give it a good run.

So there was no problem with the mod, it was a problem with me not getting much sleep and not paying attention to what I was supposed to be doing and due to me not being very familiar with how the mod works.

I just read the thread here from start to last, saw people say it could do what I needed it to do and has features that I like, and so I just installed it. I don't know what the heck I am doing lol.

I do apologize for the trouble, the mod works fine (wonderful in fact) with no flaws other than my own user errors.

I'll go do a search here for that install now, and see if I can now figure that out.

Thank you for the wonderful mod!

Vinyljunky
03-16-2007, 09:54 AM
Firstly thank you for this MOD, I can tell that you put a lot of hours in it!

My query is about interaction with the Links and Download Manager (https://vborg.vbsupport.ru/showthread.php?p=1204736)

Sadly the Ads dont apear within the Links & Downloads listings. See here (http://siliconhell.com/forum/local_links.php?catid=2) to see what I mean.

Is there anyway I can display adverts within the DL listings?

Thanks

VJ

RedTyger
03-16-2007, 09:55 AM
Hm. I see an advertisement at the bottom of the page just like any of your other forum sections. What exactly do you want to be different with the downloads?

Vinyljunky
03-16-2007, 12:34 PM
Hm. I see an advertisement at the bottom of the page just like any of your other forum sections. What exactly do you want to be different with the downloads?

An advert inbetween every X item in the DownLoad list (http://siliconhell.com/forum/local_links.php?catid=1) would be cool :)

Prominent Ads within ibProArcade would be good as well ;) (Here is mine (http://siliconhell.com/forum/arcade.php?&?act=Arcade))

Thanks

VinylJunky

RedTyger
03-16-2007, 02:24 PM
You could use header advertisements for this, since they can be placed anywhere on a page, but beyond that I don't know. If you ask the author of the mod, telling him you want to place a single variable with rows then maybe he can tell you where to put them. Then when you know, just insert $header_advertisement in the right place and set it up in the normal way using the vB Ad Management settings.

Vinyljunky
03-16-2007, 05:15 PM
You could use header advertisements for this, since they can be placed anywhere on a page, but beyond that I don't know. If you ask the author of the mod, telling him you want to place a single variable with rows then maybe he can tell you where to put them. Then when you know, just insert $header_advertisement in the right place and set it up in the normal way using the vB Ad Management settings.

Thanks for the advice :)

VinylJunky

subzonline
03-16-2007, 06:48 PM
great mod, have used this mod for a couple of months now,

simple mod to install

yet on version 3 i seem to get 3 adverts in the header and 3 adverts in the footer

is there anyway to change this?


here is what i mean

www.basslineuk.com/forum

valdet
03-16-2007, 06:56 PM
RedTyger this is a great add-on. however can we also have the option to select which usergroups can be served ads within posts,PM's and announcements.

I am suggesting to kind of move/migrate this Usergroup ads showing permissions from Global Settings into each of these particular settings (header&footer, threadbit&forumbit. posts,PM's&announcements,left&right,)

Maybe this is too much work , but just throwing an idea. :)

Thanks

RedTyger
03-16-2007, 09:10 PM
You can do this yourself by using template conditions in the xbit_advertisement templates. Surround the contents of the template with:

<if condition="is_member_of($bbuserinfo, 1,2,3,4,5)">
Contents of template
</if>

Just change the numbers to the usergroups you want to deal with. Any template conditional may be used in the _advertisement templates.

milsirhc
03-17-2007, 05:56 AM
hi,

is there anyway I can add an adsense sharing advertisement within a user first post?

Ie: in the postbit (left colum: user profile, center column: post content, right column: adsense)

Is there a way to implement this? I tried putting a adsense code with #shared# directly but it did not work.

subzonline
03-17-2007, 09:56 AM
RedTyger have you seen my post about multiple banners being shown in header and footer?

RedTyger
03-17-2007, 10:36 AM
RedTyger have you seen my post about multiple banners being shown in header and footer?

Your adcode is wrong. Certainly you're separating it with the wrong character (currently a ,) when you should be using the custom delimiter (Global settings) to separate ALL settings and adcode.

hi,

is there anyway I can add an adsense sharing advertisement within a user first post?

Ie: in the postbit (left colum: user profile, center column: post content, right column: adsense)

Is there a way to implement this? I tried putting a adsense code with #shared# directly but it did not work.

Try moving $postbit_advertisement in the postbit template to immediately below the post (called $post[message] or something like that I suppose). You will also have to adjust the postbit_advertisement template to suit yourself. Don't know how well it will work, not tried.

subzonline
03-17-2007, 11:12 AM
thanks for the help, managed to get the banners to appear correctly

kingele18
03-18-2007, 07:29 AM
greaaaaaaat

milsirhc
03-18-2007, 08:53 AM
Your adcode is wrong. Certainly you're separating it with the wrong character (currently a ,) when you should be using the custom delimiter (Global settings) to separate ALL settings and adcode.

Try moving $postbit_advertisement in the postbit template to immediately below the post (called $post[message] or something like that I suppose). You will also have to adjust the postbit_advertisement template to suit yourself. Don't know how well it will work, not tried.

Thanks RedTyger,

I tried and it work but i have difficulty creating a right side section within the post itself..

I want to right side where it's similar to http://forum.hardwarezone.com/showthread.php?p=22837686#post22837686 rig spect section.

Does anyone here knows how to do it? Pleeeease guide me!

milsirhc
03-18-2007, 10:32 AM
Fixed it.

Thanks!

I notice something.. not sure if it's a bug.

I put 100% (enter as "100") chance for the thread starter adsense to appear but if I logged out.. and come in as guest. I will still see the admin adsense ID only.

But if i logged in, I will see the thread starter adsense 100% of the time.

Do you know why?

RedTyger
03-18-2007, 11:27 AM
Well spotted, thank you. You're right, it's a particularly painful bug. I'm poking around with a couple of other things but I'll release an update ASAP.

milsirhc
03-18-2007, 11:49 AM
thansk redtyger for your quick response!

I have nominated this as mod of the month (which I seldom did!)! I am impressed by the support and the quality of this plugin!

Thanks buddy!

quiescent
03-19-2007, 02:02 PM
Hi RedTyger, I know I'm not suppose to PM you, but I'd like the no-branding version which I've sent PP to you. Could you take a look?

sandrodz
03-20-2007, 01:11 AM
How do I add additional places for banners to the vb management panel? is it hard? I've some new places, like http://www.flunkme.com/free_essays.php I would love to have header and side adsense banner placed through management, I hate going through template code to change banner layout.

if its possible could you please briefly explain it?

brihan
03-20-2007, 06:14 AM
Is it possible to have specific ad sponsors in specific categories?

If so, how do you do it?

Thank you,

Brian

RedTyger
03-20-2007, 08:03 AM
Hi RedTyger, I know I'm not suppose to PM you, but I'd like the no-branding version which I've sent PP to you. Could you take a look?

I think PMing me for that reason is just fine. ;) Can you make sure you click install so you're aware of updates.

How do I add additional places for banners to the vb management panel? is it hard? I've some new places, like http://www.flunkme.com/free_essays.php I would love to have header and side adsense banner placed through management, I hate going through template code to change banner layout.

if its possible could you please briefly explain it?

Setting up a header banner:
Install the plugin.
Edit your header template and insert $header_advertisement where you want the ad to appear.
Go to AdminCP > vBulletin Options > vBulletin Options > vB Ad Management (header & footer) and enable header advertisements. Put your advertisement code in the static header box.

That's it, you're done. The process is virtually identical for the columns, the correct template edit is in the first post of the thread. Have a look through the Global settings to make sure they're all as you want them and Ad Sharing settings if you want to use that.

Is it possible to have specific ad sponsors in specific categories?

If so, how do you do it?

Thank you,

Brian

It is not possible to have forum-specific settings, sorry.

valdet
03-21-2007, 04:35 PM
Hello Red Tyger, I am trying to set up the avatar to display in postbit_legacy but it wont appear with any links that I provide, either http://www.somewhere.com/forum/images/image.jpeg nor absolute links public_html/website/forum/images/image.jpeg

Since your screenshot has no avatar in postbit_legacy, does that mean that avatars cannot be displayed in postbit legacy.. ?

Thx.

RedTyger
03-21-2007, 05:04 PM
The avatar should work fine in postbit_legacy, it's done the same way for either postbit type. An absolutely URL won't work though. Does the image load just by going directly to http://www.somewhere.com/forum/images/image.jpeg?

valdet
03-21-2007, 05:16 PM
thanks for reply Tyger,
Funny thing is that the image does not show up in browser as well. I placed the avatar in a new folder, chmoded the folder and image to 777 but all it shows is a 1x1 image, while I am using a PNG image as avatar..

RedTyger
03-21-2007, 05:35 PM
Bad hotlinking setup possibly. Anyway, the problem is with the image so I can't really help you.

valdet
03-21-2007, 05:41 PM
nvm, i found it. Thanks red Tyger for your time.

The issue was that I was using a non-interlaced PNG image, and somehow the browser did not display it

:)

MarkJW
03-21-2007, 09:38 PM
Quick question: I can't seem to find the option to add a "Click to here to remove Ads" link in my CP, at least for the left/right side areas. Can anyone point me to it? Am I really that blind, or is there no option like that for the left/right areas? :confused:

RedTyger
03-21-2007, 09:38 PM
Postbit options, it is not used anywhere else.

MarkJW
03-21-2007, 09:41 PM
Oops. Thanks. :o

EDIT: Nevermind.

needtheend
03-22-2007, 09:15 PM
I installed this modification but there is no changes? what is the settings of the mod?

brihan
03-23-2007, 05:28 AM
Hi, Great hack. Thank you very much.

One question. In the right colum I would like to include my navbar. Rather than enter ther code in the ACP can I put in a PHP include? I have tried <?php include("navbar.php"); ?> and even <?php include("../navbar.php"); ?> and <?php include("../../navbar.php"); ?> and <?php include("../../../navbar.php"); ?> but nothing comes up.

Should this work? can this work? If so, what amy I doing wrong?

Thank you,

Brian

brihan
03-23-2007, 05:49 AM
Sorry, that wasn't my last question.

How do I reduce the size of my "Last Post" column so that my "Forum Column" can be expanded?

Thank you.

Brian

milsirhc
03-23-2007, 07:39 AM
Well spotted, thank you. You're right, it's a particularly painful bug. I'm poking around with a couple of other things but I'll release an update ASAP.

Hi RedTyger,

Any updates on the ad sharing prob?

RedTyger
03-23-2007, 08:40 AM
I installed this modification but there is no changes? what is the settings of the mod?

The instructions are all in the first post, please click "Install" so you will receive updates.


Changing the settings

* The AdminCP options where you can change your settings are located in vBulletin Options after all the rest of the setting categories.
* If you want to edit the templates for the advertisements yourself, they are located immediately after their postbit counterparts in the Template Manager list with the suffix "_advertisement". Do not alter any value in the template (that's a string of words or letters beginning with a $ sign) or your ads may stop working! I'll only support the unedited product.


Hi, Great hack. Thank you very much.

One question. In the right colum I would like to include my navbar. Rather than enter ther code in the ACP can I put in a PHP include? I have tried <?php include("navbar.php"); ?> and even <?php include("../navbar.php"); ?> and <?php include("../../navbar.php"); ?> and <?php include("../../../navbar.php"); ?> but nothing comes up.

Should this work? can this work? If so, what amy I doing wrong?

Thank you,

Brian

PHP cannot be used in templates. Inserting $navbar into the code might do it.

Sorry, that wasn't my last question.

How do I reduce the size of my "Last Post" column so that my "Forum Column" can be expanded?

Thank you.

Brian

That is in the forumbit_nopost templates. Please click "Install" so you will receive updates.

Hi RedTyger,

Any updates on the ad sharing prob?

One problem fixed, one to go.

brihan
03-23-2007, 09:06 AM
Thank you.

Install clicked!

dxguru
03-23-2007, 09:01 PM
I'm really stumped here :(

I've installed ... simple :)
I've set up the ads and they display fine :)
Then I went to the ad-sharing ...

I have my new profile field with data in it.
I turned on ad-sharing, altered the ad code to include #shared#, set the thread-starter to 100 and expected to see the ad code for the thread starter all the time.

Nope :(

It always displays the Primary Ad Sharing Admin Code :(

Can anybody please suggest something I may have missed (while I still have some hair left)

Thanks.

jackstraw01
03-24-2007, 02:21 AM
Is it possible to add more than one box to either the left or right hand column?

Thanks

RedTyger
03-24-2007, 09:46 AM
I'm really stumped here :(

I've installed ... simple :)
I've set up the ads and they display fine :)
Then I went to the ad-sharing ...

I have my new profile field with data in it.
I turned on ad-sharing, altered the ad code to include #shared#, set the thread-starter to 100 and expected to see the ad code for the thread starter all the time.

Nope :(

It always displays the Primary Ad Sharing Admin Code :(

Can anybody please suggest something I may have missed (while I still have some hair left)

Thanks.

You can't see your own adcode...so if you're testing it on yourself, that's your problem.

Is it possible to add more than one box to either the left or right hand column?

Thanks

You cannot.

milsirhc
03-24-2007, 12:38 PM
2 things to check:

1) In adsharing, have you assigned the appropriate usergroup for this to happen?
2) If the thread-starter is urself, you won't be able to see your own adsense


I'm really stumped here :(

I've installed ... simple :)
I've set up the ads and they display fine :)
Then I went to the ad-sharing ...

I have my new profile field with data in it.
I turned on ad-sharing, altered the ad code to include #shared#, set the thread-starter to 100 and expected to see the ad code for the thread starter all the time.

Nope :(

It always displays the Primary Ad Sharing Admin Code :(

Can anybody please suggest something I may have missed (while I still have some hair left)

Thanks.

dxguru
03-24-2007, 12:52 PM
You can't see your own adcode...so if you're testing it on yourself, that's your problem.Thanks Red. I must have missed this part of the documentation :)
Is it only the Post, PM & Announcement advertisement code that is sharable?

RedTyger
03-24-2007, 12:54 PM
Er, possibly my fault. It's listed in the updates but not the documention.

You can share anything you like at any advertisement location. It doesn't really get much more flexible than this. There is a new version coming out shortly so if it annoys you to have to upgrade immediately I'd suggest waiting. Although all you have to do is overwrite.

dxguru
03-24-2007, 02:13 PM
Upgrades are no probs (especially the easy import/overwrite ones ;) )

Can I suggest, if its not to late, could you split the Post, PM and Announcement adcodes in to 3 seperate sections? I know this is more work (for both you and the admin) but especially with the PM ad ... because it's a different size (width) to the other areas.

BTW, I haven't said it yet so 'Thanks for a great Mod' :D

RedTyger
03-25-2007, 01:46 PM
You are very welcome. :) I will hopefully soon be writing a small guide on how to add your own adcode sections. The modification was built with this in mind and it's actually just a very simple copy-and-paste process. I think you could do it in 5 minutes quite easily.

milsirhc
03-26-2007, 07:33 AM
Thanks RedTyger for your effort and drive in maintaining this plugin!

Don't forget the adsense sharing prob still! I'm coming in everyday to see if you have an update or not.. i'm so excited. hahahah

RedTyger
03-26-2007, 08:30 AM
Hm? You don't need to come back and check, I'll send an update notice when it's done.

RedTyger
03-26-2007, 03:28 PM
How to add your own custom adcode blocks in 3 minutes

Download the zip file and open the named php files using a plain text editor (something like MSWord which uses formatting will break the code). Follow the simple instructions below then save, upload and overwrite your existing files. Your new custom adcode block will be at the bottom of the header/footer section of your vB Ad Management settings.

You can add as many custom blocks as you like as long as you give each one a different name. They'll work on any page, obey all permissions and work with all features including Ad-Sharing.

To name a custom adcode block, just find/replace every instance of the word "custom" in the code below with the new name of your choice.


IN FILE vb_ad_management_310.xml, FIND:

<template name="footer_advertisement" templatetype="template"><![CDATA[
<div align="center">
$footer_adcode
</div>
]]></template>


ADD BELOW:

<template name="custom_advertisement" templatetype="template"><![CDATA[
<div>
$custom_adcode
</div>
]]></template>





IN FILE includes/vb_ad_management/cache_templates.php, FIND:

if ($vbulletin->options['adintegrate_footer_onoff'])
{
$adtemplates[] = 'footer_advertisement';
}


ADD ABOVE:


if ($vbulletin->options['adintegrate_custom_onoff'])
{
$adtemplates[] = 'custom_advertisement';
}





IN FILE includes/vb_ad_management/global_start.php,FIND:

if ($vbulletin->options['adintegrate_footer_onoff'])


ADD ABOVE:

if ($vbulletin->options['adintegrate_custom_onoff'])
{
if ($vbulletin->options['adintegrate_custom_adcode'])
{
$custom_split = explode("$adshared", $vbulletin->options['adintegrate_custom_adcode']);
$custom_adcode = $custom_split[0];
if ($custom_split[1])
{
$custom_adcode = $custom_split[0] . $GLOBALS['adcode_shared'] . $custom_split[1];
}
eval('$custom_advertisement = "' . fetch_template('' . custom_advertisement . '') . '";');
}
else if ($vbulletin->options['adintegrate_custom_adcode_rand'])
{
$custom_adcode = explode("$addelimiter", $vbulletin->options['adintegrate_custom_adcode_rand']);
$custom_rand = array_rand($custom_adcode);
$custom_adcode = $custom_adcode["$custom_rand"];
$custom_split = explode("$adshared", $custom_adcode);
$custom_adcode = $custom_split[0];
if ($custom_split[1])
{
$custom_adcode = $custom_split[0] . $GLOBALS['adcode_shared'] . $custom_split[1];
}
eval('$custom_advertisement = "' . fetch_template('' . custom_advertisement . '') . '";');
}
}





IN FILE includes/vb_ad_management/global_start.php,FIND:

<setting varname="adintegrate_footer_adcode_rand" displayorder="45">
<datatype>free</datatype>
<optioncode>textarea</optioncode>
</setting>


ADD BELOW:

<setting varname="adintegrate_custom_onoff" displayorder="991">
<datatype>boolean</datatype>
<optioncode>yesno</optioncode>
<defaultvalue>0</defaultvalue>
</setting>
<setting varname="adintegrate_custom_adcode" displayorder="992">
<datatype>free</datatype>
<optioncode>textarea</optioncode>
</setting>
<setting varname="adintegrate_custom_adcode_rand" displayorder="993">
<datatype>free</datatype>
<optioncode>textarea</optioncode>
</setting>

DementedMindz
03-27-2007, 07:44 PM
how do we update? any instructions on that?

RedTyger
03-27-2007, 07:47 PM
It was in the update, titled "Instructions"


INSTRUCTIONS:
As this is no longer purely plugin-based to speed things up, there are now files to upload. It's very easy, just find your forum's includes directory and load the vb_ad_management folder to there. Do NOT include the includes folder in the zip file, that is just included to demonstrate where it goes on your server. The file's final location should be forum index/includes/vb_ad_management/vb ad management files/. Then upload the plugin, overwriting the one you already have installed.

DementedMindz
03-27-2007, 07:48 PM
opps :o now I see it. Thank you again.

DementedMindz
03-27-2007, 07:53 PM
im getting uncached templates postbit_advertisement which is the only one I use for now so I cant tell if the others are showing not cached.

RedTyger
03-27-2007, 08:04 PM
Did you upload all the vb_ad_management files?

DementedMindz
03-27-2007, 08:07 PM
yes I did im using vBMicroStats (https://vborg.vbsupport.ru/showthread.php?t=140449) and right at the bottom it shows that template as uncached.

RedTyger
03-27-2007, 08:19 PM
If it's installed correctly there should be no problem, I'm using vBulletin's built-in function that displays uncached templates and there are none. I suppose it's possible that modification runs before the templates for this modification are cached? I don't know.

Add this line to your includes/config.php file along with the rest of the settings then save the file and overwrite the existing config.php file on your setting.


$config['Misc']['debug'] = true;


Does the default vBulletin information say that templates are uncached? It lists templates in the footer.

DementedMindz
03-27-2007, 08:25 PM
strange it dont say it there but it does on his... Do you have the older version of this until he or you can fix it?

RedTyger
03-27-2007, 08:28 PM
Well as far as I can see, the problem is with his modification not mine. So there's no reason to use an older version.

DementedMindz
03-27-2007, 08:30 PM
well I would like to use a older one the one before this until a fix is made Im going to make a post on his thread but for now do you have the one before this?

RedTyger
03-27-2007, 08:32 PM
You're going to at least double your database queries by going back to an older version, you do understand that? You'll be worse off than even if the template really is uncached.

DementedMindz
03-27-2007, 08:35 PM
yeah thats fine for now until I get a fix. I only really use the postbit one since the archive one really don't suite me since I cant use different codes for my archive and the main site footer.

RedTyger
03-27-2007, 08:36 PM
....

DementedMindz
03-27-2007, 08:38 PM
RedTyger thank you once again.

nokiacep
03-27-2007, 08:43 PM
Hi RedTyger
I wanna ask a question about it.

You say

IN FILE includes/vb_ad_management/global_start.php,FIND:

<setting varname="adintegrate_footer_adcode_rand" displayorder="45">
<datatype>free</datatype>
<optioncode>textarea</optioncode>
</setting>


ADD BELOW:

<setting varname="adintegrate_custom_onoff" displayorder="991">
<datatype>boolean</datatype>
<optioncode>yesno</optioncode>
<defaultvalue>0</defaultvalue>
</setting>
<setting varname="adintegrate_custom_adcode" displayorder="992">
<datatype>free</datatype>
<optioncode>textarea</optioncode>
</setting>
<setting varname="adintegrate_custom_adcode_rand" displayorder="993">
<datatype>free</datatype>
<optioncode>textarea</optioncode>
</setting>



But I couldn't find the first section in vb_ad_management/global_start.php


<setting varname="adintegrate_footer_adcode_rand" displayorder="45">
<datatype>free</datatype>
<optioncode>textarea</optioncode>
</setting>


I suppose I'm making a mistake but where

principino1984
03-27-2007, 10:28 PM
sweet.. thanks for the update.

Marco

racerhub
03-27-2007, 10:51 PM
I would love a way to target ads to particular forums. I.E. Ad #1 goes to Forum #1 only, and Ad #2 only goes to Forum #2.

Thanks,

tehPARADOX
03-28-2007, 12:42 AM
It was in the update, titled "Instructions"

INSTRUCTIONS:
As this is no longer purely plugin-based to speed things up, there are now files to upload. It's very easy, just find your forum's includes directory and load the vb_ad_management folder to there. Do NOT include the includes folder in the zip file, that is just included to demonstrate where it goes on your server. The file's final location should be forum index/includes/vb_ad_management/vb ad management files/. Then upload the plugin, overwriting the one you already have installed.

Just to let you know, the current archive right now, doesn't include those instructions. Just comes with the Includes folder and the product.

And also for the postbit ads, displayed as user. Is there a way to change it back to legacy (vertical) rather then the horizontal way?

milsirhc
03-28-2007, 08:31 AM
thanks for the update.

I'm still alittle confused regarding upgrading this plugin.

I copied the files into includes and import the plugin as upgrade.. is that all? Do I have to remove all my previous ' * Upload the product using the Product Manager.
* Go to Style Manager > Edit Templates and...
* Find <!-- post $post[postid] popup menu --> and paste $postbit_advertisement above it in your postbit & postbit_legacy templates.
* Paste $forumbit_advertisement at the bottom of your forumhome_forumbit_level1_post and forumhome_forumbit_level2_post templates.
* Paste $threadbit_advertisement at the bottom of your threadbit template.
* Paste $footer_advertisement at the top of your footer template.
* Find $spacer_close in your footer template and below it paste $rightcolumn_advertisement.
* Find &nbsp; in your header template and replace it with $header_advertisement.
* Find $spacer_open in your header template and below it paste $leftcolumn_advertisement." that I have done?

And also do I need to change the .xml file as you have mentioned now? *lost*

One more question is does this version resolve the ad sharing bug in the previous version??

Thanks again Redtyger!!!!!!!

RedTyger
03-28-2007, 08:33 AM
thanks for the update.

I'm still alittle confused regarding upgrading this plugin.

I copied the files into includes and import the plugin as upgrade.. is that all? Do I have to remove all my previous...

And also do I need to change the .xml file as you have mentioned now? *lost*

One more question is does this version resolve the ad sharing bug in the previous version??

Thanks again Redtyger!!!!!!!


You do have to change the plugin, overwrite your existing plugin with the new one, you don't have to install it first. In fact you shouldn't, because you'll lose your settings.


v3.1 Fixed usergroup and userid banning for shared adcode, again now they actually work.



Hi RedTyger
I wanna ask a question about it.

You say

IN FILE includes/vb_ad_management/global_start.php,FIND:

<setting varname="adintegrate_footer_adcode_rand" displayorder="45">
<datatype>free</datatype>
<optioncode>textarea</optioncode>
</setting>


ADD BELOW:

<setting varname="adintegrate_custom_onoff" displayorder="991">
<datatype>boolean</datatype>
<optioncode>yesno</optioncode>
<defaultvalue>0</defaultvalue>
</setting>
<setting varname="adintegrate_custom_adcode" displayorder="992">
<datatype>free</datatype>
<optioncode>textarea</optioncode>
</setting>
<setting varname="adintegrate_custom_adcode_rand" displayorder="993">
<datatype>free</datatype>
<optioncode>textarea</optioncode>
</setting>



But I couldn't find the first section in vb_ad_management/global_start.php


<setting varname="adintegrate_footer_adcode_rand" displayorder="45">
<datatype>free</datatype>
<optioncode>textarea</optioncode>
</setting>


I suppose I'm making a mistake but where

The mistake was mine, you need to find that code in the plugin not global_start.php.


Just to let you know, the current archive right now, doesn't include those instructions. Just comes with the Includes folder and the product.

And also for the postbit ads, displayed as user. Is there a way to change it back to legacy (vertical) rather then the horizontal way?

You'd have to edit the modification code, the ad postbit just matches the postbit you're using.

milsirhc
03-28-2007, 08:42 AM
Okay,

So basically I copied the files over.. and I upgrade (by selecting overwriting the plugin) and that's about it ya? No other changes I need to made?

And also, i tried viewing my forum as guest and did 6 refresh, I still can't see the random sharing happening. My admin adsense code still appearing all 6 times but the thread starter and last poster did not.

I specified "50" for admin, "40" for thread starter and "10" for last poster. Am i doing something wrong here?

RedTyger
03-28-2007, 08:48 AM
Hm, there seems to be something wrong with the % calculations. I'll take a look at this now, don't go anywhere...

milsirhc
03-28-2007, 08:50 AM
ok! I'm staying right here, refreshing my screen non-stop!!

Thankssss!!!

RedTyger
03-28-2007, 09:05 AM
ok! I'm staying right here, refreshing my screen non-stop!!

Thankssss!!!

Don't do that! Enable instant email notification for the thread.

Anyway, could you download the new zip file (3.11) and overwrite global_start.php with the version in the new zip. You do not need to alter anything else. Please let me know if it now works.

milsirhc
03-28-2007, 09:08 AM
I'll give it a go! don't go anywhere! =P

milsirhc
03-28-2007, 09:20 AM
Tried..

here's the findings:

Login as admin, the random code works perfectly fine but I can see the admin adcode and the threadstarter adcode randomly

Login as a normal user, the random thingy don't work, I can see the admin adcode only (or is it the user own one only) <- my admin and my own are the same.

Goes in as guest, I can only see the admin code and the random thingy don't work.

milsirhc
03-28-2007, 09:23 AM
update:

login as normal user, can only see the admin code and the thread starter (which is not the same user) random thingy don't work.

RedTyger
03-28-2007, 09:25 AM
Would you mind giving me admin access to your forum so I can see for myself? Preferably to also turn the forum off for a few minutes so I can poke around a bit. I can't reproduce your new problem on my forum, it should be working fine now.

milsirhc
03-28-2007, 09:53 AM
pmed you. =)

Just to make it clear again:

Login as admin, the random code works perfectly fine but I can see the admin adcode and the threadstarter adcode randomly

login as normal user, can only see the admin code and the thread starter (which is not the same user) random thingy don't work.

Goes in as guest, I can only see the admin code and the random thingy don't work.