The Arcive of vBulletin Modifications Site. |
|
Details »»
|
|||||||||||||||||||||||||
Ok i want on the main page of the forums juste below :
Welcome to our new...... Happy Birthday to "thename" where when i click on "thename" i go to a page where i can send him a private message... Can someone have that? Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
This wouldn't be hard to do...just look at the template "calendar_birthday" and see how the birthday is called then edit forumhome to include the info.
|
|
#3
|
|||
|
|||
|
Ok i will try and send you the instructions after
|
|
#4
|
|||
|
|||
|
Quote:
|
|
#5
|
|||
|
|||
|
I'll look at it later today...
|
|
#6
|
|||
|
|||
|
ok!thx
|
|
#7
|
|||
|
|||
|
PeF helping me dark
Release:Tonight |
|
#8
|
|||
|
|||
|
When you guys make this hack, do you think it would be possible to make it so you can display it on a non vb page also? Would be very nice to show this on news page as well
|
|
#9
|
|||
|
|||
|
Quote:
|
|
#10
|
|||
|
|||
|
I've just cobbled this together for forums/index.php.
1) Open index.php and under the line that starts $templatesused='error_nopermission you need to add this: Code:
$templateused.=',calendar_birthday'; Code:
$today = vbdate("m-d",time());
$birthdays = $DB_site->query("SELECT * FROM user WHERE birthday LIKE('%-$today')");
while ($birthday = $DB_site->fetch_array($birthdays)) {
$bd_user = $birthday[username];
$bd_userid = $birthday[userid];
$datebits = explode("-", $birthday[birthday]);
$bdage = date("Y") - $datebits[0];
if ($bdage > 0) $age = "($bdage)";
else $age = "";
eval ("\$todaybirthdays .= \"".gettemplate("calendar_birthday")."\";");
}
Using this hack will add one extra query to the main forums page (as you can see). |
![]() |
|
|