Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Wierd: Build All ID number says Yes

Quote Reply
Wierd: Build All ID number says Yes
I just expirienced the wierdest problem I've ever had. Whenever I click build all, under the detailed numbers, instead of giving the ID's for the numbers I get a Yes. It looks like the following.

Generating detailed view pages . . .
Yes Yes

Also when it is making the new links is says:

Updating record: Yes, marking as new.
Updating record: Yes, marking as new.

Is there a reason this is happening, and is there something I can do to help this? Thanks.
-Greg
Quote Reply
Re: Wierd: Build All ID number says Yes In reply to
I am assuming that you are using the mod for only building detailed pages that have YES attached to each record in the isDetailed field.

I ran into this similar problem. What you need to do is use the upgrade.pl file that is located in the Resource Center. This will automatically put the new field into your records. If you cannot find it in the Resource Center, search for upgrade in this forum.

(I hope that you kept a back-up of your database file before trying to implement this mod. Put the older version/backup of your .db file into your server. Then use the upgrade.pl file to insert the field into your records. You will have to manually change the isDetailed field in those records that you want to build a detailed view.)

Hope this helps.

Regards,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us
Quote Reply
Re: Wierd: Build All ID number says Yes In reply to
Or use the script located at http://www.gossamer-threads.com/...um3/HTML/001090.html as it allows insertion of new fields just about anywhere.
Quote Reply
Re: Wierd: Build All ID number says Yes In reply to
Problems....
I used the upgrade.pl in which Eliot told me to. I ended up getting the ID to appear in the:

Updating record: 6, marking as new.

part of the build all. But the problem is that the detailed building still says yes:

Generating detailed view pages . . .
Yes

And the ID also says yes when I try to delete or modify a record. This happens when I use my links.def that has a total of 38 fields. But, when I downloaded a new copy and uploaded the links.def without any changes to it it seemed to work perfectly. So that means that I must be doing something wrong with adding the fields. Could you please take a look at the links.def and see what I am doing wrong. The script is posted at:
http://joboffers.com/.../links/links.def.txt
Thank you for your help.
-Greg
Quote Reply
Re: Wierd: Build All ID number says Yes In reply to
You say you have 38 fields but your links.def only shows 33 fields. Five fields are missing someplace or you said 38 but meant 33.
Quote Reply
Re: Wierd: Build All ID number says Yes In reply to
How did you configure the upgrade.pl file??
I am also confused...your links.def file shows 33 fields.

In the upgrade.pl file, make sure that you have configured it correctly.

Example:

Code:
$field_default = "";

#Put the new field number here.
$new_field = "5";

#Put the last field number here.
$total_fields = "25";

#Change these value to match your settings
require "../db_utils.pl";
require "../links.def";

$field_default = "No";
$new_field = "# of new field you added";
$total_fields = "33";

What is the new field you added??

Regards,


------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us