Status: offline

Pushkar

Forum User
Regular Poster
Registered: 04/14/09
Posts: 99
Hi! Please help me is it possible to make that staticpage (Centerblock, top of page, all) will displayed not only on index.php but on index.php?page=2, index.php?page=3 ... too?

thanks
version 1.4.1

Status: Banned

gtgillis

Forum User
Full Member
Registered: 11/05/03
Posts: 121
Just below where you checked centerblock there is a drop down that is set to homepage only. Change that to all.

EDIT: Upgrade to the latest version.

Status: offline

Pushkar

Forum User
Regular Poster
Registered: 04/14/09
Posts: 99
Quote by: gtgillis

Just below where you checked centerblock there is a drop down that is set to homepage only. Change that to all.

EDIT: Upgrade to the latest version.



it's set to all
(Centerblock, top of page, all)


on the latest version it doesn't displaying too

Status: Banned

gtgillis

Forum User
Full Member
Registered: 11/05/03
Posts: 121


on the latest version it doesn't displaying too


You are correct. Perhaps this is a bug?

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
The "all" refers to "all topics", not "all pages". I'm afraid what you want is not possible without code changes.

bye, Dirk

Status: offline

::Ben

Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Hello,

A quick hack in the function plugin_centerblock_staticpages (plugin/staticpages/functions.inc) could help you.
Remove or comment 3 lines (see below).

Text Formatted Code

function plugin_centerblock_staticpages ($where = 1, $page = 1, $topic ='')
{
    global $_CONF, $_TABLES, $_SP_CONF, $LANG_STATIC, $_IMAGE_TYPE, $LANG01;

    $retval = '';

 //   if ($page > 1) {
 //       return $retval; // we only support page 1 at the moment ...
 //   }
 


::Ben
I'm available to customise your themes or plugins for your Geeklog CMS

Status: offline

Pushkar

Forum User
Regular Poster
Registered: 04/14/09
Posts: 99
Thank you, Cordiste! It works! :banana:

Dirk, please tell me why it was set only to 1 page?
If I select more than 1 page, will it affects the security of the site or the server load?

and one more question: could it possible when i set "all" that static page displayed in articles too?

Thanks

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Quote by: Pushkar

Dirk, please tell me why it was set only to 1 page?
If I select more than 1 page, will it affects the security of the site or the server load?


It's simply not something that anybody asked for yet.


Quote by: Pushkar

and one more question: could it possible when i set "all" that static page displayed in articles too?


If you want something on pretty much any page anyway, could you not add it to the header.thtml? You can even use PHP in that file, so you could add your own code to show or hide it depending on the page you're on.

bye, Dirk