Icy Phoenix
Old Customizations - [MOD RC2] WYSIWYG Editor For Cms
DWho [ Tue 14 Apr, 2009 18:49 ]
Post subject: [MOD RC2] WYSIWYG Editor For Cms
Hi
As someone asks for this I thought I would give it a shot....
This I a wysiwyg editor for the cms only....
I recommend not to try and install this in your posting page as you have to have html on and anything could then be installed on your site...
Smilies will not work with this neither will the upload photo... but I have incorporated the upload photo feature into the editor so you can upload photos as normal to your site and they will be seen in the posted_img link as normal
bbcode will no longer work either as this mod only works in html...
MOD UPDATED
I have updated this mod to use
xinha
there is also an
acp switch in
ACP/ICY PHOENIX/Turn on Wysiwyg Editor
this will allow you to either use
ICY standard bbcode or
turn on the editor and just use that default setting is for icy bbcode...
when using the editor standard smilies are incorporated but used differently and if you add more they need to be added and renamed in the editor files..
uploaded images are also done differently in the editor and you can also upload files if you wish...
any way if someone would care to test and let me know of any problems...
All instructions and files can be
downloaded here ... any problems let me know...
to add to Mega Mail please follow this link
http://www.icyphoenix.com/viewtopic.php?p=38595#p38595
For some hints and tip please
Click Here
updated download
thanks to lopalong for pointing out that..
instead of includes/mod_icy_phoenix.php
it should read
includes/mod_settings/mod_icy_phoenix.php in the install file
sorry to all of those who could not find the file..
EDIT: Due to lack of support for Xinha I am not going to continue with this add on....
but as soon as the final release is released I will be incorporating tinymce...
look Out for new post coming soon..
MOD will still work in RC2 I am not upadting it beyond as I have previously mentioned..

Mighty Gorgon [ Sat 18 Apr, 2009 12:39 ]
Post subject: Re: [MOD RC1] WYSIWYG Editor For Cms
Nice!
You may have a look at the WYSIWYG editor included in vB or Wordpress to have further clues on how integrating it.
DWho [ Sat 18 Apr, 2009 14:53 ]
Post subject: Re: [MOD RC1] WYSIWYG Editor For Cms
just spent a few days integrating xinha... once I have it fully done i will look at adding a switch in the acp so you can choose to have icy bbcode or wysiwyg...

Mighty Gorgon [ Sat 18 Apr, 2009 18:32 ]
Post subject: Re: [MOD RC1] WYSIWYG Editor For Cms
He he he... great!
DWho [ Sat 18 Apr, 2009 20:17 ]
Post subject: Re: [MOD RC1] WYSIWYG Editor For Cms
He he he... great!
lol it may take a while though lol
wachowski [ Sun 19 Apr, 2009 10:31 ]
Post subject: Re: [MOD RC1] WYSIWYG Editor For Cms
Quote:
bbcode will no longer work either as this mod only works in html...
Hey man do you mean that when you install this MOD the BBCode is not going to work longer in any part of the forum? I mean, when posting a topic or reply?
DWho [ Sun 19 Apr, 2009 12:55 ]
Post subject: Re: [MOD RC1] WYSIWYG Editor For Cms
Quote:
bbcode will no longer work either as this mod only works in html...
Hey man do you mean that when you install this MOD the BBCode is not going to work longer in any part of the forum? I mean, when posting a topic or reply?
no bbcode will work in the rest of the site...
this is for the cms only for blocks etc... when posting in a post everything will work normally ... the editor will not show..
the editor is only for admins in the cms part of the site..
nearly finished an updated version with a better wysiwyg and a switch in the acp to turn it on or of so you can either use normal standard ICY bbcode or the editor...

TheSteffen [ Sun 19 Apr, 2009 13:04 ]
Post subject: Re: [MOD RC1] WYSIWYG Editor For Cms
Great work so far DWho
wachowski [ Sun 19 Apr, 2009 15:29 ]
Post subject: Re: [MOD RC1] WYSIWYG Editor For Cms
Quote:
bbcode will no longer work either as this mod only works in html...
Hey man do you mean that when you install this MOD the BBCode is not going to work longer in any part of the forum? I mean, when posting a topic or reply?
no bbcode will work in the rest of the site...
this is for the cms only for blocks etc... when posting in a post everything will work normally ... the editor will not show..
the editor is only for admins in the cms part of the site..
nearly finished an updated version with a better wysiwyg and a switch in the acp to turn it on or of so you can either use normal standard ICY bbcode or the editor...

Oh man if so thats really AWESOME!
It's a pitty that now I have the Stable version, well I'm going to update right now, this is the best MOD for IP I've seen since I'm here, it is very useful!
I hope you finish your update for the MOD you said soon.
Seeya!
PS: This MOD ('hope improved) must be integrated in the new IP release!
DWho [ Sun 19 Apr, 2009 22:58 ]
Post subject: Re: [MOD RC1] WYSIWYG Editor For Cms
Great work so far DWho
First post updated with newer version

paramine-gx [ Mon 20 Apr, 2009 06:39 ]
Post subject: Re: [MOD RC1] WYSIWYG Editor For Cms
great work... excelent...
i'll install soon... cause im a little afraid to install this
Thanks for your work

DWho [ Mon 20 Apr, 2009 11:31 ]
Post subject: Re: [MOD RC1] WYSIWYG Editor For Cms
great work... excelent...
i'll install soon... cause im a little afraid to install this
Thanks for your work

thank you
very straight forward to install... only a couple of file edits...
To add to megamail for html purposes..
OPEN
templates/common/acp/page_header.tpl
FIND
<!-- IF S_LIGHTBOX -->
<link rel="stylesheet" href="{FULL_SITE_PATH}{T_COMMON_TPL_PATH}lightbox/lightbox_old.css" type="text/css" media="screen" />
<script type="text/javascript" src="{FULL_SITE_PATH}{T_COMMON_TPL_PATH}lightbox/lightbox_old.js"></script>
<!-- ENDIF -->
AFTER ADD
<script type="text/javascript">
_editor_url = "{FULL_SITE_PATH}xinha/" // (preferably absolute) URL (including trailing slash) where Xinha is installed
_editor_lang = "en"; // And the language we need to use in the editor.
_editor_skin = "xp-blue"; // If you want use a skin, add the name (of the folder) here
_editor_icons = "Tango";
</script>
<script type="text/javascript" src="{FULL_SITE_PATH}xinha/XinhaCore.js"></script>
<script type="text/javascript" src="{FULL_SITE_PATH}xinha/my_config.js"></script>
only use when mega mail is set to
html ....
not to be used for pms bbcode or full html

New Player [ Mon 20 Apr, 2009 11:44 ]
Post subject: Re: [MOD RC1] WYSIWYG Editor For Cms
can't download it
download stops at all times.....firefox, ie, flashget...always the same
wachowski [ Mon 20 Apr, 2009 11:46 ]
Post subject: Re: [MOD RC1] WYSIWYG Editor For Cms
Hey man check the post, cannot download

DWho [ Mon 20 Apr, 2009 11:56 ]
Post subject: Re: [MOD RC1] WYSIWYG Editor For Cms
same here... i cannot download anything from this site for some reason...
I will upload it to my server and link it to here... 2 secs
first post updated with link to download

New Player [ Mon 20 Apr, 2009 12:30 ]
Post subject: Re: [MOD RC1] WYSIWYG Editor For Cms
Quote:
same here... i cannot download anything from this site for some reason...
looooool
Quote:
first post updated with link to download
link work

spydie [ Mon 20 Apr, 2009 14:23 ]
Post subject: Re: [MOD RC1] WYSIWYG Editor For Cms
Nice Mod DWho.
looks good to me.
i´m testing local at the moment
DWho [ Tue 21 Apr, 2009 10:42 ]
Post subject: Re: [MOD RC1] WYSIWYG Editor For Cms
Nice Mod DWho.
looks good to me.
i´m testing local at the moment
great let me know of any problems..
Here are some tips
The mod comes with a load of plugins that you can add or take away here is the full list with an explanation to what they do..
plugins
to enable them or disable them
OPEN
xinha/my_config.js
FIND
xinha_plugins = xinha_plugins ? xinha_plugins :
[
AFTER ADD
you will see some plugins already installed if you go to the plugin folder (xinha/plugins) just copy the name of the plugin folder and copy it to the file as above... remember the tags and the comma..
Also in the file you can change the height and width to suit you
FIND
xinha_config.width = '900px';
xinha_config.height = '500px';
REPLACE WITH
what ever width and height you need ...remember to keep the [b][color=#FF5500]px[/color][/b] otherwise it will pick a size for you
there are a few tips on the xinha site but I do not recommend using the forum as you are unlikely to recieve an answer I will try and help as much as I can as I have spent a week researching xinha..
As I find out more I will post here

wachowski [ Thu 23 Apr, 2009 08:10 ]
Post subject: Re: [MOD RC1] WYSIWYG Editor For Cms
Hey man, I've got a problem.
Can you explain me how to do the first entry:
#
#-----[ SQL ]-------------------------------------
#
INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('select_wysiwyg', '0');
I dont know where I have to go and dont find that file (phpbb_config) neither.
Thx
DWho [ Thu 23 Apr, 2009 09:56 ]
Post subject: Re: [MOD RC1] WYSIWYG Editor For Cms
Hey man, I've got a problem.
Can you explain me how to do the first entry:
#
#-----[ SQL ]-------------------------------------
#
INSERT INTO `phpbb_config` (`config_name`, `config_value`) VALUES ('select_wysiwyg', '0');
I dont know where I have to go and dont find that file (phpbb_config) neither.
Thx
hi it is a database update.. goto your acp/db security/ip mysqladmin/ on the new page that opens on the right at the top left it says sql click there and a text box will open enter the code below and hit submit
- INSERT INTO `ip_config` (`config_name`, `config_value`) VALUES ('select_wysiwyg', '0');

DWho [ Wed 29 Apr, 2009 11:31 ]
Post subject: Re: [MOD RC1] WYSIWYG Editor For Cms
When using Xinha and you want to go page down normally you would just hit enter and you will goto the next line...
trouble is this creates this html
<p></p> which is fine some of the times...
to create it probably so you create this html
<br /> hold down shift and then hit enter..
this will display a lot better after you hit submit..
Also always clear the cache at an ytime you edit a file or something in xinha as a lot of the time you will not see your changes...

spydie [ Wed 29 Apr, 2009 12:07 ]
Post subject: Re: [MOD RC1] WYSIWYG Editor For Cms
question.
is it possible to edit the themes with xinha ??
i mean change header and things like that??
Lopalong [ Wed 29 Apr, 2009 13:41 ]
Post subject: Re: [MOD RC1] WYSIWYG Editor For Cms
Care to tell me where this file is in RC1 Public Release, because I can't find it.
includes/mod_icy_phoenix.php
New Player [ Wed 29 Apr, 2009 13:43 ]
Post subject: Re: [MOD RC1] WYSIWYG Editor For Cms
question.
is it possible to edit the themes with xinha ??
i mean change header and things like that??
this required big changes
but you can already edit the template files
acp >> styles & templates >> Edit Templates
maybe you have to enable it in acp >> styles & templates >> settings
DWho [ Wed 29 Apr, 2009 14:08 ]
Post subject: Re: [MOD RC1] WYSIWYG Editor For Cms
Care to tell me where this file is in RC1 Public Release, because I can't find it.
includes/mod_icy_phoenix.php
lol sorry it should be
includes/mod_settings/mod_icy_phoenix.php
thanks for pointing that out..
I have updated the download
question.
is it possible to edit the themes with xinha ??
i mean change header and things like that??
if you open the xinha folder you will see a folder names skins... there are 8 different ones including the css file for them...
if you open
templates/common/cms/page_header_std.tpl and templates/common/cms/page_header.tpl
and find
<script type="text/javascript">
_editor_url = "{FULL_SITE_PATH}xinha/" // (preferably absolute) URL (including trailing slash) where Xinha is installed
_editor_lang = "en"; // And the language we need to use in the editor.
_editor_skin = "xp-blue"; // If you want use a skin, add the name (of the folder) here
_editor_icons = "Tango";
</script>
<script type="text/javascript" src="{FULL_SITE_PATH}xinha/XinhaCore.js"></script>
<script type="text/javascript" src="{FULL_SITE_PATH}xinha/my_config.js"></script>
look for
and change the style tango to one of the other skins names... clear the cache and thats it... if you want to change the look of the skin open the css and have a look through it... back up the original though...
hope that helps

DWho [ Mon 15 Jun, 2009 17:59 ]
Post subject: Re: [MOD RC1] WYSIWYG Editor For Cms
Due to lack of support for Xinha I am not going to continue with this add on....
but as soon as the final release is released I will be incorporating
tinymce
As tinymce does not have an extension to upload images... I will be working on a way to incorporate it using icys' present system of uploading images
look Out for new post coming soon..

Informpro [ Tue 16 Jun, 2009 12:46 ]
Post subject: Re: [MOD RC1] WYSIWYG Editor For Cms
TinyMCE is REALLY BETTER

DWho [ Tue 16 Jun, 2009 12:49 ]
Post subject: Re: [MOD RC1] WYSIWYG Editor For Cms
I totally agree... nicer looking and more flexible...
Shame they have not done a free plugin to upload images... but I suppose everyone needs to make money some how...
Anyway I made a smple addon to upload images and ten add the link to the mage pop up.. so just testing other features and it will be good to go when the last release of Icy is ready...

Informpro [ Tue 16 Jun, 2009 13:02 ]
Post subject: Re: [MOD RC1] WYSIWYG Editor For Cms
The plugins system is great & easy to use. I think u can find something for image
EDIT: did "advimage" is not a plug for image ?
DWho [ Tue 16 Jun, 2009 13:36 ]
Post subject: Re: [MOD RC1] WYSIWYG Editor For Cms
It is but there is no way to upload an image directly as far as I can see... still looking though...
I just wanted it easy for admins to upload directly to the post but tinymce seem to not want you do to that..
Gonna check out there forums and other scripts... though I did notice joomla had this feature so gonna look at that...
Unless I missed something (that nhappens a lot lol)
novice programmer [ Tue 16 Jun, 2009 17:20 ]
Post subject: Re: [MOD RC1] WYSIWYG Editor For Cms
Pulling DWho legs:
DWho, you have a new thing for your ToDo list:
- Upgrade this mod to RC2

In my ToDo list is still the Topic Approbal Mod... Guess I will start with it the 23rd, just after exams finish.
DWho [ Wed 17 Jun, 2009 12:24 ]
Post subject: Re: [MOD RC1] WYSIWYG Editor For Cms
Pulling DWho legs:
DWho, you have a new thing for your ToDo list:
- Upgrade this mod to RC2

In my ToDo list is still the Topic Approbal Mod... Guess I will start with it the 23rd, just after exams finish.
lol mod will work fine on RC2 as it is... but I will not take beyond that....
get moving with the approval mod...

great feature to add to Icy....

Informpro [ Thu 18 Jun, 2009 13:54 ]
Post subject: Re: [MOD RC2] WYSIWYG Editor For Cms
what's ur favorite template of tinyMCE ? it will be parametrable ? (I prefer the template 3 (demo/skins.html))
DWho [ Thu 18 Jun, 2009 21:21 ]
Post subject: Re: [MOD RC2] WYSIWYG Editor For Cms
do you mean o2k7 skin + black
Informpro [ Fri 19 Jun, 2009 13:49 ]
Post subject: Re: [MOD RC2] WYSIWYG Editor For Cms
*check on his lib*
no, o2k7 Silver
