WYSIWYG in Firefox 1.0PR

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
cyrano
Posts: 1598
Joined: Sat 31. Jan 2004, 18:33
Location: Stuttgart
Contact:

WYSIWYG in Firefox 1.0PR

Post by cyrano »

Did someone used firefox 1.0PR and WYSIWYG-Editor, hack does not work anymore.

regards
cyrano
Gruß/ regards cyrano
--------------------------------------------------------
templates -> http://www.128.weitzelmedia.de
planepix -> http://www.planepix.de
XING -> https://www.xing.com/profile/Thomas_Weitzel3
Sander
Posts: 3
Joined: Thu 2. Sep 2004, 10:35

Post by Sander »

Yes I can use the WYSIWYG editor in Firefox 1.0 PR.
cyrano
Posts: 1598
Joined: Sat 31. Jan 2004, 18:33
Location: Stuttgart
Contact:

Post by cyrano »

Hi Sander,

can you give me some hints what you did changed or setup to use it?

Which number you have set in conf.php for editor?
and changed the login.php with the addition of "fx"?

kind regards
cyrano
Gruß/ regards cyrano
--------------------------------------------------------
templates -> http://www.128.weitzelmedia.de
planepix -> http://www.planepix.de
XING -> https://www.xing.com/profile/Thomas_Weitzel3
madmus
Posts: 18
Joined: Sat 29. May 2004, 03:19

see this thread

Post by madmus »

cyrano
Posts: 1598
Joined: Sat 31. Jan 2004, 18:33
Location: Stuttgart
Contact:

Post by cyrano »

sorry made this, doesn't work on xp firefox 1.0pr.

i wrote that it is fixed, but this was on firefox 0.93 before i installed firefox 1.0pr.

regards
Gruß/ regards cyrano
--------------------------------------------------------
templates -> http://www.128.weitzelmedia.de
planepix -> http://www.planepix.de
XING -> https://www.xing.com/profile/Thomas_Weitzel3
madmus
Posts: 18
Joined: Sat 29. May 2004, 03:19

quick and dirty

Post by madmus »

i made change this in login.php

case 3: if($c->browser_is("ie5.5+")) $_SESSION["wysiwyg_editor"] = 4;

if(!$_SESSION["wysiwyg_editor"]) {

if($c->browser_is("mz1.3+") || $c->browser_is("ns7+") || $c->browser_is("fx")) $_SESSION["wysiwyg_editor"] = 1;

works on my firefox 1.0 PR
cyrano
Posts: 1598
Joined: Sat 31. Jan 2004, 18:33
Location: Stuttgart
Contact:

Post by cyrano »

hi madmus,

thank you for give the code here.

I tried again, but no good results:

my code:

Code: Select all

//WYSIWYG EDITOR:
//0 = no wysiwyg editor (default)
//1 = HTMLAREA (compatible with IE5.5+ and Mozilla 1.3+ based webbrowsers)
$_SESSION["wysiwyg_editor"] = 0;
$_SESSION["dhtml_hiding"]	= 1;
$phpwcms["wysiwyg_editor"] = intval($phpwcms["wysiwyg_editor"]);
if($phpwcms["wysiwyg_editor"]) {
	//include_once ("./include/inc_ext/phpsniff/phpSniff.core.php");
	include_once ("./include/inc_ext/phpsniff/phpSniff.class.php");
	$c =& new phpSniff();

	if($c->browser_is("mz1.3+") || $c->browser_is("ns7+")) {
		$_SESSION["dhtml_hiding"] = 0;
	}

	switch($phpwcms["wysiwyg_editor"]) {
		case 1:	if($c->browser_is("ie5.5+") || $c->browser_is("mz1.3+") || $c->browser_is("ns7+")) $_SESSION["wysiwyg_editor"] = 1;
				break;
		case 2:	if($c->browser_is("ie5.5+")) $_SESSION["wysiwyg_editor"] = 2;
				break;
		case 3: if($c->browser_is("ie5.5+")) $_SESSION["wysiwyg_editor"] = 4;
				if(!$_SESSION["wysiwyg_editor"]) {
					if($c->browser_is("mz1.3+") || $c->browser_is("ns7+")|| $c->browser_is("fx")) $_SESSION["wysiwyg_editor"] = 1;
				}
				break;
		case 4:	if($c->browser_is("ie5.5+")) $_SESSION["wysiwyg_editor"] = 4;
				break;
	}
}

wysiwyg-editor in conf.inc.php is set to "1".

did i set something wrong?
regards
Gruß/ regards cyrano
--------------------------------------------------------
templates -> http://www.128.weitzelmedia.de
planepix -> http://www.planepix.de
XING -> https://www.xing.com/profile/Thomas_Weitzel3
madmus
Posts: 18
Joined: Sat 29. May 2004, 03:19

Post by madmus »

mine is like this

Code: Select all

//WYSIWYG EDITOR:
//0 = no wysiwyg editor (default)
//1 = HTMLAREA (compatible with IE5.5+ and Mozilla 1.3+ based webbrowsers)
$_SESSION["wysiwyg_editor"] = 0;
$_SESSION["dhtml_hiding"]	= 1;
$phpwcms["wysiwyg_editor"] = intval($phpwcms["wysiwyg_editor"]);
if($phpwcms["wysiwyg_editor"]) {
	//include_once ("./include/inc_ext/phpsniff/phpSniff.core.php");
	include_once ("./include/inc_ext/phpsniff/phpSniff.class.php");
	$c =& new phpSniff();

	if($c->browser_is("mz1.3+") || $c->browser_is("ns7+") || $c->browser_is("fx")) {
		$_SESSION["dhtml_hiding"] = 0;
	}


	switch($phpwcms["wysiwyg_editor"]) {
		case 1:	if($c->browser_is("ie5.5+") || $c->browser_is("mz1.3+") || $c->browser_is("ns7+") || $c->browser_is("fx")) $_SESSION["wysiwyg_editor"] = 1;
				break;
		case 2:	if($c->browser_is("ie5.5+")) $_SESSION["wysiwyg_editor"] = 2;
				break;
		case 3: if($c->browser_is("ie5.5+")) $_SESSION["wysiwyg_editor"] = 4;
				if(!$_SESSION["wysiwyg_editor"]) {
					if($c->browser_is("mz1.3+") || $c->browser_is("ns7+") || $c->browser_is("fx")) $_SESSION["wysiwyg_editor"] = 1;
				}
				break;
		case 4:	if($c->browser_is("ie5.5+")) $_SESSION["wysiwyg_editor"] = 4;
				break;		
	}
}

Last edited by madmus on Sat 18. Sep 2004, 08:21, edited 1 time in total.
Image
cyrano
Posts: 1598
Joined: Sat 31. Jan 2004, 18:33
Location: Stuttgart
Contact:

Post by cyrano »

madmus thank you again, i set in your code and it works - think i made a mistake in coding.

thank you for your advice - and have a fine sunny day :-)
regards
Gruß/ regards cyrano
--------------------------------------------------------
templates -> http://www.128.weitzelmedia.de
planepix -> http://www.planepix.de
XING -> https://www.xing.com/profile/Thomas_Weitzel3
madmus
Posts: 18
Joined: Sat 29. May 2004, 03:19

hehe

Post by madmus »

:wink: ur welcome
Image
Post Reply