151 (edited by Kraeved 2005-12-31 03:14)

Re: Calendar 2.0

Gizzmo,
what should happen after changing select field from Topics/Posts to Events?

For me (punbb 1.2.10, even with fix above) nothing happens.
So I've got information only after pressing 'Submit Query'. Is it right?

And, by the way, what is the purpose of minical? (I see it empty now.)

152

Re: Calendar 2.0

Just added to my forum 1.2.10 and it works smile

153 (edited by FredrikK 2006-01-19 22:03)

Re: Calendar 2.0

coxis wrote:

Just added to my forum 1.2.10 and it works smile

Works fine for me to! Except for this little problem...


I have translated all possible words in the language file to Swedish, but it still says "month", "year" and "day" in English in the profile as shown in the picture.


http://www.brunna.se/help.JPG


What to do?

And one more question, does this mod suppose to show "Today's birthday: xxxxx" in the index forum? If not, how to get this done using this mod?

hej!

Re: Calendar 2.0

Fix: Replace  Gizzmo's Code in profile.php

<!---------------------------->
<!-- Start of Gizzmo's Code -->
<!-- justgiz@justgizzmo.com -->
<!---------------------------->
<label><?php echo $lang_profile['Birthday'] ?></label>

                            <div>

<?list($bday_year,$bday_month,$bday_day) = explode('-', $user['birthday']);?>

    <select name="bday_month">

    <option value="0" <?
    require PUN_ROOT.'lang/'.$pun_user['language'].'/calendar.php';
    if(empty($bday_month)&& $bday_month="0")echo 'selected';
    echo '>'.$lang_calendar['Month'].'</option>';

    

    $month_name = array('',$lang_calendar['January'],$lang_calendar['February'],$lang_calendar['March'],$lang_calendar['April'],$lang_calendar['May'],$lang_calendar['June'],$lang_calendar['July'],$lang_calendar['August'],$lang_calendar['September'],$lang_calendar['October'],$lang_calendar['November'],$lang_calendar['December']);

    for($x=1;$x<13;$x++)

    {

        $s = ($bday_month == $x)? " selected": "";

        echo"\t\t\t\t\t\t\t\t\t<option value='".$x."'".$s.">".$month_name[$x]."</option>\n";

    }


        echo"\t\t\t\t\t\t\t\t\t</select>\n";
        echo"\t\t\t\t\t\t\t\t\t<select name=\"bday_day\">\n";
        echo"\t\t\t\t\t\t\t\t\t<option value=\"0\"";                            

    if(empty($bday_day)&& $bday_day="0")echo 'selected';
                                    echo '>'. $lang_calendar['Day'].'</option>';



    for($x=01;$x<=31;$x++)

    {

        $s = ($bday_day == $x)? " selected": "";

        echo"\t\t\t\t\t\t\t\t\t<option value='".$x."'".$s.">".$x."</option>\n";

    }

        echo"'\t\t\t\t\t\t\t\t\t</select>\n";
        echo "\t\t\t\t\t\t\t\t\t<select name=\"bday_year\">\n";
        echo "\t\t\t\t\t\t\t\t\t<option value=\"0\"";                            

        if(empty($bday_year)&& $bday_year="0")echo 'selected';
        echo '>'. $lang_calendar['Year'] .'</option>\n';



    for($x=date("Y")-10; $x>date("Y")-50; $x--)

    {

        $s = ($bday_year == $x)? " selected": "";

        echo"\t\t\t\t\t\t\t\t\t<option value='".$x."'".$s.">".$x."</option>\n";

    }



?>

                                </select>

                            

                            </div>
<!------------------------->
<!-- End of Gizzmo's Code-->
<!------------------------->

There are some more bugs but Gizzmo want to wait till PunBB 1.3

155

Re: Calendar 2.0

Thanks! smile


But...

FredrikK wrote:

And one more question, does this mod suppose to show "Today's birthday: xxxxx" in the index forum? If not, how to get this done using this mod?

Any help would be greatly appreciated!

hej!

156 (edited by FredrikK 2006-01-22 23:34)

Re: Calendar 2.0

(2.) And does anyone know how to remove the little sign pointed out in the picture below?

(3.) I would also like who know how to translate "submit query"?

http://www.brunna.se/help2.JPG

hej!

157 (edited by FredrikK 2006-01-22 23:44)

Re: Calendar 2.0

(4) I have translated all possible words in the language file to Swedish, but the specific text in the picture is still English. Please help. smile

http://www.brunna.se/help3.JPG

hej!

158

Re: Calendar 2.0

There is a new version out. Version 2.0.7.

This update wasnt any of my work, it is the work of two very nice people. Fredrikk and BugHunter. (hope i got their names right)

They tell me there is only one problem with the upgrade. You will have to edit and repost all your events. This is because in the new version has bbcode enabled in the event info.

Also, i might toss over the project for the next version. i dont know if i will, i guess i will just have to think it over some more.

159 (edited by BugHunter 2006-02-09 11:25)

Re: Calendar 2.0

What's new in Calendar 2.0.7
Now everything is translated by the languages files.

The Calendar settings now include the option: Show listbox Topics/Events.
If set to yes this option will alow everyone to switch between Topics & Events.

Events make now use of BBcodes.

Changed navigation menu's to include week

Made some improvements to weekview and mini-calendars.

Fixed a number of small bugs
- When the week start with Monday
- When changing year
- Events display in weekview when the week is displayed over two months

Style
Added a css items for event and birthday.
When used both will be displayed in the main calender.
The mini calendars will only display current day and the events.


language files
// US = (month dayfull year) else (day month year)
'Date_format'  =>  'US',   

// Days of week name for week mini calendar
// Now you can give every single day the character you want.

// Moved the hard coded 's to the language file, because not all languages
// use the format name's
'Birthday'      =>      '\'s Bday',
'go'            =>      ' Go ',          // Submit button
'current_week'  =>      'Current Week',

// Nav links for navagation
'Last Week'     =>      'Last week',
'Next Week'     =>      'Next week',


Tips
In the directory "Calendar-2.0.7\doc\" is the file profile.php present. This is a PunBB version 1.2.10 file with only the calendar mod as changes. If you use PunBB version 1.2.10 you can use it, and skip the profile mods in the readme or upgrade_readme textfile.

Add new events:
When you don't enter a year value the event will be added to the current year.


Known problems:
- There a nummer of new words in the language file.
While i did update the known language files, I did not take the time to look for the correct translation.
So if someone could fix this and post or email me the correct language file i will make sure they are put in the next version.

- For the people that upgrade from an older calendar mod. The Events are now displayed using BBcodes. Because of this you don't get newlines untill you resaved the old event.

Old bugs, not fixed in this release:
- the calendar use only the server time and does not use the profile timezone from the user.


Wishes
I got one request to add a duration field for events.
Are there more people that would like to have this functionality?

Re: Calendar 2.0

I'd like to see duration or a full time element (start time and duration) for the events calendar part.
I'd also *love* to see weekly or monthly recurring events (maybe I missed this feature b/c I found yearly)

Lastly I posted this at punres but if you set User Groups >> Read board = No for guests guests can still see the calendar. I don't know if that is a bug or not but I know the Gallery mod reads off that to determine access levels.

Thanks,
Andrew

Re: Calendar 2.0

BugHunter wrote:

Tips
In the directory "Calendar-2.0.7\doc\" is the file profile.php present. This is a PunBB version 1.2.10 file with only the calendar mod as changes. If you use PunBB version 1.2.10 you can use it, and skip the profile mods in the readme or upgrade_readme textfile.

Is there possibly a profile.php for 1.2.11 that can be used??

Re: Calendar 2.0

I'm using the 1.2.10 file from Calendar he's talking about for 1.2.11 and it works fine. 1.2.11 was a very small security update so 99.9% of the files from 1.2.10 are the same.

Re: Calendar 2.0

could not install calendar 2.0.7 on PunBB 1.2.11
error said, only previous version of PunBB can be used when installing this calendar.

any news on when the next calendar version will be out?

rockblock
jump your block
le parkour

Re: Calendar 2.0

2.0.7 is ok with 1.2.11 ... just open the install file you run and look for 1.2.10 and change that to 1.2.11 and it'll install just fine smile

Re: Calendar 2.0

andrewteg wrote:

2.0.7 is ok with 1.2.11 ... just open the install file you run and look for 1.2.10 and change that to 1.2.11 and it'll install just fine smile

will try that, thanks...

rockblock
jump your block
le parkour

166

Re: Calendar 2.0

in profile php after i uploaded it back i got this error

Parse error: parse error, unexpected T_IF in /home/vbheco/public_html/forum/profile.php on line 963

is there something rong with the code?

#
#---------[ 10. FIND ]
#

    $posts_field = '';


#
#---------[ 11. ADD BEFORE ]
#

        list($year, $month, $day) = explode('-',$user['birthday']);
    if($month!=0 && $day!=0){
        $Nyear = (strlen($year)!=4)? NULL: $year;
                $datestamp = mktime(0,0,0,$month,$day,0)
                if ($lang_calendar['Date_format'] == 'US') {
                   $birthday = date("F jS ", $datestamp).$Nyear;
                } else {
                   $birthday = date("j ", $datestamp).$lang_calendar[(date("F", $datestamp))].$Nyear;
                }
    }else
        $birthday = $lang_profile['Unknown'];
[img]http://i8.photobucket.com/albums/a49/gfxglobe/xmennew.png[/img]

Re: Calendar 2.0

same error with mine calendar....

any solution?

rockblock
jump your block
le parkour

168

Re: Calendar 2.0

$datestamp = mktime(0,0,0,$month,$day,0)
should be
                $datestamp = mktime(0,0,0,$month,$day,0);

Re: Calendar 2.0

elbekko wrote:

$datestamp = mktime(0,0,0,$month,$day,0)
should be
                $datestamp = mktime(0,0,0,$month,$day,0);

ah, ok, work fine now... many thanks...

great work this calendar... oh yeah, respect

rockblock
jump your block
le parkour

170

Re: Calendar 2.0

And one more question, does this mod suppose to show "Today's birthday: xxxxx" in the index forum? If not, how to get this done using this mod?

has anyone answered this or have a way to do this?  This is my last peice of my calendar puzzle and would be soooo happy if someone could tell me how to do this.

thank you!!

Re: Calendar 2.0

one question
how to ban birthdays? to put it simple, I don't want to display any birthdays in the calendar, nor in the profiles, nor in the calendar itself.
Any suggestion, where should I remove the instances for bday? I have tryed already and mixed something up...

please advice

(would be nice, if you could turn this feature on/off in the admin section... like Show Bday: yes/no ... what do you think?)

the reason is, the calendar on my site should feature community events, but since the community is large, the calendar is full of bdays and its hard to find any events there... that's why I want to ban bdays...

rockblock
jump your block
le parkour

172 (edited by awmestore 2006-06-07 15:00)

Re: Calendar 2.0

Quick and Dirty: Go into your DB and delete all the b-days (deleting the column may mess up some code) ... then go get an original copy of profile.php (assuming you haven't changed anything else) and that won't have a way for a user to add his/her b-day. If they are all blank and users can't edit the blank value, nothing will show up smile

Detailed Directions:

1. Use the DB Management plugin from http://punbb.org/downloads.php to run this query:
UPDATE pun_users SET birthday = ''

2. Replace your modified profile.php with the original profile.php

HTH,
Andrew

PS >> If you don't want it from the get-go, you can always just not edit profile.php and then users won't ever have a way to add birthdays.

Re: Calendar 2.0

thanks for your advice, edited the profile.php so noone from now can add their birhdays

but the SQL query you have mentioned is not working in the DB Management plugin, have to manualy edit the entries one by one in my mysql admin right on the server...

rockblock
jump your block
le parkour

Re: Calendar 2.0

Hmmm, is the users table you are editing named pun_users ... if not change UPDATE pun_users to UPDATE users or whatever it's called. I guess pun_ was the prefix I used in my install but if you didn't use one or it was different that'd explain it.

Re: Calendar 2.0

Possible to insert a from-till option?

Perhaps anybody makes vacation and he only needs to make one event ... And the script fill all dates between the vacation.

Best regards
Michaela