#1 (permalink)  
Old 09-11-2007, 01:53 AM
Bruceper's Avatar
Nicecoder Team
 
Join Date: Jun 2002
Location: Winnipeg Canada
Posts: 4,018
Bruceper is on a distinguished road
Default Database template

Have you ever wanted to build your own database using excel so you can import it into your IndexU?

With this Excel file you can now build your data using the examples and headers shown.

How to use

Once your categories and links are complete in the Excel file save the excel file. Never forget to save first or you could lose all your changes.

Now choose either your links or categories sheet and go to File - Save As and choose Tab delimited database. You may receive a notice that Excel can only save the current sheet and that's fine, that's all that you want.

Now choose the other sheet and save the same way as above with a different name.

Now open each file in your favorite text editor and remove the header data.

NOTE - Failure to remove the header data WILL cause problems with your database and will create empty or incorrect categories and links.

After the header data has been removed you can now import normally through the IndexU Admin Panel.

If you have any questions feel free to ask.

Spreadsheet updated to include complete instructions on use

This file has moved locations

Last edited by Bruceper; 07-23-2008 at 03:34 AM.
Reply With Quote
  #2 (permalink)  
Old 09-11-2007, 02:08 PM
FSGDAG's Avatar
Moderator
 
Join Date: May 2007
Location: NJ, United States
Posts: 980
FSGDAG is on a distinguished road
Default

This is GREAT Bruce!!! Thanks for the hard work
Reply With Quote
  #3 (permalink)  
Old 09-11-2007, 02:28 PM
Bruceper's Avatar
Nicecoder Team
 
Join Date: Jun 2002
Location: Winnipeg Canada
Posts: 4,018
Bruceper is on a distinguished road
Default

I've been using this, without the comments of course, for months. It makes life simple and quick.
Reply With Quote
  #4 (permalink)  
Old 09-13-2007, 08:37 PM
Registered User
 
Join Date: Apr 2007
Location: Olongapo, Philippines
Posts: 138
spin is on a distinguished road
Default

very nice and what I have been looking for..again thanks
Reply With Quote
  #5 (permalink)  
Old 03-04-2008, 12:08 AM
Registered User
 
Join Date: Feb 2008
Posts: 5
mypcteks is on a distinguished road
Default Questions...

Ok so category_id is the main category Id I understand that, so if I want subcategories or 2nd level cats what do i do like this:


categori_id parent_id name

1 0 testcat1
2 1 testsubcatof_testcat1
3 2 testsub2catof_testsubcat1


if that makes any sense each category regardless of whether it is a main parent cat or subcat is assigned from 1 to the last cat right?

Can someone give an example of how it would be ?

Thanks
Reply With Quote
  #6 (permalink)  
Old 03-04-2008, 02:02 AM
Bruceper's Avatar
Nicecoder Team
 
Join Date: Jun 2002
Location: Winnipeg Canada
Posts: 4,018
Bruceper is on a distinguished road
Default

if the parent ID is 0 then it's a top level category, if the parent ID is any other number then that category is a child of the parent, otherwise known as a subcategory.

You cannot have a child without a parent, translated that means you cannot have a subcategory if the category (parent id) does not exist.
Reply With Quote
  #7 (permalink)  
Old 05-24-2008, 03:50 PM
Registered User
 
Join Date: Apr 2008
Posts: 6
inrated is on a distinguished road
Default

Hi Bruce,

This blank xls sheet is great and does make life more simple for us directory addicts.

Can you just show an an example of how to get some 2 categories deep or 3 deep? Do we have to add another column, or do we create another sheet and work with sub-categories?

Also, when uploading the links tab delimited file, all goes well but the date shown is Dec 31, 1969.

I have also added some extra fields in the link xls sheet like, zip, address, telephone (created the extra custom fields in the admin section, but when uploading the links file, none of the fileds I created show up on the directory listing), but I do see them populated in the custom area in the admin section.

Thanks
Reply With Quote
  #8 (permalink)  
Old 05-25-2008, 12:44 AM
Bruceper's Avatar
Nicecoder Team
 
Join Date: Jun 2002
Location: Winnipeg Canada
Posts: 4,018
Bruceper is on a distinguished road
Default

You need to enter in a date to get it to not show Dec 31 1969. Use today's date, but make sure that the column for "new" is set to 0

Here's an explanation of how to do deep categories

cat parent catname
1 0 catone
2 1 cattwo
3 2 catthree
4 3 catfour

catone is a top level category, cattwo is a subcat of catone, catthree is a subcat of cattwo and finally catfour is a subcat of catthree

To use custom fields you MUST add them in the admin panel before you upload your database or it won't work at all. Adding them afterwards will kill the fields you added so you will need to reupload your database.
Reply With Quote
  #9 (permalink)  
Old 05-25-2008, 01:32 AM
Registered User
 
Join Date: Apr 2008
Posts: 6
inrated is on a distinguished road
Default

Code:
Content visible to License Owner only.
---------------------
Thanks Bruce for your reply,

I have tried, attempted to get sub-categories listed, but no success.
The exact same way how you have explained. \

ex: Accounting is already been created and uploaded along with every other top level category, so now I am attempting to load sub-categories into accounting. example are below, of how i enter the data, and then save them as usual tab delimited, delete the unwanted header then upload. I update all category paths, and links, still nothing appears.

cat parent catname
1 0 Accounting
2 1 Firms


or have also tried like this (below) to get many sub-categories in Accounting

cat parent catname
1 0 Accounting
2 1 Firms
3 1 Tax Services
4 1 CPA's
Reply With Quote
  #10 (permalink)  
Old 05-25-2008, 12:37 PM
Bruceper's Avatar
Nicecoder Team
 
Join Date: Jun 2002
Location: Winnipeg Canada
Posts: 4,018
Bruceper is on a distinguished road
Default

In your example, Accounting is a top level category and Firms, Tax Services and CPA's are all subcategories of Accounting. The way you have it is proper.

Remember that if you have existing categories you'll have to change the category numbers around. If "Accounting" is not already on your database then you'll need to find the next highest number that's not being used.

So if the next category number that is available is 4301 then that would also be the parent for Firms, CPA's and Tax Services.
Reply With Quote
  #11 (permalink)  
Old 06-11-2008, 10:48 AM
Registered User
 
Join Date: Feb 2008
Posts: 5
badboy is on a distinguished road
Default

Excellent work. Thanks mate
Reply With Quote
  #12 (permalink)  
Old 07-27-2008, 01:48 AM
Registered User
 
Join Date: Jul 2008
Posts: 13
torambus is on a distinguished road
Default

Code:
Content visible to License Owner only.
Does this mean I have to make different sheet for each of subcategories?
Reply With Quote
  #13 (permalink)  
Old 07-27-2008, 10:51 AM
Bruceper's Avatar
Nicecoder Team
 
Join Date: Jun 2002
Location: Winnipeg Canada
Posts: 4,018
Bruceper is on a distinguished road
Default

no, all categories on one sheet
Reply With Quote
  #14 (permalink)  
Old 07-30-2008, 08:43 AM
Registered User
 
Join Date: Jul 2008
Posts: 13
torambus is on a distinguished road
Default

Code:
Content visible to License Owner only.
I tried below list on my site http://www.dallascountyguide.com but am unable to get deep category. Can anybody help? I need only Agriculture and Animal & Pet as main category. parent 2 are sub of Agriculture and Animal & Pet and parent 3 are sub of parent 2.

cat parent name
1 0 Agriculture
2 1 Equipment
3 1 Farms
4 2 Animal
5 2 Dairy
6 2 Flowers & Shrubs
7 2 Fruits & Vegetables
8 2 Organic
9 2 Poultry & Eggs
10 2 Ranch & Stable
11 1 Feed & Farm Supplies
12 1 Merchandise
13 2 Water
14 0 Animal & Pet
15 1 Animal Shelters
16 1 Birds
17 1 Dogs
18 2 Assistance Dogs
19 2 Breeding
20 2 Kennels
21 2 Training
22 1 Fish
23 1 Horses
24 2 Horse Related
25 2 Merchandise
26 2 Riding Lessons
27 2 Show
28 2 Training
29 1 Merchandise
30 2 Pet Products
31 1 Pet Services
32 2 Adoption
33 2 Animal Protection
34 2 Clubs
35 2 Pet Medical Care
36 2 Support
37 2 Training
Reply With Quote
  #15 (permalink)  
Old 07-30-2008, 10:42 PM
Bruceper's Avatar
Nicecoder Team
 
Join Date: Jun 2002
Location: Winnipeg Canada
Posts: 4,018
Bruceper is on a distinguished road
Default

The following sets up your two top categories.

1 0 Agriculture
2 0 Animal & Pet

Now add the subcategories for Agriculture

3 1 Equipment
4 1 Farms
5 1 Feed   Farm Supplies
6 1 Merchandise
7 1 Animal Shelters
8 1 Birds
9 1 Dogs
10 1 Fish
11 1 Horses
12 1 Merchandise
13 1 Pet Services

And now the subcategories for Animal & Pet

14 2 Animal
15 2 Dairy
16 2 Flowers   Shrubs
17 2 Fruits   Vegetables
18 2 Organic
19 2 Poultry   Eggs
20 2 Ranch   Stable
21 2 Water
22 2 Assistance Dogs
23 2 Breeding
24 2 Kennels
25 2 Training
26 2 Horse
27 2 Merchandise
28 2 Riding
29 2 Show
30 2 Training
31 2 Pet Products
32 2 Adoption
33 2 Animal Protection
34 2 Clubs
35 2 Pet Medical Care
36 2 Support
37 2 Training


Put it all together and it's done. And I've replaced your & with  . You should use   for SEO reasons and because & is not valid HTML

Now lets say you want to add a few subcategories for Training which is category 37. You would add it like this

38 37 Horse Training
39 37 Dog Training
40 37 Wife Training
41 37 Potty Training

The first number is the category number and it is unique. The second number is the parent ID. If the parentID is 0 then it is a top level category. If the parentID is a number then you will make a subcategory.

Last edited by Bruceper; 07-30-2008 at 10:45 PM.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
3 New Template Available + Template Price reduced!! sikumbang Templates 9 07-23-2007 10:27 AM
IF cause template bug ?! Test71 Templates 4 02-24-2007 05:23 AM
php in template snaip Templates 1 10-01-2004 05:31 AM
Add a template to the modify template list? abm193xc v5.x 3 04-24-2003 05:31 PM
Template csengine Templates 3 04-12-2003 08:01 PM

HACKER SAFE certified sites prevent over 99.9% of hacker crime.

All times are GMT -5. The time now is 07:24 PM.


Powered by vBulletin®
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO
SSL Certificate