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)

sysmom 06-25-2001 07:40 PM

Oh, I already gushed over this in my requests thread, but let me gush here, too!

Thank you!

My only question before I try this is ...

If I don't have birthdays enabled, will it still work?

-deb

P.S. Thank you so much. I'm in awe.

*gush*

mister 06-25-2001 07:42 PM

it wont show up if you have 'show logged in users' off.

(i didnt feel liek going all out and having a separate config option...so i put it in with the 'show logged in users' option)

sysmom 06-25-2001 10:00 PM

Mister:

You had great instructions, the installation went perfect, and it's now working at our new board.

I may play around with the placement on the main page -- I'll let you know if I can't figure that out.

The only other thing I'd could possibly ask for it to do is flag a reminder for an event tomorrow.

Thanks so much, this is GREAT!!

Kudos!

Props!

Wild Cheering!

-deb

Steve Machol 06-26-2001 03:54 AM

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!

rockergrrl 06-26-2001 04:09 AM

I think I love you! ;)

I've been waiting for this... the girls on my board have been asking for this for a while...

Now I'm off to set it up.... :)

mister 06-26-2001 12:24 PM

Quote:

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...

janw 06-26-2001 12:57 PM

Great hack! Installed it right away... :)

sysmom 06-29-2001 11:57 AM

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

mister 06-29-2001 12:46 PM

hmm.

theres an event scheduled for today, right?

sysmom 06-29-2001 01:05 PM

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

I feel real dumb.

-deb


All times are GMT. The time now is 01:49 AM.

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.01100 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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