Gossamer Forum
Home : Products : Links 2.0 : Customization :

Only allowed to add a LINK to Two categories! NOT Three?

Quote Reply
Only allowed to add a LINK to Two categories! NOT Three?
Greetings,
I have installed multiple category mod. to allow me or the user to add his/her link to more than one category.
The addition works fine when I add the link into one or Two categories/subcategory; however, I get the following error code in the admin if I try to add the link into more than two categories (one main + one AltCategory):

=====================================
Error: Unable to Add Link

There were problems with the following fields:
AltCategories (Invalid format)
Please fix any errors and submit the record again.

=====================================

My question is: where would be the error generating from/ how to fix it, as I need to add the link into more then three categories/subcategories.

Thank you in advance for your help...
Mark

Last edited by:

Mark1: Apr 16, 2002, 11:39 AM
Quote Reply
Re: [Mark1] Only allowed to add a LINK to Two categories! NOT Three? In reply to
The problem is the valid expression attribute you added for the AltCategories column in the %db_def hash in the links.def file.

More information, search the Links 2.0 for field definitions.
========================================
Buh Bye!

Cheers,
Me
Quote Reply
Re: [Stealth] Only allowed to add a LINK to Two categories! NOT Three? In reply to
Greetings again,
I have checked the forum for field def. but could not locate any related to mine.

The filed defenitions in my links.def for AltCategory is:

AltCategories => [5, 'alpha', 0, 1000, 0, '', '^[\w\d,\&\'\@/_-]+$'],


Somehow, I am still getting the error if I try to add the link into more then two categories.

Any sugguestion will be truelly appreciated...
Thank you ..
Mark

Last edited by:

Mark1: Jul 2, 2002, 10:52 AM
Quote Reply
Re: [Mark1] Only allowed to add a LINK to Two categories! NOT Three? In reply to
Remove the following ^[\w\d,\&\'\@/_-]+$
========================================
Buh Bye!

Cheers,
Me
Quote Reply
Re: [Mark1] Only allowed to add a LINK to Two categories! NOT Three? In reply to
What are you trying to add that is causing the error?
Quote Reply
Re: [Paul] Only allowed to add a LINK to Two categories! NOT Three? In reply to
THANK YOU ME VERY MUCH. IT WORKS VERY WELL!
and it seperates AltCategories in the LINKS.DB with ~~ so it is coooooooooool. Thanks alot ME.

Paul:
I had a problem with adding any link to more then the main category and only one AltCategory; however, with the help of ME I got it now to add the link to the Main Category and MANY AltCategoryies.

HUMMM!! I hope this will not give a problem when I want to migrate my database into LINKS SQL as the delmiter is "|" and now, with AltCategory, I have a new delimeter "~~" in the LINKS.DB .... I hope this would not cause a problem...

Thank You again and best regards..
Mark

Last edited by:

Mark1: Jul 3, 2002, 6:42 AM
Quote Reply
Re: [Mark1] Only allowed to add a LINK to Two categories! NOT Three? In reply to
What you will have to do is first upgrade your LINKS 2.0 to LINKS SQL v.1.13 since that version handles the altcategories import better than latter versions, then upgrade from v1.13 to the current version.

Unless, Alex and GT has worked out kinks in the recent version that would allow a smooth import from LINKS 2.0 with altcategories to Links SQL v.2.X
========================================
Buh Bye!

Cheers,
Me
Quote Reply
Re: [Stealth] Only allowed to add a LINK to Two categories! NOT Three? In reply to
Thank you for the info.
That was part of the issue in apgrading to LINKS SQL, as I have other MODs, that maybe there are no equivelent to them in LINKS SQL like:

1- Pointer Category - Means using @ at the end of the category name to point to another category name without creating the xxxx@ category. I do not know if LINKS SQL supports it.

2- Priority LINK that put a link at the begining of the list of links.

3- Organize category names based on a special field (new field with INTEGER to indicate where will the name appear in the list of subcategories instead of alpha. categorizing).

4 - the other mods (foregin characters, Alternative template, Category titles, yahoo style are all supported by the SQL version)....

So I hope there is equivelent for the first three....

Best regards and thank you for your help
Mark...
Quote Reply
Re: [Mark1] Only allowed to add a LINK to Two categories! NOT Three? In reply to
1) Have to check that yourself in the LINKS SQL forums.
2) Yes, there is a "Featured Link" mod for LINKS SQL that will do that.
3) There are easier methods of sorting categories in LINKS SQL by using SQL function of ORDER BY, which can be easily configured in the administrative script (admin.cgi).
4) Foreign Characters - already built-in,
Alternative Template - already built-in,
Category titles - What? Don't have a clue what you mean,
Yahoo Style - already built-in
========================================
Buh Bye!

Cheers,
Me