Welcome to Geeklog, Anonymous Saturday, December 21 2024 @ 09:34 am EST
Geeklog Forums
footer floating to the top
xucaen
http://www.geekytechguy.net/geeklog/forum/index.php
Any help is appreciated.
Jim :banghead:
xucaen
<?php include_once("/home/geekytec/lib/php/footer.inc"); ?>
but when I displaye the page, nothing shows up. And in the souece view, I see the text "<?php include_once("/home/geekytec/lib/php/footer.inc" ?>", so obviously my php is not getting interpreted as php. How do I insert my own footer? If not in footer.thtml, then where would it be?
Any help is appreciated. Thanks!
Jim
xucaen
http://www.geeklog.net/forum/viewtopic.php?forum=3&showtopic=65323&highlight=footer.thtml
where Dirk states that php is not allowed in footer.thtml. not sure if that has changed but my attempts toplace php into the footer.thtml resulted in none ofmy php code executing. It looks like I will have to re-write a bit of geeklog in order to get my custom footer to be displayed.
Jim
jmucchiello
However, if you don't need code for your footer, footer.thtml is common to all pages already. So just put everything in your "common footer" directly into layout/themename/footer.thtml
jmucchiello
xucaen
But there are still some problems with the way my pages are being loaded.
1) for some reason, the geeklog footer floats to the top of the page in linux firefox 2.0.0.6. I have not tested this with any other browser so I don't know if it is browser-specific. And because geekklog is being formatted with tables, I can't seem to understand how the footer table could be floating to the top.
2) my custom footer does not display at all on the forum and media gallery plugin pages
3) on the geeklog index page, the custom footer also floats to the top of the page.
jmucchiello
ironmax
I
1) for some reason, the geeklog footer floats to the top of the page in linux firefox 2.0.0.6. I have not tested this with any other browser so I don't know if it is browser-specific. And because geeklog is being formatted with tables, I can't seem to understand how the footer table could be floating to the top.
2) my custom footer does not display at all on the forum and media gallery plugin pages
3) on the geeklog index page, the custom footer also floats to the top of the page.
Just curious... Have you by any chance, tried to use an original copy of the professional/footer.thtml file from the archive? If that works as intended, then there is something else within your coding thats messing it up. I know I've run into that problem in converting some of the older themes over and have had to use the latest footer file to start with when making changes.
Michael
xucaen
my edited header.thtml
<table width="100%" align="left">
<tr>
{left_blocks}
<td class="story-container" width="100%" style="vertical-align:top;">
Original header.thtml:
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>
{left_blocks}
<td class="story-container" width="100%" style="vertical-align:top;">
It seems that for some reason, I changed the table surrounding the left-blocks to "align-left". I must have cut and pasted that from somewhere while I was editing.
Sure enough if I take the html that is working and add align="left" to the second table, the footer floats to the top.
I am still working on the other problem of getting a custom footer. using the CUSTOM_siteFooter function, I see both the geeklog footer and my footer from the geeklog index page. But when I go to the forum/index.php or mediagallery/index.php, only the geeklog footer is displayed.
Where does CUSTOM_siteFooter get called from? I searched in lib-common but didn't find any references to it.
xucaen
$display .= COM_siteFooter (true); // The true value enables right hand blocks.
// Output page
$display .= CUSTOM_siteFooter();
echo $display;
It sounds likeI should not have to do this, so maybe I'm missing something else? How should CUSTOM_siteFooter() be called?
Jim
jmucchiello
xucaen
The first one does not display a footer at all. The second one displays the footer above the header. Obviously something is wrong here. But what?
/*
2008-03-12
method that displays a custom footer
*/
function professional_siteFooter()
{
$contents=file_get_contents("/home/geekytec/lib/php/footer.inc");
return $contents;
}
/*
2008-03-12
method that displays a custom footer
*/
function professional_siteFooter()
{
$contents=file_get_contents("/home/geekytec/lib/php/footer.inc");
echo $contents;
}
Dirk
The first one does not display a footer at all. The second one displays the footer above the header. Obviously something is wrong here. But what?
The first version is correct: Use return (not echo). Geeklog will buffer the result from that function and do the echo (together with the rest of the site) itself later.
Not sure why it's not working for you, though
bye, Dirk
- 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