![]() |
How do I make a required field mybb 1.6.4 - Printable Version +- MyBB Community Forums (https://community.mybb.com) +-- Forum: Community Archive (https://community.mybb.com/forum-106.html) +--- Forum: Archived Forums (https://community.mybb.com/forum-143.html) +---- Forum: Archived Development and Support (https://community.mybb.com/forum-155.html) +----- Forum: MyBB 1.6 (https://community.mybb.com/forum-138.html) +------ Forum: 1.6 General Support (https://community.mybb.com/forum-127.html) +------ Thread: How do I make a required field mybb 1.6.4 (/thread-120436.html) Pages:
1
2
|
How do I make a required field mybb 1.6.4 - Article Chase - 2012-06-13 I am having difficulty getting this to work when posting or making threads. If a reply or thread is posted (submitted) without checking the box then the default mybb error page appears. My version is 1.6.4
I have a plan and will share it ![]() RE: How do I make a required field mybb 1.6.4 - Yaldaram - 2012-06-13 Couple of things; 1) Do you want to show error page when the user doesn't checked the check box ? 2) The code is wrong, the correct syntax may be;
Notice, I removed the ending </a> since its opening tag was not defined. RE: How do I make a required field mybb 1.6.4 - Article Chase - 2012-06-13 (2012-06-13, 05:25 PM)Yaldaram Wrote: Couple of things; Yes I want the error page to show if the user does not check the box. I will test the code and get back to you. Is {$requiredfields} the default for mybb? Or is this wrong? Edit - No it still posted with the box unchecked. This the whole code:
Just so you can see what I am doing - I probably have this completely wrong. Full code so you can see what I am doing
RE: How do I make a required field mybb 1.6.4 - Yaldaram - 2012-06-13 The file in action tag is "transact.dll" which I think is a computer/system file. You've to create a file like checking.php and then have to define its action tag. Are you making something like this? RE: How do I make a required field mybb 1.6.4 - Article Chase - 2012-06-13 If i just strip out that section of code to point to the relevant file in the mybb script maybe that will work. I will try removing the whole line: form action="transact.dll" RE: How do I make a required field mybb 1.6.4 - Yaldaram - 2012-06-13 Actually, the way you're trying to do is not going to work. You've created HTML, that's good. But you also need to create a php file which do the rest of the job. I think Aniruddh is doing that plugin so wait for his release. ![]() RE: How do I make a required field mybb 1.6.4 - Article Chase - 2012-06-13 Yes I think you are right, and my limited knowledge on the mybb script is making this fail miserably lol RE: How do I make a required field mybb 1.6.4 - Article Chase - 2012-06-21 Having tried many methods I have to say this is more difficult than first thoughts. Grrrr. RE: How do I make a required field mybb 1.6.4 - Article Chase - 2012-06-24 ![]() It must be simple to point a checkbox for validation. I just cannot figure it out. Every method I have tried will still post a thread or reply even with the checkbox unchecked. It would be very much appreciated if someone can help me out a little. My MyBB coding is not the best so I need to so this with a step by step instruction please. RE: How do I make a required field mybb 1.6.4 - Article Chase - 2012-06-26 Okay I am nearly there I think with this if I could get some help I think this will work. Surely there is an easy way to get this to work on NEWREPLY and NEWTHREAD
That is the basics of a validation method, but i do not know where to point to in regards PHP validation and the like. If anyone can help me with this I just know that you will ALL benefit from what I am trying to do. See: http://articlechase.com/beyondnews/newreply.php?tid=2110 You will see the part in the form at the bottom "Type any letter here to state you are not a Spammer:" I cannot get the button to work, as replies can still be made even if no letter is typed. Please anyone if you can help it would be very much appreciated, I have been trying for weeks and all I want to do is make it more difficult for the bots to get through for us all. |