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)

ForKmaN 08-11-2002 01:52 AM

make it popup!! :D

Hubsi 08-12-2002 09:42 PM

how can i make it that it shows the events when there is no birthday on that day?

Smirks 09-30-2002 03:38 PM

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.

Hubsi 10-03-2002 07:09 PM

????

push :D

Dark_Wizard 11-05-2002 11:34 AM

Quote:

Originally posted by Hubsi
????

push :D

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.

Smirks 11-05-2002 03:50 PM

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!

lifesourcerec 01-15-2003 07:28 AM

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:
http://www.famspace.com/pics/screen1.jpg

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:
http://www.famspace.com/pics/screen2.jpg

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

kyrnel 01-15-2003 12:50 PM

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.

matthew tucker 01-31-2003 08:36 PM

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?

lifesourcerec 02-15-2003 06:24 AM

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?

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.

lifesourcerec 02-17-2003 08:23 AM

For some reason, it's listing the first event twice (run in together).

Quote:

* 2003 Topps Heritage (bsb)2003 Topps Heritage (bsb)

Dark_Wizard 02-17-2003 04:40 PM

Ok...I made some changes and have them both working on my forum home, Todays Events and Upcoming Events...I will post a seperate thread for this hack later today after I document it.

lifesourcerec 02-17-2003 08:01 PM

Quote:

Originally posted by Dark_Wizard
Ok...I made some changes and have them both working on my forum home, Todays Events and Upcoming Events...I will post a seperate thread for this hack later today after I document it.
Ok. Thanks. I got the upcoming events working great. It's just now the Today's Event is messed up now.

Dark_Wizard 02-18-2003 12:43 PM

Quote:

Originally posted by lifesourcerec


Ok. Thanks. I got the upcoming events working great. It's just now the Today's Event is messed up now.

I uploaded the new update...you can find it here.

lifesourcerec 02-18-2003 01:15 PM

The no Events works, but from some reason, it still shows double
such as:

testtest

Dark_Wizard 02-18-2003 02:09 PM

Quote:

Originally posted by lifesourcerec
The no Events works, but from some reason, it still shows double
such as:

testtest

Are you using the html I sent?

lifesourcerec 02-18-2003 11:28 PM

Quote:

Originally posted by Dark_Wizard


Are you using the html I sent?

No. Just using the "$todaysevents" variable. Had an empty space on the site where I inserted it. I'll try to figure a way around it. Main page crowded, so I'm compacting a lot of stuff.

Dark_Wizard 02-21-2003 11:12 AM

I see you fixed it...I have made some changes to it as well and you can see it on my page...

lifesourcerec 02-22-2003 05:54 AM

It's not fixed. Still prints it twice whenever there is an event.

lifesourcerec 02-25-2003 12:11 AM

I just re-installed it and there is no space or commons to separate each event.

[SKR]Abe 03-31-2003 12:26 PM

Im using VB version 2.2.something.

Can someone put together a real "simple" guide for me on how to install this.

I want the next 7 days events listed in bullet format.

Remember, really simple - Im completely new to this lark. (I have dabbled in Admin CP)

MACHOBY 04-01-2003 01:29 AM

I am not too familiar with hacking and coding but would like to add this hack. I opened the todaysevents.php but don't know how to comment or uncomment. Could someone paste the linear version here?

Also, I opened forumhome_loggedinusers template but cannot find $birthdaybits</smallfont></td>

here is mine:
<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 help would be very appreciated!

MACHOBY 04-04-2003 07:54 PM

Is there any way to put this hack on my index.htm page?

dawn 04-17-2003 10:32 PM

Ive no idea whats going on with my process. It shows nothing.

Im using vb 2.3

Ive looked for $showbirthdays or $$displayloggin at index.php and there were not there.

I tried to install all the updated hacks and nothing.

any idea how to install it?

dawn 04-21-2003 10:29 PM

Help!!!

please... I've followed same instruction, did some changes and nothing.

vb 2.3

dawn 05-02-2003 01:00 AM

I fixed it, but now when I have events in todays events it makes it double, such as eventevent

It's fixed too. My problem was to have at index.php the require(/todaysevents) double, one at the top then the other one below to $displayloggedin.

Im done.

RetroDreams 08-17-2003 05:30 AM

How can you modify this so that the $eventdate can be in a different format like M-D-Y?


All times are GMT. The time now is 04:19 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.01623 seconds
  • Memory Usage 1,842KB
  • 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
  • (9)bbcode_php_printable
  • (16)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (37)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