vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Style Change Self-Timer (https://vborg.vbsupport.ru/showthread.php?t=148845)

alawee.blawee 06-04-2007 12:03 AM

Style Change Self-Timer
 
hi guys

how are ya all?

I wanted to design 2 styles one of them can express day and the other expresses night

is there any hack can make the style auto change itself after x hours to another one?

plz help me guys!!!

inciarco 01-27-2008 01:28 PM

Yerterday I also had this same need; I have two Styles and need to switch them in the Default Style of the vBulletin Options (vBulletin Options -> Style & Language Settings -> Default Style), (for all Visitiors), every x Hour (at x1 hour of night change to Style 1 and at x2 hour of day change to Style 2).

I know it requires two Cron PHP Files (one to each change of Style), and to Set Two Scheduled Tasks for each Change of Style at a determinate hour of the day, each day.

Has anybody developed this Code??

If so, could you please Upload the PHP File to have it as reference to Custom it for my need?? :confused:

Or perhaps Copy/Paste the Code of the PHP File for me to Create it?? :confused:

I appreciate that Very Much!! :up:

My Best Regards!! ;)

:)

--------------- Added [DATE]1201459027[/DATE] at [TIME]1201459027[/TIME] ---------------

I Share With You the Link to a Thread that Solves This Need!! :up:

Assign Style based on Viewer's Time of Day

Inside the Winzip File there's a 3.5 and a 3.6 Version of the Mod.

I tried it on vB 3.6.7 PL1 and works OK!! :up:

My Best Regards!! ;)

:)


All times are GMT. The time now is 09:02 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.01065 seconds
  • Memory Usage 1,711KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete