PDA

View Full Version : Solution - WYSIWYG into Event Manager Plugin


thomas
09-20-2005, 02:48 AM
I have managed to sucessfully add the WYSIWYG editor into the Event Manager Plugin.

For those playing at home here is the code changes...

1. Open up the file called settings.php

2. Change line 414

Replace...
* * * * * *<textarea name="description" cols="54" rows="5">'.$event['description'].'</textarea>


With...
* * * * * *<textarea name="description" cols="54" rows="15" wysiwyg="true">'.$event['description'].'</textarea>


3. Change line 525

Replace...
* * * * * *<td class="tdrow2"><a href="'.$refreshpage.'&action=addevent&eventid='.$event['eventid'].'">'.$event['title'].' </a></td>


With...
* * * * * * <td class="tdrow2"><a href="'.$refreshpage.'&action=addevent&eventid='.$event['eventid'].'&loadwysiwyg=1">'.$event['title'].'</a></td>


4. Change line 585-588

Replace...
* * * * * *<form method="post" action="'.$refreshpage.'">
* * * * * * *<input type="hidden" name="action" value="addevent" />
* * * * * * *<input type="submit" value="Add a New Event" />
* * * * * *</form>


With...

* * * * * *<form method="post" action="myplugins.php?pluginid=18' . $refreshpage . '&action=addevent&loadwysiwyg=1"><input type="submit" value="Add a New Event" */>
* </form>


That SHOULD work, try it and see.

I have attached the file with the changes on it.

Open up p18_event_manager
Replace settings.php with the file attached

[attachmentid=110]

d_source
09-20-2005, 07:22 AM
you became the coder of the month award :P

great

d_source
09-20-2005, 07:48 AM
What do you think thomas ! Is it possible to do it for the newsletter plugin also ?

This would be great :rolleyes:

thomas
09-20-2005, 08:47 AM
Originally posted by d_source@Sep 20 2005, 06:48 PM
What do you think thomas ! Is it possible to do it for the newsletter plugin also ?

This would be great* :rolleyes:
1201


Hehe, yeah i will, i just wanna make sure that these changes are going to be included in future versions of these plugins so that WE dont have to change it again!

I will work on the newletter plugin tomorrow (at work :P)

thomas
09-20-2005, 08:57 AM
Originally posted by d_source@Sep 20 2005, 06:22 PM
you became the coder of the month award* :P

great
1198


hehe :lol: no im more like a code stealer

d_source
09-20-2005, 09:43 AM
Originally posted by thomas@Sep 20 2005, 08:47 AM
Hehe, yeah i will, i just wanna make sure that these changes are going to be included in future versions of these plugins so that WE dont have to change it again!
1203



This is a good idea...

d_source
09-20-2005, 09:46 AM
Originally posted by thomas@Sep 20 2005, 08:57 AM
hehe* :lol: no im more like a code stealer
1205



I send you a cake to prison :P

Some day's the wysiwyg editor is standard in all the plugins... we hope :D

geiri
09-20-2005, 09:24 PM
:) That he is

Thank you, Thomas

Originally posted by d_source@Sep 20 2005, 07:22 AM
you became the coder of the month award* :P

great
1198