Help With Adding Sub-categories to Sub-categories

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


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Program Your Website > Other Programming Languages

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Nov 12th, 2007, 11:10
New Member
Join Date: Oct 2007
Location: UK
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Nov 12th, 2007, 15:35
Highly Reputable Member
Join Date: Sep 2007
Age: 15
Posts: 717
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
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 Blog Entry: Windows Vista vs. Mac Leopard (Nov 4th, 2007)

Last edited by Stuart; Nov 12th, 2007 at 15:37.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Nov 12th, 2007, 17:20
New Member
Join Date: Oct 2007
Location: UK
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Nov 12th, 2007, 17:25
Highly Reputable Member
Join Date: Sep 2007
Age: 15
Posts: 717
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
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?
Last Blog Entry: Windows Vista vs. Mac Leopard (Nov 4th, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Nov 12th, 2007, 17:33
New Member
Join Date: Oct 2007
Location: UK
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Nov 12th, 2007, 17:43
Highly Reputable Member
Join Date: Sep 2007
Age: 15
Posts: 717
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
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...
Last Blog Entry: Windows Vista vs. Mac Leopard (Nov 4th, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Nov 12th, 2007, 19:35
Marc's Avatar
Staff Manager

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Posts: 1,795
Thanks: 0
Thanked 17 Times in 17 Posts
Re: Help With Adding Sub-categories to Sub-categories

Isn't .pl pearl?
__________________
Marc
Staff Manager - Webforumz.com


Want to be a moderator? PM me.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old Nov 12th, 2007, 19:45
Highly Reputable Member
Join Date: Sep 2007
Age: 15
Posts: 717
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
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...
Last Blog Entry: Windows Vista vs. Mac Leopard (Nov 4th, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old Nov 12th, 2007, 20:05
New Member
Join Date: Oct 2007
Location: UK
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10  
Old Nov 12th, 2007, 20:59
Marc's Avatar
Staff Manager

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Posts: 1,795
Thanks: 0
Thanked 17 Times in 17 Posts
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!
__________________
Marc
Staff Manager - Webforumz.com


Want to be a moderator? PM me.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #11  
Old Nov 12th, 2007, 21:07
New Member
Join Date: Oct 2007
Location: UK
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Help With Adding Sub-categories to Sub-categories

Im open them with notepad, does the job.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #12  
Old Nov 12th, 2007, 21:19
Highly Reputable Member
Join Date: Sep 2007
Age: 15
Posts: 717
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
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 Blog Entry: Windows Vista vs. Mac Leopard (Nov 4th, 2007)

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

Ok thanks swagner.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #14  
Old Nov 15th, 2007, 11:31
New Member
Join Date: Oct 2007
Location: UK
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
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
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

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
Drupal categories on home page geyids PHP Forum 5 Aug 18th, 2008 14:19
Sub Categories Arizona Classic ASP 0 Sep 9th, 2006 14:32
Improper Terming of Categories gwx03 Webforumz Suggestions and Feedback 5 Feb 21st, 2004 08:52


All times are GMT. The time now is 11:23.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

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