Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons

Reply
 
Thread Tools
Assign Style based on Viewer's Time of Day Details »»
Assign Style based on Viewer's Time of Day
Version: 1.00, by kall kall is offline
Developer Last Online: Aug 2021 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 07-16-2006 Last Update: Never Installs: 20
 
No support by the author.

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).

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 07-17-2006, 09:59 AM
kall's Avatar
kall kall is offline
 
Join Date: Apr 2004
Location: New Zealand
Posts: 2,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

And lets just reserve the first post, for no reason whatsover.
Reply With Quote
  #3  
Old 07-17-2006, 10:24 AM
Azhrialilu's Avatar
Azhrialilu Azhrialilu is offline
 
Join Date: Aug 2003
Location: Stretton, Derbyshire
Posts: 445
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

oh now, that's a novel idea.... nice one, Kall
Reply With Quote
  #4  
Old 07-17-2006, 10:25 AM
kall's Avatar
kall kall is offline
 
Join Date: Apr 2004
Location: New Zealand
Posts: 2,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Solace-City came up with the concept... I just cobbled together the code.
Reply With Quote
  #5  
Old 07-17-2006, 10:26 AM
Solace-City Solace-City is offline
 
Join Date: Jan 2006
Location: Australia
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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/
Reply With Quote
  #6  
Old 07-17-2006, 10:28 AM
kall's Avatar
kall kall is offline
 
Join Date: Apr 2004
Location: New Zealand
Posts: 2,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No problemo at all!

Just doing my bit to foster closer Australo-Kiwi relations.
Reply With Quote
  #7  
Old 07-17-2006, 10:37 AM
Solace-City Solace-City is offline
 
Join Date: Jan 2006
Location: Australia
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #8  
Old 07-17-2006, 10:45 AM
kall's Avatar
kall kall is offline
 
Join Date: Apr 2004
Location: New Zealand
Posts: 2,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You're quite right.. they didn't come out with the xml.. let me try again.
Reply With Quote
  #9  
Old 07-17-2006, 10:53 AM
kall's Avatar
kall kall is offline
 
Join Date: Apr 2004
Location: New Zealand
Posts: 2,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #10  
Old 07-17-2006, 11:03 AM
Solace-City Solace-City is offline
 
Join Date: Jan 2006
Location: Australia
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:22 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05289 seconds
  • Memory Usage 2,284KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete