[SOLVED] Page Blocks Ordering Bug

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
icebrian
Forum Members
Forum Members
Posts: 24
Joined: Thu Dec 14, 2006 4:02 pm
Location: Portugal

[SOLVED] Page Blocks Ordering Bug

Post by icebrian »

I was using Page Blocks and aparrently came by a bug when ordering. After changing the order of blocks I press the submit button and am redirected to the login page.

While searching for the module page I found it is no longer being developed in favour of http://forum.cmsmadesimple.org/index.php?topic=22988.0 which I think is a shame since I consider this method easier for non-tech people. Also, what happens if I do have child pages that I do not want to include as page blocks?

Well anyways I have tried the new method and it works but some of the blocks I am adding have diferente templates and content fields. So how can I check which template is being used? Or how do I get arround this? Or does anyone know how to fix the problem with Page Blocks?

Thanks
Last edited by icebrian on Sat Feb 28, 2009 1:51 am, edited 1 time in total.
icebrian
Forum Members
Forum Members
Posts: 24
Joined: Thu Dec 14, 2006 4:02 pm
Location: Portugal

[SOLVED] Page Blocks Ordering Bug

Post by icebrian »

Solved the bug, basically changed line 289 in action.defaultadmin.php

from

Code: Select all

$sortableLists->printForm('moduleinterface.php?module=PageBlocks', 'post', 'Submit', 'button');
to

Code: Select all

$sortableLists->printForm('moduleinterface.php?'.CMS_SECURE_PARAM_NAME.'='.$_SESSION[CMS_USER_KEY].'&module=PageBlocks', 'post', lang('submit'), 'button');
Post Reply

Return to “Modules/Add-Ons”