vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Birthday/Calendar modification (https://vborg.vbsupport.ru/showthread.php?t=10823)

Me2Be 03-08-2001 06:23 PM

I'd like to modify the calendar so when you go to calendar.php and click on the link that says "Birthdays (12)", it adds more info. This will make it much easier for our Birthday Club to send greetings!

Instead of:
Me2Be (xx), Me2U (xx), etc...

I'd like it to say:
Me2Be (xx): send pm (link to send PM)
Me2U (xx): send pm
etc...

03-09-2001 12:37 AM

Aargh... I've got to go to bed now, I'll write this for you in the morning if no one else already has :)

03-09-2001 12:45 AM

Come to think of it, this doesn't even need a hack... just replace your calendar_birthday template with this:
Code:

<smallfont><b>
<a href="member.php?s=$session[sessionhash]&action=getinfo&userid=$bd_userid">$bd_user's birthday</a>
<a href="private.php?s=$session[sessionhash]&action=newmessage&userid=$bd_userid">PM</a>
$age</smallfont></b><br>

and replace your calendar_showbirthdays template with this:
Code:

<b><a href="member.php?s=$session[sessionhash]&action=getinfo&userid=$bd_userid"><normalfont color="{calbirthdaycolor}">$bd_user</normalfont></a>
<b><a href="private.php?s=$session[sessionhash]&action=newmessage&userid=$bd_userid"><normalfont color="{calbirthdaycolor}">PM</normalfont></a>
<normalfont color="{calbirthdaycolor}">$age</smallfont></b>&nbsp;

:)

03-09-2001 03:58 PM

thanks again! :D


All times are GMT. The time now is 07:01 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.01118 seconds
  • Memory Usage 1,710KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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