Welcome to Geeklog, Anonymous Wednesday, April 24 2024 @ 07:14 am EDT
Geeklog Forums
Right / Left Block for Static Page?
Status: offline
bcbrock
Forum User
Chatty
Registered: 02/04/03
Posts: 64
Hack Request...
Anybody have any ideas on how I could get a right block to display for a specific static page, much the same way you could for a specific topic?
I've done a bit of PHP coding in the past, so I'm not looking for a turnkey solution - just a bit of brainstorming that may get me on the right track. The site this will be used on is a relatively static site, so I'm not opposed to hard coding the staticpage id's somewhere, either.
TIA!
~Brian
Anybody have any ideas on how I could get a right block to display for a specific static page, much the same way you could for a specific topic?
I've done a bit of PHP coding in the past, so I'm not looking for a turnkey solution - just a bit of brainstorming that may get me on the right track. The site this will be used on is a relatively static site, so I'm not opposed to hard coding the staticpage id's somewhere, either.
TIA!
~Brian
6
7
Quote
Status: offline
jmucchiello
Forum User
Full Member
Registered: 08/29/05
Posts: 985
Use a phpblock and have the block code check the current URL. If it is staticpage/index.php?id=xxx where xxx is the staticpage in question, display the content. Otherwise return an empty string. Empty blocks do not display.
5
6
Quote
All times are EDT. The time is now 07:14 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