Welcome to Geeklog, Anonymous Sunday, December 22 2024 @ 05:31 am EST
Geeklog Forums
adding common text to footer
Geeklog noobie alert...
I'm adding an html table to the footer of all pages - it's basically gonna be a table for an ad banner. The ad banner will be consistent and I was hoping to just add the code
{footer_banner}
to the footer.thtml code for all the layouts. This way, I can just edit footer_banner once and all layouts will automatically be changed.
My problem is I don't know where AND how to definte footer_banner.
Can anyone give me instructions? I tried to follow where copyright_notice is defined but since mine is an image, it doesn't make sense to put it in languages. Especially since it will be the same image all the time.
I'm adding an html table to the footer of all pages - it's basically gonna be a table for an ad banner. The ad banner will be consistent and I was hoping to just add the code
{footer_banner}
to the footer.thtml code for all the layouts. This way, I can just edit footer_banner once and all layouts will automatically be changed.
My problem is I don't know where AND how to definte footer_banner.
Can anyone give me instructions? I tried to follow where copyright_notice is defined but since mine is an image, it doesn't make sense to put it in languages. Especially since it will be the same image all the time.
11
5
Quote
Status: offline
Turias
Forum User
Full Member
Registered: 10/20/03
Posts: 807
In lib-common.php, in COM_siteFooter(), do the following:
$footerBanner .= 'More HTML for banner';
$footer->set_var('footer_banner', footerBanner);
Hope that helps.
Text Formatted Code
$footerBanner = 'HTML for banner';$footerBanner .= 'More HTML for banner';
$footer->set_var('footer_banner', footerBanner);
Hope that helps.
6
22
Quote
All times are EST. The time is now 05:31 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