![]() |
excellent=installed:)
gr8 hack |
Ok i looked a little into the multilingual support.. as I was not satisfied with the solution above. I am using the hack https://vborg.vbsupport.ru/showthread.php?t=98904 by JoergZ for translating customfields and i thought that i could use a few lines of code here. (actually it is a code snippet I posted in that thread to adapt his hack)
The basic idea is: You only need the question translated, you can define the answers in different languages.. so you give the answers in all installed languages. 3 steps to make it work multilanguage with phrases. Step one: Modify the product xml: find: PHP Code:
PHP Code:
Step two: Go to your phrase manager in the ACP and add a new phrase: Phrase Type: GLOBAL Product: vBulletin Varname: nospam_question_01 Text: How much is 2+2 Then insert the translation for all istalled languages (in my case english, german and french) German: Wieviel ist 2+2 Fran?ais: Combien font 2+2 Now save the phrase. Repeat for all your questions using the variables: Varname: nospam_question_02 Varname: nospam_question_03 Varname: nospam_question_04 Varname: nospam_question_05 ............. and so on IMPORTANT!!!: Write down the question number and the question on a piece of paper !!!! (happened to me.. i didnt remember which variable number was which question) Now comes step three: go to your nospam settings and define the questions the following way: (in our example: How much is 2+2) $nospam_question_01:4:four:vier:quatre IMPORTANT: in your nospam setting you MUST set a $ sign in front of the varname you used in the phrases other example: in your phrases you use the varname nospam_question_04 in your nospam settings you use $nospam_question_04 I hope it is clear. I tested it on 3.64 and it works for me... THANK YOU for the great hack!! Felix Forgot to say, that if you dont use the $ in the nospam settings for the question, the question will appear as you entered it. (Like in the original hack) Hope this helps someone |
Quote:
The thing will process when submitted suggesting the feild is incorrect. However its not pulling the information through. Any help would be greatly appreciated. :) Or if you let me know how the 'nospamnumber' works, i can just statically write the submitting form on the reg page (i think) :lol: *Edit, i manually set the 'nospamnumber' to 0 and wrote out the question. It now picks out the 2nd or 3rd answer in the admin CP and validates against it. Wich is good enough for me at the moment, but i'd like to understand it more, if anyone can help. |
The variable $nospamnumber is basically which NoSpam! question it is so that the hack can determine which answer it should be comparing the input to.
A few forums have had that problem, but it still mystifies me what the heck is wrong there. :/ I guess you could try just putting this block of code right at the start of the plugin on global_start: PHP Code:
|
This mod is a must have! Thanks for all of your hard work!
|
What about multiple questions?
|
Quote:
https://vborg.vbsupport.ru/attachmen...2&d=1156727175 |
Quote:
|
You just put one question/answer set on each line, and then it picks one at random. If you were asking if it could actually ask multiple questions at the same time, it would be possible to do but there's absolutely no need for it; you can of course ask a question in two parts just by combining them into one.
|
i have a 3.5.4 will this work?
|
Please click the link in the first post or in my signature for the 3.5 version.
|
Awesome! I love this mod! My spam has gone from 3-5 a day to ZERO! NONE! NADA!
|
To be frank i do not like it as it requires installation of another mod, can this be just a standalone mod not requiring installation of another 3rd party mod?
|
Quote:
I think this may work better than my idea as I was just being lazy. Having the ability to using the vB language system to take care of the translation makes it look a lot more professional. |
Quote:
|
Over the weekend a couple of spam emails went through so I added a couple more random questions. Should be good. MOTM for sure!
|
Best PLUGIN EVER!
My large website went from 20-30 spammers a day to ZERO! Thanks again! If it continues to prevent spam, I may get to turn off new user validation! That would make my life so much better! AND this took all of 20 seconds to install! Nice installer, great options. |
Quote:
Any ideas? |
Quote:
|
Quote:
still didn't test it on a live system though Felix |
I just added it to my forum. We'll see if the bogus registrations stop. ;)
|
Quote:
Code:
function trim_array(&$answer) |
I'm going to add that hack to our production forum sometime this weekend as we have a lot of Spanish readers who can test the system for us. Let you know how it flies. :)
Quote:
|
Awesome!! Installed. Thank you! :)
|
Quote:
|
thanks but ill be instaling this later
|
Great hack! Thanks!
*clicks install |
Quote:
|
Has anyone tried it with 3.6.5 yet?
|
Quote:
|
I don't think any of the hooks used in NoSpam! are actually in files that were changed in 3.6.5, so you should be pretty safe with that. :/
|
Quote:
Works just fine with v3.6.5 |
Thank you phill2003.
|
This is a good hack, but you can accomplish exactly the same thing using the User Profile Field Manager.
User Profile Field>Add New User Profile Field> You can require it to be answered, require a certain answer, all the same niftyness. |
No, you can't.
1. It will only work on registration - not for guest posts, guest searches or guest Contact Us. 2. It can only be one set question, not a random one out of many like this hack. 3. Although this is the 3.6 version, it is not possible to require a certain answer for a profile field in 3.5. There is a 3.5 version of the hack. |
Spammers are still getting through to the forums and posting. In fact, the one this morning was banned, masks changed to deny on all forums, and they were still posting. They registered this morning, so they were getting through somehow. I even changed the questions/answers for future registrations.
Any thoughts on how they are still getting through? |
LPH2004,
Live spammers, (aka humans) can still register and post. At least last time I checked. ;) This mod should and does prevent bots from regsitering. It cannot and does not prevent someone with a brain from registering. |
Quote:
|
pretty nice add-on... ever think of including a stock or sample bundle of Q/As in the txt file?
|
can you tell me in very simple terms where I find "form template "? thanks
|
All times are GMT. The time now is 08:19 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|