Adding Banners to Ad Break

nootkan

Member
License Active
Trying to add my banners from the old version of aardvark to visiolist and as far as I understand it I change the code inside add break and add break top to read the proper zone correct? Here is what I used in ad break: {$zone_a} and {$zone_b} for add break top. I then went to the banner manager and tried to add my iframe script into the add banner form but get this error when trying to save:
Forbidden
You don't have permission to access /topsites/index.php on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Also got this error when trying to upload an image using plain html <img src="">. I uploaded the image banner to the banners directory.

Figured maybe it had something to do with my dso setting so I even tried to chown the index.php file to nobody.nobody but that didn't work either. Is there another way to do this or is my server misconfigured so that I cannot use this plugin?
 
Last edited:

Basti

Administrator
Staff member
Do you have the same issue when just writing some gibberish into the zone? abcd or whatever?

Iam no server expert but i think these permissions errors can also pop up when mod_security filters anything it dont want.

Our button_config.php for example come on vl 1.2 with default setting like "YOURSITE.com/images/button.png for example, so people see what they should input in the settings.
On some hostings we experienced that the "YOURSITE" in the string trigger such case and thus the user cant save their settings and gets the same error you get above.
Maybe something similar is happing for you.

If "abcd" not works, might help to see what exactly you try to insert.

---------------------

P.s the following can wait until things work, just thought i would point it out, as its a relative new feature not many are aware off.

For the ad breaks, we have 2 specific zones you can use. Since zone a,b,c are more global zones and also trigger a "view" even when not on the rankings page.
Under the zone select box when adding a banner, you have a link "add new zone", where you can choose it ( please note the help text there )

Ad break zone name must be either
"ad_break" to be used in ad_break.html
Or "ad_break_top" to be used in ad_break_top.html
so ad_break_top would be the "zone name" and display type = Ad Breaks
That would result in using the template tag {$zone_ad_break_top} in ad_break_top.html
 

nootkan

Member
License Active
Yeah it is a mod security issue. I've been trying to make it work since yesterday with no luck. Can't seem to figure out how to whitelist it in modsecurity so I may have to figure something else out. Funny that it works just fine the old way by embedding it into the adbreak and addbreaktop files from aardvark but not by trying to use your plugin. You would think that both would be considered forms of cross site scripting and not just one.
 

Basti

Administrator
Staff member
No thing is, on one you insert html and upload to ftp. On other you submit stuff to the database, where mod_security can kick in.

Please post what you are trying to use for ad break ( the code which triggers the issue ). Mark is a real good server admin, ill let him look at the code, bet he knos how to whitelist it.
Wonder if it generally not allow html to be inserted, but sounds very likely
 

nootkan

Member
License Active
Okay I got it to work by doing this. Created the banner account. Add some simple code like <img src="http://yada.yada> click add banner. Then go back into the Manage Banners area and click on the zone where you placed your banner and then edit the code to what you want in there. In my case it was an iframe for my banner exchange script. This worked for me. Now I have to figure out how to separate between the addbreak and addbreaktop, which I think Basti made reference to above.
 
Top