vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   [RELEASE v2] Today's Events on Main Forum Page (https://vborg.vbsupport.ru/showthread.php?t=21232)

azork 01-20-2002 10:15 PM

what do you put in the todaysevent.phpfile?

SirSteve 01-21-2002 02:24 AM

Quote:

Originally posted by kyrnel

I modified the hack to display events for the next two weeks by modifying the SQL query to this:
Code:

SELECT eventid, subject, eventdate, public
FROM calendar_events
WHERE (eventdate >= '$today' AND eventdate <= DATE_ADD('$today', INTERVAL 14 DAY)) AND ((userid = '$bbuserinfo[userid]') OR (public = 1))
ORDER BY eventdate

I also modified the hack to display "None" if there are no events found. You just have to add an 'else' clause to the If/Then statement.

How is the "Upcoming Weeks" part pulled in? By the same $todaysevents ?

And where is that If/Then statement to change for "None" ?

Floris 02-03-2002 05:03 PM

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>

And after $activeusers it doesn't say $birthdaybits .. so that template is wrong!


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: ";
So instead of that <hr> It now gets displayed in its own cell, why is this needed?

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.

rishel 02-20-2002 06:20 PM

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

mondaynightmike 03-02-2002 12:43 PM

reat hack just installed, thanks.

tanster 03-09-2002 10:49 PM

This is wonderful, and your instructions were great. Thank you!

:) Jennie

Sadie Frost 04-02-2002 12:48 PM

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

syion 04-02-2002 08:40 PM

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 !

amsch 04-10-2002 06:10 PM

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

Steve Machol 04-10-2002 06:32 PM

I've used this successfully on every version from 2.0.3 to 2.2.5. Never had a problem.


All times are GMT. The time now is 06:46 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01401 seconds
  • Memory Usage 1,739KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete