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 04-23-2011, 10:22 AM
frupunch frupunch is offline
 
Join Date: Dec 2006
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Login on sidebar issue...

i created a quick member log in on my sidebar.


i use this code:

Code:
<form action="htp://xxxxxxxxxxx.com/login.php?do=login" method="post">
<input type="hidden" name="do" value="login" />
<input type="hidden" name="url" value="http://xxxxxxxxxxx" />
<input type="hidden" name="vb_login_md5password" />
<input type="hidden" name="vb_login_md5password_utf" />
<input type="hidden" name="s" value="1" />
<input type="hidden" name="cookieuser" value="1" id="cb_cookieuser" tabindex="1" />
<label>Username:<input name="vb_login_username" type="text" id="login" tabindex="1" class="bginput" accesskey="u"/></label>
<label>Password<input name="vb_login_password" type="password" id="password" tabindex="1" class="bginput" /></label>
<input name="submit" type="submit" id="submit" tabindex="1" value="Login" accesskey="s" class="button" />
</form>


it works and ended up like this:



but the thing is, once i logged in, the browser redirects me to my forum home page. i am logged in, but the sidebar login box still shows that i am not log in. but my navbar login on the top right shows that i am log in.

is there anyway i can do this right? i am a newbie, i really dont know what to do. i am working on this for days, but still i couldn't get it right. hope someone help me on this issue...


thanks in advance...
Reply With Quote
  #2  
Old 04-23-2011, 11:06 AM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The navbar template uses some code like:

Code:
<if condition="$show['member']">
 Show logged in member info
<else />
 Show log in box
</if>

You can look at in in the navbar template, it's near the beginning. Just scroll down a little unitl you see the "<if condition="$show['member']">"
Reply With Quote
  #3  
Old 04-23-2011, 11:23 AM
Tasking Mickey's Avatar
Tasking Mickey Tasking Mickey is offline
 
Join Date: Jun 2010
Location: United States
Posts: 148
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by frupunch View Post
i created a quick member log in on my sidebar.


i use this code:

Code:
<form action="htp://xxxxxxxxxxx.com/login.php?do=login" method="post">
<input type="hidden" name="do" value="login" />
<input type="hidden" name="url" value="http://xxxxxxxxxxx" />
<input type="hidden" name="vb_login_md5password" />
<input type="hidden" name="vb_login_md5password_utf" />
<input type="hidden" name="s" value="1" />
<input type="hidden" name="cookieuser" value="1" id="cb_cookieuser" tabindex="1" />
<label>Username:<input name="vb_login_username" type="text" id="login" tabindex="1" class="bginput" accesskey="u"/></label>
<label>Password<input name="vb_login_password" type="password" id="password" tabindex="1" class="bginput" /></label>
<input name="submit" type="submit" id="submit" tabindex="1" value="Login" accesskey="s" class="button" />
</form>


it works and ended up like this:



but the thing is, once i logged in, the browser redirects me to my forum home page. i am logged in, but the sidebar login box still shows that i am not log in. but my navbar login on the top right shows that i am log in.

is there anyway i can do this right? i am a newbie, i really dont know what to do. i am working on this for days, but still i couldn't get it right. hope someone help me on this issue...


thanks in advance...
Hmm, I think the problem it'self is in the code you provided, it does the action of logging you in, but it doesn't do the action of displaying your username.

The login form with vBulletin it'self displays the username, once logged in.
Reply With Quote
  #4  
Old 04-23-2011, 11:34 AM
frupunch frupunch is offline
 
Join Date: Dec 2006
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

so how do i do that? please???

hope someone could help me and give me the right codes...

thank you very much...
Reply With Quote
  #5  
Old 04-23-2011, 11:46 AM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by frupunch View Post
so how do i do that? please???


hope someone could help me and give me the right codes...


thank you very much...
I posted some code back in post #2. Also, if you look at the navbar template you can see exactly how it displays the logged in member info.
Reply With Quote
  #6  
Old 04-23-2011, 05:40 PM
frupunch frupunch is offline
 
Join Date: Dec 2006
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kh99 View Post
I posted some code back in post #2. Also, if you look at the navbar template you can see exactly how it displays the logged in member info.
thanks, i follow your instruction but still i got the same results....

any other codes or tricks?
Reply With Quote
  #7  
Old 04-23-2011, 07:37 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, I made a small mistake leaving out a '/' in the "else" tag in the code I posted, which I now fixed. Maybe that was causing the problem. Otherwise i don't know - maybe someone else does.
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 06:13 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.05542 seconds
  • Memory Usage 2,223KB
  • 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
  • (3)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)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