Gossamer Forum
Home : Products : Links 2.0 : Customization :

MOD/Script/?? - Request/Suggestion

Quote Reply
MOD/Script/?? - Request/Suggestion
Hi All.

I was talking with one of the guys that doing all my category and adding of links work today.

He suggested an idea to me I thought was worth pass along. Or rather inquiring about.

I'm not sure whether this would be a MOD, another cgi script... or what it would/could be.

His suggestion went something like this.

Quote:
Let's say we have the cagegories:
Business/
Business/Automotive
Business/Banking
Business/Computers
Business/Dining
Business/etc...

And underneath each of the sub-business directories we wanted to add the names of local cites and towns.

Therein creating:

Business/
Business/Automotive
Business/Automotive/City_Name_1
Business/Automotive/City_Name_2
Business/Automotive/City_Name_3
Business/Banking
Business/Banking/City_Name_1
Business/Banking/City_Name_2
Business/Banking/City_Name_3
Business/Computers
Business/Computers/City_Name_1
Business/Computers/City_Name_2
Business/Computers/City_Name_3
Business/Dining
Business/Dining/City_Name_1
Business/Dining/City_Name_2
Business/Dining/City_Name_3
Business/etc...

Ok, following so far? I hope so!

Now, his question/suggestion was something like this....

Is there a method, or script, or something, that we could simply put in the "city names" then tell it to create those "city names" in selected sub-categories.

Sort of a "create/add YZX city names to XZY categories"

YXZ = names of Cites
XZY = Sub-categories

Ok, does that make any sense?

Anybody have any suggestions, thoughts, ideas, death-threats, on this one??

Later All.


------------------
John B. Abela
Owner, 4CM
www.4cm.com/
support@4cm.com

Presently working on:
www.humbee.com/buzz/

Quote Reply
Re: MOD/Script/?? - Request/Suggestion In reply to
MS Excel.

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
http://www.anthrotech.com
Be sure to visit the Resource Center for FAQ's, Modifications and Extra Goodies!!
----------------------





Quote Reply
Re: MOD/Script/?? - Request/Suggestion In reply to
Do you mean put it in the AltCategories for each link or in the category DB the first time? The first would require some regex programming, the latter I would do in a spreadsheet...

------------------
The Immuatable Order of Modding
-=-=-=-=-=-=-=-
1. Read the FAQ, 2. Search the board, 2a. Search the board again, 3. ask the question, 4. back-up, 5. experiment, 6. rephrase question (or better yet, post solution to original question)
Quote Reply
Re: MOD/Script/?? - Request/Suggestion In reply to
oldmoney wrote:
Quote:
Do you mean put it in the AltCategories for each link or in the category DB the first time

Hi oldmoney.

I'm not sure whether this would be a "yes" or a "no".

So... it would be the creation of NEW categories. Just sub-categories. Nothing to do with links. Just plan-flat addition of sub-categories to the category database.

Does that help answer your question?
Sorry about this....

JbA
Quote Reply
Re: MOD/Script/?? - Request/Suggestion In reply to
For just the initial sub-category creation, I'd use a spreadsheet. I think that would be the fastest method...

------------------
The Immuatable Order of Modding
-=-=-=-=-=-=-=-
1. Read the FAQ, 2. Search the board, 2a. Search the board again, 3. ask the question, 4. back-up, 5. experiment, 6. rephrase question (or better yet, post solution to original question)
Quote Reply
Re: MOD/Script/?? - Request/Suggestion In reply to
Hi oldmoney.

Ok. I will give that a shot.

Is there a spreadsheet program that most people here feel works best?

JbA

------------------
John B. Abela
Owner, 4CM
www.4cm.com/
support@4cm.com

Presently working on:
www.humbee.com/buzz/

Quote Reply
Re: MOD/Script/?? - Request/Suggestion In reply to
I am not sure if this is what you are asking for. The easiest way to do it when you have so many categories is to enter all these in a text file and load it up on your server as (in place of) category database. I will warn you that this is good for the first time or else you will possibly screw up an existing database, if you misplace one of the fields.

Just open a text file and copy each line replacin the last 9city) filed because the fiest two fields remain constant for a given category/subcategory. Hope that makes sense.
Quote Reply
Re: MOD/Script/?? - Request/Suggestion In reply to
hmm.. i'd do this by putting adding a field in the Links Database called City and then filtering them out..

like a search sort of..

saves having to create a bunch of categories..

------------------
Jerry Su
Links SQL User
------------------


Quote Reply
Re: MOD/Script/?? - Request/Suggestion In reply to
hmm.. widgetz. Sounds like something I'm interrested in. However, I don't fully understang you.

Could you share a little more info with me please! Wink

Thanks.
JbA

------------------
John B. Abela
Owner, 4CM
www.4cm.com/
support@4cm.com

Presently working on:
www.humbee.com/buzz/

Quote Reply
Re: MOD/Script/?? - Request/Suggestion In reply to
What Widgetz is recommending, I think, is that you add a new field in your links.def file that will be a drop-down menu. Then you put the cities with this field in the db_select_field section, like the following:

Code:
Cities => 'Aboo,Bigboo,Ciboo',

Then you will add this field in the add template files...using similar codes for the Category drop-down menu options.

Then you will have to edit your link.html file to include this City field.

Then in your search forms, you can add this field, so that people can search for Cities.

They will not be printed in a category, but it is another method of "filtering" or "organizing" your links into another logic section...Cities via the search engine.

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
http://www.anthrotech.com
Be sure to visit the Resource Center for FAQ's, Modifications and Extra Goodies!!
----------------------





Quote Reply
Re: MOD/Script/?? - Request/Suggestion In reply to
Ah, Got it!

Thanks Eliot! (and widgetz too!)


Have a great night guys.

JbA
Quote Reply
Re: MOD/Script/?? - Request/Suggestion In reply to
You're welcome...although credit for the idea goes to Widgetz.

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
http://www.anthrotech.com
Be sure to visit the Resource Center for FAQ's, Modifications and Extra Goodies!!
----------------------