Support Forums

Custom Category Templates Mod Problem

This is a discussion on Custom Category Templates Mod Problem within the Modules / Plugins / Modifications forums, part of the Developer Forums category; Hello, I just uploaded the Custom Category Templates mod to my modules folder. I activated it, and attemped to enter ...


Go Back   68 Classifieds Forums > Developer Forums > Modules / Plugins / Modifications

Reply
 
Thread Tools Display Modes
Old 06-14-2009, 01:29 AM   #1
Customer
 
Join Date: Sep 2006
Posts: 68
Rep Power: 22
rockabilly is on a distinguished road
Default Custom Category Templates Mod Problem

Hello,
I just uploaded the Custom Category Templates mod to my modules folder.
I activated it, and attemped to enter the admin link. I get this error message:

Warning: Smarty error: unable to read resource: "customcats_browse.tpl" in /home7/myelvisw/public_html/vanportads/includes/classes/smarty/Smarty.class.php on line 1092


I am running v4.1.3 Developer

Any ideas how to get this up and running?

Just to confirm, will this module allow me to remove the price from a specific category such as "jobs", so when a person places an employment ad, there is not a field for "price'?

Thanks in advance!!
rockabilly is offline   Reply With Quote
Old 06-14-2009, 07:30 AM   #2
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,342
Rep Power: 84
seymourjames is a jewel in the rough
Default

Possibly a FTP corruption. Deactivate , delete and upload it again.


Rather than writing info each time: Please post your 68 Classifieds type (Designer, Developer), version (4.0.x, 4.1.x) and template in your postings asking for help. This information will help you get better answers for your posts. A great place to do this is in your signature!
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates & Modules
Get the Best U.S Hosting, Best U.K Hosting
seymourjames is offline   Reply With Quote
Old 06-14-2009, 09:36 AM   #3
Developer & Moderator
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 2,311
Rep Power: 69
Mike-N-Tosh is just really nice Mike-N-Tosh is just really nice
Default

Quote:
Originally Posted by rockabilly
...Just to confirm, will this module allow me to remove the price from a specific category such as "jobs", so when a person places an employment ad, there is not a field for "price'?...
This module does not remove anything from a category (IE: there will still be a price field when the seller goes through the checkout process). This module allows you to have a custom template for the display of a listing when viewed in search results in the showlistings(2).tpl templates. This includes whether you would want to show the price field or not.
__________________
Mike-N-Tosh
IndianaPC.org - A community website (v3.1.10 Developer - heavily modified & used as the CMS)
Sandbox [localhost(v3.1.10, v4.0.9, 4.1.10,4.2,5.0)] for development and customization
Visit My blog: reviews, tips, tricks, tutorials and my store with Templates, Mods & Docs
Web Hosting | Web Design & Development | 68 Classifieds Customizations
I am not a 68C employee, just a user and try to help out
Mike-N-Tosh is offline   Reply With Quote
Old 06-14-2009, 12:32 PM   #4
Customer
 
Join Date: Sep 2006
Posts: 68
Rep Power: 22
rockabilly is on a distinguished road
Default

Hello,
Thanks for your help guys. I did get this module working. It must have been corrupted during upload.
I do see that it works just as you have explained below. Is there a way that I can remove the "price" field when a user posts an ad, and a way for it to not show on the main page of the ad? I am creating a category for jobs, so having a price filed would not really be applicable to this category.

Thank you.

Quote:
Originally Posted by Mike-N-Tosh
This module does not remove anything from a category (IE: there will still be a price field when the seller goes through the checkout process). This module allows you to have a custom template for the display of a listing when viewed in search results in the showlistings(2).tpl templates. This includes whether you would want to show the price field or not.
rockabilly is offline   Reply With Quote
Old 06-14-2009, 02:37 PM   #5
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,342
Rep Power: 84
seymourjames is a jewel in the rough
Default

FTP corruption is a problem which occurs more often than we all like to think. No problem.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates & Modules
Get the Best U.S Hosting, Best U.K Hosting
seymourjames is offline   Reply With Quote
Old 06-17-2009, 09:28 AM   #6
Customer
 
MrGForce's Avatar
 
Join Date: May 2009
Posts: 241
Rep Power: 14
MrGForce is on a distinguished road
Default

Does anyone have an answer to rockabilly's question? Is there a way to tell the checkout process not to display the price name and field anywhere during the checkout process if it is a category that's not using it?

And if the answer is posted elsewhere in the forum, could you please include the link to that thread, because I've searched and searched for the answer and can't find it.

I found the thread for taking the price out of the showlistings but can't find anything about this.

Your help would be greatly appreciated.

Thanks.
__________________
MrGForce

Currently running 68Classifieds v4.1.5 Developer Edition ... Purple Template
MrGForce is offline   Reply With Quote
Old 06-17-2009, 09:58 AM   #7
curmudgeon
 
Join Date: Mar 2006
Posts: 5,413
Rep Power: 138
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

You will need to edit step3.tpl of checkout where the price field is displayed.

enable debug in layout.tpl so you can see the available variables, login to your site and start the ad placement process.

On step3 where you see the ad fields, look at the debug console and you will see there is a smarty variable for category.

Add logic around the display section for the price and specify the category IDs of thye cats where no price is needed so it effectivly hides the display of that field.
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline   Reply With Quote
Old 06-17-2009, 10:21 AM   #8
Customer
 
MrGForce's Avatar
 
Join Date: May 2009
Posts: 241
Rep Power: 14
MrGForce is on a distinguished road
Default

I'll try that Larry. I haven't worked with smarty logic yet, but I'll give it a try and see what I can come up with.

Thanks.
__________________
MrGForce

Currently running 68Classifieds v4.1.5 Developer Edition ... Purple Template
MrGForce is offline   Reply With Quote
Old 06-17-2009, 10:25 AM   #9
curmudgeon
 
Join Date: Mar 2006
Posts: 5,413
Rep Power: 138
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

if the category where you want to hide the price is category 4 then use something like this...

{if $category != "4"}
display the default price display code here
{/if}
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline   Reply With Quote
Old 06-17-2009, 10:34 AM   #10
Customer
 
MrGForce's Avatar
 
Join Date: May 2009
Posts: 241
Rep Power: 14
MrGForce is on a distinguished road
Default

That'll do it Larry. As always, you're right there with the solution. I really appreciate it.
__________________
MrGForce

Currently running 68Classifieds v4.1.5 Developer Edition ... Purple Template
MrGForce is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom Templates / Graphics seymourjames Modification Release 2 03-20-2009 12:17 PM
Module - Custom Category Templates Eric Barnes Modules / Plugins / Modifications 19 11-07-2008 05:14 PM
Custom Templates available jj30 Templates, HTML, CSS, and Design Help 2 05-11-2007 12:00 PM


All times are GMT -4. The time now is 12:48 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2011, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0