vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=139)
-   -   [release] Today's Calendar Events on forumhome (https://vborg.vbsupport.ru/showthread.php?t=85175)

filburt1 11-01-2002 10:00 PM

[release] Today's Calendar Events on forumhome
 
Author: filburt1
Description: Displays the current day's calendar events, both public and private (provided the current user isn't a guest, of course) on forumhome.
Demo: None, unless somebody wants to provide one...?
Screenshot: http://www.vbulletintemplates.com/mo...=&postid=14497

This adds one query to forumhome.

filburt1 11-02-2002 02:56 PM

Screenshot:

Buddha 11-02-2002 03:52 PM

gonna try this.
how do i change it to include all events for the week?
oh and if possible, not display the birthdays?

filburt1 11-02-2002 03:54 PM

It won't show the birthdays already.

You have to modify the end date variable (i.e., the one constructed with PHP's date() function)...although off-hand I don't know how.

Buddha 11-02-2002 04:04 PM

k.
thanks for the info.

imported_TMG1 11-02-2002 08:40 PM

just what im looking for!! GOOD JOB

imported_Junior 11-11-2002 04:32 AM

nice

imported_DMC 11-14-2002 03:54 PM

Filburt1,
Is there anyway to put the calendar events for Tomorrow just below todays and get rid of the private events??

So a user always sees Todays and tomorrows ????

filburt1 11-14-2002 05:33 PM

Yes but I can't post how ATM. It should be reasonably simple: modify the query to change the date and remove references to private events.

imported_DMC 11-14-2002 07:10 PM

I'll try to figure it... Not sure its possible however... (Me figuring it out) :)

imported_DMC 11-14-2002 07:14 PM

Um... I looked at the includephp and I'm lost.. I'll need your advise when you get the chance... Appreciate it.

LightBringer 11-24-2002 12:20 AM

Is there anyway to add this to the USERCP above the buddy list as well? :)

filburt1 11-24-2002 12:23 AM

Change:
Code:

if (strpos($_SERVER['PHP_SELF'], 'index.php') != false)
to
Code:

if (strpos($_SERVER['PHP_SELF'], 'index.php') != false ||
    strpos($_SERVER['PHP_SELF'], 'usercp.php') != false)

Then just add the block of code to wherever you want it.

LightBringer 11-24-2002 12:26 AM

TY Filburt! Worked like a champ :)

stark427 12-05-2002 01:44 AM

Filburt.
nice mod.

at the attached screenshot you can see the online users panel I've got at my forums.

I would like to use the nice mod of yours but in a way that the public event will show up only if one exists on the calendar.
The event will appear on a cell right underneath the Birthday cell, and when there is no event, then the "events" cell will not be shown... in other words the event bit will function exactly as the birthday one...

so, at the screenshot u see there will be the same table but now with 3 cells:

- online users info (as it is now)
- Birthday info (as it is now - and dissapearing when no birthdays are in the calendar)
- Public events (functioning as the birthdays)

could this be done?

I would love it if you could help me on this... :)

Andross01 01-03-2003 12:30 PM

Added. Works fine. Just what i was looking for. Thanks a lot :)

SilverDawn 01-11-2003 03:58 PM

Filburt,

I loved the mod, but I wanted it integrated into ~tril0Byte's welcome panel forum hack so I changed the welcome panel a little. I still added the php coding into the phpinclude like you said, but I changed the welcome panel table w/ the following (which is located in forumhome template):

Quote:

<table cellpadding="0" cellspacing="0" border="0"

bgcolor="#6597D9" width="100%"

align="center">
<tr>
<td>
<table cellpadding="4" cellspacing="1"

border="0" width="100%">
<tr id="cat">
<td bgcolor=""#90B9F1" background="images/cat_bg.gif"" colspan="6"><normalfont

color="#FFFFFF"><b>Welcome</b></normalfont></td>
</tr>
<tr>
<td bgcolor="#F9F9F9" align="center" valign="top"

width="100">$avatarimage</td>
<td bgcolor="#FFFFFF"> <smallfont> $unregwelcomemessage

$welcometext<br>
The time now is $timenow.<br>
You last visited: $bbuserinfo[lastvisitdate].<br>
<b>$newposts</b> </smallfont> </td>
<td bgcolor="#F9F9F9" align="center" valign="middle"

width="300">
$logincode </td>
</tr>
<tr>
<td bgcolor=""#90B9F1" background="images/cat_bg.gif"" colspan="6"><normalfont color="#FFFFFF"><div align="left"><normalfont color="#FFFFFF"><b>Today's Events</b></normalfont></div></td>
</tr>
<tr valign="top">
<td colspan="2" align="center" bgcolor="#F9F9F9"> <div align="left">
<p><smallfont><b>Public Events:</b> $publicevents<br>
<b>Private Events:</b> $privateevents</normalfont></p>
</div></td>
<td bgcolor="#F9F9F9" align="center"><smallfont color="#000000"><a href="calendar.php?s=$session[sessionhash]">Calendar</a>
| <a href="calendar.php?s=$session[sessionhash]&action=add&type=public">New
Public Event</a> | <a href="calendar.php?s=$session[sessionhash]&action=add&type=private">New
Private Event</a></smallfont></td></tr>
</table>
<!-- /welcomepanel -->
The red is your modified code. It looks pretty good. I just wanted you to know that I modified it a little.

GREAT JOB AND TY! :)
You can see a demo at: http://www.dfrsquad.com/forums

:Judge: 01-24-2004 09:24 PM

Thanks!

I put it to use.

Jeordie015 04-06-2006 02:02 AM

I realize this hack is old, so I don't know if that's sort of the answer to my problem, but I'm not finding a phpinclude template. Where is it?


All times are GMT. The time now is 04:44 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.01176 seconds
  • Memory Usage 1,753KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (19)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete