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 |
#92
|
||||
|
||||
Quote:
|
#93
|
|||
|
|||
Ok, cool. I don't allow birthdays to display publicly anyway so this will work for me!
After looking at it, what is the code that pulls the "upcoming events" in? |
#94
|
|||
|
|||
Anyone have a version of this that works with 2.2.1?
Some of the calendaring code, it seems, was recently changed. Parts of forumhome_loggedinusers have been moved to forumhome_birthdaybit, and the hack no longer works... |
#95
|
||||
|
||||
what i posted was on 2.2.1 but my templates are highly modified so you are on your own there..
|
#96
|
||||
|
||||
[QUOTE]Originally posted by tripps
Anyone have a version of this that works with 2.2.1? Some of the calendaring code, it seems, was recently changed. Parts of forumhome_loggedinusers have been moved to forumhome_birthdaybit, and the hack no longer works... |
#97
|
|||
|
|||
I have everything installed on this hack with one minor problem. I did not have this code in my forumhome_loggedinusers template,
$birthdaybits</smallfont></td> so I put this, $birthdaybits $todaysevents</smallfont></td> under, $activeusers</smallfont> I must have done something wrong because it works ok for events but when there is a birthday and event both together, events goes to the top of my page in a black background. Can anyone tell me where I'm messing up? Looks Great!! Thanks |
#98
|
||||
|
||||
yes, when that happens it is usally becasue you opened a new <tr> flag (table row) without closing it. I modified all my templates to be much more modular. The problem is that some of the templates in vB are designed to be inside a <tr> flag and some have the <tr> flag inside them so when you rearrange the templates you have to make sure the HTML tags are nested properly. I always turn on my Template names in the Admin COntrol Panel/Options and debug my HTML source. That is the only way I can think of to make it work. I cant really post my templates because Im certain they would cause the same problem taken out of context.
|
#99
|
|||
|
|||
Thank you.. I managed to get it fixed with your advice.. :up: They are both showing together and seperate now.. This is really great.. Thanks again
|
#100
|
||||
|
||||
Quote:
PHP Code:
|
#101
|
|||
|
|||
I am no expert, I am just a newbie but this is what I did because when I just inserted in I had an error
In the forumhome_loggedinusers I created another table at the bottom and put the code in it like this <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> </tr> <tr> <td bgcolor="{firstaltcolor}" colspan="6"><smallfont> $birthdaybits $todaysevents</smallfont></td> </tr> then I went into forumhome_birthdaybits and removed it from tables like this.. <bgcolor="{firstaltcolor}" colspan="6"><smallfont> Today's Birthdays: $birthdays</smallfont> Mine works fine and looks right.. |
#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.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|