News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Custom Footer With Yabbse Theme ???

Started by fareforce, September 19, 2005, 01:05:05 AM

Previous topic - Next topic

fareforce

I am using the Yabbse theme, but I need to add a few pieces of php code into template.php. No matter what I try I can't get the theme to recognize that it is php code and not text. One of the things that I am trying to put in there is the following code:
include("../footer.php");
  echo "$footer";

I have tried many ways, but can't get it to see it as code.. Any suggestions? ???

xenovanis

What exactly are you trying to add? Have you tried to add it below this line in index.template.php?

   // Show the "Powered by" and "Valid" logos, as well as the copyright.  Remember, the copyright must be somewhere!
"Insanity: doing the same thing over and over again and expecting different results."

fareforce

After thinking about it for a bit, here is the correct way to fix this.

Open index.template.php

find
$string = strtr($string, array(

and just before that add the line:
include("../footer.php");

then right after it add the line:
'<footer>' => $footer,

then in your template.php wherever you want your footer just put <footer>

Advertisement: