vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Deluxe vB User login and access control on non vB pages (https://vborg.vbsupport.ru/showthread.php?t=108026)

Sean James 07-28-2006 12:37 AM

also is this script XHTML compliant?

when i check my site for compliancy i get these errors:

Quote:

# Error Line 87 column 73: an attribute value specification must be an attribute value literal unless SHORTTAG YES is specified.

...design.com/forums//login.php" method=post onsubmit=md5hash(vb_login_password,


Billspaintball 07-28-2006 05:08 AM

Quote:

Originally Posted by Griffin80
awesome script billspaintball, anyway of adding total members in the statisics also?

Ive been asked about that before.
Yes it is certainly possible, I just need some time to do it. (been flat out since the new baby)

Quote:

also is this script XHTML compliant?
Probably not.
Im a tad uneducated (and lazy) when it comes to XHTML compliance :(

Sean James 07-28-2006 06:25 AM

congrates on the new baby ;)

I found time today anyways and modifed the script and its almost 100% validated on my site except from 2 errors i made myself modifying the layout.

One problem i am having is with the link showing double // for example when a unregisterd user clicks register they r sent to this link:
http://www.bluepearl-design.com/forums//register.php?s=

Here is a link to the test page using this script:
http://www.bluepearl-design.com/test.php

AndrewMS 07-29-2006 11:48 AM

Hi Billspaintball,

I get this error, only when I'm not logged.
Code:

Warning: array_keys() [function.array-keys]: The first argument should be an array in /includes/functions.php on line 4259

Warning: preg_replace() [function.preg-replace]: Empty regular expression in /includes/functions.php on line 4259

Can you help me?

EDIT: fixed!!:cool:

Kungfu 07-29-2006 05:52 PM

Fatal error: Cannot use object of type vB_Database as array in /public_html/admin/common.php on line 53

line 53:
$udb->start($db['host'],$db['user'],$db['pass'],$db['name']);

because i have another sql database for my site that it calls it does this. How can i stop it from trying to make a vb array database? Thanks.

Sean James 07-29-2006 05:58 PM

any ideas why i am getting double // in my urls? been trying so many different combinations of paths and i just cant seem to figure it out hehe

Kungfu 07-30-2006 03:13 AM

Quote:

Originally Posted by Griffin80
any ideas why i am getting double // in my urls? been trying so many different combinations of paths and i just cant seem to figure it out hehe

what did you put for a path?

Kungfu 07-30-2006 03:16 AM

either change this $forumpath = "http://www.yoursite.com/forums/";
to
$forumpath = "http://www.yoursite.com/forums";

or

go into the login_inc and find

You have to <a href=\"".$forumpath."/register.php?s=$session[sessionhash]\"

take out that / in front of register

You have to <a href=\"".$forumpath."register.php?s=$session[sessionhash]\"
should be this.

AndrewMS 07-30-2006 12:03 PM

Quote:

Originally Posted by Kungfu
Fatal error: Cannot use object of type vB_Database as array in /public_html/admin/common.php on line 53


line 53:
$udb->start($db['host'],$db['user'],$db['pass'],$db['name']);

because i have another sql database for my site that it calls it does this. How can i stop it from trying to make a vb array database? Thanks.


I think you got this error because vbulletin has a variable called $db. Try to rename your variable, $db_site instead of $db.

Kungfu 07-30-2006 11:31 PM

Quote:

Originally Posted by AndrewMS
I think you got this error because vbulletin has a variable called $db. Try to rename your variable, $db_site instead of $db.

ouch ok, guess i gotta do what i gotta do. thanks and ill try that.


All times are GMT. The time now is 08:07 AM.

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.01280 seconds
  • Memory Usage 1,744KB
  • 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
  • (1)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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