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 |
#102
|
|||
|
|||
what do you put in the todaysevent.phpfile?
|
#103
|
|||
|
|||
Quote:
And where is that If/Then statement to change for "None" ? |
#104
|
|||
|
|||
In your instructions you say: Edit template forumhome_loggedinusers from $birthdaybits to $birthdaybits then $todaysevents then the smallfont and end tag for the cell.
This is how my 'vB 2.2.2' ORIGINAL template looks like: Code:
<tr id="cat"> <td bgcolor="{categorybackcolor}" colspan="6"><a href="online.php?s=$session[sessionhash]"><normalfont color="{categoryfontcolor}"><b>Currently Active Users</b></normalfont></a><normalfont color="{categoryfontcolor}"><b>: $totalonline</b></normalfont></td> </tr> <tr> <td bgcolor="{firstaltcolor}" colspan="6"><smallfont> <nobr>There are currently $numberregistered members and $numberguest guests on the boards.</nobr> | <nobr>Most users ever online was $recordusers on $recorddate at $recordtime.</nobr><br> $activeusers</smallfont></td> </tr> I fixed this by going to that template and just add $todaysevents right below $activeusers and then edited the todaysevents.php file by replacing the original line with: Code:
$todaysevents = "<tr><td bgcolor='{firstaltcolor} colspan='6'><smallfont>Today's Events: "; If either a birthday isn't there, or no event, an empty table screwup will appear with a single line that looks like an empty cell. |
#105
|
||||
|
||||
Is there a way to put this on a non VB page, where it actually lists the events? Say on the index page of a website ( in our case we use an index.php page etc )?
|
#106
|
||||
|
||||
reat hack just installed, thanks.
|
#107
|
||||
|
||||
This is wonderful, and your instructions were great. Thank you!
Jennie |
#108
|
||||
|
||||
If anyone else is having the problem where birthdays and events on the same day conflict and cause events to move to the top, what worked for me was to move $todaysevents before $birthdaybits (I have these in my forumhome).
http://www.after-darkness.com |
#109
|
|||
|
|||
Is it possible to have the events show up on NON VB pages ?
I want the upcoming events to show up on my web sites main page. Thanks, this it really a great hack ! |
#110
|
|||
|
|||
Anyone having problems with 2.2.4? I ca not get mine to show up and everything is correct. I get this error,
Fatal error: Call to undefined function: vbdate() in /home/sites/20ishparents.com/web/boards/todaysevents.php on line 19 |
#111
|
||||
|
||||
I've used this successfully on every version from 2.0.3 to 2.2.5. Never had a problem.
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|