 | |  | | | Classifieds How do I...? Wondering how to do something in Classifieds? |
November 26th, 2011, 08:34 AM
|
#1 (permalink)
| | Member Verified Customer
Join Date: Aug 2007
Posts: 125
| Make some fields mandatory
I want to make sure that users are writing something in certain fields, is it possible? Thank you
|
| |
November 26th, 2011, 11:30 AM
|
#2 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,699
|
certain fields like title or description are required anything else you would need to modify code which is called a code mod.
|
| |
November 27th, 2011, 08:59 AM
|
#3 (permalink)
| | Member Verified Customer
Join Date: Aug 2007
Posts: 125
|
So what do you suggest?  Do it basing myself on the title/description rule? Wich file should i look into? Thank you
|
| |
November 27th, 2011, 09:34 AM
|
#4 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,699
|
Yes modifications you would need to do at your own risk. You can look at the top of the uploadproduct templates to see how we do title and description however code modifications we do not assist with those are not a function of product support. We support our code as written since code mods are the number one cause of code conflicts etc.
|
| |
November 27th, 2011, 12:48 PM
|
#5 (permalink)
| | Member Verified Customer
Join Date: Aug 2007
Posts: 125
|
Actually, its perfect as it is right now. For all the extra fields, you coded it as its mandatory, so its all good, thank you
|
| |
November 27th, 2011, 01:35 PM
|
#6 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,699
|
Yep if your using a regular extra field sure thats in there.
|
| |
December 8th, 2011, 09:43 PM
|
#7 (permalink)
| | Member Verified Customer
Join Date: Aug 2007
Posts: 125
| Quote:
Originally Posted by Chuck S certain fields like title or description are required anything else you would need to modify code which is called a code mod. | as it is right now, description is not mandatory, i don't get it
|
| |
December 8th, 2011, 09:56 PM
|
#8 (permalink)
| | Member Verified Customer
Join Date: Aug 2007
Posts: 125
|
You said that description is mandatory, and in uploadproduct template, this is what i see Quote:
if (form.title.value == "") {
alert( "{$pp_phrase['blanktitle']}" );
form.title.focus();
return false;
}
if (form.buyemail.value == "" && form.buyit.value == "yes" ) {
alert( "{$pp_phrase['blankemail']}" );
form.buyemail.focus();
return false;
}
| and all the extrafield thing, but nothing about description, is that normal?
|
| |
December 9th, 2011, 07:30 AM
|
#9 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,699
|
You can add this if you like Code: Content visible to verified customers only.
|
| |
December 9th, 2011, 05:07 PM
|
#10 (permalink)
| | Member Verified Customer
Join Date: Aug 2007
Posts: 125
|
thank you very much
|
| |
December 9th, 2011, 05:09 PM
|
#11 (permalink)
| | Member Verified Customer
Join Date: Aug 2007
Posts: 125
|
i really don't get it, its there now and i didnt do anything... wtf is happening
it was not there last night, and its there now, and nobody other than me is touching this
seriously i dont get it
|
| |
December 9th, 2011, 05:14 PM
|
#12 (permalink)
| | Member Verified Customer
Join Date: Aug 2007
Posts: 125
|
its there now, but its not working, im seriously lost
|
| |
December 9th, 2011, 05:33 PM
|
#13 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,699
|
Not sure what your talking about in the its there and then not comment.
If the code I noted is in the uploadproduct template then as long as your not using the WYSIWYG editor it should work. The basic textbox should work with that javascript like stated.
|
| |
December 10th, 2011, 09:06 AM
|
#14 (permalink)
| | Member Verified Customer
Join Date: Aug 2007
Posts: 125
|
its not working, and im not using WYSIWYG, and the code is there.
I did a fresh installation in a new database and i will try to troubleshoot like that
how do i move what i've translated to the fresh install?
thank you
|
| |
December 10th, 2011, 11:28 AM
|
#15 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,699
|
it works just fine if you add what I stated to the proper template.
remember depending on what your integrating with there are alternate templating in the vb3enhanced vb4enhanced and xenforo template directories.
I have tested anything I said before I posted.
|
| |
December 10th, 2011, 11:54 AM
|
#16 (permalink)
| | Member Verified Customer
Join Date: Aug 2007
Posts: 125
|
So is there any way to take what i have translated and use it on my fresh install?
|
| |
December 10th, 2011, 04:11 PM
|
#17 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,699
|
Not sure what your referring to as it is not something that has been discussed here. Like I said on the topic we are discussing if you enter the code I stated in the uploadproduct template on the proper template set depending on your site integration type then description is mandatory. You will see a message that says "Description can not be left blank"
|
| |
December 10th, 2011, 06:13 PM
|
#18 (permalink)
| | Member Verified Customer
Join Date: Aug 2007
Posts: 125
|
Since its not working for me, i re-created a new database and re-uploaded all fresh files.
I'm trying to bring what i've translated from the old one (because i translated a lots of things) to the new one i've uploaded.
Like this, i will be able to troubleshoot what's wrong with the old one
|
| |
December 10th, 2011, 07:10 PM
|
#19 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,699
|
Like I already explained the only way it would not work is if your not editing the correct template set |
| |
December 10th, 2011, 07:25 PM
|
#20 (permalink)
| | Member Verified Customer
Join Date: Aug 2007
Posts: 125
|
well, how do i know if its the right set? I edit everything thru the admin panel.
When i go back to uploadproduct its there, but it doesnt work
|
| | |
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 02:24 AM. | |