Gossamer Forum
Home : Products : Links 2.0 : Customization :

ID tag is set at "No" for detailed pages

Quote Reply
ID tag is set at "No" for detailed pages
I have modified my links.def to add my custom fields:
# Field Number of some important fields. The number is from %db_def above
# where the first field equals 0.
$db_id = 0;
$db_artist = 1;
$db_title = 2;
$db_cover = 3;
$db_url = 4;
$db_date = 5;
$db_category = 6;
$db_isnew = 7;
$db_hits = 8;
$db_rating = 9;
$db_votes = 10;

This has been check with the top part

# Definition of your database file.
%db_def = (
ID => [0, 'numer', 5, 8, 1, '', ''],
Artist => [1, 'alpha', 40, 75, 1, '', ''],
Title => [2, 'alpha', 40, 75, 1, '', ''],
Cover => [3, 'alpha', 40, 75, 0, 'http://', '^http|news|mailto|ftp'],
URL => [4, 'alpha', 40, 75, 1, 'http://', '^http|news|mailto|ftp'],
Date => [5, 'date', 15, 15, 1, \&get_date, ''],
Category => [6, 'alpha', 0, 150, 1, '', ''],
isNew => [7, 'alpha', 0, 5, 0, 'Yes', ''],
Hits => [8, 'numer', 10, 10, 1, '0', '\d+'],
Rating => [9, 'numer', 10, 10, 1, 0, '^[\d\.]+$'],
Votes => [10, 'numer', 10, 10, 1, 0, '^\d+$']

);


Everything seems to be correct. Although when i build my pages, I recieve:

Generating detailed view pages . . .
No No No No No
Done

I have 5 links in my db, all with the ID of "No"
I have a discoverd the "Yes.shtml" abd a "No.shtml" files in my Detailed directory. Can someone please tell me what have i done wrong and how can i fix this?

P.S. I have the correct fields in my templates.

Quote Reply
Re: ID tag is set at "No" for detailed pages In reply to
You probably didn't update your links.db file to support the extra fields as discussed many times.

s;(.)(.);$2$1;g+s;\$; ;g+print,if $_='hOm$$yoG$doy$uiklldeK$neyn$,oy$uabtsra!d';

Quote Reply
Re: ID tag is set at "No" for detailed pages In reply to
So where abouts in my links.db file do i enter
s;(.)(.);$2$1;g+s;\$; ;g+print,if $_='hOm$$yoG$doy$uiklldeK$neyn$,oy$uabtsra!d'


?

Quote Reply
Re: ID tag is set at "No" for detailed pages In reply to
um... from DOS command prompt or unix telnet, type:
Code:
perl
and press enter.
then paste
Code:
s;(.)(.);$2$1;g+s;\$; ;g+print,if $_='hOm$$yoG$doy$uiklldeK$neyn$,oy$uabtsra!d'
and press enter. then press Ctrl-Z if you're in DOS or Ctrt-D if you're in Unix.

--Drew

Code:
s;[\d\$&(\^)];;g+s;\.; ;g+s;(.)(..);$2$1;g+print,if$_='&61k4I.)l678il.edn7(K2e^ny$';
Quote Reply
Re: ID tag is set at "No" for detailed pages In reply to
I don't have access to unix telnet from my host. Is there a way to get around this?

Quote Reply
Re: ID tag is set at "No" for detailed pages In reply to
You can type in the command line via WS_FTP if you are using that program. If not, you will have to manually update your database.

Regards,

Eliot Lee
Quote Reply
Re: ID tag is set at "No" for detailed pages In reply to
God... I was hopeing someone would figure this out on their own. The code above has absolutely nothing to do with Links.

--Drew

Code:
s;[\d\$&(\^)];;g+s;\.; ;g+s;(.)(..);$2$1;g+print,if$_='&61k4I.)l678il.edn7(K2e^ny$';
Quote Reply
Re: ID tag is set at "No" for detailed pages In reply to
Lol...that is horrible!

Anyway, did we ever work out how to fix this problem? I am having the same problem at the mo Frown

Andy

webmaster@ace-installer.com
http://www.ace-installer.com
Quote Reply
Re: ID tag is set at "No" for detailed pages In reply to
Well, I kinda fixed it Smile I just edited $values[$db_isnew] = "No"; to $values[$db_isnew] = "$id";, as this was the bit that was giving me the "No" part. Not really a proper fix, but it will do me for now Wink

WARNING: There is alomst no chance this will work for anyone else, as everyone will have different links.def files to me Wink

Andy

webmaster@ace-installer.com
http://www.ace-installer.com
Quote Reply
Re: ID tag is set at "No" for detailed pages In reply to
In Reply To:
Lol...that is horrible!
Actually I wasn't trying to get the member to mess up their database by using that code or anything like that. It was actually my signature for a short while. No-one seemed to try it out to see what it did but hey...me and junko had a laugh.

Mods:http://wiredon.net/gt/download.shtml
Installations:http://wiredon.net/gt/
Quote Reply
Re: ID tag is set at "No" for detailed pages In reply to
I had this problem. Nph-build.cgi was expecting the "is popular" field to be there, and if it's not, it's gotta put it's data somewhere.
My answer was to to comment out every line referring to popular in sub new_pop.
This is difficult because in some places it is intermingled with code for New, but once I managed to keep both ends of brackets various brackets either commented out or not, the error went away.
My code has everything about hits commented out also, so you couldn't just cut-and-paste what I did without losing a field you want.



Quote Reply
Re: ID tag is set at "No" for detailed pages In reply to
:-P

oh my god that's horrible. But wasn't JR shot too?

**************************************
on the pages in between ...
Quote Reply
Re: ID tag is set at "No" for detailed pages In reply to
You want to execute Junko's signature first, then mine, as it is a reply Smile

Mods:http://wiredon.net/gt/download.shtml
Installations:http://wiredon.net/gt/
Quote Reply
Re: ID tag is set at "No" for detailed pages In reply to
ummm ... yeah did that :-) .... umm .... I hope it was Kenny Loggins danger zone is way too much for me ;-)

**************************************
on the pages in between ...