![]() |
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: http://www.pubarso.com/misc/todaysevents.gif Linear: http://www.pubarso.com/misc/todaysevents_linear.gif 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 }) calendar_publicevent_linear PHP Code:
PHP Code:
4) done First Time Installation: 0) backup everything, just in case 1) upload todaysevents.php to your main vbulletin directory 2) edit index.php after this: PHP Code:
PHP Code:
change this: PHP Code:
to this: PHP Code:
(NOTE: there is an important space after the comma at the end, and an extra space in {calpubliccolor } and {calprivatecolor }) calendar_publicevent_linear PHP Code:
PHP Code:
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 this one is fixed, fyi (its at the bottom somewhere) https://vborg.vbsupport.ru/showthrea...943#post141943 |
demo??
cool hack |
Nice concept, and I am sure a good hack also :)
@ Balbanes: what do you need a demo for? There is a screenshot and description showing that it lists todays events in the calendar in a similar fashion to online users/birthdays. |
i just added the screenshot after he requested it :)
|
Looks interesting I might have to try this out! :)
thanks! |
Thank you so much for making this hack!!! I was using a piece of code from Wajones' vbportal a while back, but couldn't get it to work after upgrading to 2.0.0 (I'm now on 2.01) I'm still learning PHP, so I'm sure it was a user error on my part!
Thanks so much! TigerLily:) |
Question: Is there a way to remove the bullet and have the event on the same line as "Today's Events"? I use mine at the top of my forums, and would love to save as much space as possible.
Thanks again! TigerLily:) |
Yea.
I just did this real quicky, and used the same template used in the calendar. I may change this for v2.0 just because it will save alot of space. |
Thanks Brandon! This is just what I've been looking for.
One question: I assume the 'private' events will only show for the owner of that event, correct? |
that is correct.
private events show only to their owner |
All times are GMT. The time now is 12:11 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|