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 |
#47
|
|||
|
|||
how would one make the events be pulled from this week or even this month?
|
#48
|
|||
|
|||
mess with the where clause of the sql query, and possibly $today.
|
#49
|
|||
|
|||
Quote:
mmm PHP Code:
|
#50
|
|||
|
|||
check out calendar.php
you'll need to do something like this PHP Code:
this hack is for the event of the day, and im pretty busy, or else i'd help further... sorry |
#51
|
|||
|
|||
Quote:
Dave |
#52
|
|||
|
|||
just a gentle bump
|
#53
|
|||
|
|||
I tried to install this with no success.
When i try to access my forum I get an error on line 79 of my index.php file. What did i do wrong? |
#54
|
|||
|
|||
paste line 79 of your code into a reply, and we'll see whats happening....
|
#55
|
|||
|
|||
Here's line 69....
PHP Code:
PHP Code:
|
#56
|
|||
|
|||
can you also paste the error
(and did you mean line 69 or 79?) |
#57
|
|||
|
|||
It was line 79......and darn it if i didnt save the error message. And i dont want to interrupt my users now.
Lets see if i can remember it. I think it was something like, "there is a parse error on line 79 of index.php" |
#58
|
|||
|
|||
ok well
you pasted line 69... i'd need to see line 79 if the error was on line 79 all you have to do to index.php is after this: PHP Code:
PHP Code:
my guess is either you mistyped that, or there was a problem copy/pasting it. also, make sure that todaysevents.php is in the same directory as index.php (the main vbulletin dir) |
#59
|
|||
|
|||
Im still pretty sure i posted line 79. *confused*
Thanks. I'll try that tonight when the board isnt busy. |
#60
|
|||
|
|||
Quote:
|
#61
|
|||
|
|||
D'oh.....sorry, twas a typo
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|