Topics

User Functions

Events

There are no upcoming events

What's New

Stories

No new stories

Comments last 2 weeks

No new comments

Trackbacks last 2 weeks

No new trackback comments

Links last 2 weeks

No recent new links

NEW FILES last 14 days

No new files

Welcome to Geeklog Saturday, May 18 2013 @ 11:07 PM EDT


 Forum Index > Support > Plugin Support New Topic Post Reply
 Staticpage on the index.php?page=2
   
Pushkar
 10/07/09 03:39PM (Read 999 times)  
++++-
Regular Poster

Status: offline


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

 
Profile Email Website
 Quote
gtgillis
 10/07/09 04:02PM  
++++-
Regular Poster

Status: offline


Registered: 11/05/03
Posts: 89
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.

 
Profile Email Website
 Quote
Pushkar
 10/07/09 04:06PM  
++++-
Regular Poster

Status: offline


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

 
Profile Email Website
 Quote
gtgillis
 10/07/09 04:46PM  
++++-
Regular Poster

Status: offline


Registered: 11/05/03
Posts: 89


on the latest version it doesn't displaying too


You are correct. Perhaps this is a bug?

 
Profile Email Website
 Quote
Dirk
 10/07/09 05:28PM  
AAAAA
Admin

Status: offline


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

bye, Dirk

 
Profile Email Website
 Quote
::Ben
 10/07/09 05:56PM  
+++++
Full Member

Status: offline


Registered: 01/14/05
Posts: 1359
Hello,

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

PHP 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

We speak french on http://geeklog.fr
 
Profile Email Website
 Quote
Pushkar
 10/08/09 01:54AM  
++++-
Regular Poster

Status: offline


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

 
Profile Email Website
 Quote
Dirk
 10/08/09 02:11PM  
AAAAA
Admin

Status: offline


Registered: 01/12/02
Posts: 13027
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

 
Profile Email Website
 Quote
Content generated in: 4.18 seconds
New Topic Post Reply

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