Gossamer Forum
Home : Products : Links 2.0 : Customization :

How to add a link to multiple categories - the solution!

(Page 2 of 2)
> >
Quote Reply
Re: How to add a link to multiple categories - the solution! In reply to
Craig,

The links.def and nph_build that i have sent to you are not modified for your mod.
I don't wanna bore you so please don't worry about me. If it work for you and for others it sound like i'm doing something wrong. Let myself discover so you don't waste your time. Keep to develop new great improvments for Links.

Cheers


Celio
Quote Reply
Re: How to add a link to multiple categories - the solution! In reply to
Craig,

The links.def and nph_build that i have sent to you are not modified for your mod.
I don't wanna bore you so please don't worry about me. If it work for you and for others it sound like i'm doing something wrong. Let myself discover so you don't waste your time. Keep it to develop new great improvments for Links.

Cheers


Celio
Quote Reply
Re: How to add a link to multiple categories - the solution! In reply to
Yes, it's pretty simple - go into site_html.pl and add a couple of lines to the add resource and modify resource sections. I removed this however as I thought it more appropiate for admin to decide whether a site deserves a listing in more than one category. I will try and add these extra details to http://www.Ten-Tenths.com/links/mods/multicat today. (if i ever get a spare moment!)

------------------
Craig Antill
10 Tenths Motorsport
www.Ten-Tenths.com
Quote Reply
Re: How to add a link to multiple categories - the solution! In reply to
Thanks Craig. I'll Be Waiting For It.

DM
Quote Reply
Re: How to add a link to multiple categories - the solution! In reply to
OK, they're ready, check out http://www.ten-tenths.com/...t/index.html#addform

BTW, I have had the chance to look at celio's links.def and nph-build.cgi and they look absolutely fine - this leads me to believe that the problem lies in links.db and/or it's conversion to the new format, so I await copies of these files by email.

------------------
Craig Antill
10 Tenths Motorsport
www.Ten-Tenths.com
Quote Reply
Re: How to add a link to multiple categories - the solution! In reply to
BUG FIX!!!

Well, we finally sorted out the bug and I have now posted the final working version at the address which I mentioned above.

For anyone still having problems it is a very simple fix - the Alternative Categories in this line:

Quote:
@db_cols = ('ID','Title','URL','Date','Category', 'Alternative Categories','Description','Contact Name', 'Contact Email', 'Hits', 'isNew', 'isPopular');

Must be replaced with AltCat

Quote:
@db_cols =('ID','Title','URL','Date','Category','AltCat','Description','Contact Name', 'Contact Email', 'Hits', 'isNew', 'isPopular');

Just as stated by Dangermouse three or four days ago!!

------------------
Craig Antill
10 Tenths Motorsport
www.Ten-Tenths.com
Quote Reply
Re: How to add a link to multiple categories - the solution! In reply to
I had some problems with the mod, when I implemented it (on Megalinks 2.00) I found that it was doubleing the number of links count but not actually creating the link in the alternative category. I managed to correct it by modifying the following part of the nph-modify.cgi script:

YOUR SCRIPT

# Add the link to the alternate categories as well.
@alt_categories = split(/\Q$db_delim\E/, $fields[$db_alt]); <----------IS THIS RIGHT
foreach (@alt_categories) {
push (@{$links{$_}}, @fields);
}


MY SCRIPT

# Add the link to the alternate categories as well.
@alt_categories = split(/\Q$db_delim\E/, $fields[$db_altcat]); <-----THIS SEEMS OK
foreach (@alt_categories) {
push (@{$links{$_}}, @fields);
}

Is there a mistake on your site?
Or is this just because I am using Megalinks 2.00?


------------------
Billy McMillan
Quote Reply
Re: How to add a link to multiple categories - the solution! In reply to
Hey! Very cool mod!

I found other little errors on your mod page:

first
-----------------------------------
you should change the "category preload":

# Pre Load Category List
$db_select_fields{'Category'} = $db_select_fields{'AltCat'} = join (",", &category_list);

also in the sub "html_validate_form"
------------------------------------



second
------------------------------------
on the build_stats subrutine into the nph-build.cgi the "links" counter you hacked:

$grand_total++;

don't works propely,
(I commented this line)
------------------------------------



also
------------------------------------

the number on links in subcategories on each created page seems are not affected .
------------------------------------


all of these are minor problems

You really did a grat job!

byebye

lepo




Quote Reply
Re: How to add a link to multiple categories - the solution! In reply to
I'm so close...got everything going except nothing shows up for the hits in my link listings...any ideas...Thanks in advance

------------------
==============================================
Mr. Glenn Bunton
Systems Specialist for Internet Technologies
Old Dominion University Library
Norfolk, VA 23519
gbunton@odu.edu
gbunton@gte.net
=====================================
Quote Reply
Re: How to add a link to multiple categories - the solution! In reply to
I found the hits problem...working like a charm now...thanks for all the work

------------------
==============================================
Mr. Glenn Bunton
Systems Specialist for Internet Technologies
Old Dominion University Library
Norfolk, VA 23519
gbunton@odu.edu
gbunton@gte.net
=====================================
Quote Reply
Re: How to add a link to multiple categories - the solution! In reply to
Hey Craig, ;-)

How about Links 2.0 ?

Will it work?



------------------
rgrdz,
TukBa
ICQ: 1005139
Quote Reply
Re: How to add a link to multiple categories - the solution! In reply to
Yes Craig, say you are working on the mods for 2.0. This is really what is holding me back from using 2.0.

Good Luck,


Charles
Quote Reply
Re: How to add a link to multiple categories - the solution! In reply to
Sorry to say - at this time, no i'm not.

I'm absolutely snowed under at the moment being tasked with rebuilding two of our companies websites, building a major new section to my personal motorsports site, and also several customisations of links on the go.

IIRC though, I thought that someone else said that they'd got it working with one of the betas, but a search resulted in no matches. Anyone know how ?

------------------
Craig Antill
10 Tenths Motorsport (1.1) - www.Ten-Tenths.com/links/
THE Directory (2.0b3) - www.gardenbuildings.com/
Quote Reply
Re: How to add a link to multiple categories - the solution! In reply to
Huh,

I finally found the part of the solution...
Here it is:
http://216.169.107.32/...um3/HTML/000413.html

There was some weird things hapened, so beware and make a backup first! ;-)



------------------
rgrdz,
TukBa
ICQ: 1005139
Quote Reply
Re: How to add a link to multiple categories - the solution! In reply to
Hey, anybody get this to work on MegaLinks2? I tried but kept on getting an error. If anybody has MegaLinks 2 and has this mod working I would appreciate it a lot if you'd let me look at your nph-build.cgi and links.def file!

Regards,
Brian
> >