Welcome to Geeklog, Anonymous Saturday, December 21 2024 @ 09:37 am EST

Geeklog Forums

Staticpage on the index.php?page=2


Status: offline

Pushkar

Forum User
Regular Poster
Registered: 04/14/09
Posts: 99
Location:Ukraine, Kyiv
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
 Quote

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.
 Quote

Status: offline

Pushkar

Forum User
Regular Poster
Registered: 04/14/09
Posts: 99
Location:Ukraine, Kyiv
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
 Quote

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?
 Quote

Status: offline

Dirk

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

bye, Dirk
 Quote

Status: offline

::Ben

Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
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
 Quote

Status: offline

Pushkar

Forum User
Regular Poster
Registered: 04/14/09
Posts: 99
Location:Ukraine, Kyiv
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
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
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
 Quote

All times are EST. The time is now 09:37 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content