1
wishcraft
X-Center 1.09

Resized Image

I have been asked me to explore some of the older modules as a core developer, I have re-written the Content module so it falls in line with code standardisation as well as XOOPS Code protocol. It has been completely rewritten as well as a concession of other features added in. Now with the content module this has been renamed to X-Center as it is the center of your website. There is a new XML Power Block which will allow you to write and clone multiple blocks that scan other areas of your database for content in pertenance to the data in the article.

This means that you can have blocks in multiple places that are constantly changing based on various content types in the system, this off course with Search Engines the more you site expands and is used, mean you have a higher SEO rank cause your pages are reflecting a higher change in the system page impressions.

The X-Center is and will remain quiet popular as I have had many enquires about the content module so I have revamped it and released it to you.

Download:

* xoops2_xcenter_1.09.zip
* xoops2_xcenter_1.09.torrent

Documentation:

* X-Center Wiki XML Examples
Resized Image
www.ohloh.net/accounts/226400

Follow, Like & Read:-

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

2
dslchart
Re: X-Center 1.09
  • 2008/9/30 8:35

  • dslchart

  • Not too shy to talk

  • Posts: 112

  • Since: 2008/9/7 1


nice module. thank you for sharing. i visit your site and i found a little bug.

http://www.chronolabs.org/modules/xoopspoll/

white page.

regards.

3
nmshah
Re: X-Center 1.09
  • 2008/10/1 5:32

  • nmshah

  • Just can't stay away

  • Posts: 556

  • Since: 2007/7/2 8


the module looks great. but i am not able to get the wysiwyg editors work. The editors are showing in the drop box but on selecting them, nothing happens.

4
nmshah
Re: X-Center 1.09
  • 2008/10/3 13:54

  • nmshah

  • Just can't stay away

  • Posts: 556

  • Since: 2007/7/2 8


did anyone else have this problem, pls help

5
wishcraft
Re: X-Center 1.09

Hi how are you? Yeah I was noticing that with the development, i don't see anything wrong with the code construct it is as per usual... But that is the intial release, it hasn't not been completely standardised.. I will have a look at it for you shortly..

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

Follow, Like & Read:-

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

6
kerkyra
Re: X-Center 1.09
  • 2008/10/13 8:04

  • kerkyra

  • Just can't stay away

  • Posts: 553

  • Since: 2005/2/14


same prob here mate! :(
www.guidemap.gr - Beta is out...

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

Hi all how are you, this is a core issue not an issue with the application, the formselecteditor.php does not have a argument for the extra but also has a fault.. the remmed out lines are in error

To Fix this in the core here is how you do it, see it is using an none standardised form of Java which ensures you can have no use in the western world or anywhere else..

From line 51 of XOOPS_ROOT_PATH/class/xoopsform/formselecteditor.php you will have to alter it like so..

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="'.XOOPS_URL.$_SERVER['PHP_SELF']."?";
        foreach (
$_GET as $key => $value)
            if (
$key!=$this->name)
                
$extra .= $key."=".$value."&";
        
$extra .= $this->name."="+this.options[this.selectedIndex].value'";

/// End of admendment.
            
        
$option_select->setExtra($extra);
        
$option_select->addOptionArray($editor_handler->getList($this->nohtml));
        
        
$this->addElement($option_select);
        
        return 
parent::render();
    }
Resized Image
www.ohloh.net/accounts/226400

Follow, Like & Read:-

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

8
kerkyra
Re: X-Center 1.09
  • 2008/10/14 9:17

  • kerkyra

  • Just can't stay away

  • Posts: 553

  • Since: 2005/2/14


hey mate, there are some errors with the quotes in the code! I tried to correct them, but when trying to install or uninstall a module there is no submit button...
www.guidemap.gr - Beta is out...

9
wishcraft
Re: X-Center 1.09

That is a core issue as you can see it is working fine onhttp://www.chronolabs.org/modules/xcenter/

I am not sure what your issues are i have also noted that the CSS is very odd here on XOOPS as well. Where are you based, perhaps you should sign up or connect to that msn address where we never had any..

Maybe you have some sort of HDD DJ or something malicilously attacking you in your language, if you notice I don't speak anything from around here in my you tube demos where the interpolated english doesn't match my lip movements..


Resized Image
www.ohloh.net/accounts/226400

Follow, Like & Read:-

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

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

  • luciorota

  • Module Developer

  • Posts: 216

  • Since: 2007/4/20



hi everybody,
Quote:

wishcraft wrote:
Hi all how are you, this is a core issue not an issue with the application, the formselecteditor.php does not have a argument for the extra but also has a fault.. the remmed out lines are in error

To Fix this in the core here is how you do it, see it is using an none standardised form of Java which ensures you can have no use in the western world or anywhere else..

From line 51 of XOOPS_ROOT_PATH/class/xoopsform/formselecteditor.php you will have to alter it like so..

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="'.XOOPS_URL.$_SERVER['PHP_SELF']."?";
        foreach (
$_GET as $key => $value)
            if (
$key!=$this->name)
                
$extra .= $key."=".$value."&";
        
$extra .= $this->name."="+this.options[this.selectedIndex].value'";

/// End of admendment.
            
        
$option_select->setExtra($extra);
        
$option_select->addOptionArray($editor_handler->getList($this->nohtml));
        
        
$this->addElement($option_select);
        
        return 
parent::render();
    }


there are some errors with the quotes in the code... I try this version, and it runs

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();
    }


but I don't like this solution because, in this way, I loose all just inserted values...

someone find a better solutions?
Rota Lucio
lucio.rota@gmail.com;
mobile: +39 338 9966321

Login

Who's Online

222 user(s) are online (122 user(s) are browsing Support Forums)


Members: 0


Guests: 222


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