Results 1 to 13 of 13
  1. #1
    Newbie
    Join Date
    January 18th, 2005
    Posts
    24
    Is it possible to pull a links Footer into your pages with a CGI or PL script that doesn't require SSI? Have been to every CGI resource site and can't find one.

    Or is there a way to do it with .CSS?

    Thanks!
    Bernie

  2. #2
    Full Member garystarling's Avatar
    Join Date
    January 18th, 2005
    Posts
    277
    I got around this problem by writing some simple javascript code containing various links etc. Then instead of having the full code on every site page I linked to the script.

    < script language="JavaScript" src="../scripts/bottomad.js">
    < /SCRIPT >

  3. #3
    Resident Genius and Staunch Capitalist Leader's Avatar
    Join Date
    January 18th, 2005
    Location
    Florida
    Posts
    12,817
    The only problem with that is that SE spiders can't read Java, so you won't get any boost from having those nav. links.

  4. #4
    Newbie
    Join Date
    January 18th, 2005
    Posts
    2,694
    That's true; I've also run into some problems with slightly older AOL browsers returning a script error when using Javascript instead of SSI for includes.

    {

  5. #5
    Newbie
    Join Date
    January 18th, 2005
    Posts
    24
    Thank you all for the replies. My server permits SSI but I can't make any of the footer scripts I downloaded work.

    So there's no way to do it with a CSS? Is there an easy place to learn SSI? I'm doing something wrong, obviously. [img]/infopop/emoticons/icon_frown.gif[/img]
    Bernie

    [ 08-23-2002: Message edited by: Bernie ]

    [ 08-23-2002: Message edited by: Bernie ]

  6. #6
    Newbie
    Join Date
    January 18th, 2005
    Posts
    2,694
    no, CSS isn't for that purpose but I am certain you are just making the wrong SSI call to the script.

    What are you using in your html page to make your call? Are you using .shtml as your file extension in the calling page? Alternatively, if you don't want to change the file extensions to .shtml you can do it in your .htaccess file.

    {

  7. #7
    Member
    Join Date
    January 18th, 2005
    Posts
    161
    Does you host run PHP?

    That would provide a very neat, search friendly solution...

    Nick

  8. #8
    Newbie
    Join Date
    January 18th, 2005
    Posts
    24
    Nick, yes it allows PHP .. what would I do to use that? I don't know PHP either however, so answering me could be wasting your time. [img]/infopop/emoticons/icon_frown.gif[/img]

    Bernie

  9. #9
    Newbie
    Join Date
    January 18th, 2005
    Posts
    24
    Eaglefire, that's it, am using .html pages.

    &gt;&gt;&gt;Alternatively, if you don't want to change the file extensions to .shtml you can do it in your .htaccess file.&lt;&lt;&lt;

    Could you or someone tell me the exact wording or coding line to use to change the .htaccess file?

    Somewhere in another thread I saw advice that doing it in .htaccess file wrongly can make your
    entire site unaccessible.

    Bernie

  10. #10
    Member
    Join Date
    January 18th, 2005
    Posts
    161
    Okay, here's what you do.

    Create a file called footer.inc and stick it somewhere on your server. Just put thr html you wish to show for your footer in this file.

    Then, on your pages do this where you want the footer to appear:

    &lt;?
    include("/path/to/footer/footer.inc");
    ?&gt;

    Easy [img]/infopop/emoticons/icon_wink.gif[/img]

    Nick

    Tioka Internet // Web design &amp; SEO

  11. #11
    Newbie
    Join Date
    January 18th, 2005
    Posts
    2,694
    <BLOCKQUOTE class="ip-ubbcode-quote"><font size="-1">quote:</font><HR>Originally posted by Bernie:
    Eaglefire, that's it, am using .html pages.
    <HR></BLOCKQUOTE>

    That's why it isn't working. It has to be .shtml in order to parse the page as SSI.

    That is unless you modify your .htaccess page. The wording for that is in the archives - just do a search in this forum and you should find it.

    {

    When the shoe fits the foot is forgotten
    When the belt fits the belly is forgotten
    When the heart is right "for" and "against" are forgotten. - Chuang Tzu

  12. #12
    Newbie
    Join Date
    January 18th, 2005
    Posts
    24
    Got it! Except I caused a server to loop a little while ago and am paranoid about doing the wrong thing again so One more question and will stop being a Pest here. When it says

    &gt;&gt;You can configure .html files to be parsed as SSIs. Add the line:

    AddHandler server-parsed .html

    to an .htaccess file in the directory containing the SSI files.&lt;&lt;

    Does that mean every sub-directory that has a page calling the Footer? Such as mydomain.com/widgets/ and so on? I did it in one directory and it worked great, but got scared and took it off until am sure that's where the .htaccess file is supposed to be put.

    Thanks! and I won't bother anyone about this
    again, I promise [img]/infopop/emoticons/icon_smile.gif[/img]

    Bernie

  13. #13
    Newbie
    Join Date
    January 18th, 2005
    Posts
    2,694
    .htaccess works from the top down - if you put it in the topmost directory - your document root- it will work for the entire domain.

    {

    When the shoe fits the foot is forgotten
    When the belt fits the belly is forgotten
    When the heart is right "for" and "against" are forgotten. - Chuang Tzu

  14. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. need help getting this php script to validate in css 2.1
    By tsmgroup2 in forum Marketing Resources & Power Tools
    Replies: 1
    Last Post: May 23rd, 2012, 05:08 PM
  2. Anybody use WP theme with footer widgets?
    By writerguy in forum Blogging, Mobile and Social Media
    Replies: 6
    Last Post: September 7th, 2009, 11:00 AM
  3. Script object positioning problem in CSS
    By frank3iii in forum Programming / Datafeeds / Tools
    Replies: 9
    Last Post: September 22nd, 2003, 12:48 PM
  4. CSS/script menu problem
    By SpikeDo in forum Programming / Datafeeds / Tools
    Replies: 1
    Last Post: September 17th, 2003, 08:00 AM
  5. SSI instead of Script
    By buy-books-for-kids in forum Cusimano.com Scripts
    Replies: 1
    Last Post: July 1st, 2003, 11:47 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •