Web Design and Development Forums

Help With Adding Sub-categories to Sub-categories

This is a discussion on "Help With Adding Sub-categories to Sub-categories" within the Perl, Python, Ruby and Others section. This forum, and the thread "Help With Adding Sub-categories to Sub-categories are both part of the Program Your Website category.


Go Back   Webforumz.com > Program Your Website > Perl, Python, Ruby and Others

Welcome to Webforumz.com.
Register Now Register now!

Reply
 
LinkBack Thread Tools Rate Thread
Old Nov 12th, 2007, 11:10   #1 (permalink)
New Member
 
Join Date: Oct 2007
Location: UK
Posts: 9
Help With Adding Sub-categories to Sub-categories

I have a classifieds section on my site and can only add sub-categories to the main categories, is it possible for me to add sub-categories to sub-categories, if so, whats the code and where do I add the code?

Im a bit of a web newbie at the moment but am picking things up quite quickly, but if you could explain it in very easy to read format that wud be good.

The category files for the site are here:

http://files-upload.com/files/614283/admin_category.pl

http://files-upload.com/files/614284...subcategory.pl

Any help appreciated, thanks.
gunnapaul2 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Nov 12th, 2007, 15:35   #2 (permalink)
Highly Reputable Member
 
Join Date: Sep 2007
Age: 15
Posts: 747
Blog Entries: 1
Re: Help With Adding Sub-categories to Sub-categories

I'm not sure what you are attempting. Do you mean your navigation bar? If that is the case, take a look at this tutorial...

Last edited by Stuart; Nov 12th, 2007 at 15:37.
Stuart is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Nov 12th, 2007, 17:20   #3 (permalink)
New Member
 
Join Date: Oct 2007
Location: UK
Posts: 9
Re: Help With Adding Sub-categories to Sub-categories

Erm, basically I can only add sub-cataegories to the main category, so on the main page you have the list of categories (like you do on ebay, i.e. automotive) and then the sub-categories (i.e. cars, commercial, motorbikes, etc). Im trying to add sub-categories to the sub-categories, i.e. Automotive -> Cars -> Aston Martin, Audi, etc.

At the moment I cant seem to add the Car makes so was wondering what the code was to add them. Its currently set out like this:
Code: Select all
       auto1 => '<!--auto-->Cars',
       auto001 => '<!--cars--><!--carsaston-->Aston',
       auto2 => '<!--auto-->Commercial',
       auto3 => '<!--auto-->Audio & ICE',
       auto4 => '<!--auto-->Vans',
       auto5 => '<!--auto-->Motorcycles & Scooters',
       auto6 => '<!--auto-->Collector Vehicles',
       auto7 => '<!--auto-->Cherished Plates',
       auto8 => '<!--auto-->Manuals',
       auto9 => '<!--auto-->Parts & Tuning',
       auto10 => '<!--auto-->Wheels & Tyres',
       auto11 => '<!--auto-->Other',
As you can see I tried a code to add Aston and ive tired it other ways, but it either ends up showing on the main page or in the sub-category.

Last edited by karinne; Nov 13th, 2007 at 14:00. Reason: Please use vBcode when adding code to your post
gunnapaul2 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Nov 12th, 2007, 17:25   #4 (permalink)
Highly Reputable Member
 
Join Date: Sep 2007
Age: 15
Posts: 747
Blog Entries: 1
Re: Help With Adding Sub-categories to Sub-categories

OK, I am not sure what you mean since the link you gave me returns an error message ("You can't download that file!"). Maybe you could post your code? About what you posted above, what language is that? PHP? Javascript? Could you clarify, please?
Stuart is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Nov 12th, 2007, 17:33   #5 (permalink)
New Member
 
Join Date: Oct 2007
Location: UK
Posts: 9
Re: Help With Adding Sub-categories to Sub-categories

Ok, my previous post shows how the categories are coded in the auction page, I believe its PHP (sorry, still a bit of a newbie), I cant post the classifieds code coz theres a page of it and i dont know which bit i need to post, so ive tried uploading it to a different site:

http://www.mediafire.com/?995gxwu1lxb

http://www.mediafire.com/?1vfzbzzm1ii

Hopefully they should work this time!

thanks.
gunnapaul2 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Nov 12th, 2007, 17:43   #6 (permalink)
Highly Reputable Member
 
Join Date: Sep 2007
Age: 15
Posts: 747
Blog Entries: 1
Re: Help With Adding Sub-categories to Sub-categories

OK the download works, but there's another problem: I don't have the software to open a .pl file. Sorry! Which brings up another point :: if this is php, why is it a .pl file? And lastly, since you are asking for php advice, could you move this thread to the php forum? You will find more help there. Again sorry I can't help you, I just don't have a PL Program...
Stuart is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Nov 12th, 2007, 19:35   #7 (permalink)
 
Join Date: Apr 2007
Location: Scotland, UK
Age: 15
Posts: 1,751
Send a message via MSN to Marc Send a message via Skype™ to Marc
Re: Help With Adding Sub-categories to Sub-categories

Isn't .pl pearl?
__________________
I'm back!!!!
Marc is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Nov 12th, 2007, 19:45   #8 (permalink)
Highly Reputable Member
 
Join Date: Sep 2007
Age: 15
Posts: 747
Blog Entries: 1
Re: Help With Adding Sub-categories to Sub-categories

Yes, you're right! .pl is a perl script... But I still don't have the software. Unless it works with Dreamweaver...
Stuart is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Nov 12th, 2007, 20:05   #9 (permalink)
New Member
 
Join Date: Oct 2007
Location: UK
Posts: 9
Re: Help With Adding Sub-categories to Sub-categories

Oh yes its a perl script, sorry, brains a bit of a mess with all this coding stuff.

By software what do u mean? I use smartFTP client to upload, download and edit the files.

cheers.
gunnapaul2 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Nov 12th, 2007, 20:59   #10 (permalink)
 
Join Date: Apr 2007
Location: Scotland, UK
Age: 15
Posts: 1,751
Send a message via MSN to Marc Send a message via Skype™ to Marc
Re: Help With Adding Sub-categories to Sub-categories

You should be able to open it in a text editor... I am not sure about Dreamweaver!
__________________
I'm back!!!!
Marc is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Nov 12th, 2007, 21:07   #11 (permalink)
New Member
 
Join Date: Oct 2007
Location: UK
Posts: 9
Re: Help With Adding Sub-categories to Sub-categories

Im open them with notepad, does the job.
gunnapaul2 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Nov 12th, 2007, 21:19   #12 (permalink)
Highly Reputable Member
 
Join Date: Sep 2007
Age: 15
Posts: 747
Blog Entries: 1
Re: Help With Adding Sub-categories to Sub-categories

Ah yes, now it works. Let me see, this will take me a bit to look through... Where is the problem? What line number(s)? This is a long script...

Last edited by Stuart; Nov 12th, 2007 at 21:26.
Stuart is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Nov 12th, 2007, 21:20   #13 (permalink)
New Member
 
Join Date: Oct 2007
Location: UK
Posts: 9
Re: Help With Adding Sub-categories to Sub-categories

Ok thanks swagner.
gunnapaul2 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Nov 15th, 2007, 11:31   #14 (permalink)
New Member
 
Join Date: Oct 2007
Location: UK
Posts: 9
Re: Help With Adding Sub-categories to Sub-categories

I still havent got this sorted, if theres anyone that can help id really appreciate it as my websites going to be a bit naff with just the main category and the sub-categories, as it is for example i will have to have loads of categories i dont want on the main page.

cheers
gunnapaul2 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
Adding a calendar? Stefan83 Website Planning Discussion 1 May 8th, 2007 19:18
Sub Categories Arizona ASP Forum 0 Sep 9th, 2006 14:32
adding to database benbacardi ASP Forum 17 Aug 18th, 2004 12:28
Improper Terming of Categories gwx03 Webforumz Suggestions and Feedback 5 Feb 21st, 2004 08:52



Latest Updates

All Points SEO Security Advisory - CHECK YOUR SITE NOW!

Creative Coding :: February 2008

Webforumz is sponsored by: WESH UK Web Hosting
All times are GMT. The time now is 23:06.

Sleep Study Scoring :: Free Bet :: Website Templates :: Online Betting :: Bookmakers :: Funny Quotes :: Internet Recruitment Software :: Microsoft CRM Experts :: Online Casino :: Decorated Christmas Trees :: Midwife Forums :: Football Betting :: Ecommerce Software :: Web Hosting :: Football Stats :: Dry Cleaning Collection :: xtreme wales - extreme clothing :: Apuestas :: Sharepoint Consultants :: Website Optimisation :: Office Clearance London :: Sharepoint Experts :: Sports Betting :: Casino :: Website Templates :: Web Design Development India :: Online Gambling

Powered by: vBulletin Version 3.7, Copyright ©2000 - 2008, Jelsoft Enterprises Limited.
© 2003-2008 Webforumz.com : All Rights Reserved
Search Engine Friendly URLs by vBSEO 3.2.0 RC6


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59