Gossamer Forum
Home : Products : Links 2.0 : Customization :

SUBCATEGORIES LIKE YAHOO v2.1

(Page 3 of 6)
> > > >
Quote Reply
Re: SUBCATEGORIES LIKE YAHOO v2.1 In reply to
thanx for trying to help me spacedogg,but I tried what you suggested, and it didn't work...
Do you or Someone else please help me???

THEULS

------------------
Surfootball.ovh.org
Quote Reply
Re: SUBCATEGORIES LIKE YAHOO v2.1 In reply to
could somebody please help me?????


theuls

------------------
Surfootball.ovh.org
Quote Reply
Re: SUBCATEGORIES LIKE YAHOO v2.1 In reply to
I am also having problems with the build all .cgi. It brings up a download window. What changes do I need to make to fix this...
Quote Reply
Re: SUBCATEGORIES LIKE YAHOO v2.1 In reply to
I am having the same problems as Theuls. When I try to build all it tries to run or download the build.cgi but nothing happens until the connection times out.

Help is appreciated.
Thanks
Quote Reply
Re: SUBCATEGORIES LIKE YAHOO v2.1 In reply to
If you have access to your server logs you can look at them and see what the error is while trying to build.

The reason it is asking you to download is because there is an error somewhere.

Also do like I did, I replaced the nph_build.cgi with the original then when I built the site everything seemed to work. Then go back and make changes one at a time.

Larry

[This message has been edited by NewToThis (edited April 17, 2000).]
Quote Reply
Re: SUBCATEGORIES LIKE YAHOO v2.1 In reply to
Please help, I'm really desperate...


THEULS

------------------
Surfootball.ovh.org
Quote Reply
Re: SUBCATEGORIES LIKE YAHOO v2.1 In reply to
I just understood what my problem was, I just had forgotten a line...
But now I'm having the same problems as drmaster: I try to download
Nph-build every time I press on build all or staggered!!!

PLEASE HELP,

THEULS

------------------
Surfootball.ovh.org
Quote Reply
Re: SUBCATEGORIES LIKE YAHOO v2.1 In reply to
NewToThis,

I tried what U suggested, but it didn't work...


THEULS

------------------
Surfootball.ovh.org
Quote Reply
Re: SUBCATEGORIES LIKE YAHOO v2.1 In reply to
HINT: If you save the nph-build.cgi file when it asks you to download...you will see error messages in the downloaded file.

Did you download the file?

If not...download it and you will see the errors.

It most likely is related to syntax errors in the site_html_templates.pl file.

Also, check the syntax of the site_html_templates.pl through telnet or your Perl Error Logs.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
Anthro TECH, L.L.C
anthrotech.com
* Check Resource Center
* Search Forums
* Thinking out of the box (codes) is not only fun, but effective.


Quote Reply
Re: SUBCATEGORIES LIKE YAHOO v2.1 In reply to
AnthroRules,

here is what it say:
Error including libraries: Unmatched right bracket at /home/surfootb/cgi-
bin/links/admin/site_html_templates.pl line 450, at end of line
syntax error at /home/surfootb/cgi-bin/links/admin/site_html_templates.pl
line 450, near "}"

Make sure they exist, permissions are set properly, and paths are set correctly.

you can see my site_html_templates.pl as a txt @ http://surfootball ovh.org/site_html_templates.txt

Please help,


THEULS


------------------
Surfootball.ovh.org
Quote Reply
Re: SUBCATEGORIES LIKE YAHOO v2.1 In reply to
Theuls,

Find this,
$output .= qq|<dl><dt><strong><a class="link" href="$url">$category_name</a></strong> <small class="numlinks">($numlinks)</small> |;
$output .= qq|<small><sup class="new">new</sup></small>| if (&days_old($mod) < $db_new_cutoff);
$output .= qq|</dt>|;
$output .= qq|<dd><span class="descript">$description </span></dd>| if (!($description =~ /^[\s\n]*$/));
$output .= qq|</dl>|;
}

Try taking out the last } after$output .= qq|</dl>|;
see if that works

Larry

[This message has been edited by NewToThis (edited April 18, 2000).]
Quote Reply
Re: SUBCATEGORIES LIKE YAHOO v2.1 In reply to
Newtothis,

still didn't work... No more ideas???


THEULS
Quote Reply
Re: SUBCATEGORIES LIKE YAHOO v2.1 In reply to
BUT NOW IT SAYS/
Error including libraries: Unmatched right bracket at /home/surfootb/cgi-bin/links/admin/site_html_templates.pl line 498, at end of line
syntax error at /home/surfootb/cgi-bin/links/admin/site_html_templates.pl line 498, near "}"

Make sure they exist, permissions are set properly, and paths are set correctly.
Quote Reply
Re: SUBCATEGORIES LIKE YAHOO v2.1 In reply to
Paste the last 10 lines of your code here for me to see. Again only the last 10 lines...

Larry

[This message has been edited by NewToThis (edited April 18, 2000).]
Quote Reply
Re: SUBCATEGORIES LIKE YAHOO v2.1 In reply to
Where is this code from?


$output .= qq|<dl><dt><strong><a class="link" href="$url">$category_name</a></strong> <small class="numlinks">($numlinks)</small> |;
$output .= qq|<small><sup class="new">new</sup></small>| if (&days_old($mod) < $db_new_cutoff);
$output .= qq|</dt>|;
$output .= qq|<dd><span class="descript">$description </span></dd>| if (!($description =~ /^[\s\n]*$/));
$output .= qq|</dl>|;
}

# Don't forget to end the unordered list..
$output .= "</td></tr></table></div>\n";
return $output;
}


Try removing it and see what happens.

Larry
Quote Reply
Re: SUBCATEGORIES LIKE YAHOO v2.1 In reply to
NewToThis,

the lines you suggested to take away are used by nph-build for the categories
layout... Anyhow, I tried to "buid all", and it worked... Now the problem is that
the categories don't show up and neither does the subcategories...
That's why I think the problem comes from that area....
Since I'm not very good in perl, I don't know what to do...


THEULS


------------------
Surfootball.ovh.org
Quote Reply
Re: SUBCATEGORIES LIKE YAHOO v2.1 In reply to
Newtothis

He it is,
code:

$output .= "</td></tr></table></div>\n";
return $output;
}

$output .= qq|<dl><dt><font face="Arial" size="2"><strong><a href="$url">$category_name</a></font></strong> <font face="Arial" size="1"><i>($numlinks)</i></font> |;
$output .= qq|<small><sup class="new">new</sup></small>| if (&days_old($mod) < $db_new_cutoff);
$output .= qq|</dt>|;
$output .= qq|<dd><span class="descript">$description </span></dd>| if (!($description =~ /^[\s\n]*$/));
$output .= qq|</dl>|;

# Don't forget to end the unordered list..
$output .= "</td></tr></table></div>\n";
return $output;
}

1;

------------------
Surfootball.ovh.org
Quote Reply
Re: SUBCATEGORIES LIKE YAHOO v2.1 In reply to
Please Help!!!!


THEULS

------------------
Surfootball.ovh.org
Quote Reply
Re: SUBCATEGORIES LIKE YAHOO v2.1 In reply to
Theuls,

Replace your site_html_template.cgi with the original one. Build your directory. If it works. Make changes 1 at a time until you have it the way you need. I can not find the code you are using anywhere in the site_html_template.cgi that I have set up.

Larry
Quote Reply
Re: SUBCATEGORIES LIKE YAHOO v2.1 In reply to
What I suggest is that you give me your 500 last lines of your site-html-templates.cgi, and I put it on mine...


THEULS

------------------
Surfootball.ovh.org
Quote Reply
Re: SUBCATEGORIES LIKE YAHOO v2.1 In reply to
That would do you no good.
I have made alot of changes to my files in regards to the way it sorts and displays things. Would not work for you.

Larry
Quote Reply
Re: SUBCATEGORIES LIKE YAHOO v2.1 In reply to
 grrrrrrrrrrrrrr!!!!
Wink
So, is there a way that I could get this working????????
Well, maybe I should do without!!!!!!! By the way NewToThis,
are U using exactely the code above???? What is your webpage adress???


THEULS

------------------
Surfootball.ovh.org
Quote Reply
Re: SUBCATEGORIES LIKE YAHOO v2.1 In reply to
Theuls,

My code does not look like the code above. I do not have the site live on the net yet. Doing a lot of testing before I go live with the site. I could set up a a little demo of what I am trying to do with it later this week maybe.

Also tell me what mods you have added to your script.
Do you back up your originals before making changes? Wink

I was having a similar problem like your before. Started with the originals again. Read the forums and added mods one at a time. Found a few short cuts along the way too.

This is one of the ways to learn to hack code good is trial an error.

Let me know what changes you have made to the original scripts and I will see where I can help

Larry
Quote Reply
Re: SUBCATEGORIES LIKE YAHOO v2.1 In reply to
Newtothis,

I installed some mods, and now, almost nothing is working...
Thats why I think I'mgonna reinstall every thing all over again Frown
I'll send a reply in 3 or 4 hour to tell you what I did...

See you,

THEULS

------------------
Surfootball.ovh.org
Quote Reply
Re: SUBCATEGORIES LIKE YAHOO v2.1 In reply to
I couldn't make it work, so I stopped trying... And I installed the old
version of the Mod... But THANX A LOT NewTo This for trying to help me:
Smile Wink

THEULS

------------------
----------------------
Surfootball.ovh.org
----------------------
> > > >