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]
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]