vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Miscellaneous Hacks - NoSpam! - an alternative to CAPTCHA images (https://vborg.vbsupport.ru/showthread.php?t=124828)

lostgirl815 01-24-2007 09:51 PM

Quote:

Originally Posted by antialiasis (Post 1166667)
captainiron19, check your style manager and see if you don't definitely have a template called nospam.

Also, were you definitely editing the template in the right style when you added $nospamfield manually before?

lostgirl815, if you have more than one question it will show one at random, not all of them, if you thought that.

Oh! That is what I thought - well that explains it then, thanks! It's a brilliant Mod, I love it. (I clicked Install about a billion times before I realized that it was javascript, not a link I was supposed to follow.)

(And er, just in case... I didn't modify any templates manually with $nospamfield or anything, it worked with just the instructions you gave. Am I supposed to modify each style also in some way or something?) (Please say no.)

antialiasis 01-24-2007 11:27 PM

No, you aren't. The plugins are meant to automatically insert the question, but if it's not working I tell people to try it the manual way. If it works for you already, there's no need for that.

lostgirl815 01-24-2007 11:30 PM

Ah great. Thanks for all your help, and thanks again for a way better anti-spambot tool!

captainron19 01-25-2007 09:45 AM

Quote:

Originally Posted by antialiasis (Post 1166667)
captainiron19, check your style manager and see if you don't definitely have a template called nospam.

Also, were you definitely editing the template in the right style when you added $nospamfield manually before?

lostgirl815, if you have more than one question it will show one at random, not all of them, if you thought that.

I went into the style manager (I have 3 seperate styles in use) I clicked on edit templates for each one of them and there is a template under each one labeled "nospam" each one has the following code...
Code:

<fieldset class="fieldset">
        <legend>$vbphrase[nospam_question]</legend>
        <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="400">
        <tr>
                <td colspan="2">$nospamquestion</td>
        </tr>
        <tr>
                <td>
                        <input type="hidden" name="nospamnumber" value="$nospamnumber" />
                        <input type="text" class="bginput" name="nospam" size="25" />
                </td>
        </tr>
        </table>
</fieldset>

When I manually entered the $nospamfield I went in to each of my styles, clicked on edit templates, expanded "registration templates" and then I opened the register template. I dfound the text $imagereg and right above it I added $nospamfield then I clicked on save and reload.

A portion of that section that I edited manuall in each template looks like this:

Code:

                                        </td>
                                </tr>
                                </if>
                                </table>
                        </fieldset>

                        $nospamfield

                        $imagereg
                       
                </div>


antialiasis 01-25-2007 04:56 PM

Hmm.

I can't really think of any explanation it wouldn't be working for you, then, captainiron19. =/ If any coder has an idea of what could be wrong, any tips would be much appreciated.

captainron19 01-25-2007 07:05 PM

Thanks for the help anyway - hopefully someone will have an idea. I also tried doing an uninstall and re-installed the product and that didnt help either. I installed an additional product just prior to this one (The Google / You Tube video embed feature) and it worked perfectly fine.

I am seeing a few items in my contol panel....wouth either or these cause a problem? >...

"There are currently 11 customized template(s) that need to be updated or reverted. Some sections of vBulletin may not function if you do not do this!" I saw this error at my main cp page and it started once I upgraded to v 3.6.4

Under my "Manage Products" section the top is reading... "Warning: Plugins are currently globally disabled via config.php."

LBSources 01-25-2007 09:41 PM

excellent hack .. Good work!

antialiasis 01-26-2007 09:59 PM

Quote:

Originally Posted by captainron19 (Post 1167210)
Under my "Manage Products" section the top is reading... "Warning: Plugins are currently globally disabled via config.php."

...well, okay, that's definitely the problem. Edit your config.php file (it's in the includes folder) and take out the line involving DISABLE_HOOKS; I can't remember exactly what it says, but therein lies the problem. You basically disabled hacks that involve plugins, which this one does.

captainron19 01-26-2007 11:43 PM

thanks I will do that - I believe we diabled them after having a problem with upgrading to solve a problem that really wasnt effected by any plugins

captainron19 01-27-2007 02:01 PM

Well it looks like that was the trick. After I got it all up and running I did note however that I had the No Spam question listed int here twice. I went into the style manager where I manually added $nospamfield - it was still only in there once. So, I deleted the one I added manually and seems to be working perfectly now.

On another note..... when i went into the config.php to delete the "Diable Hooks" section I did notice I had another line there labeled.... define('SKIP_REFERRER_CHECK', true); right below the disable hooks line. I removed that also.....is that ok? Like I said before, i think both of these lines were placed in there before when i had a trouble with the forum but it turned out to be a problem on my web server's side.

Thanks again for the help


All times are GMT. The time now is 06:08 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
  • Page Generation 0.02002 seconds
  • Memory Usage 1,751KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete