The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Comments |
#22
|
||||
|
||||
i don't know about that .shtml page thing.
so it doesn't show a link for birthdays right now? mine does... i think. www.macsubculture.com/dev/ |
#23
|
||||
|
||||
9th and 11th on my calendar... but i think those were put in manually by those people. i have birthdays disabled.
|
#24
|
||||
|
||||
I've discovered a problem on my board that was solved after disabling this hack. I'd like someone else to confirm or deny that they have the same problem.
One of my users told me that after saving changes to her profile, her birthday showed up in her edit profile screen as Nov 31, 2001. Now that is an invalid date to begin with. When looking at her profile, it shows up as Dec. 1 (no year). She can go back to her profile and change it, but after saving it, the changes to do not remain, they don't stick. Now if I edit the database directly, the changes there do stick, so I rules out a database problem and determined it had to be a script problem somewhere. The problem went away when I removed the include 'cal.php'; statement from the phpinclude template. |
#25
|
||||
|
||||
Heya!
Yeah they were put in manually, that's why it's triggering the link.. I want it to also trigger the link if their are no events but their ARE birthdays. Well, hopefully someone can help on that one sometime.. Now I gotta figure out how to get this to work on a php include on a .shtml page.. <sigh> Quote:
|
#26
|
||||
|
||||
i can confirm the birthday submit bug. i don't use birthdays though so it doesn't really matter for me.
|
#27
|
|||
|
|||
I'm trying to play around with the small_calendar template, but am not having any luck trying to narrow down the size of the mini-calendar.
I've tried changing the table width, but it still seems to look the same every time. I'm no HTML guru, but any help would be greatly appreciated. Thanks!! |
#28
|
||||
|
||||
i am attempting to add a condition that displays the text "No Events Today" if there are no events on that day. When i added the else to this block of code it worked for showing no events for the day but it had the side effect of only showing a max of one event for the day even if there are more than one. i'm referring to the $todaysevents var. i am not sure of the logic i should use here. any help?
Code:
while ($event=$DB_site->fetch_array($events)) { if ($event[eventdate]==vbdate("Y-m-d",time())) { $eventsubject=htmlspecialchars($event[subject]); $todaysevents=" <li><smallfont><b><a href=\"$bburl/calendar.php?s=$session[sessionhash]&action=getinfo&eventid=$event[eventid]\">$eventsubject</a></b></smallfont></li>"; } else { $todaysevents="<li><smallfont><b>No Events Today</b></smallfont></li>"; } } |
#29
|
||||
|
||||
i also noticed a problem on the evening of Nov 30. it seems that the month rotation is based on the server time without accounting for the user's time offset. but then the linked days are for whatever month it is after taking the time offset into account. so then when you click on days it takes you to the next month instead of the previous month. dunno if this makes sense.
wajones, i think you aren't taking the user's time offset into consideration for all parts of the calendar. ...still didn't get that 'No events today' condition working. |
#30
|
||||
|
||||
i got the 'No Events Today' condition working. instructions for those that want to add this:
find: Code:
while ($event=$DB_site->fetch_array($events)) { if ($event[eventdate]==vbdate("Y-m-d",time())) { $eventsubject=htmlspecialchars($event[subject]); $todaysevents.=" <li><smallfont><b><a href=\"$bburl/calendar.php?s=$session[sessionhash]&action=getinfo&eventid=$event[eventid]\">$eventsubject</a></b></smallfont></li>"; } } Code:
if (!$todaysevents) { $todaysevents="<li><smallfont><b>No Events Today</b></smallfont></li>"; } |
#31
|
|||
|
|||
How do I include this on a non vB .php page ??
I get the following error: Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|