Welcome to Geeklog, Anonymous Friday, November 07 2025 @ 02:31 pm EST
Geeklog Forums
static pages
randomguy
Anonymous
I've downloaded and am using the 'stories by topic' block but instead of having it on the left or right I'm trying to work out how to put it in the center of the index page underneath my featured story. How can I make this appear? Does this have to be in a static centerblock page? If so what do I put in the 'content' box of the static page admin page?
9
11
Quote
Status: offline
geKow
Forum User
Full Member
Registered: 01/12/03
Posts: 445
Yes, a static page try this:
$display .= phpblock_StoriesByTopic();
$display .= COM_endBlock();
return $display;
and the setting "use php (with return)"
geKow
Text Formatted Code
$display .= COM_startBlock ('YOUR BLOCK NAME'); $display .= phpblock_StoriesByTopic();
$display .= COM_endBlock();
return $display;
and the setting "use php (with return)"
geKow
12
14
Quote
randomguy
Anonymous
Whoah - that works! Excellent. Thanks for the help.
Now things have moved on. I now need two of these blocks in the static page - side by side. My current coding for getting the two to show up is:
$display .= COM_startBlock ('Interviews');
$display .= phpblock_StoriesInterviews();
$display .= COM_endBlock();
$display .= COM_startBlock ('Reviews');
$display .= phpblock_StoriesReviews();
$display .= COM_endBlock();
return $display;
...but this brings them in one underneath the other. I don't know how to get them next to each other in a table or something.
Once again, thanks for everything so far!
Now things have moved on. I now need two of these blocks in the static page - side by side. My current coding for getting the two to show up is:
$display .= COM_startBlock ('Interviews');
$display .= phpblock_StoriesInterviews();
$display .= COM_endBlock();
$display .= COM_startBlock ('Reviews');
$display .= phpblock_StoriesReviews();
$display .= COM_endBlock();
return $display;
...but this brings them in one underneath the other. I don't know how to get them next to each other in a table or something.
Once again, thanks for everything so far!
11
12
Quote
Status: offline
geKow
Forum User
Full Member
Registered: 01/12/03
Posts: 445
ok, I have stolen that from somewhere in geeklog land
$display .='<div style="float:left; margin-left:5px; width:45%;">';
.
left block
.
$display .='</div>';
$display .='<div style="float:right;margin-right:5px; width:45%;">';
.
right block
.
$display .='</div><div style="clear:both;"></div>';
Basicly you can do all the html stuff you like, that way.
geKow
Text Formatted Code
$display .='<div style="float:left; margin-left:5px; width:45%;">';
.
left block
.
$display .='</div>';
$display .='<div style="float:right;margin-right:5px; width:45%;">';
.
right block
.
$display .='</div><div style="clear:both;"></div>';
Basicly you can do all the html stuff you like, that way.
geKow
12
11
Quote
randomguy
Anonymous
Once again - excellent! Worked first time like a dream. Thanks very much geKow.
12
13
Quote
All times are EST. The time is now 02:31 pm.
- 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