vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - Rotating Banner System (https://vborg.vbsupport.ru/showthread.php?t=188328)

goodhunting1 07-30-2015 07:28 PM

Quote:

Originally Posted by rhody401 (Post 2551598)
Goodhunting1,
It needs a refresh/page load to bring up another banner, it doesnt just rotate them on a static page. This is by design, and I think the reason has to do with the adsense rules.

In places where I wanted a rotation, I used an animated GIF.

Rhody

Oh, it dont serves my purpose then. I already have a simple php script that does the picture change on each reload. That php is in a folder and whatever picture I put in that folder is added to the rotation. Very easy to add or remove a picture from the rotation.

I dont think a gif will be a good option for me, there could be as much as 20 good quality pictures and if I want to add anything (these are outdoorsy pictures from members so it will change monthly) I will have to redo the gif.

Thanks for the info!

y2ksw 07-31-2015 05:39 AM

Quote:

Originally Posted by gobears20 (Post 2551719)
Is there a reason why the clicks are not being tracked? I have this as part of an Adsense set up but clicks are not working but impressions are? I have the check box checked to track clicks. Do I need to click anything else on the settings? Thanks!

Currently there is no way to track clicks from scripts, unless they are specifically crafted and contain thus a notification link to the banner itself. With AdSense, there is no way to inject such code, because it comes dynamically from a wide number of publishers and have all a very different syntax.

I eventually will address this problem (along with others) with the new stand-alone application, which is currently under development, because then everything will be in one place and can be thoroughly tested. For some systems however there may be no solution, because Google does not allow to tamper with the banner code.

y2ksw 07-31-2015 05:51 AM

Quote:

Originally Posted by gobears20 (Post 2551112)
I am testing this out and I created a Test1 and Test2 banner just for my user group so I am the only one that sees it. My goal is to have these rotate when the page is refreshed. I am looking for it to show Test1, Test2, Test1,Test2...etc when refreshing the page. Its not always doing that. Sometimes it will do things like this, Test1, Test1, Test1, Test2. It could be on my part with how I have it set.

I have both banners set to the same settings...

Max. Impressions With this value you may limit how often banners are shown on your pages: 0

Likelihood Insert here a value between 1 and 100 in order to define the percentage of how likely are banners to view. You may also insert a number higher than 100, in order to give a specific banner a higher weight than normally. You would do this during short lasting promotions, for example.: 100

Am I missing something or should I set those settings different for the two banners I created?

The likeliness does influence how often a coin flip falls on one side. Normally you will leave it at 100, because you want to give all banners an even chance.

How the chance is taken depends also on server side caches and browser settings. In normal case applications, a banner changes every time a page reloads, but if you just have 2 banners for one space, it may seem there is nothing or little happening. Over time you'll see that the impression counter evens out between the available banners.

nolimitreef 09-01-2015 04:28 AM

I want to put 2 rotating banner positions, one above the other in the global header. They will not be adsence ads. How would I do this? Can I simply place the code in that location?

y2ksw 09-01-2015 10:19 AM

Quote:

Originally Posted by nolimitreef (Post 2554007)
I want to put 2 rotating banner positions, one above the other in the global header. They will not be adsence ads. How would I do this? Can I simply place the code in that location?

Yes

nolimitreef 09-01-2015 03:52 PM

Quote:

Originally Posted by y2ksw (Post 2554022)
Yes

Thank you :)

Tried. But having an issue.

This is the code I placed in the global header file.
Code:

<div style='position:absolute;left:800px;top:65px;'><!--@vbbanners:0@--></div>
</br>
<div style='position:absolute;left:800px;top:145px;'><!--@vbbanners:0@--></div>

They show up in the correct location however all banners don't always rotate upon page load or reload and sometimes one shows up in front (over top) of the bottom one. They are all 468x60 banners. If you would like to look at the page it is located here http://www.nolimitreef.com

I sent a PM to you with admin info if you need it.

Thank you very much :D

nolimitreef 09-01-2015 04:38 PM

I managed to stop the image overlap, However a third image (I only have 3 banners at the moment total) shows up just under the forum home link. I don't want one there and not sure why it shows up there.

y2ksw 09-02-2015 04:57 AM

Quote:

Originally Posted by nolimitreef (Post 2554049)
Thank you :)

Tried. But having an issue.

This is the code I placed in the global header file.
Code:

<div style='position:absolute;left:800px;top:65px;'><!--@vbbanners:0@--></div>
</br>
<div style='position:absolute;left:800px;top:145px;'><!--@vbbanners:0@--></div>

They show up in the correct location however all banners don't always rotate upon page load or reload and sometimes one shows up in front (over top) of the bottom one. They are all 468x60 banners. If you would like to look at the page it is located here http://www.nolimitreef.com

I sent a PM to you with admin info if you need it.

Thank you very much :D

If you have 3 banners for 2 locations they are likely not rotating a lot (there is a 2/3 chance they would rotate, or, 2 times of 3 they won't). But in the ACP listing you will sse that over time, the impression rate equals between banners.

For HTML issues, overlapping etc, I'm not your man. I'm coder, not designer :)

nolimitreef 09-02-2015 12:03 PM

Quote:

Originally Posted by y2ksw (Post 2554098)
If you have 3 banners for 2 locations they are likely not rotating a lot (there is a 2/3 chance they would rotate, or, 2 times of 3 they won't). But in the ACP listing you will sse that over time, the impression rate equals between banners.

For HTML issues, overlapping etc, I'm not your man. I'm coder, not designer :)

I'm sorry, I may not have stated my question correctly.

I fixed the overlap. I have 2 banner positions stacked in the global header right side. But the banners are rotating in a 3rd location as well that I did not set up to do. (I now have 10 banners to rotate for the stacked positions).. This location is on the upper left side of all pages below the navigation bar. Is that the normal 0 position? If so, where might I comment that out in styles?

Thank you

y2ksw 09-05-2015 06:06 AM

Quote:

Originally Posted by nolimitreef (Post 2554110)
I'm sorry, I may not have stated my question correctly.

I fixed the overlap. I have 2 banner positions stacked in the global header right side. But the banners are rotating in a 3rd location as well that I did not set up to do. (I now have 10 banners to rotate for the stacked positions).. This location is on the upper left side of all pages below the navigation bar. Is that the normal 0 position? If so, where might I comment that out in styles?

Thank you

The banners rotate only where you have setup them previously ... there is no magic location of its own. The mechanism is to use a placeholder where to show a banner, stop :)

Also, there is no normal position, for exacly the same reason. You and only you are deciding where to show banners ...

nolimitreef 09-06-2015 05:48 AM

Ok, I'm an idiot :p I knew this.... need to start getting some sleep and not staying up until 6am... I do apologize for the duh, question.

y2ksw 09-07-2015 08:11 AM

Quote:

Originally Posted by nolimitreef (Post 2554362)
Ok, I'm an idiot :p I knew this.... need to start getting some sleep and not staying up until 6am... I do apologize for the duh, question.

no worries, we are good (me included) to throw a day's work for 5 minutes of madness :)

INPowerZ 09-09-2015 09:17 PM

Can it be used just as a header for a forums?

y2ksw 09-10-2015 05:22 AM

Quote:

Originally Posted by INPowerZ (Post 2554692)
Can it be used just as a header for a forums?

As fas as I know, it is not possible to inject code into the header, for example for rotating the header- or background image.

blah100 11-13-2015 05:51 AM

Does this provide the ability to only display an ad to a specific country, or is it not possible?

y2ksw 11-14-2015 08:00 AM

Quote:

Originally Posted by blah100 (Post 2558686)
Does this provide the ability to only display an ad to a specific country, or is it not possible?

Short answer: no
Long answer: If you have pages which are shown only to certain countries, you can show also banners only for those pages. But it depends on your page settings, not the banners themselves.

blah100 11-14-2015 08:08 AM

Quote:

Originally Posted by y2ksw (Post 2558774)
Short answer: no
Long answer: If you have pages which are shown only to certain countries, you can show also banners only for those pages. But it depends on your page settings, not the banners themselves.

How would I go about making pages only viewable to certain countries? Is it a IF conditional statement?

y2ksw 11-14-2015 09:45 PM

Quote:

Originally Posted by blah100 (Post 2558775)
How would I go about making pages only viewable to certain countries? Is it a IF conditional statement?

You would normally do this at the server side with GeoIP and/or browser User Agent/Language detection. Eventually you would split then the forum into language or country dependent subdomains which however refer to the same installation, for efficiency. And then you would address one or more categories which are normally hidden, respectively for the language dependent pages. It sounds difficult, but is pretty easy to achieve

scottkoz20 01-23-2016 12:18 PM

good morning - I am wondering if anyone has noticed an issue with reporting from this modification back to Google ad-sense.

for example, I am showing nearly 4.2 Million impressions for my top banner in the system in the last 2 weeks; however when I go to Ad-sense to check the same banner code, shows only around 650k impressions.

I have no reason to doubt that the application is adding more impressions since I have placed a banner on one of pages that I only have access to and the system is correctly counting the number of impressions. Part of this might just be my lack of knowledge of the communication between my forum and google.

And I'm not complaining about the traffic, I am just seeking further understanding. If there is a past post about this - kindly link me to this.

Thank you in advance,
Scott

y2ksw 01-23-2016 01:35 PM

Quote:

Originally Posted by scottkoz20 (Post 2563267)
good morning - I am wondering if anyone has noticed an issue with reporting from this modification back to Google ad-sense.

for example, I am showing nearly 4.2 Million impressions for my top banner in the system in the last 2 weeks; however when I go to Ad-sense to check the same banner code, shows only around 650k impressions.

I have no reason to doubt that the application is adding more impressions since I have placed a banner on one of pages that I only have access to and the system is correctly counting the number of impressions. Part of this might just be my lack of knowledge of the communication between my forum and google.

And I'm not complaining about the traffic, I am just seeking further understanding. If there is a past post about this - kindly link me to this.

Thank you in advance,
Scott

As discussed earlier in this thread, Google counts hits only approximately and hits above 1000 per hour are eventually ignored. Also, devices which do not handle Javascript, such as spiders, some tablets and text-only browsers are not counted by Google.

scottkoz20 01-23-2016 01:51 PM

Quote:

Originally Posted by y2ksw (Post 2563275)
As discussed earlier in this thread, Google counts hits only approximately and hits above 1000 per hour are eventually ignored. Also, devices which do not handle Javascript, such as spiders, some tablets and text-only browsers are not counted by Google.

:up:

dwerden 01-28-2016 11:05 AM

I've been using the banner system for nearly a year and I like it quite a bit! With more and more mobile traffic, is this going to be able to fit into a mobile theme (the default VB4 theme or a custom theme)?

y2ksw 01-28-2016 05:27 PM

Quote:

Originally Posted by dwerden (Post 2563674)
I've been using the banner system for nearly a year and I like it quite a bit! With more and more mobile traffic, is this going to be able to fit into a mobile theme (the default VB4 theme or a custom theme)?

This depends on your templates :)

Greta@CPF 02-10-2016 09:48 PM

I am using this mod with the vBulletin Advertising system. It has served me quite well for several years now! But now I find I would like to have specific ads in specific forums. This is all fine except there is no option in the display criteria list to:

Criteria for ad are met

There is only:

Criteria for ad are not met

Is there any way to adjust this?

y2ksw 02-11-2016 12:32 AM

Quote:

Originally Posted by Greta@CPF (Post 2564639)
I am using this mod with the vBulletin Advertising system. It has served me quite well for several years now! But now I find I would like to have specific ads in specific forums. This is all fine except there is no option in the display criteria list to:

Criteria for ad are met

There is only:

Criteria for ad are not met

Is there any way to adjust this?

It never was asked. What kind of criteria would you not apply?

Greta@CPF 02-11-2016 01:06 AM

Quote:

Originally Posted by y2ksw (Post 2564647)
It never was asked. What kind of criteria would you not apply?

I have my Position 2 banners displaying in rotation below the navbar on a global level with no criteria checked so those banners display on every page of my forums. Now I want to set up my Position 3 banners to display in only one forum (Bicycle Forum) in place of the Position 2 banner with the criteria set for when user is browsing that specific forum. So it would be helpful to be able to set the Position 2 banners criteria to: "Criteria for ad <Bicycle Forum> ARE met.

Does that make sense?

Edit added for clarification: Wait... I just thought that through again and it won't work either. Ok - so how do I do what I want to do using the vBulletin Advertising system?

y2ksw 02-11-2016 01:13 AM

Quote:

Originally Posted by Greta@CPF (Post 2564648)
I have my Position 2 banners displaying in rotation below the navbar on a global level with no criteria checked so those banners display on every page of my forums. Now I want to set up my Position 3 banners to display in only one forum (Bicycle Forum) in place of the Position 2 banner with the criteria set for when user is browsing that specific forum. So it would be helpful to be able to set the Position 2 banners criteria to: "Criteria for ad <Bicycle Forum> ARE met.

Does that make sense?

Yes. You can solve this problem by selecting all forums but the one to be excluded for position 2, just the one forum for position 3.

Greta@CPF 02-11-2016 01:20 AM

Quote:

Originally Posted by y2ksw (Post 2564649)
Yes. You can solve this problem by selecting all forums but the one to be excluded for position 2, just the one forum for position 3.

Ugh - I was hoping you wouldn't say that. I have a gazillion forums. *sigh* - guess I better get to work.

Thank you for your time! :)

Greta@CPF 02-11-2016 01:28 AM

Quote:

Originally Posted by Greta@CPF (Post 2564650)
Ugh - I was hoping you wouldn't say that. I have a gazillion forums. *sigh* - guess I better get to work.

Thank you for your time! :)

Ok - this has to be done for each individual banner in the Position 2 pool. There is no way to do this through "Manage Ads" under the Advertising tab in vBulleitn?

zackw 03-03-2016 02:31 PM

It seem this script may have been hacked.

Maybe it's not this script, but something else? In any case, there is a script injected into my template in the code where RBS is supposed to be. This screenshot shows a bad script in my template where it was never supposed to be. I deleted RBS and all its files.

To anybody else with RBS, please check the template location, and also check page source for the phrase "lovehouse" to confirm. Maybe it was just me, or maybe the hack was injected through some other means, I just don't know.

http://www.mediafire.com/view/jv5ekliv2ibkocj/hack.png

y2ksw 03-04-2016 05:52 AM

Quote:

Originally Posted by zackw (Post 2566458)
It seem this script may have been hacked.

Maybe it's not this script, but something else? In any case, there is a script injected into my template in the code where RBS is supposed to be. This screenshot shows a bad script in my template where it was never supposed to be. I deleted RBS and all its files.

To anybody else with RBS, please check the template location, and also check page source for the phrase "lovehouse" to confirm. Maybe it was just me, or maybe the hack was injected through some other means, I just don't know.

http://www.mediafire.com/view/jv5ekliv2ibkocj/hack.png

It isn't!

Your templates are your templates and all what happens to them is entirely up to you. This modification does not make any changes to existing templates and template modifications as suggested in the help file, are made by you or your software.

y2ksw 03-04-2016 05:55 AM

Quote:

Originally Posted by Greta@CPF (Post 2564652)
Ok - this has to be done for each individual banner in the Position 2 pool. There is no way to do this through "Manage Ads" under the Advertising tab in vBulleitn?

Yes, you can eventually do it from there, if there is such as a negation option.

zackw 03-04-2016 02:21 PM

Quote:

Originally Posted by y2ksw (Post 2566498)
It isn't!

Your templates are your templates and all what happens to them is entirely up to you. This modification does not make any changes to existing templates and template modifications as suggested in the help file, are made by you or your software.

I didn't make the changes. That's why it's called a hack. But seemed to be connected with this script if that's how the hacker gained entrance.

When I run the suspect file version tool, the ONLY files that it complains about are RBS files.

y2ksw 03-04-2016 04:45 PM

Quote:

Originally Posted by zackw (Post 2566524)
I didn't make the changes. That's why it's called a hack. But seemed to be connected with this script if that's how the hacker gained entrance.

When I run the suspect file version tool, the ONLY files that it complains about are RBS files.

Yeah I'm sure you didn't change in the way it is now, but I'm sure you created the part which follows the "hack". Because this script dows not make changes to the templates. Else, you could also say it is related to vBulletin or any other script you may have.

The WORM you got in your forums is changing whatever it pleases, it has nothing to do with any other legit script. Remove it (and the changes it made) and your forum behaves well.

zackw 03-04-2016 04:55 PM

Quote:

Originally Posted by y2ksw (Post 2566531)
Yeah I'm sure you didn't change in the way it is now, but I'm sure you created the part which follows the "hack". Because this script dows not make changes to the templates. Else, you could also say it is related to vBulletin or any other script you may have.

The WORM you got in your forums is changing whatever it pleases, it has nothing to do with any other legit script. Remove it (and the changes it made) and your forum behaves well.

"Remove it..." How does one find "it"? VB file checker only shows RBS files as suspicious. Should I delete them? Reinstall RBS?

I realize RBS doesn't change templates. And you know, html forms don't delete databases, but people have used insecure forms to do just that with SQL injection.
I doesn't matter what RBS "does" in normal operation, the question is whether things were hacked through it.

In any event, I edited the templates to remove the payload, but what other means can tell me where some worm is hiding?

I know this is probably not the thread to continue this, but if someone has a link to a method of validating the whole install, that would help.

squidsk 03-04-2016 07:57 PM

You have to trace the changes. Find out when and who changed the template from the logs and go from there. It's a painstakingly slow process to find when and who changed it. As for vbulletin reporting rbs files as suspect it will do that for almost all products since most product do not supply the xml file that vb requires to know if the file is the original file for the mod.

y2ksw 03-05-2016 04:06 AM

Quote:

Originally Posted by zackw (Post 2566532)
"Remove it..." How does one find "it"? VB file checker only shows RBS files as suspicious. Should I delete them? Reinstall RBS?

I realize RBS doesn't change templates. And you know, html forms don't delete databases, but people have used insecure forms to do just that with SQL injection.
I doesn't matter what RBS "does" in normal operation, the question is whether things were hacked through it.

In any event, I edited the templates to remove the payload, but what other means can tell me where some worm is hiding?

I know this is probably not the thread to continue this, but if someone has a link to a method of validating the whole install, that would help.

This particular WORM enters via XSS your admin panel and installs itself into the plugin cache. Some versions keep also a plugin you never installed, but most of them just have the cached code, which may be found by extracting all plugin code from the datastore table. It has a suspiciously long white space line (to move out of sight) and some eval/base64_decode sequences which install and quirk the templates in order to show their links.

You can get rid of the cache-only version by saving a single plugin, but usually there is also an infected script (tampered image) which then reinstalls the WORM once again. I found that Avast makes a good job to find infected scripts, but also a global search on files for some pattern may work as well.

Please note, that this WORM is carefully designed and not as stupid as most of their kind. It is hard to remove and usually requires to check all files on your installation, including plugins where it may hide (appended or prepended, rarely inserted). There also may be some templates which attempt to load external files in order to reinfect the whole.

cloferba 03-09-2016 07:48 PM

Hi!

Thank you so much for your plugin.

Could you please let me know if PHP code can be inserted?
Quote:

Text
This field may hold any kind of script (e.g. Google AdSense) and/or HTML which will be inserted in your pages. Please make sure it works and that all tags are closed properly.
Thank you

y2ksw 03-10-2016 04:24 AM

Quote:

Originally Posted by cloferba (Post 2566895)
Hi!

Thank you so much for your plugin.

Could you please let me know if PHP code can be inserted?


Thank you

No. PHP isn't executed at the browser level.

Scream And Fly 03-27-2016 06:03 AM

Hello! I've been using your product for years at www.screamandfly.com
On the left side, we have four 140x200px banners managed by the individual locations, which is great.
I wanted to add additional banners, however when I add another banner to a 5th location, it won't show up. It seems only the 4 locations can be visible. Is there an easy way to add more locations on the left side?

Thank you!


All times are GMT. The time now is 10:53 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03480 seconds
  • Memory Usage 1,879KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (29)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete