11
trabis
Re: block editing redirection - 2.3.3RC
  • 2009/3/29 14:37

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


It is a cookie problem, We cannot set cookies when headers are already sent.

Open system/admin/blocksadmin/main.php and add this at line 52:
$requests = array(  "selmod"    => -1,
                    
"selgen"    => 1,
                    
"selvis"    => -1,
                    
"selgrp"    => XOOPS_GROUP_USERS);
foreach (
$requests as $req => $def) {
    if (isset(
$_GET[$req])) {
        
setcookie($req$_GET[$req]);
    }
}


In blocksadmin.php you should remove line 56 so it looks like this:
foreach ($requests as $req => $def) {
        if (isset(
$_GET[$req])) {
            ${
$req} = intval($_GET[$req]);
        } elseif (isset(
$_COOKIE[$req])) {
            ${
$req} = intval($_COOKIE[$req]);
        } else {
            ${
$req} = $def;
        }
    }


The previous hack for custom blocks is also needed.
Please test it and report back.

12
sabahan
Re: block editing redirection - 2.3.3RC
  • 2009/3/29 15:28

  • sabahan

  • Quite a regular

  • Posts: 317

  • Since: 2006/3/4 5



updated system module/cleared XOOPS cache

but its not working..

13
trabis
Re: block editing redirection - 2.3.3RC
  • 2009/3/29 16:19

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Quote:

sabahan wrote:

updated system module/cleared XOOPS cache

but its not working..


Can you tell me what you did? What is not working?
I'm testing it with IE7 and FF and is working fine,
In blocksadmin.php you just need to remove line

setcookie($req, $_GET[$req]);

and add the other piece of code in main.php.

14
sabahan
Re: block editing redirection - 2.3.3RC
  • 2009/3/29 22:30

  • sabahan

  • Quite a regular

  • Posts: 317

  • Since: 2006/3/4 5


i've made the change

i tried to clone/edit/rename/delete modules& custom blocks, it is successful but i'm still redirected to the wrong page (system page)

using IE6 & FF 3.07

15
sabahan
Re: block editing redirection - 2.3.3RC
  • 2009/4/4 0:45

  • sabahan

  • Quite a regular

  • Posts: 317

  • Since: 2006/3/4 5


did anyone else tried the fix provided by trabis ?

i don't know what i did wrong but it seems its not working in my installation

16
sabahan
Re: block editing redirection - 2.3.3RC
  • 2009/4/24 11:02

  • sabahan

  • Quite a regular

  • Posts: 317

  • Since: 2006/3/4 5


bump

17
sabahan
Re: block editing redirection - 2.3.3RC
  • 2009/4/25 1:33

  • sabahan

  • Quite a regular

  • Posts: 317

  • Since: 2006/3/4 5


Update - Fixed

i used this hack just released by mr trabis

http://www.xuups.com/XOOPS2.3_blocksadmin_groups_hack_trabis.zip
Quote:

This hack allows you to set group access directly from block administration,
This hack also use cookies to manage redirections when editing/saving blocks

Just copy the folder 'modules' into your XOOPS root path


Credits to trabis fromhttp://www.xuups.com and to XOOPS 2.2.5 developers



hope this to be integrated with XOOPS 2.3.4

thank you very much trabis

Login

Who's Online

135 user(s) are online (81 user(s) are browsing Support Forums)


Members: 0


Guests: 135


more...

Donat-O-Meter

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

Latest GitHub Commits