PDA

View Full Version : Styles defined by day of the week


Brad
04-25-2003, 10:00 PM
Hack Name: Styles defined by day of the week
By: Anime-loo

This hack allows you to set witch style will be displayed based on the day of the week.

For example:

Sundays global style id would = 1
Mondays global style id would = 2

The style id's do not have to be in order, each days style id can be set via the vBulletin options page.

You can also disable the users ability to use a custom picked style via the new options added.

MindTrix
04-26-2003, 02:22 PM
Nice :) I would use it but the styles on my board dont work properly :( people change it but it dont change lol

Nice hack tho im sure alot of people would use it

Xyphen
04-26-2003, 04:55 PM
wow good useful hack.. i'll try it out.

hayl
04-26-2003, 09:46 PM
nice idea

Sweet Cheeks
04-26-2003, 10:05 PM
very cool :cool:

gerlando
04-28-2003, 05:20 PM
Just what I was looking for. Thanks.

Razor
04-28-2003, 05:26 PM
Interesting idea. I'd find it a little annoying, though ;)

gerlando
04-28-2003, 07:46 PM
Today at 07:26 PM Razor said this in Post #7 (https://vborg.vbsupport.ru/showthread.php?postid=388512#post388512)
Interesting idea. I'd find it a little annoying, though ;)

Keep in mind you don't have use a completely different style each day. Wired.com has the same design, but varies color schemes by day.

007
05-05-2003, 04:44 PM
Hey does this hack change the style for all members on each day of the week? Or just the style for guests??? I don't think members would like it if they couldn't stay with the style they chose.

007
05-05-2003, 05:33 PM
Ok I installed it but I get this problem:

Parse error: parse error in /home/www/xxxxxxx/forums/global.php on line 490

Fatal error: Call to undefined function: dynamic_a() in /home/www/xxxxxxx/forums/index.php on line 13

I had to change the settinggroupid from 105 to 420 (for some reason it defaulted to 105 and didn't show the settings) but I still cant get the page to load with the edits done to global.php??? Any ideas? I am running 2.2.9. Does this not work with that?

One thing was that you forgot the "!" before one of the if options, and it was also confusing trying to follow your "{" and "}"'s. I think they may be off. Is this the exact code you used yourself????? It works fine if I hardcode it without the variables that can be set from the admin cp, but I would like it to work how it is meant to work... Any ideas?

007
05-08-2003, 08:20 PM
Any ideas? *bump*

Brad
05-08-2003, 10:07 PM
What is that dynamic_a function begin called for?. As for the parse error, post lines 480 - 500 of your global.php and ill see what may be causing the error.

As for the hack itself, I used and tested this code on localhost with 2.3.0, I see no reason why it wouldent work on any version of 2.2.0 +. Hell it may work on 2.0.0 but I dont have that code infront of me ;).

007
05-09-2003, 12:38 AM
The dynamic_a is something completely different, but it hasn't caused any problems with any other hacke before.

It's the Dynamic Announcements hack with variables if that helps, but I don't see why that should effect this at all.

Brad
05-09-2003, 01:06 AM
I doupt that aswell, just thought id check, the error is probbly begin thrown from the pase error in global.php anyway.

Like i said, give me lines and I can help you ;)

007
05-12-2003, 07:19 PM
What lines??

007
01-31-2004, 01:39 AM
Hey can this be modified so when users register, their style is automatically set to the style from the current day? Right now all new users end up using the default style.