Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 07-01-2005, 06:12 PM
ex-machina ex-machina is offline
 
Join Date: Jun 2005
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Seperate Log In Page within vB?

Hi,

This seems like it could be a really simple hack, but I'm stumped as to how to do it myself since I don't know PHP or vB very well and I'm surprised there isn't one already.

I've had a pretty thorough search, but unless I'm missing something...

I have 3.0.7 and I'm looking to install a seperate log in page that'll look similar to the permission denied page but actually allow users just to log into the forums and then redirects them back to wherever they where when they clicked the Log In link.

I know there's a log in box at the top of all forum pages, but I don't want to use that - I want to integrate the forums over the site and let them handle user registration and thus encourage users entering competitions and the like to post on the forums. So the register link is at the moment nothing more than a register link, but the log in is slightly harder because there's no page to link to. login.php just parses the form, it doesn't have its own.

Any ideas?
Reply With Quote
  #2  
Old 07-01-2005, 06:35 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is a FAQ and is being asked over and over and over again

HTML Code:
<form action="http://www.yoursite.com/forums/login.php" method="post" onsubmit="md5hash(vb_login_password,vb_login_md5password,vb_login_md5password_utf)">
<script type="text/javascript" src="http://www.yoursite.com/forums/clientscript/vbulletin_md5.js"></script>
Username: <input type="text" name="vb_login_username" size="10" accesskey="u" tabindex="1" value="User Name" onfocus="if (this.value == 'User Name') this.value = '';" /><br />
<label for="cb_cookieuser"><input type="checkbox" name="cookieuser" value="1" tabindex="3" id="cb_cookieuser" accesskey="c" checked="checked" />Remember Me?</label><br />
Password: <input type="password" class="button" name="vb_login_password" size="10" accesskey="p" tabindex="2" />
<input type="submit" class="button" value="Log in" tabindex="4" title="Enter your username and password in the boxes provided to login" accesskey="s" />
<input type="hidden" name="do" value="login" />		
<input type="hidden" name="vb_login_md5password" />
<input type="hidden" name="vb_login_md5password_utf" />
<input type="hidden" name="url" value="http://www.foobar.com" />
</form>
Replace http://www.foobar.com with whatever URL you want to redirect to.
Reply With Quote
  #3  
Old 07-02-2005, 10:53 AM
ex-machina ex-machina is offline
 
Join Date: Jun 2005
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wow it's that easy? I guess I'd been searching a more complicated solution...

Now to figure out how to put it into a generic vBulletin page! Thanks so much.
Reply With Quote
  #4  
Old 07-28-2005, 09:55 AM
10sion 10sion is offline
 
Join Date: Jul 2005
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how do i get rid of this: POST requests from foreign hosts are not allowed.
Since i have the site and the forum on different domains but both are on the same server.
Reply With Quote
  #5  
Old 09-01-2005, 08:33 PM
Dys Dys is offline
 
Join Date: Jul 2004
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by 10sion
how do i get rid of this: POST requests from foreign hosts are not allowed.
Since i have the site and the forum on different domains but both are on the same server.
I get the same error, but not from all that use the login

POST requests from foreign hosts are not allowed

Any answers on how to fix this?
Reply With Quote
  #6  
Old 09-01-2005, 09:04 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, put the other Hosts on the Whitelist.
Reply With Quote
  #7  
Old 09-02-2005, 06:32 PM
Dys Dys is offline
 
Join Date: Jul 2004
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KirbyDE
Yes, put the other Hosts on the Whitelist.
Hate to sound stupid here... but what is it you consider a whitelist?

I see nothing like that in the code above.
Reply With Quote
  #8  
Old 04-12-2006, 06:38 PM
MariaCM1 MariaCM1 is offline
 
Join Date: Apr 2006
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm looking for a logout link complementary to this script.

Can anyone help, I'm stuck!
Reply With Quote
  #9  
Old 09-26-2008, 04:02 PM
Mr. Burns Mr. Burns is offline
 
Join Date: Mar 2007
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have made a separate homepage and added the form coding above. When I click login it brings me to the mainpage of the forum but has not logged me in, what have i done wrong?

--------------- Added [DATE]1222450163[/DATE] at [TIME]1222450163[/TIME] ---------------

The coding from this thread works great: https://vborg.vbsupport.ru/showthread.php?t=107292
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 09:49 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.04250 seconds
  • Memory Usage 2,245KB
  • Queries Executed 13 (?)
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
  • (1)bbcode_html
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)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_postinfo_query
  • fetch_postinfo
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete