The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Details »» | |||||||||||||||||||||||||
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 }) 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 Show Your Support
|
Comments |
#17
|
|||
|
|||
Quote:
forumhome_pmloggedin is evaluated before the $todaysevents in the hack code is. that may have something to do with it. if you want the $todaysevents to show up there, move the require('./todaysevents.php'); up before the pm stuff in index.php and yes, i should fix the time problem. didn't even think about that. next version... |
#18
|
|||
|
|||
Great hack! Installed it right away...
|
#19
|
|||
|
|||
Not content with perfection ...
I tried to move this display into the header template. I've failed. Here's what I did: 1. I moved the require statement in index.php up to the top, just under the: require('./global.php'); 2. I changed the $todaysevents in todaysevents.php to add some HTML for a boxed in announcement. 3. I added $todayseventsClose to todaysevents.php to close up said HTML, I added it right under the $todaysevents line 4. I modified the header template to add $todaysevents $todayseventsClose just after the last TD of the basic template. What did I miss? I get no errors. But I don't get an event either. -deb |
#20
|
|||
|
|||
hmm.
theres an event scheduled for today, right? |
#21
|
|||
|
|||
Yup, I put a test event in today. When I revert the files, it shows up fine.
I feel real dumb. -deb |
#22
|
||||
|
||||
[QUOTE]Originally posted by mister
if you want the $todaysevents to show up there, move the require('./todaysevents.php'); up before the pm stuff in index.php |
#23
|
|||
|
|||
Quote:
|
#24
|
||||
|
||||
Yeah I just changed the calendar colors for all my style sets. It was something I needed to do anyway. The default Calendar colors weren't compatible with some of my styles.
|
#25
|
||||
|
||||
With the start of a new month, Today's Event suddenly stopped working. Nothing is showing up anymore even though there are two events on my Calendar. I haven't made any changes at all.
Any idea what could be wrong? |
#26
|
||||
|
||||
Would it be possible to show "This Week's Events" instead of "Today's Events"? Probably all in one group still (not by day) to save space.
|
#27
|
|||
|
|||
Ouch, my Today's events aren't working with the new month, either.
|
#28
|
||||
|
||||
[QUOTE]Originally posted by SysMom
Ouch, my Today's events aren't working with the new month, either. |
#29
|
|||
|
|||
yea, ill take a look at it..
EDIT: works fine for me.. got a url i can look at? |
#30
|
|||
|
|||
Mister:
I'm sorry, the board isn't available to the public. Otherwise, I'd LOVE for you to look at the thing. I'll go back and double check everything. deb |
#31
|
||||
|
||||
[QUOTE]Originally posted by mister
yea, ill take a look at it.. EDIT: works fine for me.. got a url i can look at? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|