Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Widget - Today's Birthdays Details »
Widget - Today's Birthdays
Mod Version: 1.00, by ZexTasy (Member) ZexTasy is offline
Developer Last Online: Feb 2011 I like it Show Printable Version Email this Page

vB Version: 4.0.8 Rating: (3 votes - 3.33 average) Installs: 49
Released: 10 Dec 2010 Last Update: 10 Dec 2010 Downloads: 178
Not Supported Uses Plugins Template Edits Translations  

First I want to thank Lynne for giving me a good startup for both code and this post from her Widget - Online Users mod.

This is a widget for your CMS pages to show Today's Birthdays.



You will need to Create a new Template (vbcms_widget_execphp_birthdays), Cache the template, Create a new Widget (Today's Birthdays), Configure the Widget, and then finally add the Widget to your Layout (I am not including instructions for that, you should know how to add Widgets to Layouts).

1.0 2010-12-10: First version (4.0.8)

INSTALL INSTRUCTIONS:

1) Create a new Template
Styles & Templates > select style (I like to do this in the MASTER STYLE, but you will need to reinput it after every upgrade) > Add Template
Title - vbcms_widget_execphp_birthdays
Template code -

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


2) Create a new Plugin
Plugins & Products > Add New Plugin > leave everything default except:
Hook Location - cache_templates
Title - Cache template for Today's Birthdays Widget
Plugin PHP code -

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Plugin is Active - Yes

3) Create a new Widget
vBulletin CMS > Widgets > Create New Widget
Widget Type - PHP Direct Execution
Title - Today's Birthdays
SAVE

4) Configure the Widget
Now go to vBulletin CMS > Widgets > Today's Birthdays > Configure
Change the Template Name to -
vbcms_widget_execphp_birthdays
Add the following code -

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

After install clear the CMS cache

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	todays_birthdays_widget.jpg
Views:	2210
Size:	6.6 KB
ID:	124357  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Mini Mods Number of Today's Birthdays on FORUMHOME ForumsMods Modification Graveyard 5 24 Sep 2008 11:19

Comments
  #2  
Old 11 Dec 2010, 02:57
Taurus1's Avatar
Taurus1 Taurus1 is offline
 
Join Date: Dec 2009
Thank you! Works great.
__________________
For custom designed Windows 7 Visual Styles/Themes, please visit CreativX!
Reply With Quote
  #3  
Old 12 Dec 2010, 04:08
OldSchoolDSL OldSchoolDSL is offline
 
Join Date: Oct 2010
Real name: Adam H.

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Followed everything to the letter and even double checked after, but got the following error on the top of every page on my site, after I told the system to rebuild theme / styles .... I too edit the default theme / style and use it as the parent theme for everything (makes it real easy to update 12 other themes).

Got ride of the error by clearing the CSM CACHE and / or Verify and Repair Node Table

Setup a test account with today as the accounts (fake user's) birthday. Nothing showed up, so this seems not to be working for me.
Reply With Quote
  #4  
Old 12 Dec 2010, 09:30
ZexTasy ZexTasy is offline
 
Join Date: Jan 2008
which vb version are you using?
Reply With Quote
  #5  
Old 12 Dec 2010, 09:37
OldSchoolDSL OldSchoolDSL is offline
 
Join Date: Oct 2010
Real name: Adam H.
Originally Posted by ZexTasy View Post
which vb version are you using?
4.0.8 Patch Level 2

Thanks for the quick reply

Last edited by OldSchoolDSL; 12 Dec 2010 at 10:11.
Reply With Quote
  #6  
Old 12 Dec 2010, 14:28
OldSchoolDSL OldSchoolDSL is offline
 
Join Date: Oct 2010
Real name: Adam H.
Originally Posted by OldSchoolDSL View Post
4.0.8 Patch Level 2

Thanks for the quick reply
FIXED.

It works.... But it only showed up after I logged into my "demo / test account".

What I had done was change the birth date from within the admin account to reflect today. But oddly enough it would not show up until I finally logged into that account.

My "demo / test account" is simply another user to which I made to see things from another point of view, without having to make the changes on my account or another user's (2 browser going at once).

(my test site basically died off and I've not gotten to re-making a new one yet... So much work)
Reply With Quote
  #7  
Old 12 Dec 2010, 20:35
ZexTasy ZexTasy is offline
 
Join Date: Jan 2008
That sounds logical. Since Birthdays make use of the datastore and when updating a user in the admincp you don't update that. Therefore the user did not come up as having a birthday on that day. I'll add a comment to the startpost that it's useful to clear the CMS cache after install! I am glad it all works! (Y)
Reply With Quote
  #8  
Old 16 Dec 2010, 03:22
fastcom fastcom is offline
 
Join Date: Mar 2010
Hi ZexTasy,
I want display winget in forum block. I have complet step 1,2 and 4. At step 4 I config:
Title: Today's Birthdays
Active: Yes
Content type: PHP
Content:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

and other field is default.
After complete these step then nothing is happen. I do not know any mistake in these step.
Reply With Quote
  #9  
Old 16 Dec 2010, 19:25
ZexTasy ZexTasy is offline
 
Join Date: Jan 2008
Did you clear the CMS cache?

Also, when no one has a birthday today, the widget won't come up ...
Reply With Quote
  #10  
Old 28 Dec 2010, 01:51
Zweeper Zweeper is offline
 
Join Date: Jan 2005
is it working as a forum block? (in the forum sidebar)
Reply With Quote
  #11  
Old 28 Dec 2010, 12:39
ZexTasy ZexTasy is offline
 
Join Date: Jan 2008
No, only as a CMS widget ... I haven't taken a look at how to make a forum block yet ...
Reply With Quote
  #12  
Old 29 Dec 2010, 00:36
Les Beeavinu Les Beeavinu is offline
 
Join Date: Dec 2010
Hi - new to all this and registered specifically for this widget. Sadly, doesn't work, even though I've followed the comprehensive instructions. Just now showing at all - no error codes or anything.
Reply With Quote
  #13  
Old 30 Dec 2010, 00:55
ZexTasy ZexTasy is offline
 
Join Date: Jan 2008
It doesn't show when no one has a birthday on the current day. You als might need to clear the CMS cache ...
Reply With Quote
  #14  
Old 31 Dec 2010, 06:57
Les Beeavinu Les Beeavinu is offline
 
Join Date: Dec 2010
Thank you. Re-installed and all working ok now.
Reply With Quote
  #15  
Old 18 Jan 2011, 18:56
cws cws is offline
 
Join Date: Dec 2004
Thanks, working perfect with 4.1
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 23:48.

Layout Options | Width: Wide Color: