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 |
#32
|
|||
|
|||
I just installed the version 3 todaysevents.php and all is well again.
So I don't know if I inadvertantly did something to cause it to break between Saturday and Sunday or if the new version was the fix! But it's working fine. I'm still trying to figure out how to get it to display in either the header template or at the top of the forumhome one. The header file is real tempting -- I hand inserted an announcement in there today, and sort of like it showing up at the top of every page. deb |
#33
|
||||
|
||||
Wow - I didn't even notice there was a version 3, or version 2 for that matter!
I'm off to install version 3 to see if that fixes the problem. Yep - version 3 fix the problem. However I just noticed something weird. When I use the 'bulleted list, it uses the calendar event font color. But when I use linear, it uses some a green color which I don't have in that style. Linear also adds a comma at the end of the list. |
#34
|
||||
|
||||
I see what happened now. The template codes in the first message picked up this forums calendar colors rather than { calpubliccolor } and { calprivatecolor }.
|
#35
|
|||
|
|||
yea, i just used the default calendar template, and then made my own for the linear listing ...
if you want them to use your own colors, just make your own template and edit the todaysevents.php file... |
#36
|
||||
|
||||
[QUOTE]Originally posted by mister
yea, i just used the default calendar template, and then made my own for the linear listing ... |
#37
|
|||
|
|||
ahh.... ill fix that.
|
#38
|
|||
|
|||
Nice hack... what would I change to do events for this week, or events for this month?
Thanks |
#39
|
|||
|
|||
mess with the where clause of the sql query, and possibly $today.
|
#40
|
|||
|
|||
Thanks, this hack is just what I have been looking for! Its great
|
#41
|
|||
|
|||
Anyone notice that the private event color is the same as the public event color even when you've changed them to be totally different colors? Change the public color, the private color follows... I just installed this yesterday, so I assume I have the latest version. Thanks!
|
#42
|
|||
|
|||
Yea.. i think i copied/pasted code, and forgot to change a word when doing a gettemplate()
I'll put a new version online tonight when I get home. It'll have 2 little fixes. |
#43
|
|||
|
|||
Quote:
|
#44
|
|||
|
|||
new release .. verison 4 -- check the first post for the attached zip
easy upgrade for v2&3 users, just upload the new todaysevents.php |
#45
|
|||
|
|||
version 4
|
#46
|
||||
|
||||
Thanks for Hack the code ! Very useful !
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|