An Event Calendar Mod

Post custom hacks and enhancements for phpwcms here only. Maybe some of these things will be included in official release later.
ionrock
Posts: 279
Joined: Fri 20. Feb 2004, 17:04

Post by ionrock »

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.
kac
Posts: 29
Joined: Tue 16. Mar 2004, 21:04

Post by kac »

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).
1996 328ti
Posts: 317
Joined: Mon 19. Apr 2004, 06:10
Location: Greenville, SC USA
Contact:

Post by 1996 328ti »

I'm sorry. I am just not following this.
In my phpwcms.php file I have

Code: Select all

	case "modules":		//modules
						$wcsnav["modules"] = "<strong class=\"navtexta\">".$wcsnav["modules"]."</strong>";
						break;
						
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
hal
Posts: 66
Joined: Mon 9. Feb 2004, 22:07

Post by hal »

@ 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.
kac
Posts: 29
Joined: Tue 16. Mar 2004, 21:04

Post by kac »

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
1996 328ti
Posts: 317
Joined: Mon 19. Apr 2004, 06:10
Location: Greenville, SC USA
Contact:

Replacement Tag

Post by 1996 328ti »

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
1996 328ti
Posts: 317
Joined: Mon 19. Apr 2004, 06:10
Location: Greenville, SC USA
Contact:

Post by 1996 328ti »

I corrected my tag and now it is working sort of.
Where are the images that are needed?
ionrock
Posts: 279
Joined: Fri 20. Feb 2004, 17:04

Post by ionrock »

There shouldn't be any images you need. Let me know where you think they should be showing up .
1996 328ti
Posts: 317
Joined: Mon 19. Apr 2004, 06:10
Location: Greenville, SC USA
Contact:

Post by 1996 328ti »

The homepage template uses corner images.

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>
Can you post the templates you use?
ionrock
Posts: 279
Joined: Fri 20. Feb 2004, 17:04

Post by ionrock »

Yeah, that template is from the site I used it on and I really don't have the authority to distribute the design. The design I used just created a round border around the calendar. If you need help making your own design just lt me know how I can help.
reklame-haus
Posts: 8
Joined: Mon 19. Jul 2004, 03:21

Event calendar Deutsch problem

Post by reklame-haus »

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.
Kahriman GmbH | Internetagentur Hannover
slv
Posts: 1
Joined: Thu 6. Jan 2005, 19:59

Problems with öäü ...

Post by slv »

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 !!...
User avatar
StudioZ
Posts: 802
Joined: Fri 28. May 2004, 19:57
Location: Québec, Canada
Contact:

Post by StudioZ »

Just like reklame-haus...
I am looking on how to change the month names from English to French ?

Any idea anyone...? :roll:

Cheers,

Yves
Image
PhpWCMS Evangelist, -- iRoutier.com Running phpWCMS 1.4.2, r354 -> Great Version!!!!
missberli
Posts: 26
Joined: Sat 13. Nov 2004, 14:55

Post by missberli »

... and from English to German... :wink:

reklame-haus,

You have changed the month and weekday names to Turkish on your website. Please, can you give us a hint how to change the names?

missberli
caramello
Posts: 70
Joined: Thu 23. Sep 2004, 21:43

Replacement ga for Calendar Mod

Post by caramello »

Can someone help me with a working example of the calender mod ?
Post Reply