The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
When inside the admin control panel and selecting edit
under styles you can change color options! Under Calendar colors I would like to add another entry to this say for a chat event and be able to select different colors for this. Can this be done? If so how please |
#2
|
|||
|
|||
You'd have to hack admin/style.php then, or you can just add a replacement variable for it directly through the replacement system.
|
#3
|
||||
|
||||
PHP Code:
|
#4
|
|||
|
|||
Being a hack, we can't really support any code changes. Especially since the style editor wasn't designed to handle custom replacements it seems. Hence I suggest adding the replacements directly through the replacement system.
|
#5
|
||||
|
||||
I think I might have to do something different. What I am doing is adding chat events to the calendar. I have made 2 templates calendar_chatevent and calendar_chateventbutton and I am in the process of modifing calendar.php so I'm hoping someway the styles.php change could work it would make life easier.
|
#6
|
||||
|
||||
Ed, I got style addition working. I not only
had to add line above to style.php but I also had to add variable called {chatcolor} once I did this it worked the way it should. I have another problem now with calendar.php file. I added the following code and I get a error on line 189 below. Can you tell me what I am doing wrong? PHP Code:
========================== This is what it was ========================== PHP Code:
|
#7
|
||||
|
||||
Change the } to a { (on line 189)
|
#8
|
||||
|
||||
I did I will try again I got the same error when I changed it the other way.
|
#9
|
||||
|
||||
I changed it got the same error.
Parse error: parse error, expecting `'('' in /home/realweb/public_html/forums/calendar.php on line 189 |
#10
|
||||
|
||||
Well you also have elseif with nothing following it so change that to else or put some equality in there. i.e. elseif (1 == 1 )
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|