Gossamer Forum
Quote Reply
DMOZ Links
Hi there...

As per the DMOZ rules, I have to add links at the bottom for "become an editor" etc.

Does anyone know the exact code that I can use within categories so that when someone is in 'Regional/North America/Canada' as an example that the "Add Link" function will actually take them to http://www.dmoz.org/add.cgi?Regional/North America/Canada" ?? (making up for spaces as well)

Thanks very much! ;)

---
Paul Stewart
Nexicom Inc.
http://www.nexicom.net
Quote Reply
Re: DMOZ Links In reply to
Doesn't anyone know the answer to this??? It would make my life much easier...;)

Quote Reply
Re: DMOZ Links In reply to
I found this at dmoz.org:

<pre>
<p><table border="0" bgcolor="#336600" cellpadding="3" cellspacing="0">
<tr>
<td>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr align="center">
<td><font face="sans-serif, Arial, Helvetica" size="2"
color="#FFFFFF">Help build the largest human-edited
directory on the web.</font></td></tr>
<tr bgcolor="#CCCCCC" align="center">
<td><font face="sans-serif, Arial, Helvetica" size="2"> <a
href="http://dmoz.org/cgi-bin/add.cgi?where=$cat">Submit
a Site</a> - <a href="http://dmoz.org/about.html"><b>Open Directory
Project</b></a> -
<a href="http://dmoz.org/cgi-bin/apply.cgi?where=$cat">Become
an Editor</a> </font>
</td></tr>
</table>
</td>
</tr>
</table>
</pre>

<quote>
($cat should be expanded to be the path to the category containing the data being displayed, e.g. "Arts/Movies")
</quote>

In this case you'll need to look in nph-build.cgi at sub build_category_pages where you'll find that $directory has the full path to the category, minus your root URL, so just pass that to the category template (maybe as <%directory%>) and replace the instances of $cat.

Hope this helps.

All the best
Shaun

Quote Reply
Re: DMOZ return Links In reply to
Hello,
Having problems with the Variable to replace $cat with on the return credit links to Dmoz. Tried the <%directory%>as suggested in the earlier post and it didn't work. If anybody knows it would sure be appreciated.
Thanks,
Scooter Crazy
OOPs. links sql version 2.05

Last edited by:

scooter: Dec 11, 2001, 1:48 PM