vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Assign Style based on Viewer's Time of Day (https://vborg.vbsupport.ru/showthread.php?t=121392)

kall 07-16-2006 10:00 PM

Assign Style based on Viewer's Time of Day
 
Force Style based on Viewer's Time of Day

Description
Requested by Solace-City here, this Modification allows you to assign a specific Style for Users, based on their Timezone.

It will display the 'Day Style' between the hours you specify, and the 'Day Style' in all other times.

You can turn it on and off, assign Style IDs and choose the time to display the Night Style from the AdminCP - Style and Language Settings page.

Details
1 Product XML (1 Plugin, 5 Settings)

(If you Downloaded this prior to the timestamp on this edit, Uninstall the Product and start anew with the attached file in the .zip).

kall 07-17-2006 09:59 AM

And lets just reserve the first post, for no reason whatsover.

Azhrialilu 07-17-2006 10:24 AM

oh now, that's a novel idea.... nice one, Kall :D

kall 07-17-2006 10:25 AM

Solace-City came up with the concept... I just cobbled together the code. :)

Solace-City 07-17-2006 10:26 AM

Woow! Thanks man! This is awesome. I've got vBulletin 3.6.0 RC1, so I'll test away to see if it works with that version.

Trialing it on solace-city.com/forum/

kall 07-17-2006 10:28 AM

No problemo at all!

Just doing my bit to foster closer Australo-Kiwi relations. ;)

Solace-City 07-17-2006 10:37 AM

Darn, the options do not show when installed for 3.6.0 RC1 :(

Perhaps someone else with this vB version could test it to see if it is the version of vBulletin, or a conflicting hack that is installed?

kall 07-17-2006 10:45 AM

You're quite right.. they didn't come out with the xml.. let me try again.

kall 07-17-2006 10:53 AM

OK.. try it now.

Seems I had to set 'Allow overwrite' in the Settings. Bit of a silly title for a setting, but there you go. :)

Solace-City 07-17-2006 11:03 AM

Ok, its showing up under the options now! :)

Although, when viewing as a guest I still see the daytime skin. Does the "Allow Users To Change Styles" have to be enabled for this plugin to function?

The way we work with styles at the moment is control them all through the admincp (eg change it for a special event or whatnot) so if we were to enable users to select a skin they wish, they would not see the special skin.

Nevertheless, thank you for all your work, and time you put in.

EDIT: OOPS!! My mistake I feel dumb. I had the Start/Stop figures around the wrong way... Thanks for this wonderful hack!


All times are GMT. The time now is 11:21 PM.

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.01181 seconds
  • Memory Usage 1,729KB
  • 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)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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