The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Comments |
#22
|
||||
|
||||
Hmm...
Can you give exactly what you put into the questions and answers field? |
#23
|
|||
|
|||
Sure. And thanks for your help looking at what I have messed up
|
#24
|
||||
|
||||
Can you please give me the full text of your "Generate and insert NoSpam! question" plugin on global_start?
|
#25
|
|||
|
|||
Thanks. Here it is.
Code:
if ($vbulletin->options['nospam_onoff'] AND !$vbulletin->userinfo['userid']) { $nospamdo = true; switch (THIS_SCRIPT) { case 'register': $vbulletin->templatecache['register'] = str_replace('".(($show[\'regimagecheck\']) ? ("', '$nospamfield ".(($show[\'regimagecheck\']) ? ("', $vbulletin->templatecache['register']); break; case 'sendmessage': $vbulletin->templatecache['contactus'] = str_replace(' </fieldset> <div class=\"fieldset\">', ' </fieldset> $nospamfield <div class=\"fieldset\">', $vbulletin->templatecache['contactus']); break; case 'search': $vbulletin->templatecache['search_forums'] = str_replace(' </table> <div align=\"$stylevar[left]\">', '<tr><td colspan=\"2\" align=\"$stylevar[left]\">$nospamfield</td></tr> </table> <div align=\"$stylevar[left]\">', $vbulletin->templatecache['search_forums']); break; case 'newreply': $vbulletin->templatecache['newreply'] = str_replace('<!-- / message area -->', '<!-- / message area --> $nospamfield', $vbulletin->templatecache['newreply']); break; case 'newthread': $vbulletin->templatecache['newthread'] = str_replace('<!-- / message area -->', '<!-- / message area --> $nospamfield', $vbulletin->templatecache['newthread']); break; default: $nospamdo = false; } $questions = explode("\n",$vbulletin->options['nospam_questions']); $nospamnumber = array_rand($questions); $qanda = explode(":",$questions["$nospamnumber"]); $nospamquestion = $qanda[0]; if ($nospamdo) { eval('$nospamfield = "' . fetch_template('nospam') . '";'); } $vbulletin->templatecache['navbar'] = str_replace('<input type=\"text\" class=\"bginput\" name=\"query\" size=\"20\" /> $gobutton', '$vbphrase[guests_cannot_use_quicksearch]', $vbulletin->templatecache['navbar']); if (THIS_SCRIPT == 'forumdisplay') { $vbulletin->templatecache['FORUMDISPLAY'] = str_replace('<input type=\"text\" class=\"bginput\" name=\"query\" size=\"20\" />$gobutton', '$vbphrase[guests_cannot_use_quicksearch]', $vbulletin->templatecache['FORUMDISPLAY']); } else if (THIS_SCRIPT == 'showthread') { $vbulletin->templatecache['SHOWTHREAD'] = str_replace('<input type=\"text\" class=\"bginput\" name=\"query\" size=\"20\" />$gobutton', '$vbphrase[guests_cannot_use_quicksearch]', $vbulletin->templatecache['SHOWTHREAD']); } } |
#26
|
||||
|
||||
Odd...
Okay, this is getting kind of long-winded, but would you mind doing a little experiment for me since I'm unable to replicate this on my test forum? Go to the quickregister template and change the $nospamquestion that you put in to, in turn, $questions[0], $nospamnumber and $qanda[0], for each one writing down what appears in the template where the question should be (if anything). Post the results here (or PM them to me, whichever you prefer). |
#27
|
|||
|
|||
I am not sure, is this what you wanted me to try?
Code:
<if condition="$vbulletin->options['nospam_onoff']"> <br>$questions[0]<input type="text" class="bginput" name="nospam" value="Answer here" onFocus="value=''" size="20" /> <input type="hidden" name="nospamnumber" value="$qanda[0]" /> </if> |
#28
|
||||
|
||||
You don't need to attach it; just tell me whether anything appears or not. Try $nospamnumber, too.
|
#29
|
|||
|
|||
Nope, nothing should up yet.
|
#30
|
||||
|
||||
Hmm. o_O The NoSpam! system is turned on, right?
|
#31
|
|||
|
|||
It won't work in version 3.5.4 either....
Nothing shows up for the question... I do not have QUICK REGISTER INSTALLED....... I get an error telling me I answered the question WRONG... because the question does not show up at all... So it is UNISNTALL TIME and Back To The Drawing Board for me.... Thanks any way.... |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|