vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=5)
-   -   Styles displayed by day of the week (beta testing) (https://vborg.vbsupport.ru/showthread.php?t=50429)

Brad 03-18-2003 10:00 PM

Styles displayed by day of the week (beta testing)
 
Ok, i just finished this bit of code up, havent even tested it due to some computer tourble :cry:

What dose this do?

With this hack installed it is possible to set a certain style to display a certain day.

For example:

Sunday ='s style id 1
Monday ='s style id 2
.....
Saturday ='s style id 7

If you still dont get it, dont install this hack (well wait for the final ;) )

This hack also adds new options to the vBulletin options page of the admin cp. These options are:

Allow users to use custom style?
Turn style by day of the week on/off
Set the style id for sunday/monday/tuesday/etc.

Remember, THIS IS A UNTESTED BETA!, make sure you back up! :)

happy hacking, and if you lick the install button make sure you clean it off ;)

dstruct2k 03-19-2003 04:57 AM

:laugh: Nice idea for a hack, would work well if I had enough styles! :D

Dean C 03-19-2003 11:53 AM

Awesome idea Loo :)

- miSt

Sweet Cheeks 03-19-2003 06:03 PM

Awesome idea :D

Brad 03-19-2003 06:31 PM

Beta 2 will be released sometime tonight. Beta 2 will have a nice admin cp interface (styles listed in drop down), use the vbdate function insted of the php date function, and attempt to base the style on the users time offset/start of the week. Insted of relaying on the server time.

Also a few edits to member.php will be added, basicly they will remove the option to pick a style when 'allow users to use custom styles' is truned off.

Brad 03-19-2003 06:32 PM

BTW, thanks all. has anyone tested this as of yet?. if so how did it go for you? :0


All times are GMT. The time now is 07:32 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.00975 seconds
  • Memory Usage 1,715KB
  • 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
  • (6)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