vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   VB Login on a Non-VB Page vB3 RC3 (https://vborg.vbsupport.ru/showthread.php?t=61112)

gmarik 03-25-2004 04:29 PM

Is it ok with Gold?

Ky Kiske 03-25-2004 06:03 PM

How do you do this if your forum is on a different url then your main site?

Example: Like I have www.mysite.com and then I have www.myforums.com. How can I do it like this?

misterfade 03-25-2004 06:04 PM

Quote:

Originally Posted by MindTrix
Thats the line that calls the java file

Yes, I know but I'm just asking why is that line needed when the login form works without it?

misterfade 03-25-2004 10:16 PM

After testing this some more, I tried it on a blank page with just this code and I still get javascript errors (error message at the bottom left corner of my browser). Is it just me, or is anyone else having this problem? Could it be vbulletin's code that doesn't go well on external pages??

chapsrulez 03-26-2004 08:40 PM

Finally i managed to get this code working on my server, people can login from the home, but im getting a syntax error on line 12 which is the following.

<input type='text' class='button' name='vb_login_username' id='navbar_username' size='15' accesskey='u' tabindex='1' value='' onfocus='if (this.value == 'username') this.value = '';' /><br>

any info how to solve the problem.
thanks.

chapsrulez 03-26-2004 10:54 PM

Never mind about the above, i already fix that.

Also if u want to display last login and time after
if ($bbuserinfo['userid']!=0) {
$username=$bbuserinfo['username'];

Add the following.

$lastvisitdate=$pmbox['lastvisitdate'];
$lastvisittime=$pmbox['lastvisittime'];

It should look like
if ($bbuserinfo['userid']!=0) {
$username=$bbuserinfo['username'];
$lastvisitdate=$pmbox['lastvisitdate'];
$lastvisittime=$pmbox['lastvisittime'];

cheers.

accyroy 04-11-2004 02:46 PM

To fix the errors in the bottom of the screen you need to get rid of
Code:

onfocus='if (this.value == 'username') this.value = '';' /
from this line:

Code:

<input type='text' class='button' name='vb_login_username' id='navbar_username' size='15' accesskey='u' tabindex='1' value='' onfocus='if (this.value == 'username') this.value = '';' /><br>
Don't actually know what this does exactly, but everything seems to work normally without it and you lose the error message.

accyroy 04-11-2004 02:48 PM

Quote:

Originally Posted by gmarik
Is it ok with Gold?

yes, this works fine with gold.

Sakura Online 04-12-2004 05:24 AM

Quote:

Originally Posted by Kumaro
Okay, I finally got this hack to work with my PHPnuke 7.1. There's still 1 problem remaining. It logs in and returns to the main page, however the message does not change to "Welcome username", it always shows the login form....I made it into a phpnuke block, so it is in its' own file. The login is successful, but there is no welcome page.

PHP Code:

if ($bbuserinfo['userid']!=0) {
$username=$bbuserinfo['username'];
  
$content "<align=\"center\"><span class=\"sectionheader\">Welcome back, $username!<br>"

^^is that being ignored or something?

I'm having this exact same problem. does anyone know what to do about it?

KOM 04-13-2004 03:10 PM

I get this when I try to go to my website

Parse error: parse error in /home/wvgl/www/index.php on line 9


All times are GMT. The time now is 11:20 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.01185 seconds
  • Memory Usage 1,742KB
  • 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
  • (1)bbcode_php_printable
  • (3)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