![]() |
Widget - Today's Birthdays
1 Attachment(s)
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. https://vborg.vbsupport.ru/attachmen...1&d=1292005895 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 - HTML Code:
<vb:if condition="$show['birthdays']"> 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 - PHP Code:
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 - PHP Code:
|
Thank you! Works great.
|
Code:
Parse error: syntax error, unexpected T_LNUMBER in /home/socially/public_html/forums/includes/class_core.php(4074) : eval()'d code on line 2 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. |
which vb version are you using?
|
Quote:
Thanks for the quick reply |
Quote:
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) |
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)
|
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: PHP Code:
After complete these step then nothing is happen. I do not know any mistake in these step. |
Did you clear the CMS cache?
Also, when no one has a birthday today, the widget won't come up ... |
is it working as a forum block? (in the forum sidebar)
|
No, only as a CMS widget ... I haven't taken a look at how to make a forum block yet ...
|
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.
|
It doesn't show when no one has a birthday on the current day. You als might need to clear the CMS cache ...
|
Thank you. Re-installed and all working ok now.
|
Thanks, working perfect with 4.1
|
i dont get it
im running 4.1.1 and o followed the instructions to the letter - and everything is exactly as instructed... no deviations.. but it doesnt show in the front page despite the test users bday is set to today and is showing age and birthday does it not work for 4.1.1 ? ok - it came out after i cleared the cache again - but it dissapears - and i have to clear cache everytime i want to show it i LOVED it the time i saw it - i really would like for it to show all the time :) |
It works for me with 4.1.2. Thanks
|
Quote:
|
Works fine on 4.1.4
Of course doesn't show any for members who have chosen to 'hide' their complete bday info or 'hide' the month and day. Any chance of having upcoming birthdays (say those in the next x number of days) show up instead of just 'today's'? |
I'm using 4.1.4 with a custom style and the widget only sometimes displays. I can't get anything consistent with any of the four major browsers.
|
I'm on 4.1.5 and I cant get this widget to display. Even before when I was on 4.1.2 it didn't work.
I have followed the instructions to the letter, even removed it and reinstalled several times to be sure I didn't miss anything. I can see some post here that people only see it after clearing CMS cache but not even that helps in my case. What can I do to help you help me? I have checked that birthdays are activated in the settings as well, both under general settings and under usergroup settings. |
hello,
how to use in the sidebar forum? |
vb 4.1.12 don't work.
|
4.1.12 and the widget shows up but it's empty - despite a birthday showing on the "What's going on" list on forumhome.
|
for 4.2 ?
|
I do not work in 4.2 (
|
I am using VB 4.2.1. I cannot get the widget to show on the CMS when there are birthdays listed in the "What's Going On" section.
|
Uninstalled on 4.2.1 (widget block shows but does not display birthday despite test user birthday. It's not a cache clearing issue. The mod simply doesn't work.
|
Interesting, Will try this out on my 4.2.2 and get back to you.
|
All times are GMT. The time now is 07:13 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|