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)

Dark_Wizard 02-15-2003 09:55 AM

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.

lifesourcerec 02-15-2003 10:54 AM

TIGHT! setup :)

Keep me posted.

Dark_Wizard 02-15-2003 12:16 PM

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.

lifesourcerec 02-15-2003 11:57 PM

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.

Dark_Wizard 02-16-2003 12:32 PM

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.

lifesourcerec 02-16-2003 02:23 PM

Ok, got them working great. Now trying to figure out how to make the today's events to say "NONE".

Dark_Wizard 02-16-2003 06:17 PM

Quote:

Originally posted by lifesourcerec
Ok, got them working great. Now trying to figure out how to make the today's events to say "NONE".
Follow the coding that I did in upcoming events...it is very easy...

lifesourcerec 02-17-2003 01:54 AM

Quote:

Originally posted by Dark_Wizard


Follow the coding that I did in upcoming events...it is very easy...

I added this:

PHP Code:

if ($DB_site->num_rows($events)>0) {
      (
start addition$noevents "No Events Today";
       
$todaysevents .="<smallfont color=\"{ calpubliccolor}\">$noevents</smallfont></a></li>\n";
     } else {(
end addition)
        while (
$event=$DB_site->fetch_array($events)) { 

But still doesn't work.

matthew tucker 02-17-2003 04:30 AM

a wee typo there I think darkwizard in install.txt:

[code]<b>Upcoming events:</b></normalfont><?td></tr>[code]

change the ? to a /

also lifesourcerec, I found that changing the code a bit in todaysevent.php thusly at about line 27:

PHP Code:

    if ($DB_site->num_rows($events) < 1) {
        
        } else {
        
$todaysevents "Upcoming events: <br/>";
        while (
$event=$DB_site->fetch_array($events)) { 

means that if there are no events, nothing at all is displayed.

For a really minimal text result, I also removed all the <table> code around "$todaysevents" in forum home template, removed the <li> tags in the templates and terminated each line with <br/> so the result ends up as

Upcoming events:
2003-02-17: test event
2003-02-18: The ASE Animation night - Melbourne
2003-02-21: another test event

Good hack Dark_Wiz, much better than my own original version; now to get it working in vbhome(lite)!!

lifesourcerec 02-17-2003 08:08 AM

Quote:

Originally posted by matthew tucker
a wee typo there I think darkwizard in install.txt:

[code]<b>Upcoming events:</b></normalfont><?td></tr>[code]

change the ? to a /

also lifesourcerec, I found that changing the code a bit in todaysevent.php thusly at about line 27:

PHP Code:

    if ($DB_site->num_rows($events) < 1) {
        
        } else {
        
$todaysevents "Upcoming events: <br/>";
        while (
$event=$DB_site->fetch_array($events)) { 

means that if there are no events, nothing at all is displayed.

For a really minimal text result, I also removed all the <table> code around "$todaysevents" in forum home template, removed the <li> tags in the templates and terminated each line with <br/> so the result ends up as

Upcoming events:
2003-02-17: test event
2003-02-18: The ASE Animation night - Melbourne
2003-02-21: another test event

Good hack Dark_Wiz, much better than my own original version; now to get it working in vbhome(lite)!!

I got both installed but today's events still using "bullet" instead of linear. I removed the <li> also. Still get that same thing.


All times are GMT. The time now is 06:29 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.01318 seconds
  • Memory Usage 1,757KB
  • 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_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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