Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
[RELEASE v2] Today's Events on Main Forum Page Details »»
[RELEASE v2] Today's Events on Main Forum Page
Mod Version: 1.00, by mister (Coder) mister is offline
Developer Last Online: Dec 2011 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 2.2.x Rating: (4 votes - 4.50 average) Installs: 72
Released: 25 Jun 2001 Last Update: Never Downloads: 1
Not Supported  

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

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

calendar_privateevent_linear

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

3) edit todaysevents.php to either show bulleted or linear events (comment or uncomment the corresponding eval statement)
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:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

add this:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

3) edit the 'forumhome_loggedinusers' template
change this:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


to this:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

4) 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

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

calendar_privateevent_linear

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

5) edit todaysevents.php to either show bulleted or linear events (comment or uncomment the corresponding eval statement, and the line near the end doing the substr)

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)
http://www.vbulletin.org/forum/showt...943#post141943

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
[release] Today's Calendar Events on forumhome filburt1 vBulletin 2.x Template Modifications 18 06 Apr 2006 03:02

  #16  
Old 26 Jun 2001, 13:24
mister mister is offline
 
Join Date: Oct 2001
Originally posted by smachol
Worked great! The only thing is that I tried to add $todaysevents to my forumhome_pmloggedin template but it doesn't show. The reason I did this is because I have the Private Messages box at the top of the forum page and would like to have Today's Events there as well. I don't really want the Currently Active Users at the top of the page though.

If you're still bored, could you tell me how to do this?

Oh and one other thing - I noticed that the event for today stopped displaying when the server's time went past midnite. It looks like this isn't tied into the users time like $birthdaybits is. (Today's birthday still displayed.)

Thanks again!

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...
__________________
Brandon Martus

http://www.pubarso.com/
http://www.listen-to.com/
Reply With Quote
  #17  
Old 26 Jun 2001, 13:57
janw
Guest
 
Great hack! Installed it right away...
Reply With Quote
  #18  
Old 29 Jun 2001, 12:57
sysmom sysmom is offline
 
Join Date: Oct 2001
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
Reply With Quote
  #19  
Old 29 Jun 2001, 13:46
mister mister is offline
 
Join Date: Oct 2001
hmm.

theres an event scheduled for today, right?
__________________
Brandon Martus

http://www.pubarso.com/
http://www.listen-to.com/
Reply With Quote
  #20  
Old 29 Jun 2001, 14:05
sysmom sysmom is offline
 
Join Date: Oct 2001
Arrow

Yup, I put a test event in today. When I revert the files, it shows up fine.

I feel real dumb.

-deb
Reply With Quote
  #21  
Old 29 Jun 2001, 22:56
Steve Machol's Avatar
Steve Machol Steve Machol is offline
 
Join Date: Nov 2001
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
This worked perfectly - thanks!

One other slight thing - how can I change the font color to match the standard text color rather than the calendar text?

On second thoguht - that's not a big deal. I'll just change the calendar colors.
__________________
Steve Machol, vBulletin Moderator

Please do not email or PM me for vBulletin support. I will try to answer all questions on the vB Forums. Thank you for respecting this request!
Reply With Quote
  #22  
Old 30 Jun 2001, 08:44
mister mister is offline
 
Join Date: Oct 2001
Originally posted by smachol


This worked perfectly - thanks!

One other slight thing - how can I change the font color to match the standard text color rather than the calendar text?

On second thoguht - that's not a big deal. I'll just change the calendar colors.
you could make your own templates, instead of using the default calendar ones ... i just used those becuase they were there
__________________
Brandon Martus

http://www.pubarso.com/
http://www.listen-to.com/
Reply With Quote
  #23  
Old 30 Jun 2001, 16:22
Steve Machol's Avatar
Steve Machol Steve Machol is offline
 
Join Date: Nov 2001
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.
__________________
Steve Machol, vBulletin Moderator

Please do not email or PM me for vBulletin support. I will try to answer all questions on the vB Forums. Thank you for respecting this request!
Reply With Quote
  #24  
Old 01 Jul 2001, 20:05
Steve Machol's Avatar
Steve Machol Steve Machol is offline
 
Join Date: Nov 2001
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?
__________________
Steve Machol, vBulletin Moderator

Please do not email or PM me for vBulletin support. I will try to answer all questions on the vB Forums. Thank you for respecting this request!
Reply With Quote
  #25  
Old 01 Jul 2001, 23:46
boatdesign's Avatar
boatdesign boatdesign is offline
 
Join Date: Nov 2001
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.
Reply With Quote
  #26  
Old 02 Jul 2001, 00:41
sysmom sysmom is offline
 
Join Date: Oct 2001
Ouch, my Today's events aren't working with the new month, either.
Reply With Quote
  #27  
Old 02 Jul 2001, 02:25
Steve Machol's Avatar
Steve Machol Steve Machol is offline
 
Join Date: Nov 2001
Originally posted by SysMom
Ouch, my Today's events aren't working with the new month, either.
That confirms it. If it's happening to both of us it must be a bug.

Can you take a look at this mister? Thanks!
__________________
Steve Machol, vBulletin Moderator

Please do not email or PM me for vBulletin support. I will try to answer all questions on the vB Forums. Thank you for respecting this request!
Reply With Quote
  #28  
Old 02 Jul 2001, 03:35
mister mister is offline
 
Join Date: Oct 2001
yea, ill take a look at it..

EDIT: works fine for me.. got a url i can look at?
__________________
Brandon Martus

http://www.pubarso.com/
http://www.listen-to.com/
Reply With Quote
  #29  
Old 02 Jul 2001, 17:17
sysmom sysmom is offline
 
Join Date: Oct 2001
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
Reply With Quote
  #30  
Old 02 Jul 2001, 17:36
Steve Machol's Avatar
Steve Machol Steve Machol is offline
 
Join Date: Nov 2001
Originally posted by mister
yea, ill take a look at it..

EDIT: works fine for me.. got a url i can look at?
My URL is in my sig. I entered another test event for today and it still doesn't show up. In my case, I moved the Today's Events to under the Private Messaging box. It worked fine until July 1st.
__________________
Steve Machol, vBulletin Moderator

Please do not email or PM me for vBulletin support. I will try to answer all questions on the vB Forums. Thank you for respecting this request!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 13:13.

Layout Options | Width: Wide Color: