Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
[release] Today's Calendar Events on forumhome Details »»
[release] Today's Calendar Events on forumhome
Version: 1.00, by filburt1 filburt1 is offline
Developer Last Online: May 2007 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 11-01-2002 Last Update: Never Installs: 3
 
No support by the author.

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.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 11-14-2002, 07:14 PM
imported_DMC imported_DMC is offline
 
Join Date: Oct 2002
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Um... I looked at the includephp and I'm lost.. I'll need your advise when you get the chance... Appreciate it.
Reply With Quote
  #13  
Old 11-24-2002, 12:20 AM
LightBringer's Avatar
LightBringer LightBringer is offline
 
Join Date: Oct 2001
Posts: 138
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there anyway to add this to the USERCP above the buddy list as well?
Reply With Quote
  #14  
Old 11-24-2002, 12:23 AM
filburt1 filburt1 is offline
 
Join Date: Feb 2002
Location: Maryland, US
Posts: 6,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #15  
Old 11-24-2002, 12:26 AM
LightBringer's Avatar
LightBringer LightBringer is offline
 
Join Date: Oct 2001
Posts: 138
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

TY Filburt! Worked like a champ
Reply With Quote
  #16  
Old 12-05-2002, 01:44 AM
stark427's Avatar
stark427 stark427 is offline
 
Join Date: Aug 2002
Posts: 147
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...
Reply With Quote
  #17  
Old 01-03-2003, 12:30 PM
Andross01 Andross01 is offline
 
Join Date: Nov 2002
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Added. Works fine. Just what i was looking for. Thanks a lot
Reply With Quote
  #18  
Old 01-11-2003, 03:58 PM
SilverDawn SilverDawn is offline
 
Join Date: Jul 2002
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #19  
Old 01-24-2004, 09:24 PM
:Judge:'s Avatar
:Judge: :Judge: is offline
 
Join Date: Jan 2003
Location: USA ~ MD
Posts: 230
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks!

I put it to use.
Reply With Quote
  #20  
Old 04-06-2006, 02:02 AM
Jeordie015 Jeordie015 is offline
 
Join Date: Nov 2002
Location: Illinois, USA
Posts: 125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:58 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04714 seconds
  • Memory Usage 2,298KB
  • Queries Executed 24 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete