PDA

View Full Version : Show Birthday Icon in Postbit


Andreas
07 Jun 2005, 03:29
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
10 Jun 2005, 01:01
Very nice, I've been using this one on the 3.0.x forum for a long time :)

Allan
10 Jun 2005, 01:04
screen please :)

Andreas
10 Jun 2005, 01:07
It's only the standard Birthday-Icon ...

DJDarknez
10 Jun 2005, 01:14
/me installs!

just changed the wording a bit ('s birthday is today!)

Allan
10 Jun 2005, 01:19
It's only the standard Birthday-Icon ...

ok, thank ;)

mholtum
12 Jun 2005, 05:37
/me installs

southernlady
12 Jun 2005, 12:21
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
12 Jun 2005, 12:47
where ever you want it to show within your postbit.

southernlady
12 Jun 2005, 12:50
Can you suggest a good spot then, please? Liz

KoC
12 Jun 2005, 12:57
Himmm i will try to install it

southernlady
12 Jun 2005, 13:03
Except for that, it looks easy enough to install. Liz

neocorteqz
12 Jun 2005, 13:47
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
12 Jun 2005, 15:02
Thanks, that helped. Got it installed. Liz

Sadie Frost
06 Jul 2005, 00:42
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
06 Jul 2005, 00:58
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
21 Jul 2005, 07:58
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
28 Jul 2005, 03:09
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
28 Jul 2005, 03:46
Nice little addition... Thanks. :)

Sadie Frost
28 Jul 2005, 04:01
Hmm still showing the icon for me in each post - tried removing the plugin and reinstalling but still happening...hmmm

gulldarek
30 Jul 2005, 21:09
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
31 Jul 2005, 05:57
Well, this was created before RC 1 ... and as I hate writing instructions I didn't phrase it.
But might do so now :)

FleaBag
31 Jul 2005, 21:37
Seems the icon is popping up in the postbit of several random users. Not sure why...

Andreas
31 Jul 2005, 22:06
Can you give an example where it displays the Icon randomly?

FleaBag
31 Jul 2005, 22:45
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
31 Jul 2005, 23:51
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
01 Aug 2005, 00:35
I'll give it a whirl Kirby, thanks...

Edit: Still exactly the same mate...

Andreas
01 Aug 2005, 16:24
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
01 Aug 2005, 23:09
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
06 Aug 2005, 02:45
Working for me now in RC2 with the product :)

hobbes747
06 Aug 2005, 16:52
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


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



to



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Otherwise it's working in RC2. Thanks!

FleaBag
07 Aug 2005, 16:38
Excellent! That fixed my problem. :)

Thanks hobbes!

mOdEtWo
07 Aug 2005, 23:18
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


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



to



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Otherwise it's working in RC2. Thanks!
This fixed it for me too, I had the exact same problem.

mOdEtWo
07 Aug 2005, 23:59
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 Aug 2005, 00:21
Uuh! I fear you're right.

Please try this Plugin Code instead and let me know if it does work correctly



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

mOdEtWo
08 Aug 2005, 00:40
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 Aug 2005, 01:02
&& 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 Aug 2005, 09:13
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 Aug 2005, 14:11
Does it add any queries, or whateber?

hobbes747
08 Aug 2005, 15:58
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 Aug 2005, 16:51
ZIP updated with Code posted above.

@Brinnie
It does not add Queries

Andreas
08 Sep 2005, 19:58
Updated, details see first Post.

Mastar
21 Oct 2005, 04:35
Is there an image to upload??

Andreas
21 Oct 2005, 04:53
No. The image should be there already (birthday_small.gif in images/misc)

Chadi
23 Nov 2005, 03:15
Mine is not appearing for some reason after uploading the xml and adding to postiit_legacy.



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Any reason why?

Chadi
25 Nov 2005, 01:21
This is not working for me. I imported the xml and edited postbit_legacy with this (see top portion)



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



It is not appearing in the postbit. Did I do something wrong?

Andreas
25 Nov 2005, 01:30
Do you allow your age and birthday to be displayed, and do you have entered you birthday?

Chadi
25 Nov 2005, 01:39
Yes and yes

Andreas
25 Nov 2005, 02:56
Then smth. does not work properly.
Feel free to send me an ACP login and i'll take a look.

Andreas
25 Nov 2005, 06:01
Problem solved: No problem existed.
Just misunderstanding and an incorrectly edited template.

Robru
26 Nov 2005, 11:15
Where exactly in template postbit (or postbit_legacy) jou must add:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

Andreas
26 Nov 2005, 19:39
Where you want.

djjeffa
26 Nov 2005, 21:19
Where you want.

i installed it but its not showing anything in the pb, oh well it is a nice lil hack.

dan35
17 Dec 2005, 10:46
Can it count-down in postbit within a week before the birthday event? ;)

Ohiosweetheart
27 Jan 2006, 17:20
does this work in 3.5.3?

Silvio
02 Feb 2006, 17:36
does this work in 3.5.3?

Yes Sir, and even smoothly :squareeyed:

TY Andreas *installed*

Gripemaster
03 Feb 2006, 02:03
Flawless...thank you! *Clicks Install*

JenniferK
23 Feb 2006, 16:00
It's not working for me either :(



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

kira
05 Mar 2006, 22:24
Installed! Thanks, Andreas. Yet another great addon that should be a standard option!

BabyNameAddict
08 Mar 2006, 20:03
Works like a charm :nervous:

Silvio
12 Mar 2006, 14:24
...and here u forgot to upgrade on the forum version is 1.0.4 ;)

lol :banana:

Mod Version: 1.0.3 <----

Andreas
17 Mar 2006, 05:13
Fixed ;)

johnrizz
07 May 2006, 19:28
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
16 May 2006, 02:22
Isnt showing up in the user's postbit. Their birthday is today. :(
Using 3.5.4

ngontran
17 May 2006, 01:20
Isnt showing up in the user's postbit. Their birthday is today. :(
Using 3.5.4

same here

Taipa
22 May 2006, 18:31
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
23 May 2006, 22:58
works fine
(be sure to selt AGE AND DATE OF BIRTH in profile)

jamiepryer@hotm
10 Jul 2006, 00:31
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
14 Jul 2006, 18:52
may this display a week around birthday?

I||usi0nz
31 Jul 2006, 21:04
it workss :)

asasi
22 Nov 2006, 11:59
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

asasi
28 Nov 2006, 10:28
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
13 Jan 2007, 10:56
Any Help????

Phillip Chapman
30 Mar 2007, 04:28
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
09 Apr 2007, 16:50
Flawless install! Thank you!

Marco
04 Jul 2007, 12:39
Still works fine in 3.6.7. Great, it's just what I was looking for :)

TechGuy
19 Dec 2007, 04:05
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:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



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
19 Dec 2007, 04:14
Thank you

Jase2
23 May 2008, 17:14
Works great in 3.7.0 -- thanks for this!

vijayninel
20 Mar 2010, 15:28
thanks .. working great in 3.8.4