1
tayling
including another page in the footer
  • 2005/12/30 8:51

  • tayling

  • Just popping in

  • Posts: 86

  • Since: 2002/1/3 7


Happy New Year fellow xoopsers

I am trying to get a better layout for search engines on my site and was wondering if there a possible way to put something in prefences FOOTER to include another html file?

By this I mean I would like to have a separate page that I can easily edit and change to suit search engine keywords etc that i can have automatically included similar to php function include

Heres hoping

Cheers
Tony

2
davidthomas1
Re: including another page in the footer

Do you want the same included page to appear on every page of your site or do you want to have different includes for different pages?
みんなちがってみんないい。

XOOPS 2.0.13.2

3
tayling
Re: including another page in the footer
  • 2005/12/30 8:58

  • tayling

  • Just popping in

  • Posts: 86

  • Since: 2002/1/3 7


Hi
thanks for a quick reply
to start with the same page would be good but if it is possible to have different ones - that would be even better

thanks for your help

Cheers

Tony

4
davidthomas1
Re: including another page in the footer

You can add content to every page of your site by editing your:

theme.html

file.

It's located in themes/yourtheme/theme.html

Changes you make to your theme.html file will appear on every page of your site.

I used this feature to add an email-robot trap.

I added an invisible 'Contact Us' link (same colour as background) to the theme.html file. It links to a page that generates random email addresses.

If you're interested, you can see it here

P.S Re: theme.html - For information on Smarty Templates see this documentation

HIH
みんなちがってみんないい。

XOOPS 2.0.13.2

5
tayling
Re: including another page in the footer
  • 2005/12/30 9:50

  • tayling

  • Just popping in

  • Posts: 86

  • Since: 2002/1/3 7


Thanks again
I will add to the theme.html file BUT I woudl still like to include another html file but I can't seem to find a mthod of including another file - have tried
<{include("filename.html")}>
I need the file to be external to the theme to allow some user editing.

Any ideas?

Cheers

Tony

6
davidthomas1
Re: including another page in the footer

I'm not sure if you can use PHP code directly in a theme.html file (would it need to be renamed to theme.php?), however, you can probably include a file using smarty functions

See here:

smarty include

and here:

smarty include_php

You could perhaps embed PHP using:

smarty PHP tags
みんなちがってみんないい。

XOOPS 2.0.13.2

Login

Who's Online

146 user(s) are online (97 user(s) are browsing Support Forums)


Members: 0


Guests: 146


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