Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Show Birthday Icon in Postbit Details »»
Show Birthday Icon in Postbit
Version: 1.0.4, by Andreas Andreas is offline
Developer Last Online: Jan 2023 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 06-06-2005 Last Update: 09-07-2005 Installs: 172
Uses Plugins Template Edits
 
No support by the author.

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!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
BWS

Comments
  #72  
Old 11-22-2006, 09:59 AM
asasi asasi is offline
 
Join Date: Mar 2003
Posts: 80
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<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>
Reply With Quote
  #73  
Old 11-28-2006, 08:28 AM
asasi asasi is offline
 
Join Date: Mar 2003
Posts: 80
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by asasi View Post
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.
Reply With Quote
  #74  
Old 01-13-2007, 08:56 AM
asasi asasi is offline
 
Join Date: Mar 2003
Posts: 80
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any Help????
Reply With Quote
  #75  
Old 03-30-2007, 02:28 AM
Phillip Chapman Phillip Chapman is offline
 
Join Date: Apr 2002
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I currently have the birthday hack installed on my 3.5.4 board. After I upgrade to 3.6.x will this still work?
Reply With Quote
  #76  
Old 04-09-2007, 02:50 PM
deezelpope deezelpope is offline
 
Join Date: Feb 2007
Posts: 1,272
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Flawless install! Thank you!
Reply With Quote
  #77  
Old 07-04-2007, 10:39 AM
Marco Marco is offline
 
Join Date: Nov 2001
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Still works fine in 3.6.7. Great, it's just what I was looking for
Reply With Quote
  #78  
Old 12-19-2007, 02:05 AM
TechGuy TechGuy is offline
 
Join Date: Nov 2001
Location: Waynesboro, PA USA
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:
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.
Reply With Quote
  #79  
Old 12-19-2007, 02:14 AM
C.ooder C.ooder is offline
 
Join Date: Dec 2007
Posts: 212
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you
Reply With Quote
  #80  
Old 05-23-2008, 03:14 PM
Jase2 Jase2 is offline
 
Join Date: Dec 2007
Location: USA
Posts: 1,575
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works great in 3.7.0 -- thanks for this!
Reply With Quote
  #81  
Old 03-20-2010, 01:28 PM
vijayninel's Avatar
vijayninel vijayninel is offline
 
Join Date: Mar 2009
Posts: 537
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks .. working great in 3.8.4
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:12 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07775 seconds
  • Memory Usage 2,306KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete