View Full Version : Today Birthdays
rabah
12-30-2005, 12:40 PM
I need to add (Today Birthdays) Bar to the home page. does anyone know how to?
Thx in advance!
natio :: phpFox
01-01-2006, 01:46 PM
Hello,
phpfox had a birthday section before but it was stripped out cause it has it now in the events section but if you want it in the main page, this is the old code from the "/inc/html/html_home.php"
Content visible to registered users only.
tightplace
06-20-2006, 11:09 AM
what about for v1.0.8?
Prishan
06-20-2006, 12:24 PM
Where should we place this code so tht B'days will appear on the home page?
doan866
06-20-2006, 01:45 PM
Which file and where on version 1.08????????????????????
trippyvibes
06-20-2006, 03:18 PM
yeah..how can we put this in v1.09
Ron Schnarr
06-22-2006, 05:58 PM
For 1.09:
Open ../index.php find on line 54:
Content visible to registered users only.
after that add:
Content visible to registered users only.
then find on line 211:
Content visible to registered users only.
after that add:
Content visible to registered users only.
The open ../inc/template/new/index_member.tpl and find on line 55:
Content visible to registered users only.
after that add:
Content visible to registered users only.
Prishan
06-22-2006, 06:51 PM
Once again.. an AMAZING MOD!!! Ron, you are awesome!!
Just have couple of suggestions;
1. Today's Birthday images are centrally aligned. If they are left aligned, it will match with the rest of the images.
2. If we can have a column of Birthday's this month, under Random Polls, it will fill up the space. Having all the B'days in the main page, extends the page and looks heavy. We can have only Date, Member's name, Age in this column, similar to the one in Calender.
Is it possible?
worldwidegreeks
06-22-2006, 08:02 PM
Is it possible to get this for 1.08 also?
Ron Schnarr
06-22-2006, 08:23 PM
Content visible to registered users only.
(Edit:I put these changes and more into my original post)
1. To change the alignment of Today's Birthdays:
In ../index.php find on line 174:
Content visible to registered users only.
replace that with:
Content visible to registered users only.
To get rid of the user image in birthdays this month find on line 93:
Content visible to registered users only.
replace that with:
Content visible to registered users only.
Ron Schnarr
06-22-2006, 08:27 PM
Content visible to registered users only.
It should work in 1.0.8 as well.
clenard
06-22-2006, 09:11 PM
Good stuff Ron! Can't check it, unfortunately, but glad another Mod has been created by yourself and Drew (although Drew's post is old).
This should be moved to the Mod Section.
:)
doan866
06-23-2006, 07:14 AM
UNDER BIRTHDAY MONTH
The only problem I have is that the NEXT PAGE button doesn't go anywhere it just refreshes. Also when clicking on diff page numbers (1 | 2 | 3 | 4 | 5 | 6 [ >>] ) it just refreshes also. I followed this mod twice and still got same results. Anyone?
Ron Schnarr
06-23-2006, 03:11 PM
Content visible to registered users only.
Oh yah, the page thing is pointing to the wrong page
In ../index.php find
Content visible to registered users only.
and replace 'default.php' with 'index.php'
then find this statement and do the same:
Content visible to registered users only.
Vineet
06-23-2006, 03:31 PM
great job again ron, you really are great & helping others is really nice abt u. Thanks again dude
worldwidegreeks
06-23-2006, 03:33 PM
Ron is kicking some ass! Good job! Thanks for all the help!
Vineet
06-23-2006, 03:34 PM
Content visible to registered users only.
Even i was looking for sumthng like that i tried but i guess made some silly mistakes & ended up with a lil mess so removed it. Like it if you help us out :)
Ron Schnarr
06-23-2006, 04:56 PM
Honestly, yah, I just removed the whole months thing from my own page. It's seems a little too big and unnecessary for the home page.
This is what I have right now. It gets rid of the user's name beside their picture in 'Birthdays Today'. And has their age and on or offline status below their picture.
If anyone wants it just replace what you had before in ../index.php with:
Content visible to registered users only.
also if you want to get rid of months, just go into ../inc/template/new/index_member.tpl and replace what you put in before with:
Content visible to registered users only.
Quinttin
07-20-2006, 09:13 AM
Can jou put a picture also with His birthday ?:teeth:
Dejavous
07-20-2006, 09:45 AM
Hi guys...all my birthdays appear 1 year older than they actually are...does anybody else have this problem?
Ron Schnarr
07-20-2006, 10:53 AM
Content visible to registered users only.
Ya, go into ../index.php and find:
Content visible to registered users only.
and get rid of the +1 in that line like so:
Content visible to registered users only.
Dejavous
07-24-2006, 09:17 PM
Great, thank you Ron!
Cheers,
Deja.
parviz
09-25-2006, 03:10 PM
do it work with 1.1?
nickthrolson
09-25-2006, 07:05 PM
ya it works with 1.1 bro
BiGBaD
09-25-2006, 08:35 PM
I couldn't find the correct place to insert it in 1.01...
nickthrolson
09-26-2006, 03:18 AM
hmm if u need help i would be glad to help u out bro pm me
digital_sc4rz
09-26-2006, 07:49 AM
Where does this part go on the index.php for 1.1 ??? Thanx in advance
Content visible to registered users only.
butters
09-26-2006, 08:29 AM
yeah i have 1.1 too
nickthrolson
09-26-2006, 08:52 AM
its goes under
<!-- show_gallery_END --!>
BiGBaD
09-26-2006, 10:00 PM
ok, I got the Birthday's today and Birthdays this month frame to show up on 1.1. The problem is when I add in: $SHOW_LINKS[4] = "2";
$Days_In_Month = date("t");
$Current_Year = date("Y");
$Current_Month = date("m");
$Current_Month_Name = date("F");
$Current_Day = date("d");
$Current_Day_S = date("dS");
$Current_Day_Name = date("l");
$newday = "";
$TOTALG_a = 12;
$NUM1_a = "";
if (isset($_GET['PID'])) $NUM1_a = $_GET['PID'];
$nextarray_a = nextpage("index.php",$NUM1_a,$TOTALG_a,"view=birthdays&month=true#month","user","","$W `month` = '$Current_Month'",9,"");
list($num_a,$TOTAL_a,$PAGEPANEL_a,$VIEW1_a,$VIEW2_ a) = $nextarray_a;
$a = $SQL("$SL * $FR `user` $W `month` = '$Current_Month' ORDER BY `user` DESC LIMIT $num_a,$TOTALG_a");
$total_month = $NR($a);
$birth_month = '';
if ($TOTAL_a == 0)
{
$birth_month .= '<div style="padding:15px;font-size:10pt;" class="color">No birthdays this month</div>
';
}
else
{
$birth_month .= '
Viewing '.$VIEW1_a.' - '.$VIEW2_a.' out of '.$TOTAL_a.' birthdays this month
'.$PAGEPANEL_a.'
';
$birth_month .= '<table style="width:100%;"><tr>';
$bcount_a = 0;
while ($b = $FA($a))
{
$bcount_a++;
$tr_a = "";
if ($bcount_a == '4' || $bcount_a == '8' || $bcount_a == '12') $tr_a = "\n</tr><tr>";
$birth_month .= '<td style="text-align:left;font-size:8pt;">'."\n";
$birth_month .= '<table style="width:100%;" cellspacing="0">'."\n";
$birth_month .= '<tr>'."\n";
$birth_month .= ''.ulink($b['user']).' ('.(bday($b['day'],$b['month'],$b['year'])).')';
$birth_month .= '</tr>'."\n";
$birth_month .= '</table>'."\n";
$birth_month .= '</td>'."\n";
$birth_month .= ''.$tr_a.''."\n";
}
$birth_month .= "<td>\n</td>\n</tr>\n</table>";
}
################################################## #########
$TOTALG = 12;
$NUM1 = "";
if (isset($_GET['PID']) && (!isset($_GET['month']))) $NUM1 = $_GET['PID'];
$nextarray = nextpage("default.php",$NUM1,$TOTALG,"view=birthdays&day=$newday#c1","user","","$W `month` = '$Current_Month' AND `day` = '$Current_Day'",9,"");
list($num,$TOTAL,$PAGEPANEL,$VIEW1,$VIEW2) = $nextarray;
$c = $SQL("$SL * $FR `user` $W `month` = '$Current_Month' AND `day` = '$Current_Day' $OB `user` LIMIT $num,$TOTALG");
$birth_today = '
';
if ($TOTAL == 0)
{
$birth_today .= '<div style="padding:15px;font-size:10pt;" class="color">No birthdays today</div>
';
}
else
{
$birth_today .= '
Viewing '.$VIEW1.' - '.$VIEW2.' out of '.$TOTAL.' birthdays today
'.$PAGEPANEL.'
';
$birth_today .= '<table style="width:100%;"><tr>';
$bcount = 0;
while ($d = $FA($c))
{
$bcount++;
$tr = "";
if ($bcount == '4' || $bcount == '8' || $bcount == '12') $tr = "\n</tr><tr>";
$birth_today .= '<td>'."\n";
$birth_today .= '<table style="width:100%;" cellspacing="10">'."\n";
$birth_today .= '<tr>'."\n";
$birth_today .= '<td style="text-align:left;font-size:8pt;">'."\n";
$birth_today .= ''.ulink($d['user']).' ('.(bday($d['day'],$d['month'],$d['year'])).')';
$birth_today .= '
'."\n";
$birth_today .= ''.uimage($d['user'],"60","","").''."\n";
$birth_today .= '
'."\n";
$birth_today .= '</td>'."\n";
$birth_today .= '</tr>'."\n";
$birth_today .= '</table>'."\n";
$birth_today .= '</td>'."\n";
$birth_today .= ''.$tr.''."\n";
}
$birth_today .= "<td>\n</td>\n</tr>\n</table>";
} It just basicly prints all this out. Again this is in the index_member template file. In index.php file, I added the two varibles, but there is no matching (If file exists or anything....)
youblab.com
10-01-2006, 11:24 PM
Do you mean the the index.php file in the root directory?
nickthrolson
10-01-2006, 11:41 PM
ya the index.php in root
nickthrolson
10-01-2006, 11:48 PM
can u guys update this for 1.1 it dosent work with 1.1 cause when i was using it lol it would always make my index page randomly only load half way sometimes
djema
10-01-2006, 11:55 PM
Yeah, i read this forum on how to do this but there a mix of instructions everywhere, Can it be posted once for 1.1 the right way of doing it...
JBU2010
10-12-2006, 09:32 AM
Sounds good. *bump* Any instructions for 1.1?
Boricua
10-12-2006, 09:44 PM
Yes Please, any update on 1.1?
vBulletin® v3.6.10, Copyright ©2000-2009, Jelsoft Enterprises Ltd.