Author Topic: Event Calendar 1.8  (Read 56887 times)

Offline ruebenwurzel

  • Betatester
  • **
  • Posts: 8391
  • Gender: Male
  • Keep on Rockin
    • Familie Gallas Online
Event Calendar 1.8
« on: May 16, 2008, 06:25:46 PM »
Hello,

just released the Final version of Event Calendar 1.8.

Download

http://addons.WebsiteBaker.org/pages/modules/page-modules.php


Changelog since 1.74
 + made name_link field editable in the backend
 + added excerpt search to the modul
 + added support for edit CSS functions of WB 2.7
 + added backticks to all DB queries table names and fields to prevent issues with MySQL special chars like -
 + changed mechanism to prevent files from beeing accessed directly (redirect instead off displaying an error message)
 + added functionality to edit frontend.css and backend.css from within the modul
 + removed the styles from body and added frontend.css and backend.css
 + reorganized all language files
 + fixed E_ALL notices (!!Big thanks to BerndJM for the final code Fixes!!)
 + replaced all "<br>" with "<br />"
 + changed all copyright notices now includes 2008
 + added default index.php to all folders to prevent directory spoofing
 + frontend output now validiates (W3C konform)
 + some code cleaning and fixing

Requirements:

- To get the css files displayed in the head section of your template and not in the body section, add the following code to the head section of the index.php from your template:
Code: [Select]
<?php
if(function_exists(&#39;register_frontend_modfiles&#39;)) {
  
register_frontend_modfiles(&#39;css&#39;);
?>
This code only works in WB 2.6.7 and WB 2.7, if you use a lower version of WB, you don't need to make changes in your template. The css will be displayed in the body tag as it was in previous versions.

- The latest release uses the integrated edit module CSS functions of the WB 2.7 core. To add this feature to WB 2.6.x, one needs to copy the files /framework/module.functions.php and edit_module_files.php from a WB 2.7  to the WB 2.6.x installation. In addition one needs to define 3 language variables in the WB language files:
Code: [Select]
$TEXT['CAP_EDIT_CSS'] = 'Edit CSS';
$TEXT['HEADING_CSS_FILE'] = 'Actual module file: ';
$TEXT['TXT_EDIT_CSS_FILE'] = 'Edit the CSS definitions in the textarea below.';


How to update

If you use  Version  1.74 :
- Please copy the styles from the Event Calendar options to a lokal file.
- Install the new version over the existing one
- Go to the options of Event Calendar and hit "Edit Css". Add your lokal stored styles to frontend.css.

If you use a lower version then 1.74
- Please sent me a PM


Notice:
This version is based on 1.74 from our addons page. It does not include the changes from 1.74a btw. 1.75 wich are available only in forum posts.


So i hope you like this new version.

Have fun

Matthias
« Last Edit: May 16, 2008, 06:45:26 PM by ruebenwurzel »

Offline gillweb

  • Posts: 83
Re: Event Calendar 1.8
« Reply #1 on: May 17, 2008, 06:46:34 AM »
Thanks   :-D
« Last Edit: May 17, 2008, 06:52:58 AM by gillweb »

sammedit

  • Guest
Re: Event Calendar 1.8
« Reply #2 on: June 06, 2008, 05:10:24 AM »
How do I install this???  I just installed a fresh install of 2.7 and want to install this event calendar as well.  I have no idea how to use the addon backend and I don't know where to put the files or which file to install or anything.  I don't have any experience with add ons in website baker.  Please help!
Thank you.
Brent

Offline ruebenwurzel

  • Betatester
  • **
  • Posts: 8391
  • Gender: Male
  • Keep on Rockin
    • Familie Gallas Online
Re: Event Calendar 1.8
« Reply #3 on: June 06, 2008, 07:11:16 AM »
Hello,

so i think the best is, you read and learn from here:

http://help.WebsiteBaker.org/pages/en/basic-docu.php

Matthias

sammedit

  • Guest
Re: Event Calendar 1.8
« Reply #4 on: June 06, 2008, 08:10:16 AM »
Hey,
   Sorry I was on that page and just missed the addon portion.  I installed it and when I added it as a page and added some dates, I went to the page and it was blank.  I also added the top code you have in this post.  Is there anything else I am supposed to do to make it work or should I try reinstalling or what?

Offline fsuk

  • Posts: 127
Re: Event Calendar 1.8
« Reply #5 on: June 11, 2008, 02:05:49 PM »
Im getting a bug when the search highlights the search terms on the event calender:

/pages/home/events.php?searchresult=1&sstring=some+event

Listing all events

    2008-06-02Â Â Â Another event
    2008-06-03Â Â Â YET ANOTHER empty test event
    2008-07-02Â Â Â An event of some sort

Its the 'Â' that are the bug. Any ideas?
You say deviant like its a bad thing...

Offline ruebenwurzel

  • Betatester
  • **
  • Posts: 8391
  • Gender: Male
  • Keep on Rockin
    • Familie Gallas Online
Re: Event Calendar 1.8
« Reply #6 on: June 11, 2008, 05:34:16 PM »
Hello,

check your charset settings.

1.) in WB options
2.) in index.php of your template
3.) on your server

Should be everywhere the same. Best is UTF8. If they are different take the one from server and adapt WB ynd your template to this. But changing charset in options of WB after content is stored in the database means, that you have to edit and store all pages again.

Matthias

Offline fsuk

  • Posts: 127
Re: Event Calendar 1.8
« Reply #7 on: June 11, 2008, 05:51:59 PM »
I have it set to utf-8 in settings.
I ve tried it with several differnt templates.

The problem is only when i go to the page using a search link.

Im not sure how to check the server
You say deviant like its a bad thing...

Offline ruebenwurzel

  • Betatester
  • **
  • Posts: 8391
  • Gender: Male
  • Keep on Rockin
    • Familie Gallas Online
Re: Event Calendar 1.8
« Reply #8 on: June 12, 2008, 01:28:06 PM »
phpinfo

Offline contacttodd

  • Posts: 2
Re: Event Calendar 1.8
« Reply #9 on: June 26, 2008, 02:09:18 PM »
I just installed Events Calendar and I am sure it installed properly into Web Baker.  I read the intro portion of the online documentation before asking my question here.  So, I have done what I can to find the answer.  I think my question is simple.  After installing Events Calendar, how do I begin using it?  Do I create a page and reference the module?  Is there a pre-built page that I link to?

Offline BerndJM

  • Posts: 1764
  • Gender: Male
Re: Event Calendar 1.8
« Reply #10 on: June 26, 2008, 02:12:09 PM »
Hi,

just add a new page and choose the page-type event ...

Regards Bernd
In theory, there is no difference between theory and practice. But, in practice, there is.

Offline twolf

  • Posts: 14
Re: Event Calendar 1.8
« Reply #11 on: July 08, 2008, 07:48:27 PM »
Hi,

I am new to using website baker, but am getting around pretty well.  I do have two questions.

I have just installed this event calendar and it is a nice addition.  I do have one question.  Is there a way to link to the calendar page and provide a small snippet on the main screen?  ie(small monthly calendar block with highlighted dates with events?) 

The second question is this:  I have used a php event calendar on other sites (non website baker) that allows you to provide a small monthly calendar on the main screen with pop ups when you mouse over the events.  I am not sure how to smoothly incorporate such a program into website baker without receiving errors from website baker.  Is there an easy way to incorporate outside programs into website baker? 

I hope this isn't too confusing and would greatly appreciate any assistance...

T

Offline ruebenwurzel

  • Betatester
  • **
  • Posts: 8391
  • Gender: Male
  • Keep on Rockin
    • Familie Gallas Online
Re: Event Calendar 1.8
« Reply #12 on: July 09, 2008, 07:19:29 AM »
Hello,

both of your wishes are asked several times.

for the first: We have a any_news snippet wich does what you want for the news modul. This only needs to be adapted to read the database from eventcalendar.

for the second: this is integrated in an other event calendar modul. We have different calendar modules on our addons page. Try on of the other modules and then decide wich one is the best for your use.

Matthias

vyni

  • Guest
Re: Event Calendar 1.8
« Reply #13 on: July 09, 2008, 04:54:03 PM »
Thank You, Mr. ruebenwurzel!

It´s a lot more comfortable to style now. It was doing it´s job - and it seem´s if it does again.

If You have already a whish-list for future releases, please add mine:
Would it be a big job to add a "WB-Link"-Button next to the name_link field?
This would be really comfortable when linking a file which is stored in media-folder.

Thank You.
Regards from Himberg

Ralf Hertsch

  • Guest
Re: Event Calendar 1.8
« Reply #14 on: July 26, 2008, 03:11:41 PM »
Hi,

Event Calendar is a useful tool and I like it.

Website Crawler (i.e. GSite Crawler) like Event Calendar too  :-D
...they are crawling endless throught the years because there is no limitation for the displayed years.

Fix up for view.php:
Code: [Select]
   <table border="0" cellpadding="0" cellspacing="0" width="98%">
        <tr>
            <td class="eventheading" width="5%">
                <?php
                $monthchange 
$monthno-1$yearchange=$year;
                if (
$monthchange==0) {
                    
$monthchange=12;
                    
//$yearchange=$year-1;
                    // prevent displaying year < 2005
                    
$yearchange 2005 $yearchange $year $yearchange $year-1;
                } else {
                    
$yearchange=$year;
                }
                
?>

                <a href="<?php echo &#39;?monthno=&#39; . $monthchange . &#39;&amp;year=&#39; . $yearchange; ?>"><img src="<?php echo $WB_URL?>/modules/event/images/leftarrow.gif" border="0" alt="<?php echo date("M"mktime(000$monthchange1$yearchange))." ".$yearchange?>" title="<?php echo date("M"mktime(000$monthchange1$yearchange))." ".$yearchange?>" /></a>
            </td>
            <td class="eventheading" width="90%">
                <a href="<?php echo &#39;?&#39;; ?>"><?php echo $MOD_EVENT[&#39;TODAY&#39;]; ?></a>
            </td>
            <td class="eventheading" width="5%">
                <?php
                $monthchange 
$monthno+1;
                if (
$monthchange==13) {
                    
$monthchange=1;
                    
//$yearchange=$year+1;
                    // prevent displaying year > 2015
                    
$yearchange 2015 $yearchange $year $yearchange $year 1;
                } else {
                    
$yearchange=$year;
                }
                
?>

                <a href="<?php echo &#39;?monthno=&#39; . $monthchange . &#39;&amp;year=&#39; . $yearchange; ?>"><img src="<?php echo $WB_URL?>/modules/event/images/rightarrow.gif" border="0" alt="<?php echo date("M"mktime(000$monthchange1$yearchange))." ".$yearchange?>" title="<?php echo date("M"mktime(000$monthchange1$yearchange))." ".$yearchange?>" /></a>
            </td>
        </tr>
    </table>

It would be nice to have a starting year and ending year as option with the next version of event calendar...

Regards
Ralf

greyhawkes

  • Guest
Re: Event Calendar 1.8 - WRONG DATE???
« Reply #15 on: August 01, 2008, 12:05:02 AM »
Today is July 31 but the calendar shows August 1 already - even though the
server still shows July 31. Why??

kahlert

  • Guest
Re: Event Calendar 1.8
« Reply #16 on: August 25, 2008, 02:25:58 PM »
I have installed the module and it appears correctly on the page, but when I hit the "add event" button I get errors:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@cccai.org.au and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


--------------------------------------------------------------------------------

Apache/2.2.6 (Unix) mod_ssl/2.2.6 OpenSSL/0.9.8b mod_auth_passthroug h/2.1 mod_bwlimited/1.4 mod_perl/2.0.3 Perl/v5.8.8 Server at www.cccai.org.au Port 80


Any suggestions?

StuartUSA

  • Guest
Re: Event Calendar 1.8
« Reply #17 on: August 28, 2008, 05:22:03 PM »

Hi,
Great module thank you very much.

I noticed one small issue, seems that in view.php it is coded to display the Month and Year in the month view, but only displays the year as the $month_name array is not defined. Is there something I have over looked in installing it? For now I just defined the array in view.php and all is well.

I had a request to have a page show with the monthly events in one wb_section and have all events show in another as you know the event entries are all tied to the section. I made a small update to allow for this if you are interested it is:

In mysql add the following column to the table mod_event_settings

`showeventsfromsection_id` int(11) default NULL


In view.php

// Get settings
$query_content = $database->query("SELECT * FROM `".TABLE_PREFIX."mod_event_settings`
    WHERE `section_id` = '$section_id'");
if($query_content->numRows() > 0) {
        $fetch_content = $query_content->fetchRow();
        $WB_PATH = WB_PATH;
        $WB_URL = WB_URL;
        $evheader = stripslashes($fetch_content['evheader']);
        $evfooter = stripslashes($fetch_content['evfooter']);
        $todayevent = stripslashes($fetch_content['todayevent']);
        $monthevent = stripslashes($fetch_content['monthevent']);
        $event_msg = stripslashes($fetch_content['event_msg']);
        $noeventsmsg = stripslashes($fetch_content['noevents_msg']);
        $showalldata = stripslashes($fetch_content['showalldata']);
        $showeventsfromsection_id = stripslashes($fetch_content['showeventsfromsecti on_id']);
}
 
if ( $showeventsfromsection_id <> "" ) {
        $section_id = $showeventsfromsection_id;
}


I haven't catered for this change in the settings page yet.

Thanks again...

StuartUSA

  • Guest
Re: Event Calendar 1.8
« Reply #18 on: August 29, 2008, 11:54:24 AM »

Ooops found the Month array definition but can't figure out why it is not loaded when I view the calendar.

Spotted another issue; when you have multiple events on the same day the monthly view shows the links for each other on the top right, they don't line up with the event description. So if you have three events the first event has all three links and the other have none. I modified view.php to output each event as a row in a table so they would line up.

Here is the diff for anyone interested...

Code: [Select]
# diff view.php.original view.php.modified
55a56,60
>         $showeventsfromsection_id = stripslashes($fetch_content['showeventsfromsection_id']);
> }
>
> if ( $showeventsfromsection_id <> "" ) {
>         $section_id = $showeventsfromsection_id;
85a91,92
> $month_name = array( 1 => "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
>
205c212
<                                       echo $year . ' ' . $monthfulltext;
---
>                                       echo $year . ' - ' . $monthfulltext;
207c214
<                                       echo $monthfulltext . ' ' . $year;
---
>                                       echo $monthfulltext . ' - ' . $year;
340c347,367
<                                                               $evweb_url.="<a href=\"".$row['evweb_url']."\" target=\"$target\">".$row['name_link']."</a><br />";
---
>                                                               $evweb_url.="<a href=\"".$row['evweb_url']."\" target=\"$target\">".$row['name_link']."</a><br /><p>&nbsp;</p><br /><br />";
>
>                                                     ?>
>                                                         <tr>
>                                                                 <td class="mtevent" width="15%" align="left">
>                                                                         <?php echo $altdate$altdate=""?>
>                                                                 </td>
>                                                                 <td class="mtevent">
>                                                                         <?php echo $alt$alt=""?>
>                                                                 </td>
>                                                                 <?php
>                                                                 if (!$evweb_url == "") { ?>

>                                                                         <td class="mtevent" width="15%" align="right">
>                                                                                 <?php echo $evweb_url$evweb_url=""?>
>                                                                         </td>
>                                                                         <?php
>                                                                 }
>                                                                 
?>

>                                                         </tr>
>                                                      <?php 

343,358d369
<                                                       <tr>
<                                                               <
td class="mtevent" width="15%" align="left">
<                                                                       <?
php echo $altdate?>

<                                                               </td>
<                                                               <td class="mtevent">
<                                                                       <?php echo $alt?>
<                                                               </td>
<                                                               <?php
<                                                               if (!$evweb_url == "") { ?>

<                                                                       <td class="mtevent" width="15%" align="right">
<                                                                               <?php echo $evweb_url?>
<                                                                       </td>
<                                                                       <?php
<                                                               }
<                                                               
?>

<                                                       </tr>
417d427
<                                               <?php if (($monthevent == )or($monthevent == )){ ?>
431,433d440
<                                               } else {
<                                                       echo $altdate; ?>&nbsp;&nbsp;&nbsp;<?php echo $result[&#39;event_desc&#39;];
<                                               }
453c460
?>

\ No newline at end of file
---
> ?>
#


Thanks again for a cool module.

HansMeiser

  • Guest
Re: Event Calendar 1.8
« Reply #19 on: September 18, 2008, 04:10:57 PM »
Hi,

i installed event_calendar but there is one issue a can not figure out. Why always todays date or "Nothing for today."  is shown in first box of page? I would like to view details/images for events even if they are not today.
Thank you
Hans

Offline Bramus

  • Posts: 608
  • Gender: Male
    • BRAMUS Internet Services
Re: Event Calendar 1.8
« Reply #20 on: September 18, 2008, 04:22:33 PM »
maybe a feature for the next release, making it toggable. When you click on some event (year/month/week) it will show the description, so not only title but also description + weblink. And maybe you can enable it in the admin area.

Think that will be a nice addition.
BRAMUS Internet Services

HansMeiser

  • Guest
Re: Event Calendar 1.8
« Reply #21 on: September 18, 2008, 08:31:53 PM »
Hi,

when will be next release? ;)

i think browsing through eventes and their details is a must-have for an event-calendar, not only an addition.
Thanks
Hans

Offline fsuk

  • Posts: 127
Re: Event Calendar 1.8
« Reply #22 on: November 07, 2008, 08:05:16 PM »
I have altered the module slightly so that when you click on the event (under All events) the description appears bellow it.
« Last Edit: November 08, 2008, 06:31:05 PM by fsuk »
You say deviant like its a bad thing...

Offline dbs

  • Betatester
  • **
  • Posts: 8076
  • Gender: Male
  • tioz4ever
    • WebsiteBaker - jQuery-Plugins - Module - Droplets - Tests
Re: Event Calendar 1.8
« Reply #23 on: November 08, 2008, 10:14:13 AM »
nice! but...

after click, the site springs to top of the site.
vers. 1.8b3.
can't install 1.8c. because file in use... or allready installed

sorry for my english.

vielleicht kann das jemand übersetzen?
nach klick im allevent springt die seite ganz nach oben. bei klick auf das datum ist das so gewollt, aber bei klick auf den titel neben dem datum nicht. da soll nur die beschreibung zum titel unterhalb erscheinen.  so verstand ich es.
durch das springen zu top of the site verschwindet die beschreibung natürlich aus dem blickfeld.

mfg dbs
« Last Edit: November 08, 2008, 10:44:34 AM by dbs »

Offline heavenchun83

  • Posts: 57
  • Gender: Male
  • Founder Of First Internet Marketing Company
    • Free Wordpress Hosting
Re: Event Calendar 1.8
« Reply #24 on: November 12, 2008, 11:24:03 AM »
So,does this event calendar 1.8 have also mini calendar at front pages or template just like mod_evcal_111?
I have using WB since 2005

 

postern-length