| Welcome to Webforumz.com. |
|
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.
|
|
|
Nov 12th, 2007, 15:35
|
#2 (permalink)
|
|
Highly Reputable Member
Join Date: Sep 2007
Age: 15
Posts: 747
|
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.
|
|
|
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
|
|
|
Nov 12th, 2007, 17:25
|
#4 (permalink)
|
|
Highly Reputable Member
Join Date: Sep 2007
Age: 15
Posts: 747
|
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?
|
|
|
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.
|
|
|
Nov 12th, 2007, 17:43
|
#6 (permalink)
|
|
Highly Reputable Member
Join Date: Sep 2007
Age: 15
Posts: 747
|
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...
|
|
|
Nov 12th, 2007, 19:35
|
#7 (permalink)
|
Join Date: Apr 2007
Location: Scotland, UK
Age: 15
Posts: 1,751
|
Re: Help With Adding Sub-categories to Sub-categories
Isn't .pl pearl?
__________________
I'm back!!!! 
|
|
|
Nov 12th, 2007, 19:45
|
#8 (permalink)
|
|
Highly Reputable Member
Join Date: Sep 2007
Age: 15
Posts: 747
|
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...
|
|
|
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.
|
|
|
Nov 12th, 2007, 20:59
|
#10 (permalink)
|
Join Date: Apr 2007
Location: Scotland, UK
Age: 15
Posts: 1,751
|
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!!!! 
|
|
|
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.
|
|
|
Nov 12th, 2007, 21:19
|
#12 (permalink)
|
|
Highly Reputable Member
Join Date: Sep 2007
Age: 15
Posts: 747
|
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.
|
|
|
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.
|
|
|
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
|
|
|
| Thread Tools |
|
|
| 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
HTML code is Off
|
|
|
|
|
|