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)
-   -   Integration with vBulletin - Simple vB User login and access control on non vB pages (https://vborg.vbsupport.ru/showthread.php?t=132996)

suttercain 04-11-2007 06:05 AM

Quote:

Originally Posted by Doctor Who (Post 1138111)
Any idea what would be causing the attached error, and how to fix it? The only javascript that is included in the page is from the login_inc.php file.

Exactly my same issue.

I figured out it's a JavaScript/IE error but I don't know JavaScript. I tried looking to see a place to close with a "(" but couldn't find one. Anyone else having this issue or know how to solve it? Thanks.

SC

suttercain 04-11-2007 06:36 AM

Quote:

Originally Posted by LBmtb (Post 1218153)
This may sound petty: but any way to get the form's code to validate? I'm not a javascript guy so I don't know all the tricks to get the code to validate.

Same problem on this guy's page:
http://socaltrailriders.org/

I open it up in Explorer and the same error. I don't think his post was ever answered. Is it possible to get this to validate?


Thanks.

Vigile 04-11-2007 02:54 PM

Quote:

Originally Posted by Billspaintball (Post 1224698)
Sorry but this is unlikely to work in this case.

Well, that's no good. Any possible solution to this issue? Using the vb user db for login information on another system?

suttercain 04-11-2007 05:55 PM

Since there were never any answers to the previous two gentleman having this same issue, it's safe to say that I should forget about using this hack?

70% of internet users use IE. If it doesn't work in IE... I can't use it.

Mastar 04-11-2007 08:05 PM

As soon as I gets permission I will release a revision of his hack. Please check back for an update.

suttercain 04-11-2007 08:10 PM

I figured out the javaScript error... only took 14 hours. Sorry I'm a php guy not a JavaScript guy.

Anyway...

replace:
Code:

echo "<input name=vb_login_username type=text id=navbar_username onfocus=if (this.value == '$vbphrase[username]') this.value = ''"; size=10 />";
with

Code:

echo "<input name=vb_login_username type=text id=navbar_username onfocus=\"if (this.value == '$vbphrase[username]') this.value = '';\" size=10 />";
The quotation marks were missing. IE was expecting them. Hope this helps. Donation can be made to your local Animal Shelter.

Billspaintball 04-12-2007 12:20 AM

Quote:

Originally Posted by suttercain (Post 1225280)
I figured out the javaScript error... only took 14 hours. Sorry I'm a php guy not a JavaScript guy.

Thanks, I'm a php not javascript guy as well. :)
I will update the hack over the weekend to correct it.

Ipuck 04-13-2007 12:15 AM

Hello

Thanks for the hack!

I got this error on all the pages I have added:

Quote:

Fatal error: Call to undefined method db::unlock_tables()

in /var/www/domains/xxxxxmydomainxxxxxxx/docs/forum/includes/functions.php on line 4998
Any ideas?

Thanks

jeramie78 04-13-2007 12:22 AM

the unlock_tables error is caused by VB and your script that you are inserting this code into are clashing.

vb uses $db to connect to the mysql DB and so does your script ....
in your config file of the script your using try changing........

$db = mysql_select_db

to

$db1 = mysql_select_db

Sorry if its so vague but thats what i did.

Ipuck 04-13-2007 01:36 AM

Thanks jeramie78 I'll try that


All times are GMT. The time now is 10:53 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.01131 seconds
  • Memory Usage 1,739KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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