126

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 mONey is lOSt nOThINg is lOSt,
if cHArACtER is lOSt sOMeTHiNG is lOSt,
bUT,
if rELiGIon and eDUcATiON aRE lOSt eVErYThINg is lOSt.

127

Re: Calendar Mod

i realy dont know why its not showing anything, if there isnt a birthday it should say something like "No Birthdays Happing This Month",

128 (edited by Azakur4 2004-11-18 05:49)

Re: Calendar Mod

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

El Mejor Lugar de la Red - Corporación Azakur4

129

Re: Calendar Mod

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....

130

Re: Calendar Mod

umm tongue sorry i'm idiot :$ was for // in coments

El Mejor Lugar de la Red - Corporación Azakur4

131

Re: Calendar Mod

hey gizzmo the calendar 1.8 have a problem with the age, the script add 1 year more age.

the solution is this wink

open calendar.php

find: $age = $year-$bday_year+1;

and reemplace with this: $age = $year-$bday_year;

this is all smile

El Mejor Lugar de la Red - Corporación Azakur4

132

Re: Calendar Mod

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.

133

Re: Calendar Mod

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".

El Mejor Lugar de la Red - Corporación Azakur4

134

Re: Calendar Mod

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.

135

Re: Calendar Mod

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.

136

Re: Calendar Mod

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

137

Re: Calendar Mod

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 wink

Re: Calendar Mod

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

The poor horseman without horses
www.galopp-sport.eu

http://claimid.com/jlangrock
[img]http://claimid.com/images/hcard.gif[/img]

139

Re: Calendar Mod

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.

FluxBB - v1.4.8

140

Re: Calendar Mod

Anybody?

FluxBB - v1.4.8

141

Re: Calendar Mod

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.

TwoHawks
Love is the Function
No Form is the Tool

142

Re: Calendar Mod

I asked at punres: http://www.punres.org/viewtopic.php?pid=15019

FluxBB - v1.4.8

Re: Calendar Mod

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

144

Re: Calendar Mod

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
Love is the Function
No Form is the Tool

145 (edited by quaker 2007-03-26 05:19)

Re: Calendar Mod

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>
My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!

Re: Calendar Mod

twohawks wrote:

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...  wink
finished?

Greetings
Michaela