 | |  | | | Classifieds Installation & Upgrades If you're having install or upgrade problems, post here. |
May 12th, 2004, 04:15 PM
|
#1 (permalink)
| | Junior Member Verified Customer
Join Date: May 2004
Posts: 10
| Can someome show me how to change templates?
Hi Everyone
I am trying to create different templates for my classifieds category. Based on the original "for sale" template, there are some fields that I must add and some I must take out.
For example, to make a babysitter cateogry, I would not want a "selling price" frield, as it is a default field in the "for sale" template.
How do I customize my own templates? I have not figured out the system yet based on the add/edit templates.
Thanks
Roy
|
| |
May 14th, 2004, 08:57 PM
|
#2 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,809
|
You need to hand edit an existing set of templates you need to make new templates with the next number you assigned to them say 5
uploadproduct5.tmpl showcat5.tmpl editproduct5.tmpl showproduct5.tmpl
You can use any existing set to alter and make copies from
|
| |
July 11th, 2004, 12:09 PM
|
#3 (permalink)
| | Senior Member Verified Customer
Join Date: Jun 2003 Location: London, UK
Posts: 567
|
So far I've copied the "For sale" template files and have named them uploadproduct4.tmpl showcat4.tmpl editproduct4.tmpl showproduct4.tmpl as I want to create new templates that are similar to the "For sale" templates.
I've created the relevant ad type with an ID of 4.
When I attempt to upload an advert for the new categorey I go through the upload process, choosing the type of ad, then the category, and then I get a blank page.
Viewing the adverts I have the same problem - I get a blank page when I attempt to view adds in my new category.
What have I missed out or done wrong?
Last edited by criscokid; July 11th, 2004 at 12:11 PM.
|
| |
July 13th, 2004, 05:16 AM
|
#4 (permalink)
| | Senior Member Verified Customer
Join Date: Jun 2003 Location: London, UK
Posts: 567
|
Are the support guys reading these forums or are they on holiday? Two days have passed and nobody's replied to this thread.
|
| |
July 13th, 2004, 09:46 AM
|
#5 (permalink)
| | PhotoPost Developer Verified Customer
Join Date: Jan 2002
Posts: 11,858
|
You are counting Sunday and posting at 5am.....
You also need to copy the other files with numbers in them to create a set of templates:
editproductX.tmpl
showcatX.tmpl
showproductX.tmpl
uploadproductX.tmpl
Would be the four files you need to make a complete set for a new template.
__________________ Please do not PM me for support or sales questions. Thank you for your understanding. |
| |
July 13th, 2004, 10:51 AM
|
#6 (permalink)
| | Senior Member Verified Customer
Join Date: Jun 2003 Location: London, UK
Posts: 567
| Quote: |
Originally Posted by Michael P You also need to copy the other files with numbers in them to create a set of templates:
editproductX.tmpl
showcatX.tmpl
showproductX.tmpl
uploadproductX.tmpl
Would be the four files you need to make a complete set for a new template. | Which is what I did on Sunday before making my posting. The four templates uploadproduct4.tmpl showcat4.tmpl editproduct4.tmpl showproduct4.tmpl are already in the templates directory.
|
| |
July 13th, 2004, 11:34 AM
|
#7 (permalink)
| | PhotoPost Developer Verified Customer
Join Date: Jan 2002
Posts: 11,858
|
The blank page might suggest a problem with the template file - can you PM me a link and an id to try an upload?
__________________ Please do not PM me for support or sales questions. Thank you for your understanding. |
| |
July 17th, 2004, 08:46 AM
|
#8 (permalink)
| | Senior Member Verified Customer
Join Date: Jun 2003 Location: London, UK
Posts: 567
|
Hi Michael,
Have you managed to make any progress with my problem since my last PM to you?
|
| |
July 17th, 2004, 09:16 AM
|
#9 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,809
|
Well I am not Michael but I would suggest you relook at your templates and verify they are accurate and no syntax errors. Also check in the database and make sure the new template type is number 4 in the ad types table. A white screen would be caused also by creating a new template set say showproduct4.tmpl and the add type your assigning is 5
|
| |
July 17th, 2004, 12:53 PM
|
#10 (permalink)
| | Senior Member Verified Customer
Join Date: Jun 2003 Location: London, UK
Posts: 567
|
I've checked the adtypes table and can confirm the id is 4.
"relook at your templates and verify they are accurate and no syntax errors"
I copied the For Sale templates which are id 0 and renamed them so that they are id 4 as in editproduct4.tmpl, showcat4.tmpl, showproduct4.tmpl & uploadproduct4.tmpl. I haven't started to edit them yet - nothing has changed within the templates yet.
Could the permissions of the files on the server maybe have any effect?
|
| |
July 17th, 2004, 12:56 PM
|
#11 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,809
|
You have a category which is assigned to that adtype and is not a child of a parent of another ad type
You can PM me an admin login to see how you have things set up
|
| |
July 17th, 2004, 04:23 PM
|
#12 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,809
|
OKay I responded to your PM
Check permissions on the template files themselves as I am unable to access them which means permissions are not right http://www.scene-out.com/classifieds...dproduct4.tmpl
Also something also occured to me. You need to make sure you replicate the language files also for the new templates. There also should be a language file in the language directory for each php script with the 4 on the end containing the changed language strings
|
| |
July 17th, 2004, 06:31 PM
|
#13 (permalink)
| | Senior Member Verified Customer
Join Date: Jun 2003 Location: London, UK
Posts: 567
| |
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
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 | | | All times are GMT -5. The time now is 05:48 PM. | |