An Event Calendar Mod
I wanted to say a quick thanks to everyone helping everyone out with the calendar mod. I don't get to read the forums much and it is good people are finding solutions to their issues. Sorry I can't do more but, again if anyone wants to "maintain" the calendar mod they are more then welcome. Also, if you want to add to the instructions you are more than welcome to. Feel free to add anything like a faq to them at the end if you feel the solution was specific to your solution. Just send me a pm and I will add it to the download.
Is there anyone that is still having problems with this mod? The reason I ask is because I can't seem to get it to work. I've taken to hardcoding the paths in the install files to make sure that that wasn't the problem.
I finally got to the point if I call the install.php directly I don't get any errors, but when I go to click on the install, I get the error "Error creating the events table: Incorrect table name ''
I still wasn't able to get anything from the admin, either installing from the admin section, or an error, when clicked it just reloads.
I do want to add that I'm not new to installing scripts and working with php and MySQL, but I only do basic programming.
If anyone has any ideas, please let me know.
Thanks,
Ken
PS When I tried some of the fixes in this thread (Hals), I get errors "coding errors" ( I can't really remember the exact errors, I think string expected, but could be compiling).
I finally got to the point if I call the install.php directly I don't get any errors, but when I go to click on the install, I get the error "Error creating the events table: Incorrect table name ''
I still wasn't able to get anything from the admin, either installing from the admin section, or an error, when clicked it just reloads.
I do want to add that I'm not new to installing scripts and working with php and MySQL, but I only do basic programming.
If anyone has any ideas, please let me know.
Thanks,
Ken
PS When I tried some of the fixes in this thread (Hals), I get errors "coding errors" ( I can't really remember the exact errors, I think string expected, but could be compiling).
-
- Posts: 317
- Joined: Mon 19. Apr 2004, 06:10
- Location: Greenville, SC USA
- Contact:
I'm sorry. I am just not following this.
In my phpwcms.php file I have
Do I first install the GT mod?
Also, once I have the calendar installed, can I have the calendar in one column and an article menu in another?
For instance, I want my home page to be
article menu calender
article menu
article menu
Currently I am using an article member for my calendar of events.
It works but this calendar looks so much cleaner.
http://www.nccbmwcca.org
In my phpwcms.php file I have
Code: Select all
case "modules": //modules
$wcsnav["modules"] = "<strong class=\"navtexta\">".$wcsnav["modules"]."</strong>";
break;
Also, once I have the calendar installed, can I have the calendar in one column and an article menu in another?
For instance, I want my home page to be
article menu calender
article menu
article menu
Currently I am using an article member for my calendar of events.
It works but this calendar looks so much cleaner.
http://www.nccbmwcca.org
@ Kac
Sorry that it didn't work for you - but as I said - it was working for me.
I'm afraid that I can't help you but probably you are more experienced with php than I am as a friend did that stuff for me - not I myself. I was there and looked over his shoulder but finally I couldn't do more than copy the passages he wrote and post them here.
Sorry
To me the main problem was that the mod seemed to have no information about the MySQL database name, user, login etc. - the stuff found in phpwcms's conf.inc.php. We also couldn't find any code taking this information from conf.inc.php and implementing it to the mod.
But on the other hand I was the first one (seemed so) who had this problem and other users of the board seemed to have it installed as is - without changes. So I don't know what the reasons may be.
Sorry that it didn't work for you - but as I said - it was working for me.
I'm afraid that I can't help you but probably you are more experienced with php than I am as a friend did that stuff for me - not I myself. I was there and looked over his shoulder but finally I couldn't do more than copy the passages he wrote and post them here.
Sorry
To me the main problem was that the mod seemed to have no information about the MySQL database name, user, login etc. - the stuff found in phpwcms's conf.inc.php. We also couldn't find any code taking this information from conf.inc.php and implementing it to the mod.
But on the other hand I was the first one (seemed so) who had this problem and other users of the board seemed to have it installed as is - without changes. So I don't know what the reasons may be.
I finally got it to work. There were a bunch of little things that seems to have caused the problems with my installation. The biggest was the prefix of the tables. For example, some files were calling for cal_ and some were calling for cm_ . I don't know if I had made the changes that caused the problem, or that's the way I downloaded it. Probably my fault.
I did have problems with the phpwcms file, Yves sent me a copy of the corrected file, but I was getting file not found errors with it loaded. I finally managed to copy his changes over to my phpwcms.php file and fixed that.
I guess all that matters is it's finally working
Ken
I did have problems with the phpwcms file, Yves sent me a copy of the corrected file, but I was getting file not found errors with it loaded. I finally managed to copy his changes over to my phpwcms.php file and fixed that.
I guess all that matters is it's finally working
Ken
-
- Posts: 317
- Joined: Mon 19. Apr 2004, 06:10
- Location: Greenville, SC USA
- Contact:
Replacement Tag
Everything looks like it is working on the back end.
I added categories and an event.
I used the following tag
{CAL:0:maincalendar.template.php:default.event.template.php:karting}
Didn't know what to use for the last part so I chose an alias.
When I chose the page where I'd like to see the calendar, this is what I get.
Warning: mysql_query(): Access denied for user: 'email@localhost' (Using password: NO) in PHPWCMS_ROOT/include/inc_module/mod_calendar/inc_lib/calendar.classes.php on line 40
Warning: mysql_query(): A link to the server could not be established in PHPWCMS_ROOT/include/inc_module/mod_calendar/inc_lib/calendar.classes.php on line 40
Error: 1045: Access denied for user: 'email@localhost' (Using password: NO)SELECT date,span FROM calendar_phpwcms_cm_events WHERE approved=1 AND (MONTH(date) + (YEAR(date) * 12) <= 12 + (2004 * 12)) AND (MONTH(DATE_ADD(date, INTERVAL(span - 1) DAY)) + (YEAR(DATE_ADD(date, INTERVAL(span - 1) DAY)) * 12) >= 12 + (2004 * 12)) ORDER BY date ASC
I added categories and an event.
I used the following tag
{CAL:0:maincalendar.template.php:default.event.template.php:karting}
Didn't know what to use for the last part so I chose an alias.
When I chose the page where I'd like to see the calendar, this is what I get.
Warning: mysql_query(): Access denied for user: 'email@localhost' (Using password: NO) in PHPWCMS_ROOT/include/inc_module/mod_calendar/inc_lib/calendar.classes.php on line 40
Warning: mysql_query(): A link to the server could not be established in PHPWCMS_ROOT/include/inc_module/mod_calendar/inc_lib/calendar.classes.php on line 40
Error: 1045: Access denied for user: 'email@localhost' (Using password: NO)SELECT date,span FROM calendar_phpwcms_cm_events WHERE approved=1 AND (MONTH(date) + (YEAR(date) * 12) <= 12 + (2004 * 12)) AND (MONTH(DATE_ADD(date, INTERVAL(span - 1) DAY)) + (YEAR(DATE_ADD(date, INTERVAL(span - 1) DAY)) * 12) >= 12 + (2004 * 12)) ORDER BY date ASC
-
- Posts: 317
- Joined: Mon 19. Apr 2004, 06:10
- Location: Greenville, SC USA
- Contact:
-
- Posts: 317
- Joined: Mon 19. Apr 2004, 06:10
- Location: Greenville, SC USA
- Contact:
The homepage template uses corner images.
Can you post the templates you use?
Code: Select all
<div id="homepageCal">
<table id="calendarContainer" cellspacing="0" cellpadding="0">
<tr>
<td><!-- <img src="images/Cal-L-top_crnr.gif" /> --></td>
<td id="CalTopBorder"><div></div></td>
<td><!-- <img src="images/Cal-R-top_crnr.gif" /> --></td>
</tr>
<tr>
<td id="CalLeftBorder"><div ></div></td>
<td>{CAL_MONTH}</td>
<td id="CalRightBorder"><div></div></td>
</tr>
<tr>
<td><!-- <img src="images/Cal-L-btm_crnr.gif" /> --></td>
<td id="CalBottomBorder"><div></div></td>
<td><!-- <img src="images/Cal-R-btm_crnr.gif" /> --></td>
</tr>
</table>
</div>
<div id="homepageEvents">
{CAL_EVENTS}
</div>
-
- Posts: 8
- Joined: Mon 19. Jul 2004, 03:21
Event calendar Deutsch problem
Hi,
I installed the event calendar. There is Deutsch & Turkish problem. When I add the text as Turkish or Deutsch in normal page the characters are working but when I add the text with Calendar administration, I cannot see this characters: "öäüß-ýçþð..."
What can be the problem? I lost a lot of time with this calendar and couldn't find any solution.
Also the other question is: how can I change the month names?
The link:
http://www.derletzteadam.de/php
Thx.
I installed the event calendar. There is Deutsch & Turkish problem. When I add the text as Turkish or Deutsch in normal page the characters are working but when I add the text with Calendar administration, I cannot see this characters: "öäüß-ýçþð..."
What can be the problem? I lost a lot of time with this calendar and couldn't find any solution.
Also the other question is: how can I change the month names?
The link:
http://www.derletzteadam.de/php
Thx.
Kahriman GmbH | Internetagentur Hannover
Problems with öäü ...
there is a function fix($string) in calendar.classes.php. it allows only ascii chars.... hmmmm.. what about delete it? or .... change to something like
function fix($string){
$html_str = htmlentities($string);
return $html_str;
}
that solves the problem... quick and dirty !!...
function fix($string){
$html_str = htmlentities($string);
return $html_str;
}
that solves the problem... quick and dirty !!...
Just like reklame-haus...
I am looking on how to change the month names from English to French ?
Any idea anyone...?
Cheers,
Yves
I am looking on how to change the month names from English to French ?
Any idea anyone...?
Cheers,
Yves
PhpWCMS Evangelist, -- iRoutier.com Running phpWCMS 1.4.2, r354 -> Great Version!!!!
Replacement ga for Calendar Mod
Can someone help me with a working example of the calender mod ?