Gossamer Forum
Home : Products : Links 2.0 : Installation -- Unix :

Header and Footer Big problem...

Quote Reply
Header and Footer Big problem...
Hello Let me explain what i got right now..

Lets talk about header..

I have header in this file
./admin/header/header.txt

I add this to site_html_templates.pl under globals

site_header => $site_header,



I add this to site_html.pl

$site_header = qq|<!--#include virtual="./admin/header/header.txt"-->|;

I add this under Search_results.html

<%site_header%>


Tell me what I am doing wrong to correct this matter, cause the header won't work..
Thank u


------------------
Best Regards
Yasser Al-Ghurazy
AOL S/N: SanaaNet
Quote Reply
Re: Header and Footer Big problem... In reply to
Are you using templates or not? If you are using templates, then site_html.pl is not used by Links. If your are not using templates, then site_html_templates.pl is not used by Links.

In other words, you have to use one or the other script, not both. If using templates, then change:

Quote:
site_header => $site_header,

to read:

Quote:
$site_header => qq|<!--#include virtual="./header/header.txt"-->|,

Since site_html_templates.pl is in the admin directory, using "./admin/header/header.txt" would not work.

I hope this helps.

[This message has been edited by Bobsie (edited June 04, 1999).]
Quote Reply
Re: Header and Footer Big problem... In reply to
Thanx alot it works..

I got another question...

How can i make the search results fit between my header and footer cause right now it seams wider in between them.. Is there a number where i can change like a table or something..


------------------
Best Regards
Yasser Al-Ghurazy
AOL S/N: SanaaNet
Quote Reply
Re: Header and Footer Big problem... In reply to
The display of the search results is a combination of the html code in the template files link.html and search_results.html. You'll have to play with the html code in them and your header/footer files to get it to look the way you want. Remember, though, link.html is used for a lot more than search results. So, any changes made in that file will affect the New, Cool, and Category pages as well.

I hope this helps.
Quote Reply
Re: Header and Footer Big problem... In reply to
Is there anyway I can change the results links to a different way such as follow..

right now thay are displayed

'test- test new (Added: 2-Jun-1999 Hits: 1 Rating: 4.00 Votes: 1) Rate It.

Can I change them for example like this

Title of the web site here (Added: 2-Jun-1999 )
Rating: 4.0
Votes:1
Rait It.

Smile



------------------
Best Regards
Yasser Al-Ghurazy
AOL S/N: SanaaNet