Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by mister mister is offline
Developer Last Online: May 2015 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 06-24-2001 Last Update: Never Installs: 72
 
No support by the author.

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:
<a href="calendar.php?s=$session[sessionhash]&action=getinfo&eventid=$eventid"><smallfont color="{calpubliccolor }">$eventsubject</smallfont></a>, 
calendar_privateevent_linear
PHP Code:
<a href="calendar.php?s=$session[sessionhash]&action=getinfo&eventid=$eventid"><smallfont color="{calprivatecolor }">$eventsubject</smallfont></a>, 
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:

PHP Code:
if ($displayloggedin) { 
add this:

PHP Code:
require('./todaysevents.php'); 
3) edit the 'forumhome_loggedinusers' template
change this:
PHP Code:
$birthdaybits</smallfont></td

to this:
PHP Code:
$birthdaybits
$todaysevents
</smallfont></td
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
PHP Code:
<a href="calendar.php?s=$session[sessionhash]&action=getinfo&eventid=$eventid"><smallfont color="{calpubliccolor }">$eventsubject</smallfont></a>, 
calendar_privateevent_linear
PHP Code:
<a href="calendar.php?s=$session[sessionhash]&action=getinfo&eventid=$eventid"><smallfont color="{calprivatecolor }">$eventsubject</smallfont></a>, 
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)
https://vborg.vbsupport.ru/showthrea...943#post141943

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #122  
Old 08-11-2002, 01:52 AM
ForKmaN's Avatar
ForKmaN ForKmaN is offline
 
Join Date: Jan 2002
Location: Australia
Posts: 119
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

make it popup!!
Reply With Quote
  #123  
Old 08-12-2002, 09:42 PM
Hubsi Hubsi is offline
 
Join Date: Mar 2002
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how can i make it that it shows the events when there is no birthday on that day?
Reply With Quote
  #124  
Old 09-30-2002, 03:38 PM
Smirks Smirks is offline
 
Join Date: Sep 2002
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Hubsi
how can i make it that it shows the events when there is no birthday on that day?
Yes. I have that problem too...

I only get events displayed if there is a birthday on the same day. How can I get it to show events independant of b-days?

Thanks.
Reply With Quote
  #125  
Old 10-03-2002, 07:09 PM
Hubsi Hubsi is offline
 
Join Date: Mar 2002
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

????

push
Reply With Quote
  #126  
Old 11-05-2002, 11:34 AM
Dark_Wizard Dark_Wizard is offline
 
Join Date: Nov 2001
Location: North Carolina
Posts: 1,251
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Hubsi
????

push
Very simple...

Place this:
PHP Code:
require('./todaysevents.php'); 
After this:
PHP Code:
require('./global.php'); 
Instead of where the instructions said.

I'm going to make some changes to this script if anyone is interested...I will be adding the following:
  • * List upcoming events instead of just today's events.
    * List the date with the event as well.
Reply With Quote
  #127  
Old 11-05-2002, 03:50 PM
Smirks Smirks is offline
 
Join Date: Sep 2002
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Dark_Wizard


Very simple...

Place this:
PHP Code:
require('./todaysevents.php'); 
After this:
PHP Code:
require('./global.php'); 
Instead of where the instructions said.

I'm going to make some changes to this script if anyone is interested...I will be adding the following:
  • * List upcoming events instead of just today's events.
    * List the date with the event as well.
That didn't work. I still had the same bahavior as before.

Please keep me (us) posted on when the changes will be available! Thanks!
Reply With Quote
  #128  
Old 01-15-2003, 07:28 AM
lifesourcerec's Avatar
lifesourcerec lifesourcerec is offline
 
Join Date: Jan 2002
Posts: 429
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by kyrnel


I still havent figured out how to incorporate birthdays into upcoming events. Even though they show up on the calendar, they are not stored in the same place as calendar events.

The rest of it works fine though.
Here are a couple of screenshots and instructions for my modified version of the hack:

This is what happen when there are no upcoming events:


This is what happens when there are, notice that I can only show todays birthdays and it is separate from the events. I want to combine them:


I don't want to post instructions until I have finished this hack. I am still planning on incorporating Birthdays into the upcoming events and putting two options in the user control panel: One to select yes/no whether to display upcoming events at all, another to select how far into the future they want events displayed (1week, 2 weeks, 1 month). Once I have those things finished I will post instructions..
I am looking for Today's event & Upcoming Events online, so if you don't figure out the incorporating birthday thing, please post the upcoming event hack .
Reply With Quote
  #129  
Old 01-15-2003, 12:50 PM
kyrnel's Avatar
kyrnel kyrnel is offline
 
Join Date: Nov 2001
Location: Houston, TX
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The only thing keeping this from happening is that a SQL UNION query needs to be created to combine the Events from the Calendar with the Birthdays from the User Profiles. I have tried this but I keep running into a syntax issue that keeps it from working. I have not found anyone who will help.
Reply With Quote
  #130  
Old 01-31-2003, 08:36 PM
matthew tucker's Avatar
matthew tucker matthew tucker is offline
 
Join Date: Nov 2002
Location: Sydney, Australia
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'd love to install this hack but ... maybe I'm blind but I can't figure out where to get [todaysevents.php] from this thread. It doesn't appear to be linked in first post ... do I have to create a new file myself?
Reply With Quote
  #131  
Old 02-15-2003, 06:24 AM
lifesourcerec's Avatar
lifesourcerec lifesourcerec is offline
 
Join Date: Jan 2002
Posts: 429
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Dark_Wizard


Very simple...

Place this:
PHP Code:
require('./todaysevents.php'); 
After this:
PHP Code:
require('./global.php'); 
Instead of where the instructions said.

I'm going to make some changes to this script if anyone is interested...I will be adding the following:
  • * List upcoming events instead of just today's events.
    * List the date with the event as well.
Any luck on upcoming events?
Reply With Quote
  #132  
Old 02-15-2003, 09:55 AM
Dark_Wizard Dark_Wizard is offline
 
Join Date: Nov 2001
Location: North Carolina
Posts: 1,251
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by lifesourcerec


Any luck on upcoming events?
Actually yes...it is done and I have to document the changes...you can see it here.
Reply With Quote
  #133  
Old 02-15-2003, 10:54 AM
lifesourcerec's Avatar
lifesourcerec lifesourcerec is offline
 
Join Date: Jan 2002
Posts: 429
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

TIGHT! setup

Keep me posted.
Reply With Quote
  #134  
Old 02-15-2003, 12:16 PM
Dark_Wizard Dark_Wizard is offline
 
Join Date: Nov 2001
Location: North Carolina
Posts: 1,251
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here it is...enjoy!

/edit..
Updated this to work with Today's Events and removed the event for the current day from the upcoming events. Fixed 1 minor bug.
Reply With Quote
  #135  
Old 02-15-2003, 11:57 PM
lifesourcerec's Avatar
lifesourcerec lifesourcerec is offline
 
Join Date: Jan 2002
Posts: 429
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How can I have both at same time. It's doing both linear and bulleting. Looks like this:

Quote:

Upcoming events:
2002-2003 Fleer Platnium (Bsb)2002-2003 Fleer Platnium (Bsb), 2003 Topps Heritage (bsb), Chat Night (7pm central time), Chat Night (7pm central time), 2002-2003 Fleer Focus Jersey edition (Bsk), 2003 Upper Deck Play Ball (bsb), Chat Night (7pm central time), 2003 Upper Deck Victory (bsb)
No break between Today's event and upcoming events and list today twice.
Reply With Quote
  #136  
Old 02-16-2003, 12:32 PM
Dark_Wizard Dark_Wizard is offline
 
Join Date: Nov 2001
Location: North Carolina
Posts: 1,251
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by lifesourcerec
How can I have both at same time. It's doing both linear and bulleting. Looks like this:



No break between Today's event and upcoming events and list today twice.
I don't see anything bulleted so you lost me there...I only see it wrapping. As for seperating todays events from the upcoming events, the easiest way would be to rename the file I sent to upcomingevents.php and create a seperate section for it in the forumhome template and add the include to the index.php file, create new templates for it and modify the code to eval the new templates and then use the original todays events in it's own section.
Reply With Quote
Reply


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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:16 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05456 seconds
  • Memory Usage 2,390KB
  • Queries Executed 30 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (14)bbcode_php
  • (8)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (16)post_thanks_box
  • (16)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (16)post_thanks_postbit_info
  • (15)postbit
  • (16)postbit_onlinestatus
  • (16)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete