Welcome, Guest. Please login or register.
Did you miss your activation email?
May 25, 2012, 07:10:43 AM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
155479 Posts in 21708 Topics by 7734 Members
Latest Member: rofroodoOvego
* Home Help Search Login Register
Pages: 1 [2] 3 4   Go Down
Print
Author Topic: changes in calendar modul ( -> MyCalendar)  (Read 11231 times)
herr rilke

Offline Offline

Posts: 90


« Reply #25 on: August 07, 2009, 05:41:26 AM »

hello SourDough,

thanks a lot for the code you provided. it perfectly solved my problem.

ruebenwurzel, i use WB 2.8 RC2, and, SourDough, in my functions.php i had to insert <div class="jsadmin jcalendar hide"></div> at line 1086. so it was very helpful to get the lines before and after to find the right place.

regards

herr rilke

Logged
SourDough

Offline Offline

Posts: 47


WWW
« Reply #26 on: August 07, 2009, 01:35:43 PM »

@Herr rilke:

Glad it worked.

@ Ruebenwurzel:

Looking further into this, the calendar_system.css is included only on backend pages where the line:

Code:
<div class="jsadmin jcalendar hide"></div>

has been included in the *.htt of the backend template file.  For example, the backend template wb_theme includes that line of code in the following files:  pages_modify.htt and pages sections.htt.  This does not take into consideration that when jscalendar is included in a module, it is more than likely on a modify_?Huh?.php file, i.e. the modify_post.php file of the news module. 

Since there is no standard for how these files are named, i.e. modify_post.php is only applicable to News, and wouldn't be applicable to say a calendar module where modify_event.php would be more appropriate, admin template designers shouldn't be responsible for creating the correct htt for each module.  At the same time, I don't think that module developers should have to include this code when it can be easily included in one file in the includes/jscalendar/wb-setup.php file. 

This would also eliminate the duplication of code that is now occuring with the admin template htt files.  For example, each of the three admin templates included with WB 2.8 has the DIV code, as well as the JS check for whether to include calendar-system.css.  Wouldn't it make more sense to remove this responsibility from the module developers AND the backend template developers and leave it with the core?

Thanks,

Nick
Logged
Presssack

Offline Offline

Posts: 3


WWW
« Reply #27 on: August 26, 2009, 03:03:11 PM »

hi folks,

Found an error on line 110 in the modify_settings.php file.
You want to echo the directory name but you open an PHP Tag within an PHP Tag so the onchange results into this:
/modules/<?php echo mycalendar; ?>/modify_settings.php......

On my first implementation of this module I had a FCK Textarea within the same page and as mentioned in another post it does not work to have a textarea and a calender section on the same page.

Do you give access to the SVN Repository? Which is the URL to it?

cheers
Presssack
Logged
crnogorac081
AddOn Development
*
Offline Offline

Posts: 1706



« Reply #28 on: August 26, 2009, 03:25:48 PM »

Hi,

Take a look on Project page: http://project.websitebaker2.org/
Logged

Wow, I coded something myself: PM Messanger Modul ,Searchbox with suggestions
Presssack

Offline Offline

Posts: 3


WWW
« Reply #29 on: August 26, 2009, 03:43:37 PM »

Hi Crnogorac,

thanks but i meant the repo of the mycalendar module, if there is one exisiting.

Presssack

Logged
crnogorac081
AddOn Development
*
Offline Offline

Posts: 1706



« Reply #30 on: August 26, 2009, 03:54:31 PM »

Not that I know, you can see in previous posts for svn, but there is not much I know Smiley

Maybe someone has svn's to send you..

cheers
Logged

Wow, I coded something myself: PM Messanger Modul ,Searchbox with suggestions
erpe

Offline Offline

Posts: 2077


WWW
« Reply #31 on: August 26, 2009, 04:00:15 PM »

Hi

you can contact the (last) developer of this module.
Or if he is not reachable modify the module and post the zip.

rgds

erpe
Logged

Presssack

Offline Offline

Posts: 3


WWW
« Reply #32 on: August 26, 2009, 08:19:13 PM »

ok, thanks for the information.

I contacted the last developer, if he does not answer I will post the zip file here.


Presssack
Logged
Marcus70

Offline Offline

Posts: 28



« Reply #33 on: September 01, 2009, 01:02:12 AM »

i like your calender - great easy to use modul and it fit in a site where i've only 440px maincontent....

if got only little problems with the JS pop up - i know it is WB-core or such a thing - but maybe you've a hint for the problem?

take a look at the pic!

i tryed with bookings and get no problems...

regards martin

Hi folks,
I enountered the same problem as described above. By setting error reporting to E_ALL I got the error message as shown below.

So I took a close look into the module's file "functions.php" (located in /htdocs/wb_path/modules/mycalendar) which originally causes the reported error message and got a solution that works fine for me:

In "functions.php" starting from line 1058 you find the following code:
Code:
   if (!defined('WYSIWYG_EDITOR') OR WYSIWYG_EDITOR=="none" OR !file_exists(WB_PATH.'/modules/'.WYSIWYG_EDITOR.'/include.php')) {
    function show_wysiwyg_editor($name,$id,$content,$width,$height) {
        echo '<textarea name="'.$name.'" id="'.$id.'" style="width: '.$width.'; height: '.$height.';">'.$content.'</textarea>';
    }
  } else {
    $id_list=array("short","long");
            require(WB_PATH.'/modules/'.WYSIWYG_EDITOR.'/include.php');
}
Change the following code
Code:
require(WB_PATH.'/modules/'.WYSIWYG_EDITOR.'/include.php');
to:
Code:
require_once(WB_PATH.'/modules/'.WYSIWYG_EDITOR.'/include.php');

Hope that helps!

Regards,
Marcus
« Last Edit: September 01, 2009, 01:13:24 AM by anfaenger » Logged

...man weiß nie, wie tief eine Pfütze ist, bevor man nicht hineingetreten ist... (Murphy's Law)
Uthred
Guest
« Reply #34 on: September 10, 2009, 11:42:07 AM »

Hi,

it is a new MyCalendar version available:

v1.0.1: Implement bugfixes reported from users in this thread.

See AMASP for details.

Thanks to all users who helped to improve the modul.  smiley
Logged
macsmet

Offline Offline

Posts: 234


« Reply #35 on: September 10, 2009, 02:04:52 PM »

Hi,

I just tested your Mycalendar and it works with 2.8 now.
The only thing that doens't work is the little javascript calendar.
I get buttons with 'undefined' on it on IE 7 en Chrome 2.0.

Greetings,

MacSmet
Logged
Uthred
Guest
« Reply #36 on: September 11, 2009, 05:40:35 AM »

Hi macsmet,

...The only thing that doens't work is the little javascript calendar.
I get buttons with 'undefined' on it on IE 7 en Chrome 2.0.

Did you already insert the line
Code:
"Calendar._FD = 1;"
in the JsCalendar language file (WB_PATH\include\jscalendar\lang\..) ?

Logged
macsmet

Offline Offline

Posts: 234


« Reply #37 on: September 11, 2009, 06:27:07 PM »

@Uthred: know I read the whole thread and saw your advise before.
It now works, thanks!
Logged
tiesy

Offline Offline

Posts: 124


WWW
« Reply #38 on: September 22, 2009, 05:18:01 PM »

Can someone explain, how to show the MiniCalendar in Code-Section?

I tried this, but it shows nothing:

ShowMiniCalendar("http://www.mydomain.com/pages/termine.php",12,17);

Don´t want to edit my template file, because I need the MiniCalender only on some sites.
Logged
Nowis

Offline Offline

Posts: 14


« Reply #39 on: January 12, 2010, 12:36:48 PM »

Is it possible to create a list of all (or next X) future Events from this module?
Logged
baZzz

Offline Offline

Posts: 58



« Reply #40 on: February 17, 2010, 05:53:44 PM »

Is it possible to create a list of all (or next X) future Events from this module?
I second that question.

Also I'd like to know how to get the mini calendar to work. It should be possible, but how?
[update]Found it: it was explained on this page: http://sub-web.de/subdomains/wb/pages/mycalendar.php[/update]

« Last Edit: February 17, 2010, 06:00:22 PM by baZzz » Logged

-= assumption is the mother of all f*ck ups / to assume makes an ass out of u and me =-
Uthred
Guest
« Reply #41 on: February 22, 2010, 10:52:19 AM »

Hi Novis,baZzz

Quote
Is it possible to create a list of all (or next X) future Events from this module?
No, not yet. The filter function itself is not a big effort. It's more a matter of how to intergrate it, e.g. how should the user choose the list mode (all or next x events), format of the list...

 
« Last Edit: February 22, 2010, 10:53:54 AM by Uthred » Logged
RonK

Offline Offline

Posts: 94


WWW
« Reply #42 on: February 28, 2010, 08:43:34 PM »

Hi Uthred

Nice module, thanks.

I have questions: How can I set MyCalender to start on a sunday?
I looked into different files of the module, but I can not find how I should do that.

My page is set to Nederlands (Dutch).

Thanks in advance,
RonK
Logged

Uthred
Guest
« Reply #43 on: March 01, 2010, 09:01:49 AM »

Hi RonK,

... How can I set MyCalender to start on a sunday?

Please replace "Cell2" Function in functions.php (see attached file) and have a look!

BR

Logged
RonK

Offline Offline

Posts: 94


WWW
« Reply #44 on: March 01, 2010, 12:05:02 PM »

Thanks Uthred,

now sunday is the first day of the week.
It is for a church site (www.gereformeerdeke rklopik.nl/_wb), that is why. Christians see the sunday as the most important day in the week, and therefor the week starts with that day.

I noticed a small problem: March seems to be OK, but February 2010 is not. I miss the 28th. However, feb 2011 and feb 2012 are OK (?!)

regards
« Last Edit: March 01, 2010, 12:11:27 PM by RonK » Logged

Uthred
Guest
« Reply #45 on: March 01, 2010, 03:54:54 PM »

Hi RonK,
thanks for testing.
I will search for the 28th Feb smiley  and make an update of the module where users can setup the "starting day" in the backend.

BR
Logged
RonK

Offline Offline

Posts: 94


WWW
« Reply #46 on: March 01, 2010, 06:13:02 PM »

Hi Uthred,

that would be great. I think you will help a lot of other peaple too with that addition.

So, having this out of the way, I will do a search why the month is jumping around in the title of MyCalender (every month is in a different spot). Maybe has to do with some other style sheets that are used.

Regards
Logged

Uthred
Guest
« Reply #47 on: March 02, 2010, 07:42:14 AM »

Hi,

it is a new MyCalendar version available:

v1.1:
  • Choose start day of week (Sunday or Monday)
  • few bugfixes

See AMASP for details.

Thanks to all users who helped to improve the modul.   smiley
Logged
RonK

Offline Offline

Posts: 94


WWW
« Reply #48 on: March 02, 2010, 01:56:41 PM »

Uthred,

that was quick!

I have loaded the module (upgrade succeeded), but cannot find a setting for week start day in the backend.
I double checked the version, which is 1.1 .

Do I miss something or ...?

Best regards
Logged

Uthred
Guest
« Reply #49 on: March 02, 2010, 02:14:31 PM »

Hi RonK,

Code:
I have loaded the module (upgrade succeeded)...
What do you mean by upgrade? There is a new entry in the database, so you have to install it from scratch or add the new field by hand (phpMyAdmin) to the "old" database. If you want to do it by hand, i can provide a short instruction how to do it.

Quote
..but cannot find a setting for week start day in the backend

In the Backend  push the Button "Calendar Settings", then the setting page is loaded and the first entry should be "Options" and then "Start Weekday".

BR
Logged
Pages: 1 [2] 3 4   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!