View Full Version : [Module] Combo: Calendar + Birthdays + Upcoming Events
Pages :
1
2
3
4
5
6
7
[
8]
zweeper
05-08-2008, 11:11 AM
$vbulletin->options['bburl'] . '/member.php?' . $vbulletin->session->var
['sessionurl'] . 'u=' . $birthinfo['userid'] . '">' . $birthinfo['username']
just like this. it works with 3.7.
Phooey
05-08-2008, 12:10 PM
I've attached a working version of this module that I've tested on vBulletin 3.7 with vBadvanced CMPS 3.0.1.
Enjoy!
zweeper
05-08-2008, 02:54 PM
dont shows birthdays by me
zweeper
05-08-2008, 03:23 PM
just toms way works by me. but now i have another problem...
the "Today Bithday" Box is shown contously, also when nobody has birthday... how can i change it so that it just shows the box when someone has birthday? :(
Tom M
05-09-2008, 08:21 AM
I don't have 3.7.x installed so I have no way of testing a version of this module for that version of vb just yet. When (and if) I ever do get to more recent version of vb and vBa then I'll post that update in a new thread as this one is really for 3.5.x and, as it turns out, 3.6.x.
Tom M
05-09-2008, 08:23 AM
just toms way works by me. but now i have another problem...
the "Today Bithday" Box is shown contously, also when nobody has birthday... how can i change it so that it just shows the box when someone has birthday? :(Well, things have appeared to change with the newer version. If the current vBa Birthday module works for you just copy (and update where needed) the appropriate section of code and put it into this module. That should pretty much resolve the issue.
Phooey
05-09-2008, 11:40 AM
Why not just fix it in the module and update the attachment in the first post?
zweeper
05-09-2008, 02:32 PM
yes, im so damn hot for this module ;)
Tom M
05-10-2008, 08:11 AM
Why not just fix it in the module and update the attachment in the first post?Because then it wouldn't work for the version that this thread is about :rolleyes:
Phooey
05-10-2008, 10:53 AM
Fair enough. ;)
You can always release a new version, though!
Has anyone tested the uploaded module I uploaded a half a page up to see if it works in vB3.7?
desmomax
05-13-2008, 01:15 PM
i have vb 3.7 and in my portal i see :
Today's Birthdays:
Array
what hell is this Array? :)
zweeper
05-13-2008, 02:15 PM
The $birthdays bit was changed to an Array in 3.7RC3: here's a quick fix:
Edit combocalendar.php and find line 111, and edit to read as follows:
case $vbulletin->birthdaycache['day2'];
$birthdays = $vbulletin->birthdaycache['users2'];
break;
}
// The next section has been changed (lifted from birthdays.php):
$birthdays_str = '';
// Birthdays change from a string to array in vB 3.7 RC3
if (is_array($birthdays))
{
if (empty($birthdays))
{
$birthdays_str = $vbphrase['none'];
}
else
{
foreach ($birthdays AS $birthkey => $birthinfo)
{
$birthdays_str .= '<a href="' .
$vbulletin->options['bburl'] . '/member.php?' . $vbulletin->session->var
['sessionurl'] . 'u=' . $birthinfo['userid'] . '">' . $birthinfo['username'] .
'</a>' . iif($birthinfo['age'], ' (' . $birthinfo['age'] . ')') . '<br />';
}
}
}
else if ($birthdays)
{
$birthdays_str = str_replace(array('member.php', ','),
array($vbulletin->options['bburl'] . '/member.php',
'<br />'), $birthdays);
}
else
{
$birthdays_str = $vbphrase['none'];
}
$birthdays = $birthdays_str;
// Everything below here hasn't changed:
if ($birthdays)
{
eval('$calendarbits .= "' . fetch_template('adv_portal_birthdays
') . '";');
}
unset($birthdays);
}
Hope this helps.
B
you just have to doo this! Then it works!
desmomax
05-14-2008, 05:37 AM
yes, it seems working..
one more question,
how can i change the english in italian, where i have to modify ?
desmomax
05-14-2008, 09:57 AM
Now the birthday is fixed, thanx..
but still seems that something doesnt work..
it says that no event in next 30 days but it's not true.. i have an event on 8 june.. (?)
www.ilbraccoitaliano.net
desmomax
05-15-2008, 11:29 AM
Could someone help me? i like this module but it doesnt work... :(
desmomax
05-16-2008, 04:45 AM
i have the phrasegroups= (...) in index.php
i have loaded the module you attached...
but still same problem:
Upcoming Events
No events scheduled in
the next 30 days.
and this is not true!
i have scheduled event 8th june..
??
raw2008
05-17-2008, 10:50 AM
i have the phrasegroups= (...) in index.php
i have loaded the module you attached...
but still same problem:
Upcoming Events
No events scheduled in
the next 30 days.
and this is not true!
i have scheduled event 8th june..
??
Why that for me too has ceased to work, I shall not understand why.:(:(:( I shall look. I in the beginning worked even was delighted; I think, that it is connected to caching a calendar; Excuse for bad English :)
raw2008
05-17-2008, 01:59 PM
FOR vba v.3.0.1 vb v.3.7.0
Beforehand Install number of the days to 30 or another in "Admin Control Pane/vBulletin Options/Forums Home Page Options/Display Calendar Events?":)All work
desmomax
05-19-2008, 05:27 AM
just to be sure.. where i have to copy this file combo eng.xml you attached?
thax
desmomax
05-20-2008, 12:54 PM
Could you explain me better? thanx
raw2008
05-21-2008, 03:31 AM
Could you explain me better? thanx
that exactly beside you do not work?:rolleyes:
desmomax
05-21-2008, 05:37 AM
I dont understand where to place the file you attached
File Type: xml combo_eng.xml (20.0 KB, 5 views)
many thanx
raw2008
05-21-2008, 05:35 PM
I dont understand where to place the file you attached
File Type: xml combo_eng.xml (20.0 KB, 5 views)
many thanx
Admin Control Panel/vBa CMPS/Download/upload_module/upload_module/Upload_module/combo_eng.xml :rolleyes:
xTerMn8R
05-25-2008, 05:50 PM
Raw 2008,
It wants a .module file in the location you provided not an xml...
I got my Events to work but Now after I edited the combocalander.php File and Placed the code in from the example above My Birthdays dissappeared completely from the combo calander, At least before there was an "Array" being displayed. Another wierd thing is if I use the CMPS 3.0 Todays Birthdays Module it shows the ARRAY in there and that file says compatable with vb3.6-3.7
Strange stuff...
Tom
desmomax
05-26-2008, 05:26 AM
I did..
but it doesnt work!
i have an event on 8th june and 30 days but nothing is shown in homepage...
:(
look urself
www.ilbraccoitaliano.net
desmomax
05-27-2008, 09:28 AM
OK.. i'll uninstall it. thanks anyway
desmomax
06-02-2008, 06:40 AM
Strange...
now i see the upcoming event, but the mod do not consider the 30 days i inserted... but only the period chosen in the forum options..
anyway, is possible to disable the next birthday box that is already shown in statistics in my vbadvanced?
thanx
Tom M
06-02-2008, 07:43 AM
Yes, just deselect it from the list of modules from that page.
desmomax
06-02-2008, 10:18 AM
ok great.. it works..
one more little problema,
at moment everything is in english,
if i search the phrase:
Today's birthday i see that the italian translaction is inserted, but i still see the english in my advanced homepage... why?
raw2008
06-03-2008, 07:04 AM
Strange...
now i see the upcoming event, but the mod do not consider the 30 days i inserted... but only the period chosen in the forum options..
anyway, is possible to disable the next birthday box that is already shown in statistics in my vbadvanced?
thanx
I wrote FOR vba v.3.0.1 vb v.3.7.0
Beforehand Install number of the days to 30 or another in "Admin Control Pane/vBulletin Options/Forums Home Page Options/Display Calendar Events?"All work:)
raw2008
06-03-2008, 07:15 AM
ok great.. it works..
one more little problema,
at moment everything is in english,
if i search the phrase:
Today's birthday i see that the italian translaction is inserted, but i still see the english in my advanced homepage... why?
To change in adv_portal_birthdays
desmomax
06-05-2008, 06:23 AM
Where i find this file? sorry for the question.. but i dont find adv_portal_birthdays
thanks
lkavadas
06-16-2008, 05:53 PM
Has anyone managed to get this to work properly in 3.7? I tried to install last night and I get "Array" listed under birthdays and my Upcoming Events portion doesn't work at all.
zebra
07-04-2008, 05:24 AM
Indeed I hope there will be a update on this, with 3.7 the birthdays and my Upcoming Events are not working anymore:-( So please update the script..
RAW08 script seems to be working, great!
desmomax
07-04-2008, 05:35 AM
Mine works with 3.7.2
ov3rrun
07-12-2008, 06:57 AM
Thsi code works for me:
<?php
$tdate = vbdate('Y-m-d', TIMENOW, false, false);
if (!is_array($vbulletin->birthdaycache) OR ($tdate != $vbulletin->birthdaycache['day1'] AND $tdate != $vbulletin->birthdaycache['day2']))
{
include_once('./includes/functions_databuild.php');
$vbulletin->birthdaycache = build_birthdays();
}
switch($tdate)
{
case $vbulletin->birthdaycache['day1']:
$birthdays = $vbulletin->birthdaycache['users1'];
break;
case $vbulletin->birthdaycache['day2'];
$birthdays = $vbulletin->birthdaycache['users2'];
break;
}
$show['tablerow'] = true;
($hook = vBulletinHook::fetch_hook('vba_cmps_module_birthdays')) ? eval($hook) : false;
$birthdays_str = '';
if (is_array($birthdays))
{
if (empty($birthdays))
{
$birthdays_str = $vbphrase['none'];
}
else
{
foreach ($birthdays AS $birthkey => $birthinfo)
{
$birthdays_str .= '<a href="' .
$vbulletin->options['bburl'] . '/member.php?' . $vbulletin->session->var
['sessionurl'] . 'u=' . $birthinfo['userid'] . '">' . $birthinfo['username'] .
'</a>' . iif($birthinfo['age'], ' (' . $birthinfo['age'] . ')') . '<br />';
}
}
}
else if ($birthdays)
{
$birthdays_str = str_replace(array('member.php', ','),
array($vbulletin->options['bburl'] . '/member.php',
'<br />'), $birthdays);
}
else
{
$birthdays_str = $vbphrase['none'];
}
$birthdays = $birthdays_str;
$home["$mods[modid]"]['content'] = iif($birthdays, str_replace(array('member.php', ','), array($vboptions['bburl'] . '/member.php', '<br />'), $birthdays), $vbphrase['none']);
?>
lkavadas
07-30-2008, 12:23 PM
Hmmm, the above code doesn't work for me. At best all I got was the calendar and birthdays but the "Upcoming Events" part never displayed at all.
DawnJW
08-03-2008, 11:28 AM
» August 2008 S M T W T F S 2728293031 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 123456 Today's Birthdays Array Upcoming Events No events scheduled in
the next 360 days.
But i want that Array becomes None? How i can do that?
Greets,
Dawn
Tom M
08-03-2008, 01:22 PM
» August 2008 S M T W T F S 2728293031 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 123456 Today's Birthdays Array Upcoming Events No events scheduled in
the next 360 days.
But i want that Array becomes None? How i can do that?
Greets,
Dawn
Link? vb version? vBa version?
shadowdancer36
09-19-2008, 12:55 PM
I know this is an old hack, but has the probs with the array and all that got fixed? Ever? I'm having two issues.
http://picturemeclubbing.smugmug.com/photos/375711663_BxMUc-M.jpg
The array one and the title shows twice. Also at the bottom its space there. Anyone knows what to do here to correct that?
Read a page or two back for instructions on adding an extra column - to make the width uniform with the calendar.
My 2 cents on the double month showing up is this - in template calendar_smallmonth_header:
<tr>
<td class="tcat" colspan="$colspan" align="center"><a href="calendar.php?$session[sessionurl]month=$month&year=$year&c=$calendarid&do=displaymonth">$monthname $year</a></td>
</tr>
!!!!!Remove everything above this line!!!!!
<tr align="center">
<td class="thead"> </td>
<if condition="$show['day1']"><td class="thead">$day1</td></if>
<if condition="$show['day2']"><td class="thead">$day2</td></if>
<if condition="$show['day3']"><td class="thead">$day3</td></if>
<if condition="$show['day4']"><td class="thead">$day4</td></if>
<if condition="$show['day5']"><td class="thead">$day5</td></if>
<if condition="$show['day6']"><td class="thead">$day6</td></if>
<if condition="$show['day7']"><td class="thead">$day7</td></if>
</tr>
$calendarrowbits
Works on my site running vbulletin 3.7.3
http://www.wauseon.com
Kurgan
10-15-2008, 06:19 PM
The combocalendar.php file from combocalendar.module that was attached a couple of pages back had a problem in it for me -- I couldn't get it to display the birthdays at all on VBA 3.0.1 and VB 3.7.3 PL1. I screwed around quite a bit using some suggestions here, but never had any success.
Then, it jumped out at me.
Original combocalendar.php code generated from the combocalendar.module file a couple pages back:
eval('$calendarbits .= "' . fetch_template('adv_portal_birthdays
') . '";');
The code isn't continuous. I thought I was seeing a text wrap or something, but there's actually a line break there, and it's causing a problem.
Correcting that line in combocalendar.php to this causes Today's Birthdays to show up properly:
eval('$calendarbits .= "' . fetch_template('adv_portal_birthdays') . '";');
No other changes are necessary. So if anyone else is stumped over why Today's Birthdays doesn't show up, that should fix it. :D
Lustikus
10-28-2008, 10:09 AM
mmh... so, anyone got the problem that the days where some birthdays or events are, arent clickable ? just plain text ?
residual
10-30-2008, 10:05 AM
Anyway to get musername for birthdays?
Hyrel
11-02-2008, 01:36 AM
I've managed to remove the extra space from the side except for the part where the month is listed. I'm completely stuck. Can anyone help?
www.rcckarateclub.com
Joachim
11-29-2008, 07:44 PM
Hello,
we also have 3.7.4 and 3.0.1 and it dont works - can anyone help and create a working module?
vBulletin® v3.7.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.