Topics

User Functions

Events

There are no upcoming events

What's New

Stories

No new stories

Comments last 2 weeks

No new comments

Trackbacks last 2 weeks

No new trackback comments

Links last 2 weeks

No recent new links

NEW FILES last 14 days

No new files

Welcome to Geeklog Saturday, May 18 2013 @ 04:09 AM EDT


 Forum Index > Support > General Geeklog Support New Topic Post Reply
 adding common text to footer
   
pfaustino
 05/15/04 09:01PM (Read 1027 times)  
+----
Newbie
excited

Status: offline


Registered: 05/12/04
Posts: 1
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.

 
Profile Email
 Quote
Turias
 05/17/04 11:10AM  
+++++
Full Member

Status: offline


Registered: 10/20/03
Posts: 807
In lib-common.php, in COM_siteFooter(), do the following:

PHP Formatted Code
$footerBanner = 'HTML for banner';
$footerBanner .= 'More HTML for banner';
$footer->set_var('footer_banner', footerBanner);

 


Hope that helps.

 
Profile Email Website
 Quote
Content generated in: 0.76 seconds
New Topic Post Reply

Normal Topic Normal Topic
Sticky Topic Sticky Topic
Locked Topic Locked Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Able to post 
Filtered HTML Allowed 
Censored Content