cotonti.com : Math Captcha https://www.cotonti.com Последние сообщения в теме Cotonti en Mon, 03 Nov 2025 04:49:33 -0000 ToM , Thank you very much it works great.
also thank Xerora and esclkm :)]]>
вт, 27 июл 2010 01:06:19 -0000
Trustmaster пн, 26 июл 2010 23:23:25 -0000 ToM ---------
"- That the tags are NOT inside ANY <!-- --> comment blocks ( other than the MAIN one )."

issue (and the .add.firs ofc).
---------

So there is no possibility to add this plug-in captcha into ANY <!-- -->?
e.g. forum.posts.tpl has its form into <!-- --> so I have to move the <!--END--> up?
like this case:

<!-- BEGIN: FORUMS_POSTS_NEWPOST -->

<!-- BEGIN: FORUMS_POSTS_NEWPOST_ERROR -->
<div class="error">
{FORUMS_POSTS_NEWPOST_ERROR_MSG}
</div>
<!-- END: FORUMS_POSTS_NEWPOST_ERROR -->

<form action="{FORUMS_POSTS_NEWPOST_SEND}" method="post" name="newpost">
<div style="width:100%;">{FORUMS_POSTS_NEWPOST_TEXTBOXER}</div>

<!-- END: FORUMS_POSTS_NEWPOST -->
<CENTER>
{FORUMS_POSTS_VERIFYIMG}
{FORUMS_POSTS_VERIFYINPUT}
</CENTER>
<div class="valid"><input type="submit" value="{PHP.L.Reply}" /></div>
</form>

This line " <!-- END: FORUMS_POSTS_NEWPOST -->" should be (or is in original) after </form> but for Captcha functionality I had to move up before captcha VERIFYMG.

Is it the correct solution? or there is a better ? If I need to put captcha into <!-- --> I have to implement its (captcha) code to a main PHP e.g. forum.posts.inc.php?

Thank you very much.]]>
пн, 26 июл 2010 17:32:01 -0000
Trustmaster пн, 26 июл 2010 14:08:22 -0000 Xerora
- That the tags are inside <form></form>
- That the tags are before <input type="submit" />
- That the tags are NOT inside ANY <!-- --> comment blocks ( other than the MAIN one ).

These tags are defined specifically inside the script to be parsed inside certain comment blocks. These tags in this script should only need to be within <!-- BEGIN: MAIN --> and <!-- END: MAIN --> but not within any other blocks.

Also, the validate file you linked does NOT reflect the changes to the hook I said above.]]>
пн, 26 июл 2010 07:58:24 -0000
ToM
Also thank esclkm,
Here is my two added files (they are just cloned of original mcaptcha.register.tags.php and mcaptcha.register.validate.php files with edited header)

mcaptcha.newtopic.tags_843.txt
mcaptcha.newtopic.validate_843.txt

Maybe there is no possibilities to run the plug-in like that but I want to add MCaptcha to more pages like add post or login etc. so I'm finding the easiest way.

Thank you very much]]>
пн, 26 июл 2010 05:57:23 -0000
Xerora ]]> пн, 26 июл 2010 03:52:42 -0000 esclkm пн, 26 июл 2010 03:24:46 -0000 ToM
I have one question about MCaptcha. For registration everything works great so I have wanted add the mcaptcha to forum newtopic. I have though it works as plug-in so I add files to plug-in.

mcaptcha.newtopic.tags.php and mcaptcha.newtopic.validate.php

and edit them as:

Code=mcaptcha
Part=newtopic.tags
File=mcaptcha.newtopic.tags
Hooks=forums.newtopic.tags
Tags=forums.newtopic.tpl:{USERS_REGISTER_VERIFYIMG},{USERS_REGISTER_VERIFYINPUT}
Order=10

and

Code=mcaptcha
Part=newtopic.validate
File=mcaptcha.newtopic.validate
Hooks=forums.newtopic.add.first
Tags=
Order=10

{USERS_REGISTER_VERIFYIMG} and {USERS_REGISTER_VERIFYINPUT} are present in forum.newtopic.tpl (is green in admin tool)
and plug0in was uninstaled / reinstalled but hooks doesn't work.

Is there possibility to use this plug-in like that or not?
Have I insert captcha code to forum site or plug-in is enough?

Every tips are welcome, thank.]]>
пн, 26 июл 2010 01:44:38 -0000