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)

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 01:08 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.03657 seconds
  • Memory Usage 1,756KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_php_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (6)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