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 |
|
||||||
![]() ![]() ![]() ![]() ![]() 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 |
||||||
|
|||||||
| gtgillis |
|
||||||
![]() ![]() ![]() ![]() ![]() 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. |
||||||
|
|||||||
| Pushkar |
|
||||||
![]() ![]() ![]() ![]() ![]() 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. it's set to all (Centerblock, top of page, all) on the latest version it doesn't displaying too |
||||||
|
|||||||
| gtgillis |
|
||||||
![]() ![]() ![]() ![]() ![]() 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? |
||||||
|
|||||||
| Dirk |
|
||||||
![]() ![]() ![]() ![]() ![]() 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 |
||||||
|
|||||||
| ::Ben |
|
||||||
![]() ![]() ![]() ![]() ![]() 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 |
||||||
|
|||||||
| Pushkar |
|
||||||
![]() ![]() ![]() ![]() ![]() 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 |
||||||
|
|||||||
| Dirk |
|
||||||
![]() ![]() ![]() ![]() ![]() Admin ![]() Status: offline ![]() Registered: 01/12/02 Posts: 13027 |
Quote by: Pushkar Dirk, please tell me why it was set only to 1 page? 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 |
||||||
|
|||||||
| Content generated in: 4.18 seconds |
|
|
|