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)

bzcomputers 02-07-2014 05:15 PM

Quote:

Originally Posted by dr.reddy (Post 2479599)
Coder replied like this in post # 2460 "You just copied the files without the folders. It is intended to copy the contents of the upload folder to your forum home ... including the folders."

Are you both telling same thing? I will now try to upload the contents within the "upload" directory as you said and check the status...I will update my feedback soon...thx

Yes, we are saying the same thing. For you, when looking at the "upload" directory for any mod, consider the "upload" directory the same as your "public_html" directory on your server.

You then need to copy the contents of the "upload" folder to your root folder "public_html". This includes maintaining the file/folder structure under "upload".

Sample of what is being uploaded:
upload/admincp/admin_rbs.php
upload/includes/cron/rbs_mail_cron.php
upload/rbs_banner.php

Where it should be uploaded:
public_html/admincp/admin_rbs.php
public_html/includes/cron/rbs_mail_cron.php
public_html/rbs_banner.php

drdoc 02-07-2014 05:16 PM

1 Attachment(s)
Quote:

Originally Posted by bzcomputers (Post 2479585)
Just make sure you are selecting to upload the contents within the "upload" directory and not selecting to upload the "upload" directory itself and it should give you the results you need.


NEW UPDATE

This time i uploaded like people said here....default admincp and includes folder names were already present in my public_html.....then i uploaded admincp and includes folders of 2.4.2 "upload" to my public_html (Actually i uploaded zip of admincp and includes and extracted and later deleted zip files) and then all files with in admincp and includes folders of 2.4.2 "upload"went in to previously present default admin and includes folder....I though i replaced folders and shocked a moment but realized that uploaded 2.4.2 upload and includes files just went in to previously present default admincp and includes folder (thank god), and later uploaded rbs_banner.php,rbs_stats.php,rbs_wrapper.swf files in to public_html and now i an see following below format in my public_html

public_html/admincp
public_html/includes
public_html/rbs_banner.php
public_html/rbs_stats.php
public_html/rbs_wrapper.swf

But still i cannot see RBS in my VB cpanel...i thought some thing went wrong and disappointed....but i immediately tried to add/import and did following

Manage product=> Add/Import and then Browsed for the product's XML file (product-rbs.xml), and clicked import ....To my surprise it got imported and accepted this time...then i thought RBS may now appear in my VB cpanel and scroll down left menu.....then....hurray i did it...i can see RBS as seen in screen shot.....thanks to bzcomputers and coder...ESPECIALLY special thanks to bzcomputers, you guided me with example and i did it now....hay...thanks...i will go for next steps now...my target is adding RBS below navbar....Now i dont know next steps....just read and proceed further and update u all..

check my screenshot....big thanks to bzcomputers

drdoc 02-07-2014 06:42 PM

Regarding placing Banners "Below Navbar" location

I am looking for Rotating banners which need to Refresh after every "few seconds" below navbar location.

So far i placed 2 banner successfully below navbar with "position 0 banner list" and they are changing alternately only when i refresh...what to do to set auto rotation with few seconds gap.

How i did....i created 2 banners and saved in "position 0 banner list" and next went to RBS in settings => options...and changed <!--@vbbanners:%d@--> to <!--@vbbanners:0@-->

Next went to style manager=>edit templates=>navbar below=> template box was empty so i added this "<!--@vbbanners:0@-->" Hope i did correctly so far

next what should i do in order to add position 1-9, i mean in settings=>options=>what should i add in the place of Nth Placeholder , as i have already entered <!--@vbbanners:0@-->

pls clarify and also let me know about rotating banner with time gap automatically instead of rotation banner after refreshing page.

Thanks

TheLastSuperman 02-07-2014 10:41 PM

@bzcomputers I'd like all of your posts for helping dr.reddy if it would let me, can only like one for now until I share more "like love" so instead a shout out to you for being super nice and helping him today!

Quote:

Originally Posted by dr.reddy (Post 2479617)
How i did....i created 2 banners and saved in "position 0 banner list" and next went to RBS in settings => options...and changed <!--@vbbanners:%d@--> to <!--@vbbanners:0@-->

^ Go back in settings and change that BACK to the previous value, it should always read <!--@vbbanners:%d@-->

If you currently have it set to: <!--@vbbanners:0@--> then it will not work, it must have the %d.
To explain the mod knows that the %d represents a # i.e. the banner list ID#.

Quote:

Originally Posted by dr.reddy (Post 2479617)
Next went to style manager=>edit templates=>navbar below=> template box was empty so i added this "<!--@vbbanners:0@-->" Hope i did correctly so far

That is correct, that will now show the banners (all banners you have added to LIST 0) from list 0 in that location. If more than one banner they will randomly rotate in.

Quote:

Originally Posted by dr.reddy (Post 2479617)
next what should i do in order to add position 1-9, i mean in settings=>options=>what should i add in the place of Nth Placeholder , as i have already entered <!--@vbbanners:0@-->

pls clarify and also let me know about rotating banner with time gap automatically instead of rotation banner after refreshing page.

Thanks

Add more banners to List 0 OR manage the other list and add in banners to those list, you only add more code to the template i.e. <!--@vbbanners:0@--> and <!--@vbbanners:1@--> if you are showing the banners from list 0 AND list 1.

Edit: Ahh and this mod rotates the banners on page load/refresh there is currently no timer function.

bzcomputers 02-07-2014 10:51 PM

Quote:

Originally Posted by dr.reddy (Post 2479617)
I am looking for Rotating banners which need to Refresh after every "few seconds" below navbar location.

Not possible with this mod as it is. You would need to do some custom script writing for this. Also, if you intend to run ads from an ad publishing company, almost all of them will ban you for doing this. Rule is typically one ad to show per ad position per page load.


Quote:

Originally Posted by dr.reddy (Post 2479617)
How i did....i created 2 banners and saved in "position 0 banner list" and next went to RBS in settings => options...and changed <!--@vbbanners:%d@--> to <!--@vbbanners:0@-->

Incorrect. The settings option should remain "<!--@vbbanners:%d@-->". The only place you should be placing the numbered position reference is in the templates.

Quote:

Originally Posted by dr.reddy (Post 2479617)
Next went to style manager=>edit templates=>navbar below=> template box was empty so i added this "<!--@vbbanners:0@-->" Hope i did correctly so far

This is correct.

Quote:

Originally Posted by dr.reddy (Post 2479617)
next what should i do in order to add position 1-9, i mean in settings=>options=>what should i add in the place of Nth Placeholder , as i have already entered <!--@vbbanners:0@-->

See answer above about what should be in settings. For your other positions just place the respective ad position reference within the template as you did for "<!--@vbbanners:0@-->".

Edit: I see you beat me to responding @TheLastSuperman. Looks like we were typing at the same time.

drdoc 02-07-2014 11:00 PM

Quote:

Originally Posted by TheLastSuperman (Post 2479661)
@bzcomputers I'd like all of your posts for helping dr.reddy if it would let me, can only like one for now until I share more "like love" so instead a shout out to you for being super nice and helping him today!



^ Go back in settings and change that BACK to the previous value, it should always read <!--@vbbanners:%d@-->

If you currently have it set to: <!--@vbbanners:0@--> then it will not work, it must have the %d.
To explain the mod knows that the %d represents a # i.e. the banner list ID#.

Now i have changed back to <!--@vbbanners:%d@-->, but to my surprise it was working before even with <!--@vbbanners:0@--> :)

Thanks a lot

TheLastSuperman 02-07-2014 11:00 PM

Quote:

Originally Posted by bzcomputers (Post 2479664)
Edit: I see you beat me to responding @TheLastSuperman. Looks like we were typing at the same time.

Usually my kids come in the room and everyone else beats me to the punch, for once I win! jk jk but made me laugh! See my shoutout at the top of my last post ;).

drdoc 02-07-2014 11:17 PM

Quote:

Originally Posted by bzcomputers (Post 2479664)
Not possible with this mod as it is. You would need to do some custom script writing for this. Also, if you intend to run ads from an ad publishing company, almost all of them will ban you for doing this. Rule is typically one ad to show per ad position per page load.

I am getting only 1 Ad per page load (refresh), i think we can also place ads side by side....what Ad publishing company you are referring, i have pvt.ads on my site ( not Google Adsense)...who bans these ads??

I have for example 6 banners all at " banner location 0", below navbar .....banner 1-3 are big, so no problem, but banner 4,5,6 are very small rectangle banner ads...is there any way to make appear banner 4,5,6 side by side...order should be like this on page refresh

1=>2=>3=> 4,5,6 small ads together....so it means 6 ads in 4 batches

I tried it like described in rbs pdf instructions where they gave example with Full banner side by side , but when i load page, 2 banners are appearing randomly like 1,6 2,5, 3,6 etc, so do u have any suggestion on this...

Thanks for other suggestions and for giving opinion on my previous work

drdoc 02-07-2014 11:26 PM

can we duplicate same banner to make it appear more often than other banners on page load. ( i see that out of my 6 banners 1 banner is appearing less often)

Example banner ID is 10,12 and 13 and position is "0" for all of them targeting below navbar

bzcomputers 02-07-2014 11:59 PM

Quote:

Originally Posted by dr.reddy (Post 2479673)
I am getting only 1 Ad per page load (refresh), i think we can also place ads side by side....what Ad publishing company you are referring, i have pvt.ads on my site ( not Google Adsense)...who bans these ads??

I have for example 6 banners all at " banner location 0", below navbar .....banner 1-3 are big, so no problem, but banner 4,5,6 are very small rectangle banner ads...is there any way to make appear banner 4,5,6 side by side...order should be like this on page refresh

1=>2=>3=> 4,5,6 small ads together....so it means 6 ads in 4 batches

I tried it like described in rbs pdf instructions where they gave example with Full banner side by side , but when i load page, 2 banners are appearing randomly like 1,6 2,5, 3,6 etc, so do u have any suggestion on this...

Thanks for other suggestions and for giving opinion on my previous work

For side by side change banner 4 to this:

Code:

<table align="center"><tr><td>Put what you have currently in Banner 4 here</td><td>Put what you have currently in Banner 5 here</td><td>Put what you have currently in Banner 6 here</td></tr></table>
If you want spacing between the banners add this code between each banner code above:
Code:

<td style="width: 20px;">&nbsp;<td>
Adjust "20" to any spacing width you would like.

You can then delete Banners 5 & 6.


All times are GMT. The time now is 11:48 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.03630 seconds
  • Memory Usage 1,793KB
  • 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
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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