PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Classifieds How do I...? (http://www.photopost.com/forum/classifieds-how-do-i/)
-   -   "For Trade" Ad Type (http://www.photopost.com/forum/classifieds-how-do-i/149154-trade-ad-type.html)

creativepart January 19th, 2013 03:42 PM

"For Trade" Ad Type
 
I'm trying to create a "For Trade" ad type. First I tried modifying one of the "Personals" (uploadproduct2) ad types, but just ran into too many problems.

So, now I'm trying to use the "For Sale" ad type with a new field added. But I'm having problems with this as well.

My first question is after all these years and a number of requests why hasn't a "For Trade" ad type been created? When I search about "For Trade" ad types I see some requests that date back quite a long way. Do you think it's possible that you might create this needed ad type any time soon?

Ok, with that said... I next decided to use the "For Sale" ad type as it's pretty close to what is needed. And, I added a new field to add "What I'm willing to trade for" into the form and that has created a single line text box.

The field really should be a textarea -- but that doesn't seem to be an option? Also, I'd love to be able to turn off the "Price" section as there isn't a price on a "For trade" ad.

Short of creating a whole new set of show, edit, upload templates from scratch (that then has to be updated every time the product update includes template changes) is there any way to make a more credible "For Trade" ad type?

PS. And, I guess Showcat would need some changes too.

creativepart January 19th, 2013 03:53 PM

Let me quickly add to this question -- If I go into showproduct, editproduct and uploadproduct for the "For Sale" ad and change the coding on Field1 to textareahtml and give it cols=50 and rows=5 will that create a problem in the database because the textbox for field1 is limited to 50 characters in the DB tables?

creativepart January 19th, 2013 04:06 PM

Here's the changed I'd make to the "for sale" ad type templates:
Code:

Content visible to verified customers only.
See any problems with this?

Chuck S January 19th, 2013 04:37 PM

We have 5 different template types and you can make ones however you wish.

The classifieds has functionality that when you create a ad type in admin you can base the new type of any type that exists then it creates any needed template or sub language files.

You would then edit any of those to suit your needs. There is no such html as textareahtml. You need to use textarea.

creativepart January 19th, 2013 04:49 PM

Quote:

Originally Posted by Chuck S (Post 1305792)
We have 5 different template types and you can make ones however you wish.

The classifieds has functionality that when you create a ad type in admin you can base the new type of any type that exists then it creates any needed template or sub language files.

You would then edit any of those to suit your needs. There is no such html as textareahtml. You need to use textarea.

I hadn't thought of that create new based on approach. Then I just need to edit the upload, show and edit product templates for that ad type manually.

I see "textareahtml" in the existing coding for "desc" in the uploadproduct.tmpl.

Here's the coding:
Code:

Content visible to verified customers only.

Chuck S January 19th, 2013 06:40 PM

If I look at any of our templates in our downloaded code no templates have textareahtml

Chuck S January 21st, 2013 12:07 PM

Let me know if you have specific questions about the feature I noted. Basically all that does is create all the necessary files for you. You would then modify the way things are displayed by altering the templates to suit your needs. All we can do obviously is create ones based off specific sets we have in the application.


All times are GMT -5. The time now is 12:25 AM.

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


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 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97