Version: , by mister
Developer Last Online: May 2015
Version: 2.2.x
Rating:
Released: 06-24-2001
Last Update: Never
Installs: 72
No support by the author.
my first hack, enjoy...
Today's Events on Main Forum Page Hack Version: 4
Description:
Lists today's events on the main page, under the Online Users & Birthdays (both public, and private events).
*Version 2 adds the ability to list either bulleted or linear
*Version 3 uses the users timezone adjusted date, rather than the servers date
*Version 4 fixes a type-o on line 47ish, and adds one bit of instruction if using the bulleted list, rather than linear
Files to Add: todaysevents.php Files to Edit: index.php Templates to Edit: forumhome_loggedinusers Templates to Add: calendar_privateevent_linear, calendar_publicevent_linear Demo:
Bulleted:
Linear:
upgrade from version 2:
0) backup necessary files
1) upload new todaysevents.php
2) done
upgrade from version 2:
0) backup necessary files
1) upload new todaysevents.php
2) done
upgrade from version 1:
0) backup necessary files
1) upload new todaysevents.php
2) add 2 templates
(NOTE: there is an important space after the comma at the end, and an extra space in {calpubliccolor } and {calprivatecolor })
5) edit todaysevents.php to either show bulleted or linear events (comment or uncomment the corresponding eval statement, and the line near the end doing the substr)
6) All done.
one person downloaded version 4, i didnt test my change, and forgot to comment out a line.
line 10 needs comments for that one person who downloaded the bad version 4
Originally posted by lifesourcerec How can I have both at same time. It's doing both linear and bulleting. Looks like this:
No break between Today's event and upcoming events and list today twice.
I don't see anything bulleted so you lost me there...I only see it wrapping. As for seperating todays events from the upcoming events, the easiest way would be to rename the file I sent to upcomingevents.php and create a seperate section for it in the forumhome template and add the include to the index.php file, create new templates for it and modify the code to eval the new templates and then use the original todays events in it's own section.
means that if there are no events, nothing at all is displayed.
For a really minimal text result, I also removed all the <table> code around "$todaysevents" in forum home template, removed the <li> tags in the templates and terminated each line with <br/> so the result ends up as
Upcoming events:
2003-02-17: test event
2003-02-18: The ASE Animation night - Melbourne
2003-02-21: another test event
Good hack Dark_Wiz, much better than my own original version; now to get it working in vbhome(lite)!!
means that if there are no events, nothing at all is displayed.
For a really minimal text result, I also removed all the <table> code around "$todaysevents" in forum home template, removed the <li> tags in the templates and terminated each line with <br/> so the result ends up as
Upcoming events:
2003-02-17: test event
2003-02-18: The ASE Animation night - Melbourne
2003-02-21: another test event
Good hack Dark_Wiz, much better than my own original version; now to get it working in vbhome(lite)!!
I got both installed but today's events still using "bullet" instead of linear. I removed the <li> also. Still get that same thing.