Gossamer Forum
Home : Products : Links 2.0 : Customization :

Alt Catorgie For Links 2.0 Here's How!

Quote Reply
Alt Catorgie For Links 2.0 Here's How!
Hi all, I had use the Alt Catorgie mod with 1.1 and was deturmen to get it to work with 2.0 beta 3 yet while doing the mod I found that Alex had alreay had this about 95% complete, anyways here's how incase ya what the rest of the code,
First in Links.def add a feild called $db_alt
Now open db_utilities.pl find
sub build_select_field { under this you will see
if (! exists $db_select_fields{$column}) {
$db_select_fields{$db_cols[$db_category]} = $db_select_fields{'Mult-Related'} = join (",", &category_list);
}
Add this right under it,
if (! exists $db_select_fields{$column}) {
$db_select_fields{$db_cols[$db_alt]} = $db_select_fields{'Mult-Related'} = join (",", &category_list);
}
Now find sub build_html_record_form { under this you will see
# Go through a little hoops to only load category list when absolutely neccessary.
if ($in{'db'} eq 'links') {
exists $db_select_fields{$db_cols[$db_category]}
or ($db_select_fields{$db_cols[$db_category]} = join (",", &category_list));
}
Add this under it,
if ($in{'db'} eq 'links') {
exists $db_select_fields{$db_cols[$db_alt]}
or ($db_select_fields{$db_cols[$db_alt]} = join (",", &category_list));
}
That's it! Alex aready had the rest done,
Thanks
Joey

------------------
Links is HOT! Get it and you will LOVE IT!

Quote Reply
Re: Alt Catorgie For Links 2.0 Here's How! In reply to
Sorry Joey, but its category/categories. Catorgies might bring the wrong people to these forums Smile

------------------
bj
studiosg/ www.skymedia-graphics.com
Quote Reply
Re: Alt Catorgie For Links 2.0 Here's How! In reply to
I never can get that work right, who ever reads this message knows what im talking about though,
Thanks
Joey
Quote Reply
Re: Alt Catorgie For Links 2.0 Here's How! In reply to
I noticed a few problems while looking through this, and since I am not very good at perl yet, I figured I would post here.
First of all, it does not list the Alt-Cat specified under the validate. It also does not send it in the email.

I also will need to be able to add the Alt-Cat from the admin page add form.

Thanks!

------------------

Jeremy
TechSeek- techseek.infimax.com