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)

kyrnel 01-17-2002 12:34 PM

Quote:

Originally posted by SirSteve
What about showing a weeks worth of "Upcoming Events" ?
All you have to do is modify the SQL command I posted earlier replacing 14 with 7 as the number of days to display upcoming events. The problem still remains that the Upcoming events does not include birthdays becasue they are stored in a separate table than the other calendar events.

SirSteve 01-17-2002 12:41 PM

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?

tripps 01-17-2002 11:44 PM

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

kyrnel 01-18-2002 03:00 AM

what i posted was on 2.2.1 but my templates are highly modified so you are on your own there..

Steve Machol 01-18-2002 03:16 AM

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

PhotoGenie 01-18-2002 04:17 PM

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

kyrnel 01-18-2002 07:33 PM

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.

PhotoGenie 01-18-2002 08:10 PM

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

Shenlong 01-19-2002 12:47 AM

Quote:

3) edit the 'forumhome_loggedinusers' template
I dont have that thing in my forumhome_loggedinusers, heres what my template reads:

PHP 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

Any suggestions?

PhotoGenie 01-19-2002 04:58 AM

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


All times are GMT. The time now is 10:50 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.01172 seconds
  • Memory Usage 1,750KB
  • 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_php_printable
  • (2)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