|
| |||||||
| Mods and contribution Discussion This forum is only for discussion of modding phpLD. For specific mod releases, please see the appropriate forum. |
![]() |
| | topic widgets |
| | #1 |
| Supporter Join Date: Dec 2005 Posts: 484 | Have just done this myself thought i'd share Adding 'Accept Agreement' checkbox to submit form. Form will not submit until user checks this box. In submit.tpl Near top, Replace: Code: Content visible to registered users only. Code: Content visible to registered users only. Scroll down to end of file, Replace: Code: Content visible to registered users only. Code: Content visible to registered users only. <input type="button" value="Exit" class="btn" onclick="document.location.href='/index.php';"/> class="btn" sets button colour. 3. Just before {include file="footer.tpl"} place: Code: Content visible to registered users only. _ |
| |
| | #2 |
| Administrator phpLD Administrator Supporter Join Date: Jan 2005 Posts: 12,325 | Wow! Thanks for sharing. __________________ Helpful Links: templates supporters forum █ New phpLD User? Start here █ Quality Guidelines for Directories █ Recommended Host |
| |
| | #3 |
| Supporter Join Date: Dec 2005 Posts: 153 | Thank you very much for your contribution :lol: and thanks again for your PM :wink: Cheers, Sxperm __________________ Real Estate Directory Online - EstateRound.com Submit your real estate resources for free (with reciprocal) or $19 for listing. Professional Colors - link directory scripts |
| |
| | #4 |
| Join Date: Jan 2006 Location: Global Posts: 564 | Code: Content visible to registered users only. Cracking idea, however it might be a better idea to put a terms of service page online first and to hyperlink this in a pop up box so that the submittor knows the TOS he/she is agreeing to. I'd like to see this working though. Well done on the concept even if it didn't work for me. Not to blow the candle out though all a person has to do is to write a line of text stating... Code: Content visible to registered users only. Kevin |
| |
| | #5 |
| Supporter Join Date: Dec 2005 Posts: 484 | Sorry it didn’t work for you Iā€˜ve just reinstalled it again on an affected and unaffected submit.tpl and it seems to hold the fort. You could do like I did, go to a forum, kindly ask how X is achieved, you may have someone give you a different code to attempt. Then try to incorporate into the relevant areas of submit.tpl. However if it helps it may be a browser incompatibility problem I’m an IE6 user. As for linking to the Terms of Agreement you could make the text a link that opens in a new window to - terms.php i.e. Code: Content visible to registered users only. Although Plan B works too. Just write it. Peace. Last edited by David; 05-24-2010 at 11:12 PM. |
| |
| | #6 |
| Join Date: Jan 2006 Location: Global Posts: 564 | Humble pie Gladly eaten!!! ops: The script worked absolutely fine in internet explorer all versions, opera, firefox and a few others so far.... Was a syntax error not being picked up as a result of inncorrect installation of your description. Still think this is not really needed but is definately an added bonus to any site that wants to make 110% certain the tos has been accepted. No comebacks then.10/10 and my humble apologies for claiming it didn't work for me.... Scriptwriting is not my forte, but intillectual property is :wink: Thanks, Kevin Last edited by David; 05-24-2010 at 11:13 PM. |
| |
| | #7 |
| Mentor Join Date: Aug 2005 Location: New Jersey Posts: 331 | Hey, sounds great! Do you have a demo? __________________ Free Webmaster Directory, Add your link! |
| |
| | #8 |
| Join Date: Jan 2006 Location: Global Posts: 564 | Code: Content visible to registered users only. |
| |
| | #9 |
| Supporter Join Date: Dec 2005 Posts: 484 | Code: Content visible to registered users only. Like I said if you're planning to do a separate Terms page you can link to it with the following, it opens it up in a new window. Code: Content visible to registered users only. Neticus Last edited by David; 05-24-2010 at 11:13 PM. |
| |
| | #10 |
| Supporter Join Date: May 2006 Posts: 1,279 | This mod worked limk a charm! thank you David! |
| |
| | #11 |
| Supporter Join Date: Dec 2005 Posts: 1,243 | Is this working on 3.04? |
| |
| | #12 |
| Supporter Join Date: Dec 2005 Posts: 484 | I haven't tried it with 3.04 yet. However I've just looked at the 3.04 code in submit.tpl, the relevant lines to edit are still there so it should work. |
| |
| | #13 |
| Supporter Join Date: Mar 2006 Location: USA Posts: 396 | Code: Content visible to registered users only. __________________ http://linkageplus.com - clean - PR5 - general directory http://webdirectoryforums.com - Add your directory free and advertise in the forums free! http://cardraft.com - car link directory http://www.phplinkdirectory.com/foru...ad.php?t=13493 - Post if you want added to my list of free phpld sites |
| |
| | #14 |
| Join Date: Mar 2006 Location: Germany Posts: 1,064 | Code: Content visible to registered users only. |
| |
| | #15 |
| Join Date: Mar 2006 Posts: 258 | works perfect with 3.05 as well |
| |
| | #16 |
| Supporter Join Date: Jun 2006 Posts: 33 | Nice - works great. Now, does anyone have a "Terms and Conditions of Use" that I can use as a starting point? __________________ Rogmo |
| |
| | #17 |
| Join Date: May 2006 Posts: 69 | Thanks for that code! Until I actually write up a separate terms page I am using this to ask the submitter to confirm that they have read and agree to the submission guidelines. I figured that was just about the same as terms. |
| |
| | #18 |
| Mentor Supporter Join Date: May 2006 Location: San Diego, California Posts: 525 | anyone have the mod to add an extra box to the submit page? like next to where they fill everything out? so I can put terms of service and such in that. |
| |
| | #19 |
| Join Date: Aug 2005 Location: Nova Scotia, Canada Posts: 143 | Hi, I'd like to use this mod, but I'm wondering if it will work with version 3.1. I can't find the Code: Content visible to registered users only. Here's what I have: Code: Content visible to registered users only. Joanne |
| |
| | #20 |
| Join Date: Mar 2006 Location: Germany Posts: 1,064 | Hi, it works well in 3.1, but i think you have modified your submit.tpl with a spamprotection, that redirect to a second submit.php or something? |
| |