vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Force Guests to Enter Username via Javascript (https://vborg.vbsupport.ru/showthread.php?t=212763)

alexjc 05-03-2009 03:28 PM

Force Guests to Enter Username via Javascript
 
Hi,

I installed this Hack to force guests to enter a valid username:
https://vborg.vbsupport.ru/showthread.php?t=148686

However, this error checking takes place on the next page and when you click back the post is lost -- more often than not.


I looked into the Javascript code for validating the subject and post length, but that seems very hard to extend with a custom check to force Guests from using a username that's not "Unregistered."

Do you have any ideas how to do this?

Thanks,
Alex

UKBusinessLive 05-03-2009 04:20 PM

Quote:

Originally Posted by alexjc (Post 1803698)
Hi,

I installed this Hack to force guests to enter a valid username:
https://vborg.vbsupport.ru/showthread.php?t=148686

However, this error checking takes place on the next page and when you click back the post is lost -- more often than not.


I looked into the Javascript code for validating the subject and post length, but that seems very hard to extend with a custom check to force Guests from using a username that's not "Unregistered."

Do you have any ideas how to do this?

Thanks,
Alex

Hi Alex

Its best you ask that question in the mod thread as the author and other users will be better equipped to answer you

Good luck ;)

alexjc 05-03-2009 04:32 PM

Thanks for your reply.

However, I'm not interested in the original plugin / mod because it isn't the solution I need. It uses 2 PHP lines of code to check validity.

I want something completely different, done in Javascript. So I need advice how to mod Javascript callback when a user creates a post.

Alex

UKBusinessLive 05-03-2009 05:06 PM

Sorry Alex,

Is this any good for you http://www.phpriot.com/articles/sort...php-and-ajax/6

alexjc 05-04-2009 01:20 PM

No, it's not particularly useful... I'm more curious how to modify the vBulletin code in the first place, since it's obfuscated / compressed Javascript. (The code itself is rather easy if there was a hook.)

How do people normally do this?

Alex

Dismounted 05-05-2009 05:49 AM

Quote:

Originally Posted by alexjc (Post 1804323)
No, it's not particularly useful... I'm more curious how to modify the vBulletin code in the first place, since it's obfuscated / compressed Javascript.

When downloading vBulletin from the Members' Area, click "Download Options" and select "Uncompressed Javascript".


All times are GMT. The time now is 10:50 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.01049 seconds
  • Memory Usage 1,724KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete