The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
[QUOTE]Originally posted by Dave#
Ed Can you explain the session hash thing please? Should the href be different than calendar.php?s=$session[sessionhash] ? |
#12
|
||||
|
||||
Very cool! Thank you, thank you!
One question, I want to include the event date on my homepage, but when I use $event['eventdate'] I get the date in the format 2001-08-24. How would I either: 1.) Change it from 2001-08-24 to 08-24-2001 or 2.) What I really want to do is to not show the year on my homepage, displaying just 08-24 for the event instead of 2001-08-24. Thanks again! |
#13
|
||||
|
||||
Use this query:
Code:
SELECT DATE_FORMAT(eventdate,'%m-%d') AS eventdate, eventid, subject FROM calendar_events WHERE public = 1 AND eventdate >= NOW() ORDER BY eventdate LIMIT 5 |
#14
|
||||
|
||||
Thanks again.
Now it's in the format I want (just Month-date wihtout a year to shorten it) but this messes up the sorting. I have one event entered in Feb 2002, and if I leave off the year according to your instructions it is now showing up at the top of the list (2-06 (of 2002) is now coming before 8-15) Any ideas on how to fix the sorting and still leave off the year from the displayed list? For that matter, would it be possible to use some kind of array (?) to convert 01 to Jan, 02 to Feb, 03 to Mar, etc... so the date would display as Aug 15 for example? Thanks again for the original mod which is already fantastic! |
#15
|
||||
|
||||
PHP Code:
|
#16
|
||||
|
||||
This is a great hack :-) OK, not to sound dumb, but where exactly do I use this? I am new to PHP so this is a great learning experience!
Do I add the code above to the todaysevents.php file? I'd like to place the events on the top of my VB as a reminder of deadlines for my students. My class homepage (http://www.collegeteacher.org) is set up with SSI. Can I call the script through SSI to include on the homepage as well? I know that converting the whole site to PHP is probably the right answer, but that will have to wait till next semester. School starts tomorrow! Thanks for your help |
#17
|
||||
|
||||
What I did was to create a new php file called showevents.php with just the code above.
Then on my SSI pages, I include an include statement like: <!--#include virtual="/forums/showevents.php"--> And it works like a charm! |
#18
|
|||
|
|||
how could i call calander events for a specific user?
|
#19
|
||||
|
||||
An interesting side effect I just noticed is that a visitor to any of the pages on which you've included the list of upcoming events now shows up in the online.php section and counts as a visitor on the forum homepage...
|
#20
|
|||
|
|||
please please please help me with my question ive been asking it for days
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|