Gossamer Forum
Home : Products : Links 2.0 : Customization :

Adding links from other sites

Quote Reply
Adding links from other sites
I would like to know what I have to change to add new links from other site(s) to mine database with regular ID and Date field. I have a problem with ID and Date fields, which are now set to 0.

If the field ID is set to <%ID%> and a new link is added, this field will have in validation form a value <%ID%> and not numeric one (from linksid.txt file). The strangest thing is also that the content of the linksid.txt file is removed. The similar problem is with the Date field.

In links.cfg I have the following:
# Referers -- which hosts are allowed to add to your database.
@db_referers = ('abak.net','povezave.com','ksop-cscp.si');

(Povezave.com is mine)


In add.html of site on other server is the following:

<INPUT TYPE="Hidden" NAME="ID" VALUE="0">
<INPUT TYPE="Hidden" NAME="Date" VALUE="0">
<INPUT TYPE="Hidden" NAME="Hits" VALUE="0">
<INPUT TYPE="Hidden" NAME="isNew" VALUE="No">
<INPUT TYPE="Hidden" NAME="isPopular" VALUE="No">
<INPUT TYPE="Hidden" NAME="Rating" VALUE="0">
<INPUT TYPE="Hidden" NAME="Votes" VALUE="0">
<INPUT TYPE="Hidden" NAME="ReceiveMail" VALUE="Yes">
<INPUT TYPE="Hidden" NAME="isPick" VALUE="No">

Title: <input name="Title" size="50">
URL: <input name="URL" value="http://" size="50">
Kategory: <font face="Verdana" size=2> <select name="Category">
<option>---
<option value="Domace_strani/Flash">Domace strani : Flash
<option value="Domace_strani/Osebne">Domace strani : Osebne
<option value="Druzba/Klubi">Druzba : Klubi
<option value="Druzba/Ljudje">Druzba : Ljudje> ...

Description: <textarea wrap="virtual" name="Description" value="" rows="3" cols="42"></textarea>
Name: <input name="Contact Name" value="" size="40">
E-mail: <input name="Contact Email" value="" size="40">

<INPUT TYPE="Submit" NAME="send_form" VALUE="Add this site!">

Thanks in advance!

Quote Reply
Re: Adding links from other sites In reply to
The problem is with the following hidden fields:

Code:

<INPUT TYPE="Hidden" NAME="ID" VALUE="0">
<INPUT TYPE="Hidden" NAME="Date" VALUE="0">


Why do you have a value of "0" for each field???

The add.cgi script will add in the ID and date into the form fields.

Use the following:

Code:

<INPUT TYPE="Hidden" NAME="ID" VALUE="">
<INPUT TYPE="Hidden" NAME="Date" VALUE="">


ONLY in the add_error.html file.

Regards,

Eliot Lee
Quote Reply
Re: Adding links from other sites In reply to
OK, I will try to explain better:
I am owner of myserver.com, where I have installed Links 2.0. My friend has friendserver.com and he wants to add new links to mine "search engine". On one of his sites you can find the following code:

<FORM ACTION="http://www.myserver.com/links/add.cgi" METHOD="POST">
<INPUT TYPE="Hidden" NAME="ID" VALUE="0">
<INPUT TYPE="Hidden" NAME="Date" VALUE="0">
<INPUT TYPE="Hidden" NAME="Hits" VALUE="0">
<INPUT TYPE="Hidden" NAME="isNew" VALUE="No">
<INPUT TYPE="Hidden" NAME="isPopular" VALUE="No">
<INPUT TYPE="Hidden" NAME="Rating" VALUE="0">
... and so on...

He tryed to put this lines (withought 0):
<INPUT TYPE="Hidden" NAME="ID" VALUE="">
<INPUT TYPE="Hidden" NAME="Date" VALUE="">
But when a new link is added from friendserver.com, in validation form on myserver.com the ID and date fields are EMPTY. The "best" think is that the content of linksid.txt file is empty, too.
I use the add confirmation mod.

Quote Reply
Re: Adding links from other sites In reply to
Welp...have you tried the following:

Code:

<INPUT TYPE="Hidden" NAME="ID">
<INPUT TYPE="Hidden" NAME="Date">


Regards,


Eliot Lee
Quote Reply
Re: Adding links from other sites In reply to
Yes...the same result...ID and Date fields are empty...

Quote Reply
Re: Adding links from other sites In reply to
Welp...to be honest with you....I don't see this as being possible to add links from two different domains that do not share the same scripts and database files. I have provided all the suggestions I have...

Best of luck!

Regards,

Eliot Lee