Welcome to Geeklog, Anonymous Sunday, December 22 2024 @ 04:07 am EST
Geeklog Forums
centerblock in category pages
Status: Banned
machinari
Forum User
Full Member
Registered: 03/22/04
Posts: 1512
curious how difficult it would be to achieve: putting a staticpage centerblock on category pages, i.e., not just the first page, but page 2 and 3, etc., as well.
When I set the staticpage centerblock to show in a category, it will only show up on the first page of the category. If there are more than one page, it will not show up on those further pages.
I'm sure you would have to pass yet another var to the google-like paging function, but I have no idea there.
Any thoughts?
When I set the staticpage centerblock to show in a category, it will only show up on the first page of the category. If there are more than one page, it will not show up on those further pages.
I'm sure you would have to pass yet another var to the google-like paging function, but I have no idea there.
Any thoughts?
11
10
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Actually, if you have a look at function plugin_centerblock_staticpages in the plugin's functions.inc, you'll see this:
return $retval; // we only support page 1 at the moment ...
}
So the page number is already passed to the centerblock. I was probably just too lazy or not deeming it worthwhile to implement at the time ...
bye, Dirk
Text Formatted Code
if ($page > 1) {return $retval; // we only support page 1 at the moment ...
}
So the page number is already passed to the centerblock. I was probably just too lazy or not deeming it worthwhile to implement at the time ...
bye, Dirk
13
12
Quote
Status: Banned
machinari
Forum User
Full Member
Registered: 03/22/04
Posts: 1512
thanks Dirk
I really don't see a need for the block to be on any more pages than the first, but thought I'd check.
I really don't see a need for the block to be on any more pages than the first, but thought I'd check.
13
9
Quote
Status: Banned
machinari
Forum User
Full Member
Registered: 03/22/04
Posts: 1512
...so I commented out that return line and now the centerblock shows on each page of the topic. This was for a dude that wanted his add block to show up on every page--not my preference, but for anybody else who wants that, there you go.
11
10
Quote
All times are EST. The time is now 04:07 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