1
xltran
Change footer for default theme
  • 2006/8/7 21:30

  • xltran

  • Just popping in

  • Posts: 23

  • Since: 2002/7/28


I installed XOOPS v2.0.14. The default theme footer is a gif graphic hard coded in the theme.html file. What exactly I must change/replace in the theme.html file so it will use the system preference meta footer. Please provide step-by-step instruction assuming that I do not know HTML. Thanks in advance for any help anyone could provides.

2
smfuser
Re: Change footer for default theme
  • 2006/8/21 15:51

  • smfuser

  • Not too shy to talk

  • Posts: 103

  • Since: 2006/6/24


Hiya xltran :) I can't remember where I read on here about how to do it, but this is what I did to change my footer, as I've recently installed XOOPS 2.0.14 and am using it as well on My Site

I'll do this in very basic step-by-step terms from the start, for the benefit of others wondering how to do the same thing.

.....................................
A Tip for when modifying files: (Always make sure you've got an original copy of the file you're working on before you start, in case something goes wrong, then you can always fix it)

1. It's best to turn the site off first (you'll see why in a minute). Go into your System Admin area, then into 'Preferences' then 'General Settings'... then scroll down and turn your site off and Submit that change.

2. Now that your site is turned off, go back into the General Settings area again. Scroll down to where it says "Default theme" and make sure 'default' is selected in that dropdown box.

3. Look just below that where it says "Check templates for modifications?" and check 'Yes'.
(It says under that heading there that this option must be set to 'off' on a production site, so that's why I turned the site off first. You will need to go back again and set this to 'No' once you're finished).
This step is because when modifying the theme.html for your Default Theme (or any other theme), you need to make the system recognise those changes to that template.

4. Then go down a couple more lines to where it says "Default template set" and make sure 'default' is selected in that dropdown box as well.

5. Now go down and Submit those changes.

6. Now to change the theme.html (make sure you've got an original copy of the file you're working on)
Open the source code for 'theme.html' in your Default Theme and go right to the bottom of it....

replace this Table..
<table cellspacing="0">
    <
tr id="footerbar">
      <
td><a href="https://xoops.org/" target="_blank"><img src="<{$xoops_imageurl}>poweredby.gif" alt="" /></a></td>
    </
tr>
  </
table>


with this Table...
<table cellspacing="0">
    <
tr id="footerbar">
      <
td height="23" valign="middle"><{$xoops_footer}></td>
    </
tr>
  </
table>

* you can change the '23' to whatever height you want.

...now save the changes.

7. If you want to set the CSS for your footer now, open your Default Theme's 'style.css' and search for tr#footerbar to set alignment, colour, size etc, and save them changes.

8. Now you can upload the 'theme.html' file to your site, to whichever theme folder you're working on, as well as the style.css if you made any changes to that.

9. Now go back to your site, and refresh the page and the changes to your default theme's 'theme.html' would have been recompiled by the sytem and the changes should now be visible. You should have your own custom Footer text there instead of the default image.

10. Once you're satisfied with your changes, you'll need to go back into your System Admin area, into 'Preferences' then 'General Settings' and where it says "Check templates for modifications?", check 'No' and Submit that change.

11. Go back into your General Settings again and turn your site back 'On' and submit changes, and you should be set :)
.....................................

I know it seems like a lot of steps, but that's only because it's all typed out but it all only takes a few minutes.

If anyone notices that I've missed a step or there is something that does not need to be done, please post with the correction :)

I hope that helps ya out xltran and anyone else who was after the same thing :)
I used to be Indecisive ... but now I'm not so sure

Login

Who's Online

216 user(s) are online (152 user(s) are browsing Support Forums)


Members: 0


Guests: 216


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits