Go back to previous page
Forum URL: http://www.dombom.com/cgi-bin/dcforum/dcboard.cgi
Forum Name: The New MadBomber Marketing and SEO Forum
Topic ID: 624
#0, SSI Thread
Posted by sgtaw on Dec-04-07 at 08:38 PM
Hello,

I would like to have this thread all about SSI, if I may.

Blessings,

Ed


#1, RE: SSI Thread
Posted by sgtaw on Dec-04-07 at 08:40 PM
In response to message #0
LAST EDITED ON Dec-04-07 AT 08:42 PM (PST)
 
I have the following SSI tag

<!--#include virtual="http://mydomain.com/cgi-bin/bb/feedsearch_ssi.cgi?channel=7&keywords=football%20shoes&mode=exact&random=1"; -->

It is in a blank HTML page....

I get the following error when, I upload the page and try to view it

----------BEGIN----------
an error occurred while processing this directive
----------END------------

When I paste the tag directly to my browser

http://mydomain.com/cgi-bin/bb/feedsearch_ssi.cgi?channel=7&keywords=football%20shoes&mode=exact&random=1

It works!

It DOES NOT work in the SSI format in my html page.

Any suggestions?

More info: This page is in a sub-folder from the root directory.

Thanks and blessings,

Ed


#2, RE: SSI Thread
Posted by sgtaw on Dec-04-07 at 08:53 PM
In response to message #1
I figured it out....

This is actually two steps.

1. In fatty admin, under "feeds", you have to make sure the path to "feedsearch_ssi.cgi" is correct. It MUST be the FULL server path.

Like this, for instance...

home/server_domain_name/public_html/cgi-bin/bb/feedsearch_ssi.cgi

2. The SSI tag must locate this path properly. For instance, since my pages were in a sub-folder (one level down from the root folder) my tag had to be formatted like this:

<!--#include virtual="../cgi-bin/bb/feedsearch_ssi.cgi?channel=7&keywords=football%20shoes&mode=exact&random=1" -->

Notice the ../ in the beginning. That tells the code that this particular page is one level down from the root.

For two levels down, the code would be ../../

I hope this helps....

Blessings,

Ed


#3, SSI and HTML with HTTRACK
Posted by sgtaw on Dec-04-07 at 09:18 PM
In response to message #2
LAST EDITED ON Dec-04-07 AT 09:23 PM (PST)
 
HTTRACK is great for sucking your keywords into html pages....

Here is a question...

I want to add an SSI tag into my template.

This is the tag...

<!--#include virtual="../cgi-bin/bb/feedsearch_ssi.cgi?cat=1&keywords=keyword%20keyword&mode=exact&random=1&results=3" -->

<!--#include virtual="../cgi-bin/bb/feedsearch_ssi.cgi?cat=1&keywords=keyword%20keyword&mode=all&random=1&results=2" -->

I like this because it is RANDOM! This means everytime I suck pages, the data will be complete different and unique! Nice.

I have two... one is EXACT on is ALL. The EXACT is nice if there is and EXACT match for my keyword phrase. The ALL makes sure I get something!

Here's where it gets nice!....

replace keyword%20keyword

with

BRACKET-LEFT % form.keywords as html % BRACKET-RIGHT (SORRY. This forum doesn't like brackets!)

So your SSI tage now looks like this

<!--#include virtual="../cgi-bin/bb/feedsearch_ssi.cgi?cat=1&keywords=BRACKET-LEFT % form.keywords as html % BRACKET-RIGHT&mode=exact&random=1&results=3" -->

<!--#include virtual="../cgi-bin/bb/feedsearch_ssi.cgi?cat=1&keywords=BRACKET-LEFT % form.keywords as html % BRACKET-RIGHT&mode=all&random=1&results=2" -->

BRACKET-RIGHT = ]
BRACKET-LEFT = Is the other side!


Now you will get the keywords into the SSI as HTTRACK sucks pages!

Blessings,

Ed


#4, RE: SSI and HTML with HTTRACK
Posted by sgtaw on Dec-04-07 at 09:35 PM
In response to message #3
OK.

I am having a problem getting the SSI to work with httrack AND the on the fly page creation....

The SSI won't run....

I have tried to put the tag in various places in the template that has all the coding for fatty but it doesn't work.

Any ideas?

Blessings,

Ed


#5, RE: SSI and HTML with HTTRACK
Posted by sarunokokoro on Dec-05-07 at 03:04 AM
In response to message #4
hi ed,
are you putting ssi tags in the fatbomb skin?? i think that can't be done. suppose you are getting "raw" code like this when you load the page...(instead of the content you want)

<!--#include virtual="../cgi-bin/bb/feedsearch_ssi.cgi?cat=1&keywords=BRACKET-LEFT % form.keywords as html % BRACKET-RIGHT&mode=all&random=1&results=2" -->

tell me how specifically you want your pages to come out and maybe i can help

jo


#6, RE: SSI and HTML with HTTRACK
Posted by Johlum on Dec-05-07 at 04:08 AM
In response to message #5
Here's what I've found works on my servers.

It's php.

<? virtual("/cgi-bin/fatbomb/fatbomb.cgi/?skin=skin6&keywords=key+word");?>


Ernie


#7, RE: SSI and HTML with HTTRACK
Posted by Kurt on Dec-06-07 at 12:25 PM
In response to message #4

>I am having a problem getting the SSI to work with httrack
>AND the on the fly page creation....
>
>The SSI won't run....
>
>I have tried to put the tag in various places in the
>template that has all the coding for fatty but it doesn't
>work.
>
>Any ideas?

Hi Ed,

First, why do you want to add SSI tags to the httrack pages? The point of the httrack pages is that they are static and don't need SSI tags.

An exception would be if you are adding navigation that you want to be able to modify using SSI?

If SSI isn't working, it's usually because of:
-wrong file path
-cgi/perl/php script isn't working
-no htaccess file

Also, this discussion probably should have taken place on this thread:
4 Putting RSS on Pages: SSI and htaccess
http://www.dombom.com/cgi-bin/dcforum/dcboard.cgi?az=show_thread&om=60&forum=DCForumID42

Let's pick up the discussion on the other thread, so I can have "control" of the first post. (To cover basics, etc).