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)

viper357 02-22-2012 07:54 AM

Has anybody got this function to work yet?
Quote:

Option: Send Mail Before.
I've tried all manner of things but it doesn't seem to work. I initially set it to 14 days, no emails were sent, so I changed it to 7 days and went through each and every banner and reset the notifications, but still no emails have been sent. Is this working for anybody on vb 3.8?

rhender 02-23-2012 09:11 PM

I haven't gotten far and I'm already nervous.

I was about to upload the files within the uploads folder, when I noticed that there was a folder called "admincp" in there.

I don't want to overwrite the "admincp" folder that is already on the server for my forum.

If I upload the RBS "admincp" folder, that would override the current one. That seems like it would screw everything up.

Could anyone tell me what I should do? :eek:

Videx 02-23-2012 10:56 PM

Quote:

Originally Posted by rhender (Post 2302794)
If I upload the RBS "admincp" folder, that would override the current one. That seems like it would screw everything up.

Could anyone tell me what I should do? :eek:

There are basically two ways to do it - a hard way and an easy way. Obviously both require an FTP client such as Filezilla.
  • Hard: Dig down into admincp/ and just upload the files you find there. Tedious, and prone to error.
  • Easy: Rename the "upload" folder to "forum" (or whatever you have your forum in) and drop it on public_html. FTP doesn't replace identical folders, it just properly adds files to them.

viper357 02-27-2012 07:53 AM

Anyone? No-one?

Quote:

Originally Posted by viper357 (Post 2302223)
Has anybody got this function to work yet?
I've tried all manner of things but it doesn't seem to work. I initially set it to 14 days, no emails were sent, so I changed it to 7 days and went through each and every banner and reset the notifications, but still no emails have been sent. Is this working for anybody on vb 3.8?


licensinglinks 02-27-2012 01:29 PM

I have recently installed Google AdSense. I notice that the impressions displayed in my AdSense account are significantly less (10 TIMES LESS!!!!) than the impressions the RBS is reporting.

In short, AdSense tells me I've only served a total of 128,000 ad impressions, but RBS tells me that I've delivered way over ONE MILLION ad impressions in total.

I just don't know what to believe!

What's the flipping heck's happening here and how do I fix it???

......or is there nothing wrong with RBS and Google's just ripping me off?

Videx 02-27-2012 02:22 PM

Quote:

Originally Posted by viper357 (Post 2303823)
Anyone? No-one? (email reminders)

This is a new function which I have only just installed and set for my two newest banners, so I won't know if mine are working for another 90 days.

rhender 02-27-2012 08:10 PM

Hi Videx,

Thanks for the reply.

I do use FileZilla. Can I just put the contents of the RBS' "admincp" into the "admincp" that is already on the server. Is that where those RBS' admin files are supposed to go?

Then I could just put the other files on the root level as well. But still not sure.

Videx 02-28-2012 01:41 AM

Quote:

Originally Posted by rhender (Post 2303994)
Can I just put the contents of the RBS' "admincp" into the "admincp" that is already on the server.

This really isn't the place for a complete FTP tutorial, but you can't just drop admincp on admincp because then it will simply make a folder admincp/admincp which is incorrect. You have to do it one of the ways I described earlier.

rhender 02-28-2012 02:16 AM

No, I was asking if I could put the contents (the files inside of the RBS admincp), INTO the admincp folder that is already on the server.

Because if I were to just drag the whole RBS admincp folder over onto the server in Filezilla, a pop up window comes up and says something like "that directory already exists... do you want to overwrite it?"

rhender 02-28-2012 03:15 PM

Ok, well if I don't hear otherwise, I guess that I will just try to change the name of the upload folder to forum and then drop it on the root level of my site, as you described Videx.

I don't have a public_html folder... I'm hosted on GoDaddy. I don't think they use that.

I just call it the root level of my site (where the index.php file lives).

I was thinking that if I started renaming the folders that it may mess up the functionality of the banner system. That's why I was trying to avoid doing that.

viper357 02-28-2012 04:22 PM

How do I roll back to a previous version of RBS? My email notifications are not working at all now since the latest upgrade?

Videx 02-28-2012 04:43 PM

Quote:

Originally Posted by rhender (Post 2304285)
I don't have a public_html folder...

Yes, one of my sites also lacks access to anything above public_html - very annoying when doing tasks like this. Not to mention disallowing you to easily store anything out of the public eye.

Not a big deal though - just go inside the upload folder, select all, then drop them on your /forum/ folder. If Filezilla really puts up a prompt for this instead of just merging automatically, then it must at least have an option to merge.

rhender 02-28-2012 05:27 PM

Cool. I'll try that. Thanks again Videx.

rhender 02-28-2012 07:50 PM

Yeah I don't think there is an option to merge.

It has just prompted me saying
Quote:

"cpnav_rbs.xml" already exists in the "includes/xml/" folder. Do you want to overwrite it?
Is that ok to overwrite that one??


---...edit... that seems to be the only file that already existed on the server for some reason. ??

But everything else uploaded just fine, and merged into the existing folders admincp and includes... on the server.

So I think it's just fine. It's just that one file (cpnav_rbs.xml) that gave me a prompt to overwrite, and I said cancel... just in case...

Although it seems like it will be fine to overwrite now.


Another EDIT: I think everything uploaded fine. I had already uploaded that xml folder just to test it. On to the next step...

rhender 02-28-2012 09:49 PM

maybe someone can help viper357 now. sorry to get in the way.

rhender 02-29-2012 04:14 PM

Is there somewhere that describes the "positions" of the banner ads?

Like where "0" actually is, etc...

Videx 02-29-2012 04:46 PM

The positions are wherever you put them. I would suggest sticking with the default vb ad locations until you're more familiar and can go editing templates. AdminCP>Advertising>Manage ads - try one 'above footer' (<div style="text-align:center"><!--@vbbanners:0@--></div>).

Helping Viper with email problems is going to be trickier because it may be a problem with his server. And the email feature is new so not many are even trying to use it yet. By all means try testing it yourself with really short expiration times.

rhender 02-29-2012 05:02 PM

Ok, so I am obviously just beginning to figure this out... but what I am trying to do is have 2 static image ads in the header (plain old gifs). I already have one static ad in the header (since before installing this mod) but just got a new advertiser... so now I want them to alternate each time the page is refreshed. Install seems like it went perfectly BTW.

First, I'm wondering if this is even the right mod for what I want to do... I was told that it is by someone else. I still think it is the right one for me from what I can tell.

Right now I have the following code in the Ad HTML box in the "Header 1" ad location (my first ad that has been running since before installing this mod).

Code:

<a href="http://www.advertiser-site.com" target="_blank"><img src="advert-images/1st-company-ad.gif" title="company title" alt="company keywords etc." /></a>

Do I somehow add the following code to it, in order to have the rotating banners work?

Code:

<div style="text-align:center"><!--@vbbanners:0@--></div>

And then for the second ad, do I repeat the same process to have them alternate each time the page is refreshed? Sorry if I'm driving you nuts with simple questions.


ALSO, are there instructions somewhere for how to do all of this, that I am missing??? or am I supposed to just scour this extremely long thread for info on how to implement all of this??? I printed the PDF for rotating banner system, but none of this was in there I don't think....

Videx 02-29-2012 05:15 PM

No, you replace the ad code with the RBS tag "<!--@vbbanners:0@-->". You add the existing ad as a banner in RBS.

There's a tutorial video in the first post, but I think we really need a new one written for total noobs - starting with how to open the AdminCP, through FTP, to dealing with clients at renewal time. It's been so long for me I can't remember much about installing it.

rhender 02-29-2012 06:16 PM

Ok, awesome Videx. Thanks so much. Yes, a total noob instruction PDF or video would be fantastic... as without it, I feel kind of lost. Thanks again, hopefully I can get this going now.

EDIT: Sweet. I got it. I had to deselect an option in the forums that are able to view the ad. I had to command click to deselect so that it shows on all forums. YES!!!!!

Does the google ads thing pay money for clicks if I leave it up???

EDIT: Also, the google ad thing cycles through like 5 times before my first real advertiser displays. Is there a way to change that so I don't upset my advertisers?

Another EDIT: I added the 2nd advertiser to the ad manager, with the vbbanners code... and also added it to the mod's section with the html image... and it started to show up next to the first ad, in the header... ???? I had it listed as 2 in it's display order in the ad manager. Is that wrong? Do I need to change the vbbanners code to vbbanners:1 so that is next in the ad display?

rhender 02-29-2012 06:39 PM

Seems like it is working now, maybe it just took a second to update.... sorry for all the posts. Still slightly confused. I need to watch that darn video.

licensinglinks 02-29-2012 07:33 PM

Quote:

Originally Posted by licensinglinks (Post 2303869)
I have recently installed Google AdSense. I notice that the impressions displayed in my AdSense account are significantly less (10 TIMES LESS!!!!) than the impressions the RBS is reporting.

In short, AdSense tells me I've only served a total of 128,000 ad impressions, but RBS tells me that I've delivered way over ONE MILLION ad impressions in total.

I just don't know what to believe!

What's the flipping heck's happening here and how do I fix it???

......or is there nothing wrong with RBS and Google's just ripping me off?

Anyone any ideas??? :confused:

Videx 02-29-2012 07:40 PM

Quote:

Originally Posted by licensinglinks (Post 2304788)
Anyone any ideas??? :confused:

Adsense is probably showing you a shorter time period. I think RBS's counters are only reset when you do it manually.

Gripi 03-02-2012 09:40 AM

hi.. i saw in 2.3.3 version:

2.3.3: Fix: Copy selected forum ID's during banner duplication. Changed: start and end hours for new banners are set to 0:00 and 23:59 respectively. Changed files: admin_rbs.php.

but.. in here, the time still go randomly, sometimes 15.00, sometimes 17.00.

and let say i already set the start date to 1 March 2012, the end date 2 March 2013, then i save it. then i open the banner configuration again, without changing anything in the configuration, i press the save button, then open it again, the start date become 2 March 2012, and the end date become 3 March 2013.

is this a bugs?

licensinglinks 03-02-2012 09:48 AM

Quote:

Originally Posted by licensinglinks (Post 2303869)
I have recently installed Google AdSense. I notice that the impressions displayed in my AdSense account are significantly less (10 TIMES LESS!!!!) than the impressions the RBS is reporting.

In short, AdSense tells me I've only served a total of 128,000 ad impressions, but RBS tells me that I've delivered way over ONE MILLION ad impressions in total.

I just don't know what to believe!

What's the flipping heck's happening here and how do I fix it???

......or is there nothing wrong with RBS and Google's just ripping me off?

Anyone any ideas? Does RBS count bots? Is that why the number's so high?

viper357 03-02-2012 11:02 AM

Quote:

Originally Posted by Gripi (Post 2305286)
but.. in here, the time still go randomly, sometimes 15.00, sometimes 17.00.

and let say i already set the start date to 1 March 2012, the end date 2 March 2013, then i save it. then i open the banner configuration again, without changing anything in the configuration, i press the save button, then open it again, the start date become 2 March 2012, and the end date become 3 March 2013.

is this a bugs?

I have the same issue, whenever I save a new or old banner, it forwards the time by 8 hours, so if I set the banner to expire on 1 March at 1pm, when I click save it will change the time 8 hours ahead to 9pm, if I click save again it will go forward another 8 hours and change the expiry date to 2 March 5am.

y2ksw 03-02-2012 12:21 PM

Quote:

Originally Posted by licensinglinks (Post 2303869)
I have recently installed Google AdSense. I notice that the impressions displayed in my AdSense account are significantly less (10 TIMES LESS!!!!) than the impressions the RBS is reporting.

In short, AdSense tells me I've only served a total of 128,000 ad impressions, but RBS tells me that I've delivered way over ONE MILLION ad impressions in total.

I just don't know what to believe!

What's the flipping heck's happening here and how do I fix it???

......or is there nothing wrong with RBS and Google's just ripping me off?

The Google count is approximative and may exclude also all those counts where its spider is visiting, while RBS makes no such distinction and counts literally all impressions. There is no way to fix it, but you are free to ignore it :)

y2ksw 03-02-2012 12:24 PM

Quote:

Originally Posted by viper357 (Post 2304310)
How do I roll back to a previous version of RBS? My email notifications are not working at all now since the latest upgrade?

Just replace the files from a previous version. Some options may not work, but there should be no other drawback, since new versions have only additional features.

y2ksw 03-02-2012 12:30 PM

Quote:

Originally Posted by rhender (Post 2304754)
Ok, awesome Videx. Thanks so much. Yes, a total noob instruction PDF or video would be fantastic... as without it, I feel kind of lost. Thanks again, hopefully I can get this going now.

EDIT: Sweet. I got it. I had to deselect an option in the forums that are able to view the ad. I had to command click to deselect so that it shows on all forums. YES!!!!!

Does the google ads thing pay money for clicks if I leave it up???

EDIT: Also, the google ad thing cycles through like 5 times before my first real advertiser displays. Is there a way to change that so I don't upset my advertisers?

Another EDIT: I added the 2nd advertiser to the ad manager, with the vbbanners code... and also added it to the mod's section with the html image... and it started to show up next to the first ad, in the header... ???? I had it listed as 2 in it's display order in the ad manager. Is that wrong? Do I need to change the vbbanners code to vbbanners:1 so that is next in the ad display?

I added the Bloody Beginner Guide to my task list :) Actually, such a guide would be useful for generally all plugins. The question is, how bloody are beginners? :p

If you leave the default Google banners on, they pay me a little for my work. Globally, this is about $1 monthly, good enough to pay a cup of coffee once and then, but I appreciate :)

y2ksw 03-02-2012 12:38 PM

Quote:

Originally Posted by Videx (Post 2304794)
Adsense is probably showing you a shorter time period. I think RBS's counters are only reset when you do it manually.

Right. RBS does show them from the start and there is no reset.

y2ksw 03-02-2012 12:50 PM

Quote:

Originally Posted by Gripi (Post 2305286)
hi.. i saw in 2.3.3 version:

2.3.3: Fix: Copy selected forum ID's during banner duplication. Changed: start and end hours for new banners are set to 0:00 and 23:59 respectively. Changed files: admin_rbs.php.

but.. in here, the time still go randomly, sometimes 15.00, sometimes 17.00.

and let say i already set the start date to 1 March 2012, the end date 2 March 2013, then i save it. then i open the banner configuration again, without changing anything in the configuration, i press the save button, then open it again, the start date become 2 March 2012, and the end date become 3 March 2013.

is this a bugs?

Quote:

Originally Posted by viper357 (Post 2305301)
I have the same issue, whenever I save a new or old banner, it forwards the time by 8 hours, so if I set the banner to expire on 1 March at 1pm, when I click save it will change the time 8 hours ahead to 9pm, if I click save again it will go forward another 8 hours and change the expiry date to 2 March 5am.

These are issues with the server time differing with the database time. Normally, your server and database must match the same time zone and of course be synchronized in order to match the saving. There is not much I can do. All I suggest is to keep your servers going with UTC and in-sync for at least once a week. On crontab you would typically use:

Code:

0      5      *      *      *      root    /usr/sbin/ntpdate xx.pool.ntp.org>/dev/null 2>&1
where xx is the country code. Please see ntp.org for valid pools. Also note that if your server time has gone wild, it may need first a manual setup, since NTP will not adjust differences larger than 59 minutes 59 seconds.

If you issue a "SHOW NOW()" query, you may find out if the database is in-sync. On the server side, you would issue a date command with your root account. On Windows servers, this may be a bit tricky, because your webserver account should sync with UTC+0, but normally isn't.

In any case there are other possible issues with it and I really don't want to come down to this level.

I.G.O.T.A. 03-05-2012 11:42 AM

Doesn't seem to work with 4.1.11. Any ideas?

Rckcrwlr 03-05-2012 12:01 PM

Quote:

Originally Posted by IGOTASTi (Post 2306382)
Doesn't seem to work with 4.1.11. Any ideas?

Working for me.

y2ksw 03-05-2012 12:59 PM

Quote:

Originally Posted by IGOTASTi (Post 2306382)
Doesn't seem to work with 4.1.11. Any ideas?

Works for me, too :)

rhody401 03-06-2012 11:02 AM

It works very well for me too.

Here's an example to put a rotating ad under each thread, just before the reply button:

(It took me a while to figure this out, so here it is for anyone else in the same boat)

Admin CP: Styles & Templates -> Style Manager -> edit template -> postbit templates -> postbit_legacy

......at the VERY END add this:

PHP Code:

<vb:if condition="$post['islastshown']">
 <
div align="center"><!--@vbbanners:0@--></div><br />
</
vb:if> 

Thanks for the great tool!

TheDevil666Damo 03-06-2012 03:04 PM

If I CTRL and select the forums to display and not display the banner in there is no option for it to display on the homepage, ie. It only displays on the homepage when it is set to display everywhere, as soon as as you start selecting forums there is no option for the forum homepage and the banner doesn't display there...unless I am missing something?

y2ksw 03-06-2012 04:45 PM

Quote:

Originally Posted by TheDevil666Damo (Post 2306814)
If I CTRL and select the forums to display and not display the banner in there is no option for it to display on the homepage, ie. It only displays on the homepage when it is set to display everywhere, as soon as as you start selecting forums there is no option for the forum homepage and the banner doesn't display there...unless I am missing something?

There is a checkbox for the home page, since there is no item for the home in the list. However if you want to show the banners everywhere, just leave everything unselected ;)

K a M a L 03-06-2012 04:47 PM

Quote:

Originally Posted by y2ksw (Post 2306843)
There is a checkbox for the home page, since there is no item for the home in the list. However if you want to show the banners everywhere, just leave everything unselected ;)

Check box for home page displays banner only on homepage , what if I want to display banner on forum1 + homepage ?

TheDevil666Damo 03-06-2012 05:06 PM

Quote:

Originally Posted by K a M a L (Post 2306845)
Check box for home page displays banner only on homepage , what if I want to display banner on forum1 + homepage ?

Exactly, which is what I want to do, its just not possible at the moment which seems strange, ideally 'home' should be in the list as an option.

y2ksw 03-06-2012 05:11 PM

Quote:

Originally Posted by K a M a L (Post 2306845)
Check box for home page displays banner only on homepage , what if I want to display banner on forum1 + homepage ?

Quote:

Originally Posted by TheDevil666Damo (Post 2306854)
Exactly, which is what I want to do, its just not possible at the moment which seems strange, ideally 'home' should be in the list as an option.

You may duplicate a banner and have one for the forum home alone plus one for a single forum section.


All times are GMT. The time now is 05:32 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.05225 seconds
  • Memory Usage 1,869KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_php_printable
  • (24)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