Re: Calendar Mod
Just modified it and it's working now...but what about the index.php part...it's only showing a blank table.
if cHArACtER is lOSt sOMeTHiNG is lOSt,
bUT,
if rELiGIon and eDUcATiON aRE lOSt eVErYThINg is lOSt.
You are not logged in. Please login or register.
PunBB Forums → PunBB 1.2 modifications, plugins and integrations → Calendar Mod
Just modified it and it's working now...but what about the index.php part...it's only showing a blank table.
i realy dont know why its not showing anything, if there isnt a birthday it should say something like "No Birthdays Happing This Month",
no change the colors for the cells :S calendar_date and calendar_nodate :S
sorry the problem not is the calendar my problem is with my style dont work well :S
i can't add more styles why? when i add more styles these don't work
hmm....did you change "#COLOR" with the color you are useing?
maybe you need to add the new class to your other css files, if you did, than i dont know whats wrong....
umm sorry i'm idiot :$ was for // in coments
hey gizzmo the calendar 1.8 have a problem with the age, the script add 1 year more age.
the solution is this
open calendar.php
find: $age = $year-$bday_year+1;
and reemplace with this: $age = $year-$bday_year;
this is all
i think it should cuz your turning one year older past that day, iv tested it, it says that im turining 19 but on that day i wont ill be turning 20 so i beleave you need that +1at the end.
look i have births the agust 14 in 1986, and i have 18 years in this moment but in your calendar shows the age that i will have next year, i think that is better to show the age that i will have in the year that i choose and if you use my fix, the calendar show the real age in the moment, only you need to change the phrase "Age Turning" by "Age".
so your saying that the year i 1year to old
i just went to check, and it says im turnin 20 this year, but i turned 19 this year, i see where i went wrong...i will fix that, and fix the same bug in the birthday.php file. cuz it does the same thing...
thanx for pointing that out Azakur4.
Hey Gizzmo
Thanks for the Calendar mod .. much appreciated.
I was wondering how you were getting on with a new version (for 1.2)?
Three things I'd really like (maybe you have them planned already):
1. Ability to turn of birthday function.
2. Ability to turn calendar on/off for specific forums or categories.
3. Ability to post future events (i.e. make a post dated next week and for it to show in the calendar).
If any of these are possible now (via a small hack) I'd be grateful if anyone could share.
Thank you.
im working on the new verson, but i dont realy have much time on, and my low skills in php and design.....but im doin my best
Hello,
I've just tried to install the calendar but I've got a problem with it.
The mod is saying:
Parse error: parse error in c:\program files\easyphp1-8\www\punbb\profile.php on line 964
On that line, i found this:
if ($lang_calendar['Date_format'] == 'US') {
$birthday = date("F jS ", $datestamp).$Nyear;
} else {
$birthday = date("j ", $datestamp).$lang_calendar[(date("F", $datestamp))].$Nyear;
}
So, what is the problem ?
Does someone understand this problem?
Thank you in advance,
Polux
PS: Sorry for my english! I do my best
Hi,
could somebody tell me how to change the font size at the monthy overview. The Events are to big I need a size 6 pt or so
Thanks
I found a pretty bad bug. At the end of every line in the calendar view there is this sign: «
When I click on it, it should probably show the weekly calendar, but it doesn't. Instead, it shows that of the next week.
I pasted the code that's probably relevant here:
echo "\t\t\t\t<td class='calendar_wk'><a href='calendar.php?".$ltype."week=".$year_link.".".$date_link."'>«</a></td>\n";
echo "\t\t\t</tr>\n\t\t\t<tr>\n";
}
if ( $day_of_wk < 6 && $date_of_mth == $days_in_mth ) {
for ( $i = $day_of_wk ; $i < 6; $i++ )
{ echo "\t\t\t\t<td valign='top' style='width:14%; height:75px' class='calendar_no' > </td>\n"; }
echo "\t\t\t\t<td class='calendar_wk'><a href='calendar.php?week=".$year_link.".".($date_link+1)."'>«</a></td>\n";
echo "\t\t\t</tr>\n";
Thanks for help.
I am working on that. There's a quick-fix that Gizzmo suggested, but I haven't had time to play with it yet. Better to post over at punres for this. I will followup there on it.
I asked at punres: http://www.punres.org/viewtopic.php?pid=15019
Hi guys,
i need a feature...
If anyone has an event for more than one day (perhaps 2 weeks), he need to insert the event 14x and everytime the same content. Its a lot of work sometimes...
I wish to insert a function "from - till" in the calendar. Possible?
Greetings
Michaela
hi cherry... yes its possible. However, for now its on the "wish list".
Only so much time available to spend on these things 8^P
If I am the one who will write it, I cannot say when it may happen, but I think its fairly high on the wish list compared to most ;^)
Of course, anyone may jump in at anytime and whip it out...
twohawks.
this is a mod that i worked on...
it will display the event listed from the calendar on any frontpage or puntal system
can u add this to ur new version of pbbgallery
and add this to the install txt
as
calendar events block
name this as events.php
<div class="block">
<h2><span>Calendar Events</span></h2>
<div class="box">
<div class="inbox">
<ul>
<?php
$show = isset($_GET['show']) ? intval($_GET['show']) : 15;
if ($show < 1 || $show > 50)
$show = 15;
$events= $db->query('SELECT date, id, title FROM '.$db->prefix.'calendar WHERE (date >= CURDATE()) AND (date <= DATE_ADD(CURDATE(), INTERVAL 14 DAY))') or error ('Unable to fetch date and events: '.$db->error());
while ($cur_event = $db->fetch_assoc($events))
{
if ($pun_config['o_censoring'] == '1')
$cur_event['title'] = censor_words($cur_event['title']);
$subject_truncated = pun_htmlspecialchars($cur_event['title']);
$dateformatted = preg_replace("/-/", ".", $cur_event['date']);
echo '<li><a href="'.$pun_config['o_base_url'].'/calendar.php?view=event&date='.$dateformatted.'" title="'.pun_htmlspecialchars($cur_event['title']).'">'.$subject_truncated.'</a></li><br>'."\n";
}
?>
</ul>
<p> </p>
</div>
</div>
</div>
hi cherry... yes its possible. However, for now its on the "wish list".
Only so much time available to spend on these things 8^P
If I am the one who will write it, I cannot say when it may happen, but I think its fairly high on the wish list compared to most ;^)
Of course, anyone may jump in at anytime and whip it out...
thats enough time...
finished?
Greetings
Michaela
PunBB Forums → PunBB 1.2 modifications, plugins and integrations → Calendar Mod
Powered by PunBB, supported by Informer Technologies, Inc.