11
luciorota
Re: X-Center 1.09 -> wysiwyg (formselecteditor.php - fault)
  • 2008/10/15 20:18

  • luciorota

  • Module Developer

  • Posts: 216

  • Since: 2007/4/20


sorry, some \ desapears... (maybe a [code] tag bug?)

CODE

function render()
{
xoops_load('XoopsEditorHandler');
$editor_handler = XoopsEditorHandler::getInstance();
$editor_handler->allowed_editors = $this->allowed_editors;
$option_select = new XoopsFormSelect("", $this->name, $this->value);

##[ Incorrect Javascript ]#################################################
// $extra = 'onchange="if(this.options[this.selectedIndex].value.length > 0 ){
// window.document.forms.'.$this->form->getName().'.submit();
// }"';
###########################################################################

// Here is the universal version of this it will work on any system as the location.href is the best method for backward compatibility..

$extra = 'onchange=\'location.href="'.$_SERVER['PHP_SELF'].'?';

foreach ($_GET as $key => $value)
if ($key!=$this->name)
$extra .= $key.'='.$value.'&';
$extra .= $this->name.'="+this.options[this.selectedIndex].value+"';
$extra .= '"\'';

/// End of admendment.

$option_select->setExtra($extra);
$option_select->addOptionArray($editor_handler->getList($this->nohtml));

$this->addElement($option_select);

return parent::render();
}

END_CODE
Rota Lucio
lucio.rota@gmail.com;
mobile: +39 338 9966321

12
wishcraft
Re: X-Center 1.09 -> wysiwyg (formselecteditor.php - fault)

Yeah well I agree that I am aware you loose all the values, but what do you do, most people in using XOOPS would select the editor in the first instance.. of typing then come back and edit it later (which in that example is not lost)..

But still none of us know what the command like this is for - does anyone???

window.document.forms.'.$this->form->getName().'.submit();


Perhaps it can't be coded in china anymore as they have a none standardised system like the North Koreans, for I don't know incompatibility with a intergallatic structure of form and design and confluent communications..

This is not the phppp himself, he doesn't even seem to get some sort of normal zazzle t-shirt deliever like a political prisoner ie. (Hmm I was going to give you an ISBN for a book written here called - Political Prisoner but it seem to be missing from the shelf).

Beside from memory ... thats where I am from of montreal, I am a citizen like so...


btw, Just located that book:

Quote:

Resized Image
Title: My life as a Political Prisoner
Sub-Title: The Alderson Story
Author: Elizabeth Gurley Flynn
Pub: New World Paperback
ISBN: 0-7178-0002-4
LCCCN: 63-10863

Tanxs
Resized Image
www.ohloh.net/accounts/226400

Follow, Like & Read:-

twitter.com/RegaltyFamily
github.com/Chronolabs-Cooperative
facebook.com/DrAntonyRoberts

13
wishcraft
Re: X-Center 1.09 -> wysiwyg (formselecteditor.php - fault)

btw..

Quote:

$extra .= '"\'';


I don't think this is right the java script should on output read like

<select onchange='location.href="http://www.foo.com/?bar=monkey&spin=round&select_val="+this.options[this.selectedIndex].value'>


so no there is no \' on the end...
Resized Image
www.ohloh.net/accounts/226400

Follow, Like & Read:-

twitter.com/RegaltyFamily
github.com/Chronolabs-Cooperative
facebook.com/DrAntonyRoberts

14
luciorota
Re: X-Center 1.09
  • 2008/10/16 5:33

  • luciorota

  • Module Developer

  • Posts: 216

  • Since: 2007/4/20


but it runs
Rota Lucio
lucio.rota@gmail.com;
mobile: +39 338 9966321

15
JohnDoo
Re: X-Center 1.09 -> HTTP_GET_VARS vs _GET
  • 2008/10/22 21:03

  • JohnDoo

  • Just popping in

  • Posts: 14

  • Since: 2003/9/30


I'm having a problem with this module. It's based on HTTP_GET_VARS and HTTP_POST_VARS which have been deprecated and set them off by default on newer php versions so the module will not properly work if this is the case (mine is PHP 5.1.6 and HTTP_GET_VARS doesn't work too by default). Are you planning to migrate to $_GET[] and $_POST[] variables?

Regards and thanks very much for this great module.

Login

Who's Online

271 user(s) are online (166 user(s) are browsing Support Forums)


Members: 0


Guests: 271


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits