View Full Version : Show Birthday Icon in Postbit
Andreas
06-06-2005, 10:00 PM
Description
This hack adds a small icon in the postbit if the user has a birthday.
Details
Files to modify: 0
Templates to modify: 1
Difficulty: Easy
History
1.0.0
Initial Version for vBulletin 3.5.0 Beta 1
1.0.1
Removed Debug-Code ;)
1.0.2
Now phrased and packaged as Product
1.0.3
Fixed Timezone Issue, Fixed logical expression glitch
1.0.4
Updated for RC3, does take care of User selection for Birthday Privacy
Please only click Install if you actually have installed/are using this Hack, and click Uninstall whan you don't use it any longer!
mOdEtWo
06-09-2005, 11:01 PM
Very nice, I've been using this one on the 3.0.x forum for a long time :)
Allan
06-09-2005, 11:04 PM
screen please :)
Andreas
06-09-2005, 11:07 PM
It's only the standard Birthday-Icon ...
DJDarknez
06-09-2005, 11:14 PM
/me installs!
just changed the wording a bit ('s birthday is today!)
Allan
06-09-2005, 11:19 PM
It's only the standard Birthday-Icon ...
ok, thank ;)
mholtum
06-12-2005, 03:37 AM
/me installs
southernlady
06-12-2005, 10:21 AM
It says
2) In template postbit (or postbit_legacy) add
But it doesn't say exactly WHERE! Can we get a bit more specific? Liz
C.Birch
06-12-2005, 10:47 AM
where ever you want it to show within your postbit.
southernlady
06-12-2005, 10:50 AM
Can you suggest a good spot then, please? Liz
Himmm i will try to install it
southernlady
06-12-2005, 11:03 AM
Except for that, it looks easy enough to install. Liz
neocorteqz
06-12-2005, 11:47 AM
Can you suggest a good spot then, please? Liz
In 3.0.7 I put the icon next to the Aim,MSn,etc... icons.
southernlady
06-12-2005, 01:02 PM
Thanks, that helped. Got it installed. Liz
Sadie Frost
07-05-2005, 10:42 PM
Anyone else having a problem with this in Beta 3? It's showing the icon for everyone...(was working for me in 2 though)
:)
Andreas
07-05-2005, 10:58 PM
Does work just fine for me on Beta 3.
Do you have any other Plugins active?
If so, did you trs to disable them?
Do you have any file modifications installed?
ktaylor
07-21-2005, 05:58 AM
Hi,
I'm trying to install this hack...but am a bit confused. How do i go about installing the .xml file? When i hit the "install this modifcation", it doesn't really do anything to show that the hack works.
Thanks for the help! I've put the needed code in the postbit area, but i think i have to install this xml file before i can see the icon.
Thanks again,
Kristie
Sadie Frost
07-28-2005, 01:09 AM
Does work just fine for me on Beta 3.
Do you have any other Plugins active?
If so, did you trs to disable them?
Do you have any file modifications installed?
No file modifications, and only the who's online in the last 24 hours installed. Going to upgrade to RC1 and try again :)
FleaBag
07-28-2005, 01:46 AM
Nice little addition... Thanks. :)
Sadie Frost
07-28-2005, 02:01 AM
Hmm still showing the icon for me in each post - tried removing the plugin and reinstalling but still happening...hmmm
gulldarek
07-30-2005, 07:09 PM
I think, that you should make your hacks with different language support. One additional phrase is not a big problem ;) Anyway: nice hack... [edit] plugin :)
* gulldarek clicks install button
Andreas
07-31-2005, 03:57 AM
Well, this was created before RC 1 ... and as I hate writing instructions I didn't phrase it.
But might do so now :)
FleaBag
07-31-2005, 07:37 PM
Seems the icon is popping up in the postbit of several random users. Not sure why...
Andreas
07-31-2005, 08:06 PM
Can you give an example where it displays the Icon randomly?
FleaBag
07-31-2005, 08:45 PM
http://www.dragonninja.co.uk/thread.php?t=21488 - First user to post - not his birthday.
http://www.dragonninja.co.uk/thread.php?t=20524 - Users 'Straight Edge' and 'Trukk', both showing the icon - it's neither of their birthdays.
More examples can be found if need be.
Andreas
07-31-2005, 09:51 PM
Hmm. Strange.
I've repacked this as a Product now and made a slight Code-Change.
Please check if it corrects the Problem (delete the old Plugin first).
FleaBag
07-31-2005, 10:35 PM
I'll give it a whirl Kirby, thanks...
Edit: Still exactly the same mate...
Andreas
08-01-2005, 02:24 PM
Then I can't reproduce the effect on my System.
Feel free to PM me FTP/ACP accounts for your Board, then i'll take a look.
FleaBag
08-01-2005, 09:09 PM
OK I will do mate thanks... It does seem rather strange. I don't have the FTP logins, they're saved in my client and I've forgotten them - so I'll email server admin to get them changed. Thanks for your support, it's much appreciated.
Sadie Frost
08-06-2005, 12:45 AM
Working for me now in RC2 with the product :)
hobbes747
08-06-2005, 02:52 PM
The icon was showing up for every member that had a birthday in the current month on both RC1 and RC2 for me.
Had to change
$this->post['hasbday'] = ($birthday[0] == $this->cache['month']) AND ($birthday[1] == $this->cache['day']);
to
$this->post['hasbday'] = ($birthday[0] == $this->cache['month']) && ($birthday[1] == $this->cache['day']);
Otherwise it's working in RC2. Thanks!
FleaBag
08-07-2005, 02:38 PM
Excellent! That fixed my problem. :)
Thanks hobbes!
mOdEtWo
08-07-2005, 09:18 PM
The icon was showing up for every member that had a birthday in the current month on both RC1 and RC2 for me.
Had to change
$this->post['hasbday'] = ($birthday[0] == $this->cache['month']) AND ($birthday[1] == $this->cache['day']);
to
$this->post['hasbday'] = ($birthday[0] == $this->cache['month']) && ($birthday[1] == $this->cache['day']);
Otherwise it's working in RC2. Thanks!
This fixed it for me too, I had the exact same problem.
mOdEtWo
08-07-2005, 09:59 PM
Hmm, doesn't this plugin respect the timezone settings? One of my users had her birthday yesterday, but the birthdayicon is still showing for me @ 0:57 am GMT. The forum is configured with an EDT timezone.
Andreas
08-07-2005, 10:21 PM
Uuh! I fear you're right.
Please try this Plugin Code instead and let me know if it does work correctly
if (!$this->cache['year'])
{
$this->cache['year'] = vbdate('Y', TIMENOW, false, false);
$this->cache['month'] = vbdate('n', TIMENOW, false, false);
$this->cache['day'] = vbdate('j', TIMENOW, false, false);;
}
if (empty($this->cache['hasbday'][$this->post['userid']]))
{
$birthday = explode('-', $this->post['birthday']);
$this->post['hasbday'] = (($birthday[0] == $this->cache['month']) AND ($birthday[1] == $this->cache['day']));
$this->cache['hasbday'][$this->post['userid']] = $this->post['hasbday'];
}
else
{
$this->post['hasbday'] = $this->cache['hasbday'][$this->post['userid']];
}
mOdEtWo
08-07-2005, 10:40 PM
Aye, that worked Kirby. It now seems to respect timezone settings.
I suggest you change the "AND" statement to "&&" to get rid of the bug several of us have pointed out.
:)
Andreas
08-07-2005, 11:02 PM
&& does not comply with vBulletin Code Standards (http://www.vbulletin.com/docs/html/main/codestandards_and_or), therefore I don't use it :)
Anyway, the Problem (Icon being shown for wrong Users) should not happen anymore with the above Code.
Could you check if this is correct?
mOdEtWo
08-08-2005, 07:13 AM
Anyway, the Problem (Icon being shown for wrong Users) should not happen anymore with the above Code.
Could you check if this is correct?
I changed it back to "AND", and it seems to work now. Haven't seen any users with the cake which hasn't got a birthday.
Brinnie
08-08-2005, 12:11 PM
Does it add any queries, or whateber?
hobbes747
08-08-2005, 01:58 PM
I changed it back to "AND", and it seems to work now. Haven't seen any users with the cake which hasn't got a birthday.
Same for me, the extra brackets in the birthday line did the trick.
Thank you!
Andreas
08-08-2005, 02:51 PM
ZIP updated with Code posted above.
@Brinnie
It does not add Queries
Andreas
09-08-2005, 05:58 PM
Updated, details see first Post.
Mastar
10-21-2005, 02:35 AM
Is there an image to upload??
Andreas
10-21-2005, 02:53 AM
No. The image should be there already (birthday_small.gif in images/misc)
Chadi
11-23-2005, 01:15 AM
Mine is not appearing for some reason after uploading the xml and adding to postiit_legacy.
<!-- post #$post[postid] -->
<if condition="$show['spacer']">
$spacer_open
<div id="edit$post[postid]" style="padding:0px 0px $stylevar[cellpadding]px 0px">
<if condition="!$post['islastshown']"><!-- this is not the last post shown on the page --></if>
</if>
<if condition="$post['hasbday']">
<img src="$stylevar[imgdir_misc]/birthday_small.gif" alt="<phrase 1="$post[username]">$vbphrase[x_has_a_birthday]</phrase>" />
</if>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td><img src="/designs/radio_dream/f_30.jpg" alt="" /></td>
<td class="alt5" style="background: url('/designs/radio_dream/f_31.jpg');" width="100%" $post[scrolltothis]><div style=" padding-left: 10px; padding-right: 10px; padding-top: 0px; padding-bottom: 0px;">
<div class="normal">
<if condition="$show['announcement']">
<img class="inlineimg" src="$stylevar[imgdir_statusicon]/post_$post[statusicon].gif" alt="$post[statustitle]" border="0" />
<phrase 1="$post[startdate]" 2="$post[enddate]">$vbphrase[x_until_y]</phrase>
<else />
<!-- status icon and date -->
<img class="inlineimg" src="$stylevar[imgdir_statusicon]/post_$post[statusicon].gif" alt="$post[statustitle]" border="0" />
$post[postdate]<if condition="!$show['detailedtime']">, $post[posttime]</if>
<if condition="$vboptions['favposts_enabled'] AND $show['member'] AND (THIS_SCRIPT == 'showthread' OR THIS_SCRIPT == 'showpost')"> - <a href="vbfavorites.php?$session[sessionurl]do=addentry&type=post&id=$post[postid]">$vbphrase[add_post_to_favorites]</a></if>
$post[firstnewinsert]
<!-- / status icon and date -->
<if condition="$show['postcount']">#<a href="showpost.php?$session[sessionurl]p=$post[postid]&postcount=$post[postcount]" target="new" rel="nofollow" id="postcount$post[postid]" name="$post[postcount]"><strong>$post[postcount]</strong></a></if>
<if condition="$show['inlinemod']">
<input type="checkbox" name="plist[$postid]" id="plist_$postid" style="display:inline;vertical-align:middle; padding:0px; margin:0px 0px 0px 5px" value="$post[checkbox_value]" onclick="inlineMod.toggle(this)" />
</if>
</if>
</div>
</div>
</td>
<td><img src="/designs/radio_dream/f_32.jpg" alt="" /></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td style="background: url('/designs/radio_dream/f_35.jpg');" width="4"></td>
<td>
<table id="post$post[postid]" class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="1" border="0" width="100%" align="center">
<tr valign="top">
<td class="alt2" width="175"><a name="post$post[postid]"></a>
<div id="postmenu_$post[postid]">
<if condition="$show['profile']">
<a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
<script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
<else />
$post[musername]
</if>
</div>
<if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if>
<if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>
<if condition="$post['isstaffrank']">
<div class="smallfont">
<if condition="$post['staffrank_opentag']">$post[staffrank_opentag]</if>
<if condition="$post['staffrank']">$post[staffrank]</if>
<if condition="$post['staffrank_closetag']">$post[staffrank_closetag]</if>
</div>
</if>
<if condition="$show['avatar']">
<div class="smallfont">
<br /><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a>
</div>
</if>
<div class="smallfont">
<br />
<if condition="$show['last_seen_online']"><div>$vbphrase[last_seen_online]: $post[lastseen_date] </div></if>
<if condition="$post['joindate']"><div>$vbphrase[join_date]: $post[joindate]</div></if>
<if condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]</div></if>
<if condition="$post['age']"><div>$vbphrase[age]: $post[age]</div></if>
<div>
$vbphrase[posts]: $post[posts]
</div>
<if condition="$post[field7] != ''"><div>
Country: <img src="images/flags/$post[field7].gif" title="$post[field7]" align="center">
</div></if>
<if condition="$show['reputation']"><div><if condition="$show['reppower']">$vbphrase[reppower]: $post[reppower]</if>$post[reputationdisplay]</div></if>
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon]</div>
</div>
</td>
<if condition="$show['moderated']">
<td class="alt2" id="td_post_$post[postid]">
<else />
<td class="alt1" id="td_post_$post[postid]">
</if>
<if condition="$show['messageicon'] OR $post['title']">
<!-- icon and title -->
<div class="smallfont">
<if condition="$show['messageicon']"><img class="inlineimg" src="$post[iconpath]" alt="$post[icontitle]" border="0" /></if>
<if condition="$post['title']"><strong>$post[title]</strong></if>
</div>
<hr size="1" style="color:$stylevar[tborder_bgcolor]" />
<!-- / icon and title -->
</if>
<!-- message -->
<div id="post_message_$post[postid]">$post[message]</div>
<!-- / message -->
<if condition="$show['attachments']">
<!-- attachments -->
<div style="padding:$stylevar[cellpadding]px">
<if condition="$show['thumbnailattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_thumbnails]</legend>
<div style="padding:$stylevar[formspacer]px">
$post[thumbnailattachments]
</div>
</fieldset>
</if>
<if condition="$show['imageattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_images]</legend>
<div style="padding:$stylevar[formspacer]px">
$post[imageattachments]
</div>
</fieldset>
</if>
<if condition="$show['imageattachmentlink']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_images]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
$post[imageattachmentlinks]
</table>
</fieldset>
</if>
<if condition="$show['otherattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_files]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
$post[otherattachments]
</table>
</fieldset>
</if>
<if condition="$show['moderatedattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attachments_pending_approval]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
$post[moderatedattachments]
</table>
</fieldset>
</if>
</div>
<!-- / attachments -->
</if>
<if condition="$post['signature']">
<!-- sig -->
<div>
__________________<br />
$post[signature]
</div>
<!-- / sig -->
</if>
<if condition="$show['postedited']">
<!-- edit note -->
<div class="smallfont"> <hr size="1" style="color:$stylevar[tborder_bgcolor]" />
<em>
<phrase 1="$post[edit_username]" 2="$post[edit_date]" 3="$post[edit_time]">$vbphrase[last_edited_by_x_on_y_at_z]</phrase>.
<if condition="$post['edit_reason']">$vbphrase[reason]: $post[edit_reason]</if>
</em>
</div>
<!-- / edit note -->
</if>
</td>
</tr>
<tr>
<td class="alt2">
$post[onlinestatus]
<if condition="$show['reputationlink']"><a href="reputation.php?$session[sessionurl]p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/reputation.gif" border="0" alt="<phrase 1="$post[username]">$vbphrase[add_to_xs_reputation]</phrase>" /></a></if>
<if condition="$show['reportlink']"><a href="report.php?$session[sessionurl]p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/report.gif" alt="$vbphrase[report_bad_post]" border="0" /></a></if>
$post[iplogged]
</td>
<if condition="$show['moderated']">
<td class="alt2" align="$stylevar[right]">
<else />
<td class="alt1" align="$stylevar[right]">
</if>
<!-- controls -->
<if condition="$post['editlink']">
<a href="$post[editlink]" name="vB::QuickEdit::$post[postid]"><img src="$stylevar[imgdir_button]/edit.gif" alt="$vbphrase[edit_delete_message]" border="0" /></a>
</if>
<if condition="$post['forwardlink']">
<a href="$post[forwardlink]"><img src="$stylevar[imgdir_button]/forward.gif" alt="$vbphrase[forward_message]" border="0" /></a>
</if>
<if condition="$post['replylink']">
<a href="$post[replylink]" rel="nofollow"><img src="$stylevar[imgdir_button]/<if condition="$post['forwardlink']">reply_small<else />quote</if>.gif" alt="$vbphrase[reply_with_quote]" border="0" /></a>
</if>
<if condition="$show['quickreply'] AND !$show['threadedmode']">
<a href="$post[replylink]" rel="nofollow" id="qr_$post[postid]" onclick="return false"><img src="$stylevar[imgdir_button]/quickreply.gif" alt="$vbphrase[quick_reply_to_this_message]" border="0" /></a>
</if>
<if condition="$show['moderated']">
<img src="$stylevar[imgdir_misc]/moderated.gif" alt="$vbphrase[moderated_post]" border="0" />
</if>
<a href="#top"><img src="$stylevar[imgdir_button]/top.gif" alt="To the Top" border="0" /></a>
<!-- / controls -->
</td>
</tr>
</table>
</td>
<td style="background: url('/designs/radio_dream/f_37.jpg');" width="5"></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td><img src="/designs/radio_dream/f_40.jpg" alt="" /></td>
<td style="background: url('/designs/radio_dream/f_41.jpg');" width="100%"></td>
<td><img src="/designs/radio_dream/f_42.jpg" alt="" /></td>
</tr>
</table>
<!-- post $post[postid] popup menu -->
<div class="vbmenu_popup" id="postmenu_$post[postid]_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">$post[username]</td>
</tr>
<if condition="$show['profile']">
<tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$post[userid]">$vbphrase[view_public_profile]</a></td></tr>
</if>
<if condition="$show['pmlink']">
<tr><td class="vbmenu_option"><a href="private.php?$session[sessionurl]do=newpm&u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_private_message_to_x]</phrase></a></td></tr>
</if>
<if condition="$show['emaillink']">
<tr><td class="vbmenu_option"><a href="sendmessage.php?$session[sessionurl]do=mailmember&u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_email_to_x]</phrase></a></td></tr>
</if>
<if condition="$show['homepage']">
<tr><td class="vbmenu_option"><a href="$post[homepage]"><phrase 1="$post[username]">$vbphrase[visit_xs_homepage]</phrase></a></td></tr>
</if>
<if condition="$show['search']">
<tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=finduser&u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[find_more_posts_by_x]</phrase></a></td></tr>
</if>
<if condition="$post['userid'] AND $show['member']">
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&userlist=buddy&u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_buddy_list]</phrase></a></td></tr>
</if>
<if condition="$post[journal_id]">
<tr>
<td class="vbmenu_option"><a href="journal.php?$session[sessionurl]do=showjournal&j=$post[journal_id]" title="$post[journaldesc]"><phrase 1="$post[username]">$vbphrase[visit_xs_journal]</phrase></a></td>
</tr>
</if>
<!-- Edit popup menu by Snowy -->
<if condition="$post[usergroupid]!=6 AND $post[usergroupid]!=5 AND $post[usergroupid]!=7 AND can_moderate($forum[forumid], '', $bbuserinfo[userid])">
<tr><td class="vbmenu_option"><span onmouseover="this.style.cursor='hand';" onClick="window.open('modcp/user.php?do=editsig&userid=$post[userid]','edit','width=500,height=350,scrollbars=yes')"><b>Edit $post[username]'s Signature</b></span></td></tr>
</if>
<if condition="$post[usergroupid]!=6 AND $post[usergroupid]!=5 AND $post[usergroupid]!=7 AND can_moderate($forum[forumid], '', $bbuserinfo[userid])">
<tr><td class="vbmenu_option"><span onmouseover="this.style.cursor='hand';" onClick="window.open('modcp/user.php?do=avatar&userid=$post[userid]','edit','width=500,height=350,scrollbars=yes')"><b>Edit $post[username]'s Avatar</b></span></td></tr>
</if>
<if condition="$post[usergroupid]!=6 AND $post[usergroupid]!=5 AND $post[usergroupid]!=7 AND can_moderate($forum[forumid], '', $bbuserinfo[userid])">
<tr><td class="vbmenu_option"><span onmouseover="this.style.cursor='hand';" onClick="window.open('modcp/user.php?do=profilepic&userid=$post[userid]','edit','width=500,height=350,scrollbars=yes')"><b>Edit $post[username]'s Profile Picture</b></span></td></tr>
</if>
<!-- / Edit popup menu by Snowy -->
</table>
</div>
<!-- / post $post[postid] popup menu -->
<if condition="$show['spacer']">
</div>
$spacer_close
</if>
<!-- / post #$post[postid] -->
Any reason why?
Chadi
11-24-2005, 11:21 PM
This is not working for me. I imported the xml and edited postbit_legacy with this (see top portion)
<!-- post #$post[postid] -->
<if condition="$show['spacer']">
$spacer_open
<div id="edit$post[postid]" style="padding:0px 0px $stylevar[cellpadding]px 0px">
<if condition="!$post['islastshown']"><!-- this is not the last post shown on the page --></if>
</if>
<if condition="$post['hasbday']">
<img src="$stylevar[imgdir_misc]/birthday_small.gif" alt="<phrase 1="$post[username]">$vbphrase[x_has_a_birthday]</phrase>" />
</if>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td><img src="/designs/radio_dream/f_30.jpg" alt="" /></td>
<td class="alt5" style="background: url('/designs/radio_dream/f_31.jpg');" width="100%" $post[scrolltothis]><div style=" padding-left: 10px; padding-right: 10px; padding-top: 0px; padding-bottom: 0px;">
<div class="normal">
<if condition="$show['announcement']">
<img class="inlineimg" src="$stylevar[imgdir_statusicon]/post_$post[statusicon].gif" alt="$post[statustitle]" border="0" />
<phrase 1="$post[startdate]" 2="$post[enddate]">$vbphrase[x_until_y]</phrase>
<else />
<!-- status icon and date -->
<img class="inlineimg" src="$stylevar[imgdir_statusicon]/post_$post[statusicon].gif" alt="$post[statustitle]" border="0" />
$post[postdate]<if condition="!$show['detailedtime']">, $post[posttime]</if>
<if condition="$vboptions['favposts_enabled'] AND $show['member'] AND (THIS_SCRIPT == 'showthread' OR THIS_SCRIPT == 'showpost')"> - <a href="vbfavorites.php?$session[sessionurl]do=addentry&type=post&id=$post[postid]">$vbphrase[add_post_to_favorites]</a></if>
$post[firstnewinsert]
<!-- / status icon and date -->
<if condition="$show['postcount']">#<a href="showpost.php?$session[sessionurl]p=$post[postid]&postcount=$post[postcount]" target="new" rel="nofollow" id="postcount$post[postid]" name="$post[postcount]"><strong>$post[postcount]</strong></a></if>
<if condition="$show['inlinemod']">
<input type="checkbox" name="plist[$postid]" id="plist_$postid" style="display:inline;vertical-align:middle; padding:0px; margin:0px 0px 0px 5px" value="$post[checkbox_value]" onclick="inlineMod.toggle(this)" />
</if>
</if>
</div>
</div>
</td>
<td><img src="/designs/radio_dream/f_32.jpg" alt="" /></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td style="background: url('/designs/radio_dream/f_35.jpg');" width="4"></td>
<td>
<table id="post$post[postid]" class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="1" border="0" width="100%" align="center">
<tr valign="top">
<td class="alt2" width="175"><a name="post$post[postid]"></a>
<div id="postmenu_$post[postid]">
<if condition="$show['profile']">
<a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
<script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
<else />
$post[musername]
</if>
</div>
<if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if>
<if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>
<if condition="$post['isstaffrank']">
<div class="smallfont">
<if condition="$post['staffrank_opentag']">$post[staffrank_opentag]</if>
<if condition="$post['staffrank']">$post[staffrank]</if>
<if condition="$post['staffrank_closetag']">$post[staffrank_closetag]</if>
</div>
</if>
<if condition="$show['avatar']">
<div class="smallfont">
<br /><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a>
</div>
</if>
<div class="smallfont">
<br />
<if condition="$show['last_seen_online']"><div>$vbphrase[last_seen_online]: $post[lastseen_date] </div></if>
<if condition="$post['joindate']"><div>$vbphrase[join_date]: $post[joindate]</div></if>
<if condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]</div></if>
<if condition="$post['age']"><div>$vbphrase[age]: $post[age]</div></if>
<div>
$vbphrase[posts]: $post[posts]
</div>
<if condition="$post[field7] != ''"><div>
Country: <img src="images/flags/$post[field7].gif" title="$post[field7]" align="center">
</div></if>
<if condition="$show['reputation']"><div><if condition="$show['reppower']">$vbphrase[reppower]: $post[reppower]</if>$post[reputationdisplay]</div></if>
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon]</div>
</div>
</td>
<if condition="$show['moderated']">
<td class="alt2" id="td_post_$post[postid]">
<else />
<td class="alt1" id="td_post_$post[postid]">
</if>
<if condition="$show['messageicon'] OR $post['title']">
<!-- icon and title -->
<div class="smallfont">
<if condition="$show['messageicon']"><img class="inlineimg" src="$post[iconpath]" alt="$post[icontitle]" border="0" /></if>
<if condition="$post['title']"><strong>$post[title]</strong></if>
</div>
<hr size="1" style="color:$stylevar[tborder_bgcolor]" />
<!-- / icon and title -->
</if>
<!-- message -->
<div id="post_message_$post[postid]">$post[message]</div>
<!-- / message -->
<if condition="$show['attachments']">
<!-- attachments -->
<div style="padding:$stylevar[cellpadding]px">
<if condition="$show['thumbnailattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_thumbnails]</legend>
<div style="padding:$stylevar[formspacer]px">
$post[thumbnailattachments]
</div>
</fieldset>
</if>
<if condition="$show['imageattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_images]</legend>
<div style="padding:$stylevar[formspacer]px">
$post[imageattachments]
</div>
</fieldset>
</if>
<if condition="$show['imageattachmentlink']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_images]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
$post[imageattachmentlinks]
</table>
</fieldset>
</if>
<if condition="$show['otherattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_files]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
$post[otherattachments]
</table>
</fieldset>
</if>
<if condition="$show['moderatedattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attachments_pending_approval]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
$post[moderatedattachments]
</table>
</fieldset>
</if>
</div>
<!-- / attachments -->
</if>
<if condition="$post['signature']">
<!-- sig -->
<div>
__________________<br />
$post[signature]
</div>
<!-- / sig -->
</if>
<if condition="$show['postedited']">
<!-- edit note -->
<div class="smallfont"> <hr size="1" style="color:$stylevar[tborder_bgcolor]" />
<em>
<phrase 1="$post[edit_username]" 2="$post[edit_date]" 3="$post[edit_time]">$vbphrase[last_edited_by_x_on_y_at_z]</phrase>.
<if condition="$post['edit_reason']">$vbphrase[reason]: $post[edit_reason]</if>
</em>
</div>
<!-- / edit note -->
</if>
</td>
</tr>
<tr>
<td class="alt2">
$post[onlinestatus]
<if condition="$show['reputationlink']"><a href="reputation.php?$session[sessionurl]p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/reputation.gif" border="0" alt="<phrase 1="$post[username]">$vbphrase[add_to_xs_reputation]</phrase>" /></a></if>
<if condition="$show['reportlink']"><a href="report.php?$session[sessionurl]p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/report.gif" alt="$vbphrase[report_bad_post]" border="0" /></a></if>
$post[iplogged]
</td>
<if condition="$show['moderated']">
<td class="alt2" align="$stylevar[right]">
<else />
<td class="alt1" align="$stylevar[right]">
</if>
<!-- controls -->
<if condition="$post['editlink']">
<a href="$post[editlink]" name="vB::QuickEdit::$post[postid]"><img src="$stylevar[imgdir_button]/edit.gif" alt="$vbphrase[edit_delete_message]" border="0" /></a>
</if>
<if condition="$post['forwardlink']">
<a href="$post[forwardlink]"><img src="$stylevar[imgdir_button]/forward.gif" alt="$vbphrase[forward_message]" border="0" /></a>
</if>
<if condition="$post['replylink']">
<a href="$post[replylink]" rel="nofollow"><img src="$stylevar[imgdir_button]/<if condition="$post['forwardlink']">reply_small<else />quote</if>.gif" alt="$vbphrase[reply_with_quote]" border="0" /></a>
</if>
<if condition="$show['quickreply'] AND !$show['threadedmode']">
<a href="$post[replylink]" rel="nofollow" id="qr_$post[postid]" onclick="return false"><img src="$stylevar[imgdir_button]/quickreply.gif" alt="$vbphrase[quick_reply_to_this_message]" border="0" /></a>
</if>
<if condition="$show['moderated']">
<img src="$stylevar[imgdir_misc]/moderated.gif" alt="$vbphrase[moderated_post]" border="0" />
</if>
<a href="#top"><img src="$stylevar[imgdir_button]/top.gif" alt="To the Top" border="0" /></a>
<!-- / controls -->
</td>
</tr>
</table>
</td>
<td style="background: url('/designs/radio_dream/f_37.jpg');" width="5"></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td><img src="/designs/radio_dream/f_40.jpg" alt="" /></td>
<td style="background: url('/designs/radio_dream/f_41.jpg');" width="100%"></td>
<td><img src="/designs/radio_dream/f_42.jpg" alt="" /></td>
</tr>
</table>
<!-- post $post[postid] popup menu -->
<div class="vbmenu_popup" id="postmenu_$post[postid]_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">$post[username]</td>
</tr>
<if condition="$show['profile']">
<tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$post[userid]">$vbphrase[view_public_profile]</a></td></tr>
</if>
<if condition="$show['pmlink']">
<tr><td class="vbmenu_option"><a href="private.php?$session[sessionurl]do=newpm&u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_private_message_to_x]</phrase></a></td></tr>
</if>
<if condition="$show['emaillink']">
<tr><td class="vbmenu_option"><a href="sendmessage.php?$session[sessionurl]do=mailmember&u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_email_to_x]</phrase></a></td></tr>
</if>
<if condition="$show['homepage']">
<tr><td class="vbmenu_option"><a href="$post[homepage]"><phrase 1="$post[username]">$vbphrase[visit_xs_homepage]</phrase></a></td></tr>
</if>
<if condition="$show['search']">
<tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=finduser&u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[find_more_posts_by_x]</phrase></a></td></tr>
</if>
<if condition="$post['userid'] AND $show['member']">
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&userlist=buddy&u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_buddy_list]</phrase></a></td></tr>
</if>
<if condition="$post[journal_id]">
<tr>
<td class="vbmenu_option"><a href="journal.php?$session[sessionurl]do=showjournal&j=$post[journal_id]" title="$post[journaldesc]"><phrase 1="$post[username]">$vbphrase[visit_xs_journal]</phrase></a></td>
</tr>
</if>
<!-- Edit popup menu by Snowy -->
<if condition="$post[usergroupid]!=6 AND $post[usergroupid]!=5 AND $post[usergroupid]!=7 AND can_moderate($forum[forumid], '', $bbuserinfo[userid])">
<tr><td class="vbmenu_option"><span onmouseover="this.style.cursor='hand';" onClick="window.open('modcp/user.php?do=editsig&userid=$post[userid]','edit','width=500,height=350,scrollbars=yes')"><b>Edit $post[username]'s Signature</b></span></td></tr>
</if>
<if condition="$post[usergroupid]!=6 AND $post[usergroupid]!=5 AND $post[usergroupid]!=7 AND can_moderate($forum[forumid], '', $bbuserinfo[userid])">
<tr><td class="vbmenu_option"><span onmouseover="this.style.cursor='hand';" onClick="window.open('modcp/user.php?do=avatar&userid=$post[userid]','edit','width=500,height=350,scrollbars=yes')"><b>Edit $post[username]'s Avatar</b></span></td></tr>
</if>
<if condition="$post[usergroupid]!=6 AND $post[usergroupid]!=5 AND $post[usergroupid]!=7 AND can_moderate($forum[forumid], '', $bbuserinfo[userid])">
<tr><td class="vbmenu_option"><span onmouseover="this.style.cursor='hand';" onClick="window.open('modcp/user.php?do=profilepic&userid=$post[userid]','edit','width=500,height=350,scrollbars=yes')"><b>Edit $post[username]'s Profile Picture</b></span></td></tr>
</if>
<!-- / Edit popup menu by Snowy -->
</table>
</div>
<!-- / post $post[postid] popup menu -->
<if condition="$show['spacer']">
</div>
$spacer_close
</if>
<!-- / post #$post[postid] -->
It is not appearing in the postbit. Did I do something wrong?
Andreas
11-24-2005, 11:30 PM
Do you allow your age and birthday to be displayed, and do you have entered you birthday?
Chadi
11-24-2005, 11:39 PM
Yes and yes
Andreas
11-25-2005, 12:56 AM
Then smth. does not work properly.
Feel free to send me an ACP login and i'll take a look.
Andreas
11-25-2005, 04:01 AM
Problem solved: No problem existed.
Just misunderstanding and an incorrectly edited template.
Robru
11-26-2005, 09:15 AM
Where exactly in template postbit (or postbit_legacy) jou must add:
<if condition="$post['hasbday']">
<img src="$stylevar[imgdir_misc]/birthday_small.gif" alt="<phrase 1="$post[username]">$vbphrase[x_has_a_birthday]</phrase>" />
</if>
Andreas
11-26-2005, 05:39 PM
Where you want.
djjeffa
11-26-2005, 07:19 PM
Where you want.
i installed it but its not showing anything in the pb, oh well it is a nice lil hack.
dan35
12-17-2005, 08:46 AM
Can it count-down in postbit within a week before the birthday event? ;)
Ohiosweetheart
01-27-2006, 03:20 PM
does this work in 3.5.3?
Silvio
02-02-2006, 03:36 PM
does this work in 3.5.3?
Yes Sir, and even smoothly :squareeyed:
TY Andreas *installed*
Gripemaster
02-03-2006, 12:03 AM
Flawless...thank you! *Clicks Install*
JenniferK
02-23-2006, 02:00 PM
It's not working for me either :(
<!-- post #$post[postid] -->
<if condition="$show['spacer']">
$spacer_open
<div id="edit$post[postid]" style="padding:0px 0px $stylevar[cellpadding]px 0px">
<if condition="!$post['islastshown']"><!-- this is not the last post shown on the page --></if>
</if>
<table id="post$post[postid]" class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center">
<tr>
<if condition="$show['announcement']">
<td class="thead" style="font-weight:normal" colspan="2">
<img class="inlineimg" src="$stylevar[imgdir_statusicon]/post_$post[statusicon].gif" alt="$post[statustitle]" border="0" />
<phrase 1="$post[startdate]" 2="$post[enddate]">$vbphrase[x_until_y]</phrase>
</td>
<else />
<td class="thead" style="font-weight:normal" $post[scrolltothis]>
<!-- status icon and date -->
<a name="post$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_statusicon]/post_$post[statusicon].gif" alt="$post[statustitle]" border="0" /></a>
$post[postdate]<if condition="!$show['detailedtime']">, $post[posttime]</if>
<if condition="$vboptions['favposts_enabled'] AND $show['member'] AND (THIS_SCRIPT == 'showthread' OR THIS_SCRIPT == 'showpost')"> - <a href="vbfavorites.php?$session[sessionurl]do=addentry&type=post&id=$post[postid]">$vbphrase[add_post_to_favorites]</a></if>
$post[firstnewinsert]
<!-- / status icon and date -->
</td>
<td class="thead" style="font-weight:normal" align="$stylevar[right]">
<if condition="$show['postcount']">#<a href="showpost.php?$session[sessionurl]p=$post[postid]&postcount=$post[postcount]" target="new" rel="nofollow" id="postcount$post[postid]" name="$post[postcount]"><strong>$post[postcount]</strong></a></if>
<if condition="$show['inlinemod']">
<input type="checkbox" name="plist[$postid]" id="plist_$postid" style="vertical-align:middle; padding:0px; margin:0px 0px 0px 5px" value="$post[checkbox_value]" onclick="inlineMod.toggle(this)" />
</if>
</td>
</if>
</tr>
<tr valign="top">
<td class="alt2" width="175">
<div id="postmenu_$post[postid]">
<if condition="$show['profile']">
<a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
<script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
<else />
$post[musername]
</if>
</div>
<if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if>
<if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>
<if condition="$show['avatar']">
<div class="smallfont">
<br /><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a>
</div>
</if>
<div class="smallfont">
<br />
$post[crowns]$post[champtext]<br />
<if condition="$post['joindate']"><div>$vbphrase[join_date]: $post[joindate]</div></if>
<if condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]</div></if>
<if condition="$post['age']"><div>$vbphrase[age]: $post[age]</div></if>
<if condition="!is_member_of($post, 5,6,7) OR is_member_of($bbuserinfo,6)">
<div>
$vbphrase[posts]: $post[posts]
</div></if>
<if condition="$show['reputation']"><div><if condition="$show['reppower']">$vbphrase[reppower]: $post[reppower]</if>$post[reputationdisplay]</div></if>
<if condition="$vboptions['ebux_enabled']"><div>$post[ribbons]</div></if>
<if condition="$post['hasbday']">
<img src="$stylevar[imgdir_misc]/birthday_small.gif" alt="<phrase 1="$post[username]">$vbphrase[x_has_a_birthday]</phrase>" />
</if>
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>
</div>
</td>
<if condition="$show['moderated']">
<td class="alt2" id="td_post_$post[postid]">
<else />
<td class="alt1" id="td_post_$post[postid]">
</if>
<if condition="$show['messageicon'] OR $post['title']">
<!-- icon and title -->
<div class="smallfont">
<if condition="$show['messageicon']"><img class="inlineimg" src="$post[iconpath]" alt="$post[icontitle]" border="0" /></if>
<if condition="$post['title']"><strong>$post[title]</strong></if>
</div>
<hr size="1" style="color:$stylevar[tborder_bgcolor]" />
<!-- / icon and title -->
</if>
<!-- message -->
<div id="post_message_$post[postid]">$post[message]</div>
<!-- / message -->
<if condition="$show['attachments']">
<!-- attachments -->
<div style="padding:$stylevar[cellpadding]px">
<if condition="$show['thumbnailattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_thumbnails]</legend>
<div style="padding:$stylevar[formspacer]px">
$post[thumbnailattachments]
</div>
</fieldset>
</if>
<if condition="$show['imageattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_images]</legend>
<div style="padding:$stylevar[formspacer]px">
$post[imageattachments]
</div>
</fieldset>
</if>
<if condition="$show['imageattachmentlink']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_images]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
$post[imageattachmentlinks]
</table>
</fieldset>
</if>
<if condition="$show['otherattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_files]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
$post[otherattachments]
</table>
</fieldset>
</if>
<if condition="$show['moderatedattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attachments_pending_approval]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
$post[moderatedattachments]
</table>
</fieldset>
</if>
</div>
<!-- / attachments -->
</if>
<if condition="$post['signature']">
<!-- sig -->
<div>
__________________<br />
$post[signature]
</div>
<!-- / sig -->
</if>
<if condition="$show['postedited']">
<!-- edit note -->
<div class="smallfont"> <hr size="1" style="color:$stylevar[tborder_bgcolor]" />
<em>
<phrase 1="$post[edit_username]" 2="$post[edit_date]" 3="$post[edit_time]">$vbphrase[last_edited_by_x_on_y_at_z]</phrase>.
<if condition="$post['edit_reason']">$vbphrase[reason]: $post[edit_reason]</if>
</em>
</div>
<!-- / edit note -->
</if>
</td>
</tr>
<tr>
<td class="alt2">
$post[onlinestatus]
<if condition="$show['reputationlink']"><a href="reputation.php?$session[sessionurl]p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/reputation.gif" border="0" alt="<phrase 1="$post[username]">$vbphrase[add_to_xs_reputation]</phrase>" /></a></if>
<if condition="$show['reportlink']"><a href="report.php?$session[sessionurl]p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/report.gif" alt="$vbphrase[report_bad_post]" border="0" /></a></if>
$post[iplogged]
</td>
<if condition="$show['moderated']">
<td class="alt2" align="$stylevar[right]">
<else />
<td class="alt1" align="$stylevar[right]">
</if>
<!-- controls -->
<if condition="$post['editlink']">
<a href="$post[editlink]" name="vB::QuickEdit::$post[postid]"><img src="$stylevar[imgdir_button]/edit.gif" alt="$vbphrase[edit_delete_message]" border="0" /></a>
</if>
<if condition="$post['forwardlink']">
<a href="$post[forwardlink]"><img src="$stylevar[imgdir_button]/forward.gif" alt="$vbphrase[forward_message]" border="0" /></a>
</if>
<if condition="$post['replylink']">
<a href="$post[replylink]" rel="nofollow"><img src="$stylevar[imgdir_button]/<if condition="$post['forwardlink']">reply_small<else />quote</if>.gif" alt="$vbphrase[reply_with_quote]" border="0" /></a>
</if>
<if condition="$show['quickreply'] AND !$show['threadedmode']">
<a href="$post[replylink]" rel="nofollow" id="qr_$post[postid]" onclick="return false"><img src="$stylevar[imgdir_button]/quickreply.gif" alt="$vbphrase[quick_reply_to_this_message]" border="0" /></a>
</if>
<if condition="$show['moderated']">
<img src="$stylevar[imgdir_misc]/moderated.gif" alt="$vbphrase[moderated_post]" border="0" />
</if>
<!-- / controls -->
</td>
</tr>
</table>
<!-- post $post[postid] popup menu -->
<div class="vbmenu_popup" id="postmenu_$post[postid]_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">$post[username]</td>
</tr>
<if condition="$show['profile']">
<tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$post[userid]">$vbphrase[view_public_profile]</a></td></tr>
</if>
<if condition="$show['pmlink']">
<tr><td class="vbmenu_option"><a href="private.php?$session[sessionurl]do=newpm&u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_private_message_to_x]</phrase></a></td></tr>
</if>
<if condition="$show['emaillink']">
<tr><td class="vbmenu_option"><a href="sendmessage.php?$session[sessionurl]do=mailmember&u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_email_to_x]</phrase></a></td></tr>
</if>
<if condition="$show['homepage']">
<tr><td class="vbmenu_option"><a href="$post[homepage]"><phrase 1="$post[username]">$vbphrase[visit_xs_homepage]</phrase></a></td></tr>
</if>
<if condition="$show['search']">
<tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=finduser&u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[find_more_posts_by_x]</phrase></a></td></tr>
</if>
<if condition="$post['userid'] AND $show['member']">
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&userlist=buddy&u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_buddy_list]</phrase></a></td></tr>
</if>
</table>
</div>
<!-- / post $post[postid] popup menu -->
<if condition="$show['spacer']">
</div>
$spacer_close
</if>
<!-- / post #$post[postid] -->
Installed! Thanks, Andreas. Yet another great addon that should be a standard option!
BabyNameAddict
03-08-2006, 06:03 PM
Works like a charm :nervous:
Silvio
03-12-2006, 12:24 PM
...and here u forgot to upgrade on the forum version is 1.0.4 ;)
lol :banana:
Mod Version: 1.0.3 <----
Andreas
03-17-2006, 03:13 AM
Fixed ;)
johnrizz
05-07-2006, 05:28 PM
Boy! That had to be the most EZ'ist of installs I ever did! I love this little Bday hack, MOF I love vb "." It blows PHP out of the water....:banana:
grains
05-16-2006, 12:22 AM
Isnt showing up in the user's postbit. Their birthday is today. :(
Using 3.5.4
ngontran
05-16-2006, 11:20 PM
Isnt showing up in the user's postbit. Their birthday is today. :(
Using 3.5.4
same here
Taipa
05-22-2006, 04:31 PM
Got it installed!
The image works fine, but there's no text after it. Not sure what to do about that, but I'm trying to figure it out ^_^
EDIT: Duh, I didn't notice that was supposed to be ALT text!
It works perfectly then ^_^
GuaRRand
05-23-2006, 08:58 PM
works fine
(be sure to selt AGE AND DATE OF BIRTH in profile)
jamiepryer@hotm
07-09-2006, 10:31 PM
hey,
im rubbish at all this code stuff
can you tell me what to look for in postbit and then where to add your code, above/below
i would like this below the post count please :)
asasi
07-14-2006, 04:52 PM
may this display a week around birthday?
I||usi0nz
07-31-2006, 07:04 PM
it workss :)
asasi
11-22-2006, 09:59 AM
<font color="RoyalBlue">This is a great hack but the 3.0 version was better. beouse it show birthday icon from a week before user birthday!
It will be so cute if anyone can modify this hack to show icon from a week before birthday date!
thanks a alot</font>
asasi
11-28-2006, 08:28 AM
This is a great hack but the 3.0 version was better. beouse it show birthday icon from a week before user birthday!
It will be so cute if anyone can modify this hack to show icon from a week before birthday date!
thanks a alot
Any Idea?
I think one of programers can change this. and will help me.
asasi
01-13-2007, 08:56 AM
Any Help????
Phillip Chapman
03-30-2007, 02:28 AM
I currently have the birthday hack installed on my 3.5.4 board. After I upgrade to 3.6.x will this still work?
deezelpope
04-09-2007, 02:50 PM
Flawless install! Thank you!
Marco
07-04-2007, 10:39 AM
Still works fine in 3.6.7. Great, it's just what I was looking for :)
TechGuy
12-19-2007, 02:05 AM
There's a bug in the 1.0.4 version of this hack that only shows the icon if the user has selected to show only their birth month and day to the public. If they select to show their entire birth date, it doesn't show the icon. I've re-written the PHP a bit to fix that, and also to show the icon if their birthday is within three days of the current date (so we can celebrate longer!) ;)
To edit, go to your Plugin Manager (not Manage Products) and click Edit next to "Show Birthday Icon in Postbit". Replace the PHP code with this:
if (!$this->cache['monthday'])
{
$this->cache['monthday'] = date('m/d');
}
if (empty($this->cache['hasbday'][$this->post['userid']]) AND $this->post['showbirthday'] >= 2)
{
$birthday = explode('-', $this->post['birthday']);
if (abs(strtotime(date('m/d'))-strtotime("$birthday[0]/$birthday[1]"))/(86400) <= 3)
{
$this->post['hasbday'] = true;
}
}
else
{
$this->post['hasbday'] = $this->cache['hasbday'][$this->post['userid']];
}
Feel free to clean up the code as you see fit. Proceed at your own risk, etc. Sorry if posting this is against forum etiquette. Just thought some would find it useful. :)
C.ooder
12-19-2007, 02:14 AM
Thank you
Jase2
05-23-2008, 03:14 PM
Works great in 3.7.0 -- thanks for this!
vijayninel
03-20-2010, 01:28 PM
thanks .. working great in 3.8.4
klaus
08-02-2012, 07:16 PM
Great hack. Works well in vb4.1x
BUT I try to output the cake display into my sidebar and not postbit. It works in postbit but not within other templates.
How to change this so it works for my needs? Hooks?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.