Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Mar 2000
Posts: 344
Member
Member
Offline
Joined: Mar 2000
Posts: 344
Purpose?

Once a member's birthday comes around, it displays a little birthday hat icon (or whatever) somewhere in his posts that day.


Administrator / WTF.com / IWantMy80s.com
http://www.wtf.com
http://www.iwantmy80s.com
Sponsored Links
Joined: Mar 2000
Posts: 344
Member
Member
Offline
Joined: Mar 2000
Posts: 344
Bumpity bump bump!

smile


Administrator / WTF.com / IWantMy80s.com
http://www.wtf.com
http://www.iwantmy80s.com
Joined: Dec 2000
Posts: 5
Junior Member
Junior Member
Offline
Joined: Dec 2000
Posts: 5
ANYBODY?????

Joined: Mar 2001
Posts: 27
Junior Member
Junior Member
Offline
Joined: Mar 2001
Posts: 27
I was interested on this hack too!!!

CU

Crazy-Achmet

Joined: Oct 2001
Posts: 1
Junior Member
Junior Member
Offline
Joined: Oct 2001
Posts: 1
Somebody on my site has asked for this feature.

Sponsored Links
Joined: Jan 2000
Posts: 395
Member
Member
Offline
Joined: Jan 2000
Posts: 395
EXCELLENT Idea.

I think only postings.cgi and ubb_library2.pl will need to be modified to place the icon, and a new field in member's profile in ubbmisc.cgi for the birthday so postings.cgi can grab the date!

Who's up to the challenge?

(Not a PERL wiz here wink )

[ 10-21-2001: Message edited by: NBAustin ]

Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Actually it's already done for V6, but I'm still waiting for good images.

Joined: Jan 2000
Posts: 395
Member
Member
Offline
Joined: Jan 2000
Posts: 395
Is anyone working on this for 5.xx?

Joined: Jan 2000
Posts: 395
Member
Member
Offline
Joined: Jan 2000
Posts: 395
Bump!!

Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
Moderator / Code Fixer
Offline
Joined: Oct 2000
Posts: 743
Guys its pretty easy. Use the extra profile fields hack to add the fields you want, then it would be quite easy to retreive the b'day via either postings.cgi or ubb_library2.pl to show an image for the users b'day.


I can't afford a good signature editor frown
Sponsored Links
Joined: Jan 2000
Posts: 395
Member
Member
Offline
Joined: Jan 2000
Posts: 395
Quote
quote:
Would you be kind enough to document this for us PERL illiterates? laugh

Joined: Jan 2000
Posts: 395
Member
Member
Offline
Joined: Jan 2000
Posts: 395
Bumperoo!

Joined: Feb 2001
Posts: 108
p2k Offline
Member
Member
Offline
Joined: Feb 2001
Posts: 108
Well, hopefully this will work.

Open up ubbmisc.cgi

What you'll want to do is find the Interests line, I think it's stored as $thisprofile[9]

Line of code should look like this:

Code
code:

So let's change that. No one really cares what your interests are anyhow. smile Change it to Birthday so it looks like this:

Code
code:

Make a note in the table or elsewhere that the birthday has to be entered in the following fashion:

Month Day, Year

So October 30, 2001 for example sake.

Open up UBB_LIBRARY2.PL and find:

Code
code:

ABOVE it put:

Code
code:

All it does is compare the current posting date with the date in their profile. If it matches, a HAPPY BIRTHDAY is placed under their # of posts, etc.

Try it. Hopefully it works as its just off the top of my head.

peetwokewl4u!

Joined: Jan 2000
Posts: 395
Member
Member
Offline
Joined: Jan 2000
Posts: 395
Nice job, but that won't work with pre 5.45 versions since they don't list the # of posts.

Can you tweak this a tad for those of us on pre 5.45?

Joined: Feb 2001
Posts: 108
p2k Offline
Member
Member
Offline
Joined: Feb 2001
Posts: 108
Nope. 5.47+ is my specialty. I'm not familiar with anything below that. Maybe someone else can give you a helping hand and get you on your way!

peetwokewl4u!

Joined: Jan 2000
Posts: 395
Member
Member
Offline
Joined: Jan 2000
Posts: 395
Bump

Joined: Jan 2000
Posts: 395
Member
Member
Offline
Joined: Jan 2000
Posts: 395
Please help me with this....

TIA!


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Gizmo
Gizmo
Portland, OR, USA
Posts: 5,833
Joined: January 2000
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)