Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 02-17-2008, 10:51 AM
Deidre Deidre is offline
 
Join Date: Jun 2007
Location: South Africa
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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!
Reply With Quote
  #2  
Old 02-17-2008, 10:56 AM
karlton87 karlton87 is offline
 
Join Date: Jul 2006
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

So if anyone knows this will help me aswell.
Reply With Quote
  #3  
Old 02-17-2008, 11:03 AM
Deidre Deidre is offline
 
Join Date: Jun 2007
Location: South Africa
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great, now I don't feel stupid that I couldn't get it to work
Reply With Quote
  #4  
Old 02-18-2008, 03:20 PM
Deidre Deidre is offline
 
Join Date: Jun 2007
Location: South Africa
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.)
Reply With Quote
  #5  
Old 02-18-2008, 06:42 PM
oBEAVISo's Avatar
oBEAVISo oBEAVISo is offline
 
Join Date: Feb 2008
Location: Galway
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 02-18-2008, 06:56 PM
Deidre Deidre is offline
 
Join Date: Jun 2007
Location: South Africa
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any programmers that will help us? Please! I'm begging you people!
Reply With Quote
  #7  
Old 02-18-2008, 07:02 PM
MrPHD's Avatar
MrPHD MrPHD is offline
 
Join Date: Feb 2006
Location: Portugal
Posts: 385
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi, what do exactly and what you want? Regards please put a screen here please.
Reply With Quote
  #8  
Old 02-18-2008, 07:29 PM
Deidre Deidre is offline
 
Join Date: Jun 2007
Location: South Africa
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

MrPHD

The login boxes:



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:


with this:


Can you help? Please?
Reply With Quote
  #9  
Old 02-18-2008, 07:34 PM
MrPHD's Avatar
MrPHD MrPHD is offline
 
Join Date: Feb 2006
Location: Portugal
Posts: 385
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I´m test and tell you later.
Reply With Quote
  #10  
Old 02-18-2008, 07:42 PM
Deidre Deidre is offline
 
Join Date: Jun 2007
Location: South Africa
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay, thanks
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:04 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.09070 seconds
  • Memory Usage 2,254KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete