Gossamer Forum
Quote Reply
Problem
I have never encountered this problem before but I am working off of a template I designed and everything was working well. I created a new category called Writers under the Arts category then created several others. Suddenly the Writers section isn't setup right. Its the only one that isn't and I was wondering if anyone could help me know why its not working with other newer categories are working correctly. The main problem is it does not look like it is suppose to.

Here is the link: http://www.christians4jesus.com
Quote Reply
Re: [LordStryfe] Problem In reply to
It now seems to be spreading to other categories as well. When you preview pages offline without all of the hyperlink it works fine, but when you have links in there it doesn't display correctly.
Quote Reply
Re: [LordStryfe] Problem In reply to
Ok look at these two and you will see that the category template is the exact same but for some reason its not reading right. Any suggestions?



http://www.christians4jesus.com/Arts/Portraits/

http://www.christians4jesus.com/Arts/Writers/
Quote Reply
Re: [LordStryfe] Problem In reply to
You mean that categories is not showing at all (on Arts/Portraits)? Did you create subcats under Portaits? If not, then that's the easy answer! Writers has three subcategories; check the spelling on this one: Sites on Joustnalism

Tips:


1. Put the <%title_linked%> tag in there somewhere, it makes navigation MUCH simpler!

2. Go with CSS as much as possible. tables are still a very good thing, but <font> tags are not! Also, check your redundancy in this snippet from your home page; explains why everything is crowded into the middle. (Note the red.)


Code:
<table border=0 cellspacing=7 cellpadding=2 width="600"><tr>
<td valign=top nowrap align="left"> <div align="left">
<font size="2" face="Arial, Helvetica, sans-serif">
<div class="margin">
<table width="80%"
border="0" cellspacing="0" cellpadding="0"><tr>
<td class="catlist" valign="top">
<div class="margin">
<table width="80%
" border="0" cellspacing="0" cellpadding="0"><tr>
<td class="catlist" valign="top">


and just below that bit there are three </font> tags in a row.


Not meaning to sound mean, trying to help... Are you using a "web page creator" program? They have a nasty habit of inserting WAY too much code. Also, I'm guessing you want the (Yahoo-style) subcats on the home page to be hyperlinked?

Let us know how it's going!


Leonard
aka PerlFlunkie
Quote Reply
Re: [PerlFlunkie] Problem In reply to
Its a modification of the Yahoo! template.
Quote Reply
Re: [LordStryfe] Problem In reply to
ok any suggestions on how to get things moved over to the middle instead of having the categories stuffed to the site? Oh yeah its now located at www.liftedministries.com/search
Quote Reply
Re: [LordStryfe] Problem In reply to
Check your code in the sub print_cat. Your output is creating this:

Code:
<div class="margin"><table width="80%" border="0" cellspacing="0" cellpadding="0"><tr><td class="catlist" valign="top">
<div class="margin"><table width="80%" border="0" cellspacing="0" cellpadding="0"><tr><td class="catlist" valign="top">




So you're taking a 600px wide table, and using 80% of it, about 475px, then 80% of that, for for around 360px, and then splitting that into two columns, for about 180px each. Or so... But when I load the code into a 'web page creator' program, it APPEARS to be OK. But then I start checking the details, and there's a 600px wide table containg a 1249px wide cell, which contains a 784px wide table with two 392px wide cells.

Go through all your HTML code very carefully, looking at the sub print_cat, and the templates, particuarly home.html and category.html. Make sure everything fits together properly. Look at your page linked above, hit view source, print that out, and go over it, you will see what needs changing.

It helps to put comments in the code, so you know what is coming from where: if you're using headers and footer, mark where they begin and end (<!-- begin header -->, etc) and also in print_cat (<!-- begin print_cat output -->). This will help you see how things are going together, and where to make changes.


Leonard
aka PerlFlunkie

Last edited by:

PerlFlunkie: Jan 1, 2003, 1:08 AM
Quote Reply
Re: [PerlFlunkie] Problem In reply to
Ok problem their when you look at the actual coding in the template it doesn't have two of those. It has one. Suggesitons?
Quote Reply
Re: [LordStryfe] Problem In reply to
Ok here is the coding as it is right now:



<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/...EC-html40/strict.dtd">
<html>
<head>
<meta name="description"
content="Christian Search: Apologetics, Bibles, Churches, Children, Education, Evangelism, Leaders, Ministry, Mission, Persecution, Prayers, Online Advertising system, Screen savers, Prayers, Devotionals, Christian Art, Christian Music, Other Cults.....">
<meta name="keywords"
content="Christian Churches,Christian search engine,Christian links,Christian schools,Christian Study,Apologetics,End Time,Sermons,Evangelism,Christian webrings,Bibles,Christian Broadcast,Persecution,ministries,Churches,Prayers,Devotionals,Christian Art,Christian Music,Christian Screensavers,Bibles,Other Cults,X Ministries,Leaders,Ministry,Pro life,Christian TOP sites,Christian Video,Christian Radio,Christian tv,Companies,Christian Submit,Submission,Freeware,Gigabase,Database,Robot,Spider,Games,Gospel Rock,Kids,Teens,Evangelical,Baptist,Anglican,Pentecostal Catholic,Congregational,Presbyterian,Metropolitan,Orthodox,Reformed,Ecumenical Council,Reformed,Lutheran,Methodist,Nazarene es,Apostolic,Greek Orthodox,Armenian,Episcopalian,Assemblies of God,Brethren,Full Gospel,Interdenominational,Non-denominational,Mennonite,Seventh-Day Adventists,Online Advertising,Advert,advertising rates,Banner Advertising rate,Banner Rotation,">
<meta NAME="robots" CONTENT="index, follow">
<meta NAME="revisit-after" CONTENT="60 days">
<meta NAME="distribution" CONTENT="global">
<meta NAME="Content-Language" CONTENT="english">
<meta name="Classification" content="Internet, searchengines, Religion">
<meta name="GENERATOR" content="Microsoft FrontPage 3.0">
<title>We Spread The Word</title>
</head>
<body link="#0000FF" vlink="#0000FF" alink="#0000FF">
<center>
<!-- WCW.net Banner Code Starts (href must remain on single line) -->
<center>
<a href="http://wcw.net/?230" target="-new"><img src=http://wcw.net/images/promo-banner.jpg WIDTH=467 HEIGHT=60 border=0 alt="WCW.net Startpage"><img src="http://counter7.bravenet.com/...mp;usernum=535246211" alt="Bravenet.com" WIDTH=1 HEIGHT=1 border="0"></a>
</center>
<!-- WCW.net Banner Code Ends --></center><br>
<form action="<%db_cgi_url%>/search.cgi" method="GET">
<center>
<table border=0 cellspacing=0 cellpadding=4 width=600><tr><td align=center width=160>
<font size="2" face="Arial"><b>
<a href="http://www.liftedministries.com/search/cgi-bin/links/jump.cgi?ID=97968">Lifted Ministries.com<br>
</a></b>Lifted Ministries</font></td>
<td align=center width="257"><font face="Arial" size="2"> <img src="http://www.liftedministries.com/...ages/WSTWsmaller.jpg" width="257" height="100" alt="We Spread the Word"></font><font face="Arial"></font></td>
<td align=center width=160><font size="2" face="Arial"><b><a href="http://www.liftedministries.com/search/cgi-bin/links/jump.cgi?ID=118485">Fusebox<br>
</a></b>Christian Music</font></td></tr><tr>
<td colspan=3 align=center><font face="Arial" size="2">
<input type="text" size=30 name="query">
<input type=submit value=Search>
</font></td>
</tr></table>
<table border=0 cellspacing=0 cellpadding=4 width=600 height="74">
<tr>
<td nowrap align=center><font face="Arial, Helvetica, sans-serif" size="2">Christians 4 Jesus</font><font face="Arial, Helvetica, sans-serif" size="2">
<b<strong><%grand_total%></strong> links </b> <br>
Bringing the Christian Community Together</font> <br>
<hr size="0">
<table border=0 cellspacing=4 cellpadding=0>
<tr>
<td align=right valign=top nowrap><font face="Arial" size="2">| <a class="menulink" href="<%db_cgi_url%>/add.cgi">Add a Site</a> | <a class="menulink" href="<%db_cgi_url%>/modify.cgi">Modify a Site</a> | <a class="menulink" href="<%build_root_url%>/New">What's New</a> | <a class="menulink" href="<%build_root_url%>/Cool">What's Cool</a> | <a class="menulink" href="<%build_root_url%>/Ratings">Top Rated</a> | <a class="menulink" href="<%db_cgi_url%>/jump.cgi?ID=random">Random Link</a> | <a class="menulink" href="<%db_cgi_url%>/search.cgi">Search</a> |
</small></td>
</tr>
</table>
<hr size="0" width="600">
</td>
</tr>
</table>
<table border=0 cellspacing=7 cellpadding=2 width="600"><tr>
<td valign=top nowrap align="left">
<div align="left"><font face="arial" size="3"> <font size="2" face="Arial, Helvetica, sans-serif">
<div class="margin"><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td class="catlist" valign="top">
<%category%>
</td></tr></table></div></font>
</font></font></div>
</td>
<td align=right valign=top bgcolor="#dcdcdc" width=155>
<table border=0 cellspacing=1 cellpadding=2 width="100%">
<tr><td align=center bgcolor="red" nowrap colspan=2><table border=0 cellspacing=0 cellpadding=0 width=120><tr>
<td align=center><b><font face="arial" size="2">Recommended Sites</font></b></td>
</tr></table></td></tr>
<tr align="left">
<td valign=top><b><font face="Arial" size="2"></font></b></td>
<td><font size="2" face="Arial"><a href="http://www.firstjesus.com"><img src="/search/images/banner1.5.jpg" border ="0" width=120 height=60></a>
</font></td>
</tr>
</tr>
<tr>
<td align=center bgcolor="red" colspan=2><b><font face="arial" size="2">Cool...</font></b></td>
</tr>
<tr align="left">
<td valign=top><b><font face="Arial" size="2">·</font></b></td>
<td><font face="Arial" size="2"><a href="http://www.thekristo.com/">The Kristo</a>- Interactive Presentation of the Gospel of Jesus Christ</font></td>
</tr>
<tr align="left">
<td valign=top><b><font face="Arial" size="2">·</font></b></td>
<td><font face="Arial" size="2"> <a href="http://www.nashvillemetro.org">Nashville Metro</a>- Interdenominational Bible study for college students and young professionals</font></td>
</tr>
<tr align="left">
<td valign=top><b><font face="Arial" size="2">·</font></b></td>
<td><font face="Arial" size="2"><a href="http://www.fathershouseonline.org">Father's House Covenant Church</a>- A Family Church for the Spirit Filled Life</font></td>
</tr>
<tr align="left">
<td valign=top><b><font face="Arial" size="2">·</font></b></td>
<td><font face="Arial" size="2"><a href="http://www.barna.org/">Barna Research</a>
- Strategic Information You Can Trust
</font></td>
</tr><tr><td align=right colspan=2><a href="http://www.christians4jesus.com/links/Cool"><font face="Arial" size="2">more...<br><br>
<br><br><br><br><br><br><br><br><a href="http://www.liftedministries.com/cgi-bin/topsites.cgi?ID=7"><IMG SRC="http://www.liftedministries.com/...ers/liftedbutton.gif" border=0 width=88 height=31></A></font></a></td></tr></table></td></tr></table>
<hr size="0" width="600">
<table border=0 cellspacing=4 cellpadding=0><tr>
<td align=right valign=top nowrap>
<font face="Arial" size="2">| <a class="menulink" href="<%db_cgi_url%>/add.cgi">Add a Site</a> | <a class="menulink" href="<%db_cgi_url%>/modify.cgi">Modify a Site</a> | <a class="menulink" href="<%build_root_url%>/New">What's New</a> | <a class="menulink" href="<%build_root_url%>/Cool">What's Cool</a> | <a class="menulink" href="<%build_root_url%>/Ratings">Top Rated</a> | <a class="menulink" href="<%db_cgi_url%>/jump.cgi?ID=random">Random Link</a> | <a class="menulink" href="<%db_cgi_url%>/search.cgi">Search</a> |</font>
</td>
</tr></table>
<hr size="0" width="600">
<center><p><small class="update">Pages Updated On: <%date%> - <%time%><br>Links Engine Powered By: <a href="http://www.gossamer-threads.com/">Gossamer Threads Inc.</a>© 2002 Christians 4 Jesus. All rights reserved.<a target="_top" href="http://t.extreme-dm.com/?login=chris4eu">
<img src="http://u1.extreme-dm.com/i.gif" height=19
border=0 width=20 alt=""></a><script language="javascript1.2"><!--
EXs=screen;EXw=EXs.width;navigator.appName!="Netscape"?
EXb=EXs.colorDepth:EXb=EXs.pixelDepth;//-->
</script><script language="javascript"><!--
EXd=document;EXw?"":EXw="na";EXb?"":EXb="na";
EXd.write("<img src=\"http://t0.extreme-dm.com",
"/0.gif?tag=chris4eu&j=y&srw="+EXw+"&srb="+EXb+"&",
"l="+escape(EXd.referrer)+"\" height=1 width=1>");//-->
</script><noscript><img height=1 width=1 alt=""
src="http://t0.extreme-dm.com/0.gif?tag=chris4eu&j=n"></noscript></small></p>
<br><br>
</font></p>
</center>
</form></body>
</html>
Quote Reply
Re: [LordStryfe] Problem In reply to
Only part of the code is in the templates, the other part is coming from site_html_templates, sub print_cat.

Here's a problem:

--home.html----
<div align="left"><font face="arial" size="3"> <font size="2" face="Arial, Helvetica, sans-serif">
<div class="margin"><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td class="catlist" valign="top">
---end home.html----
---begin print_cat output---
<div class="margin"><table width="80%" border="0" cellspacing="0" cellpadding="0"><tr><td class="catlist" valign="top">

</span></dd></dl></td><td class="catlist" valign="top">
</span></dd></dl></td></tr></table></div>

---end print_cat output---
---continue home.html---
</td></tr></table></div></font>
</font></font></div>

---------------------------

Breakdown:
The red part is doing nothing, eliminate it. Also, I'm pretty sure you can't use an HTML tag (align) to tell a CSS tag (div) what to do...

The green part is pretty much OK, except you don't need any of it. All that info is created next. Also, you are not using CSS (the style sheet is not being used), so get rid of all references to it, as in <div class="margin"> and class="catlist", and </span>.

The blue part is coming from site_html_templates, you have to go into that code to change it. Do NOT use frontpage! Make a backup! Get rid of CSS markup, make the table 100% (why not?), make BOTH of the the table data tags 50% <td width="50%">.

The other red part can also be removed.

So, in home.html, all you need in that spot is:

<table border=0 cellspacing=7 cellpadding=2 width="600"><tr>
<td valign=top nowrap align="left">
<td width="445">
<!-- begin print_cat output -->
<%category%>
<!-- end print_cat output -->
</td>
<td align=right valign=top bgcolor="#dcdcdc" width=155>


Note the <!-- comments --> , leave 'em in...
Try that, see what happens...


Leonard
aka PerlFlunkie

Last edited by:

PerlFlunkie: Jan 2, 2003, 12:50 AM