Gossamer Forum
Home : Products : Links 2.0 : Customization :

Mods and conflict with altcategories?

Quote Reply
Mods and conflict with altcategories?
Hi there!

I have installed 4 mods; "3-level new", "Multiple editors quick hack", "New Admin view", "Report deadlink".

My 5th mod was supposed to be combined; 5 more fields and the altcategory mod.

I added the fields, and applied the alt category mod - and guess what happens...

When I do add or modify from the admin interface, the ID field is now a drop-down select box.

Can anyone "see" what I have done wrong? Or in which module I need to look for errors?

I have made certain that none of the mods overlap, as I enter patch comments into the code every time I replace/modify something.

I also make tar archives after every successful mod, so I have no problems rolling back to mod 4 status... but this is annoying - I had the altcategories set up properly in my previous links installation.

Please advise.

Best regards,
Ørjan Sandland
Quote Reply
Re: Mods and conflict with altcategories? In reply to
Hi again, I've tracked down the problem.

It appears as I was a bit creative with variable names, I didn't update it as I should.
Things are working out quite allright now.
Quote Reply
Re: Mods and conflict with altcategories? In reply to
Great...glad you figured it out.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
Anthro TECH, L.L.C
anthrotech.com
* Check Resource Center
* Search Forums
* Thinking out of the box (codes) is not only fun, but effective.


Quote Reply
Re: Mods and conflict with altcategories? In reply to
As some others on this board did, I too got double "links in this category" numbers - but a search on the forums solved it quickly.

Ørjan
Quote Reply
Re: Mods and conflict with altcategories? In reply to
 
Quote:
I too got double "links in this category" numbers - but a search on the forums solved it quickly.

Wow...what a concept...searching the forum.

Wink

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
Anthro TECH, L.L.C
anthrotech.com
* Check Resource Center
* Search Forums
* Thinking out of the box (codes) is not only fun, but effective.


Quote Reply
Re: Mods and conflict with altcategories? In reply to
I'm still not done mod'ing here... and I'm experiencing something I can't make my way out of.

I have used loopy's altcat mod, and with some tweaking (probably not quite after the book), I have now 4 categories to put my links into (believe me, it's necessary).

Anyway - when I add a new link to all four categories, the $numlinks is only updated for the two first categories.

I can live with this though...but I would gladly take pointers to where in the code I might have messed up.

These are the mods I've done (I call them unconventional because I don't know whether it's the way to do it or not.. I think not).

In nph-build.cgi, sub build_stats - I made two more of these routines ($db_altcat, $db_altcat2 and $db_altcat3):
# Add the link to the alternate categories as well.
# Patch 005 altcat stuff
if (defined $db_altcat) {
@alt_categories = split(/\Q$db_delim\E/, $values[$db_altcat]);
foreach (@alt_categories) {
push (@{$links{$_}}, @values);

in db_utils.pl:sub build_html_record_form

# 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));
#Patch005
($db_select_fields{$db_cols[$db_altcat]} = $db_select_fields{'AltCat'} = join (",", &category_list));
($db_select_fields{$db_cols[$db_altcat2]} = $db_select_fields{'AltCat2'} = join (",", &category_list));
($db_select_fields{$db_cols[$db_altcat3]} = $db_select_fields{'AltCat3'} = join (",", &category_list));
#Patch005 end

as I have defined AltCat, AltCat2 and AltCat3
..perhaps I don't need to have it this way, but it kind of works for me...

If anyone have time, I'll appreciate that. I'll find it sooner or later.

Thanks in advance!

Best regards,
Ørjan Sandland
Quote Reply
Re: Mods and conflict with altcategories? In reply to
Very unconventional...Why do you have three Alternative Fields? It would be easy to have one Alternative Category Field where you can put links into multiple categories (using the multiple select field).

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
Anthro TECH, L.L.C
anthrotech.com
* Check Resource Center
* Search Forums
* Thinking out of the box (codes) is not only fun, but effective.


Quote Reply
Re: Mods and conflict with altcategories? In reply to
Well, when I tried the mult-select - i had some other problems.
When I managed to fix that problem, I figured that 4 separated select boxes was very practical, and that's why it ended up like that.

Ørjan
Quote Reply
Re: Mods and conflict with altcategories? In reply to
 
Quote:
I figured that 4 separated select boxes was very practical, and that's why it ended up like that.

I disagree...If your goal is to put links into multiple categories...the AltCategories Mod is all you need.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
Anthro TECH, L.L.C
anthrotech.com
* Check Resource Center
* Search Forums
* Thinking out of the box (codes) is not only fun, but effective.


Quote Reply
Re: Mods and conflict with altcategories? In reply to
What are you saying, are you arguing whether it's practical or not??

If you've got a way for me to use only the altcat mod and still have 4 drop down boxes - I'm all ears.

Will the links be listed in all included categories when added to more than one alternative category though?

Ørjan

[This message has been edited by Macro (edited April 24, 2000).]
Quote Reply
Re: Mods and conflict with altcategories? In reply to
 
Quote:
If you've got a way for me to use only the altcat mod and still have 4 drop down boxes - I'm all ears.

WHY do you want four separate drop-down menus??

I am still confused.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
Anthro TECH, L.L.C
anthrotech.com
* Check Resource Center
* Search Forums
* Thinking out of the box (codes) is not only fun, but effective.


Quote Reply
Re: Mods and conflict with altcategories? In reply to
No other particular reason than that I got used to it, and like the way it works :-)

Ørjan
Quote Reply
Re: Mods and conflict with altcategories? In reply to
Welp, since you have hacked the Mod to bits, I really don't know how to help you.

Good luck!

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
Anthro TECH, L.L.C
anthrotech.com
* Check Resource Center
* Search Forums
* Thinking out of the box (codes) is not only fun, but effective.