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

Blank index.html pages

Quote Reply
Blank index.html pages
Everything works great except the index.html page within the category directory.

The index.html page (ie. Pages/Writing/index.html) is writen to the directory, but its blank! I even manually changed the "Pages" and "Writing" directory to 777, I also changed the "index.html" page to 777 then rebuild the links. Still the index.html pages is blank.

Any insight and suggestions?

Thanks,

DMC
Quote Reply
Re: Blank index.html pages In reply to
Are you using templates?

If so, are the templates there?

Is the category template blank?

Do you have the correct permissions set on the templates directory and files?


All the best
Shaun

------------------
Shaun Hague
Webmaster - Qango.com
http://www.qango.com/central/
Quote Reply
Re: Blank index.html pages In reply to
- Yes, I'm using templates.

However, I think it's interestting to note that when I set the variable: $build_use_templates = 0 ("0" meaning not to use templates) inside the "links.cfg" file, everthing works fine! But when I set it to "1" (ie. $build_use_templates = 1) my problem occurs.

- The templates are there, and I have CHMOD to 666 to all the .html files. I've also CHMOD 777 to the Pages directory where the files are written to.

- The category template is not blank.

After playing around with changeing the $build_use_templates = from 0 then back to 1, I've noticed that the individual "index.html" are know being created. However, when the $build_use_templates is set to "1", the index.html pages are created but the "Links List" does not show up within the page.

[This message has been edited by DMC (edited March 25, 2000).]
Quote Reply
Re: Blank index.html pages In reply to
It does sound like a templates problem. Have you tried re-uploading the original templates that come with links?

Are you using a different set of templates to the standard ones that come with links?

If the links are not showing up it would seem to be a problem with the category template, are all the others working OK?


All the best
Shaun

------------------
Shaun Hague
Webmaster - Qango.com
http://www.qango.com/central/
Quote Reply
Re: Blank index.html pages In reply to
As stated before, make sure that all your tags in the template files are on separate lines, like the following:

Code:
<%if links%>
<%links%>
<%endif%>

-OR- download the Enhanced Template.pm codes in the Resource Center and put them in your Template.pm file, which will allow you to have tags on the same line, like the following:

Code:
<%if links%><%links%><%endif%>

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: Blank index.html pages In reply to
Hello!

I think problem in this, what incorrect tags will be used. Its may be simply case problem.

Links parser is case sentive!

------------------
Best Regards,
Alex
Cgi installation service
http://web-surf.virtualave.net/cgi-install.html
http://www.perl-manual.com
Quote Reply
Re: Blank index.html pages In reply to
The problem has been solved!

AnthroRules suggested I download the "Enhanced Template.pm" code from the Resource Center. This can be found at the following URL:

http://www.gossamer-threads.com/scripts/resources/Detailed/26.html)

I simply copied and pasted the "sub parse {" section of this code posted at the above URL and pasted it into my "Template.pm" file, then uploaded it to my server. I then re-built my links from the Admin page and the problem went away!

Thanks for the help Smile

-DMC
Quote Reply
Re: Blank index.html pages In reply to
You're welcome.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums