vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How to place vb login box on my site (https://vborg.vbsupport.ru/showthread.php?t=170734)

Deidre 02-17-2008 10:51 AM

How to place vb login box on my site
 
Okay, I know there are a couple of scripts that allows you to place a login box on a non vbulletin page, but I've tried a number of scripts and they don't work. I am using v3.6.8 and the latest script I could find was created for v3.5, wich is probably why.

Do you guys know about one for v3.6? I have a couple of fansites that uses the same forum and I want to place a login box on each of them, and when they are logged in, it must show how manny new PM's they have and stuff.

Please help, I need to do this ASAP!

karlton87 02-17-2008 10:56 AM

I tried the 3.5 and it didnt work for me either.

So if anyone knows this will help me aswell.

Deidre 02-17-2008 11:03 AM

Great, now I don't feel stupid that I couldn't get it to work ;)

Deidre 02-18-2008 03:20 PM

Okay, I found something: http://forums.clantemplates.com/show...ght=code+login

I tested it and it worked, but we have a problem.

When I'm logged out of my forum I go to the page that I inserted the script in, I then log in, and it redirects me to the forum page, logs me in and redirects me back, just how it should.
I am logged into the forum then, but it doesn't show on the page that I'm logged in, it still shows the login form. So, all we need to do is to tell the script that when the user is logged in, it must replace the login box with this:

Quote:

Welcome, Deidre.
You last visited: Today at 04:56 PM
Private Messages: Unread 0, Total 0.
I'm not a programmer :( Anyone care to help?

(offcourse we'll ask clan templates for permision to use their script as we didn't buy a template from them, I'm sure they won't mind as it's publicly availabe on their site.)

oBEAVISo 02-18-2008 06:42 PM

I have that same problem .I am using ccms with the vbulletin forums.When logging in i get the same as you .What i did find is if i log into the forum first then click on the home page from the forum it takes me there and it shows me as logged in on the hoime page aswell as the forums.

Deidre 02-18-2008 06:56 PM

Any programmers that will help us? Please! I'm begging you people!

MrPHD 02-18-2008 07:02 PM

Hi, what do exactly and what you want? Regards please put a screen here please.

Deidre 02-18-2008 07:29 PM

MrPHD

The login boxes:
https://vborg.vbsupport.ru/
https://vborg.vbsupport.ru/

I want to place that box on my site (a non vbulletin page). A site on a different addon domain on the same hosting account.

This script, that can be found here: http://forums.clantemplates.com/show...ght=code+login allows you to do that:

Quote:

<form action="http://www.PATHTOYOURFORUMS/login.php" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, 0)">
<script type="text/javascript" src="http://www.PATHTOYOURFORUMS/clientscript/vbulletin_md5.js"></script>
<table border="0" cellpadding="0" cellspacing="3">

<tbody><tr>
<td ><label for="navbar_username">User Name</label></td>
<td><input class="bginput" style="font-size: 11px;" name="vb_login_username" size="10" accesskey="u" tabindex="101" value="User Name" onfocus="if (this.value == 'User Name') this.value = '';" type="text"></td>
<td colspan="2" nowrap="nowrap"><label for="cb_cookieuser_navbar"><input name="cookieuser" value="1" tabindex="103" id="cb_cookieuser_navbar" accesskey="c" type="checkbox">Remember Me?</label></td>
</tr>
<tr>
<td ><label for="navbar_password">Password</label></td>

<td><input style="font-size: 11px;" name="vb_login_password" size="10" accesskey="p" tabindex="102" type="password"></td>
<td><input value="Log in" tabindex="104" title="Enter your username and password in the boxes provided to login, or click the 'register' button to create a profile for yourself." accesskey="s" type="submit"></td>
</tr>
</tbody></table>
<input name="s" value="" type="hidden">
<input name="do" value="login" type="hidden">
<input name="vb_login_md5password" type="hidden">
<input name="vb_login_md5password_utf" type="hidden">
</form>
I tested it and it worked, but there is a problem.

When I'm logged out of my forum I go to my site (the page that I have the log in box on.)
I then log in through my site, and it redirects me to the forum page, logs me in and redirects me back to my site, just how it should.
I am logged into the forum then, but it doesn't show on my site that I'm logged in, it still shows the login form.

So, all we need to do is to tell the script that when the user is logged in, it must replace this:
https://vborg.vbsupport.ru/

with this:
https://vborg.vbsupport.ru/

Can you help? Please?

MrPHD 02-18-2008 07:34 PM

I´m test and tell you later.

Deidre 02-18-2008 07:42 PM

Okay, thanks ;)


All times are GMT. The time now is 06:48 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.01848 seconds
  • Memory Usage 1,741KB
  • 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)pagenav
  • (1)pagenav_curpage
  • (1)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