Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Does anyone Know How to... Details »»
Does anyone Know How to...
Version: , by alexwriting alexwriting is offline
Developer Last Online: Sep 2002 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 03-10-2002 Last Update: Never Installs: 0
 
No support by the author.

Hellllp.... pleeeaaase....

This is like one of the last pieces of my puzzle... if anyone has the time, would really appreciate it...

I need to write a link to a log-in form that would redirect?

Thanks,

Alex

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 03-10-2002, 04:21 AM
TECK's Avatar
TECK TECK is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 4,182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

be more specific. what are you trying to do?
Reply With Quote
  #3  
Old 03-10-2002, 04:28 AM
alexwriting alexwriting is offline
 
Join Date: Feb 2002
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

WOW,

Thanks for replying. My forums don't require registration. Sometimes, people who have registered may want to post anonymously. So, I have used a link that allows people to log out and returns them back, so they can post under any name.

But, once they are logged out, as they continue to look around, they may want to reply to a post with their username. So, I'd like to have a link that takes them to a log-in form, and then redirects them back to the post they were at.

Thanks,

Alex
Reply With Quote
  #4  
Old 03-10-2002, 05:41 AM
TECK's Avatar
TECK TECK is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 4,182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

do this:

forum/global.php
1. find the code:
PHP Code:
$templatesused.=',pagenav,pagenav_curpage,pagenav_firstlink,pagenav_lastlink,pagenav_nextlink,pagenav_pagelink,pagenav_prevlink'
replace it with:
PHP Code:
$templatesused.=',pagenav,pagenav_curpage,pagenav_firstlink,pagenav_lastlink,pagenav_nextlink,pagenav_pagelink,pagenav_prevlink,forumhome_logoutcode,forumhome_logincode'
2. find the code:
PHP Code:
$header='';
$footer=''
above that, add:
PHP Code:
$logincode='';
if (
$bbuserinfo['userid']!=0) {
  eval(
"\$logincode = \"".gettemplate('forumhome_logoutcode')."\";");
} else {
  eval(
"\$logincode = \"".gettemplate('forumhome_logincode')."\";");

forum/member.php
1. find the code:
PHP Code:
    $url str_replace("\""""$url);
    eval(
"standardredirect(\"".gettemplate("redirect_login")."\",\"\$url\");"); 
replace it with:
PHP Code:
    $url $HTTP_REFERER;
    eval(
"standardredirect(\"".gettemplate("redirect_login")."\",\"\$url\");"); 
you are done with the code changes. now place [high]$logincode[/high] in your footer. when the user will login, it will be redirected to the exact same location.

that should do it.

PS. there is no need to say: "pleaseeeeeee helppppppp". people will help you here. just post your thread and be patient. some freaky guy(girl) will answer to you.

regards,
nakkid.
Reply With Quote
  #5  
Old 03-10-2002, 07:23 AM
alexwriting alexwriting is offline
 
Join Date: Feb 2002
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Dear nakkid,

Great, thanks so much. One question: how can I write a link to this now? Something like

"You are Anonymous. Click here to post with your Registered Username."

Thanks,

Alex
Reply With Quote
  #6  
Old 03-10-2002, 07:42 AM
TECK's Avatar
TECK TECK is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 4,182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

1. create 2 new templates called 'home_logoutcode' and 'home_logincode'.

2. in the code above, replace the 'forumhome_logoutcode' with 'home_logoutcode' and 'forumhome_logincode' with 'home_logincode'.

3. replace $logincode with $homelogincode

4. edit your template content the way you want.

btw, it doesnt make sense what you want to do. the login code is there, all you have to do is enter the username and password, when you are logged out. why do you want to add a link? when the user can enter his info right there? explain to me.

get inspired from the 'forumhome_logincode' with the code (for example) and edit it to say what ever you want.
Reply With Quote
  #7  
Old 03-10-2002, 08:04 AM
alexwriting alexwriting is offline
 
Join Date: Feb 2002
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Dear nakkid,

You are THE MAN! I agree, it doesn't make sense, but here's the problem:

if a registered user is at a public computer, he can enter a forum without having to log-in {all my forums allow registered & unregistered to post}. So, once he's in there, if he clicks to reply, it gives him a reply form with fields, the fields say, Username: "Unregistered", and Password:, with nothing nothing for the password.

If a registered user puts in his real username & password in these fields, it kicks him out, and tells him he doesn't have access to that page.

So, if you are a registered user, and you go into a forum without logging in, it won't take you username and password at the posting form. Why? I have no clue. But, you can try. I will pm you a reg. username & password. Go into any forum, except the second one.

I really wish it would work, because then people could go in and out of being anonymous easliy. So, this was the only workaround I could think of.

Thanks, thanks,

Alex
Reply With Quote
  #8  
Old 03-10-2002, 08:13 AM
TECK's Avatar
TECK TECK is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 4,182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

so? all he have to do is enter the name and pass. it's working perfectly. i tried 2 ways. first i posted as anonymous and it posted fine. then i replyed to the thread and entered this time the pass you gave me. it worked perfectly also. look here:
http://www.tealit.com/forum/showthre...=&threadid=196

so where is the prob?
Reply With Quote
  #9  
Old 03-10-2002, 08:25 AM
alexwriting alexwriting is offline
 
Join Date: Feb 2002
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

... Don't post anonymously first. Just go into a forum, click on a thread to reply to. Put in the reg username and password at the posting form. Please clear your cookies before you begin.

Thanks, thanks,

Alex
Reply With Quote
  #10  
Old 03-10-2002, 08:31 AM
TECK's Avatar
TECK TECK is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 4,182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

post again the forum url. i deleted the pm...
it's nothing wrong with your board. what browser you use? i hope that is not opera or netscrape.
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 10:46 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.04241 seconds
  • Memory Usage 2,304KB
  • Queries Executed 23 (?)
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
  • (6)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)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
  • (9)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