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-21-2001, 02:28 AM
Brian Brian is offline
 
Join Date: Nov 2001
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In v2 I cant seem to change the url that people are redirected to after registering. Can some one point me to the line(s) that need changed.

To explain further I want to send them to a differnt url then the default one they are sent to after they register.

Thanks

-Brian
Reply With Quote
  #2  
Old 07-22-2001, 09:25 AM
jvv jvv is offline
 
Join Date: Jan 2002
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm looking for the same thing. Also when members login. I want it to redirect them to the page they came from, not just the forum.
Reply With Quote
  #3  
Old 07-23-2001, 12:47 AM
Ruth Ruth is offline
 
Join Date: Oct 2001
Posts: 171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i'm looking for the same thing when users enter their username/pass they go to another URL not the index.php

thanks
Reply With Quote
  #4  
Old 07-26-2001, 04:00 PM
Brian Brian is offline
 
Join Date: Nov 2001
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am willing to pay some one a token fee via paypal to do this. It is just a matter of editing a few lines in member.php however I dont have the time to do it on v2, but did on v1.

I dont need anything pretty in the cp, just the lines and what to change code wize.

-Brian
Reply With Quote
  #5  
Old 07-26-2001, 04:13 PM
BradC
Guest
 
Posts: n/a
Default

Where are you wanting this page to link to.. where they came from.. the forums index page... ?

Just curious.. cause I will try to see if I can find the code to change for ya... don't need paid or anything.. just curious to see this myself
Reply With Quote
  #6  
Old 07-26-2001, 04:33 PM
Brian Brian is offline
 
Join Date: Nov 2001
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To an external url.

Here is what I did in v1

Code:
  if ($coppauser==1) {
    $action="coppaform";
  } else {
    if ($verifyemail==1) {

      eval("echo standardredirect(\$bbtitle,\"".gettemplate("error_registeremail")."\",\"http://www.linkhere.com/\");");

    } else {
      if ($moderatenewmembers==1) {
        eval("echo standarderror(\$bbtitle,\"".gettemplate("error_moderateuser")."\");");
      } else {
        eval("echo standardredirect(\$bbtitle,\"".gettemplate("redirect_registerthanks")."\",\"index.php\");");
      }
    }
  }
}
And just changed the redirect message.

Thanks for looking into this !!
Reply With Quote
  #7  
Old 07-26-2001, 05:46 PM
BradC
Guest
 
Posts: n/a
Default

At a quick glance at the register.php file.. here is what I see.. Well without posting the whole user if statement.. I will just add the part around where *I think* it needs changed.

PHP Code:
      if ($moderatenewmembers) {
        eval(
"standarderror(\"".gettemplate("error_moderateuser")."\");");
      } else {
        
$url str_replace("\""""$url);
        if (!
$url) {
          
$url "index.php?s=$session[sessionhash]";
        }
        eval(
"standardredirect(\"".gettemplate("redirect_registerthanks")."\",\"".iif(strpos($url,"register")>0,"index.php?s=$session[sessionhash]",$url)."\");");
      } 
see where it says : $url = "index.php?s=$session[sessionhash]";

I think in that if statement you can change that $url value to whatever you want.

$url = "http://www.somethingsomewhere.com";

or change the other values that have index.php on that page.

I could be wrong.. I will take a look at this here in a bit. Tell me what you think on this.
Reply With Quote
  #8  
Old 07-27-2001, 02:01 AM
Brian Brian is offline
 
Join Date: Nov 2001
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I was just wondering if anyone had a chance to check this out.

-Brian
Reply With Quote
  #9  
Old 07-27-2001, 02:06 AM
Brian Brian is offline
 
Join Date: Nov 2001
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

By the way for the person whom wanted it to redirect them to the page they came from they can simple use for a link javascript:history.go(-2) (replacing 2 with the number of pages it should take them back.

This is an easy way to do it but not the best way..

-Brian
Reply With Quote
  #10  
Old 07-27-2001, 12:44 PM
BradC
Guest
 
Posts: n/a
Default

I have not had a chance to try this out myself, I might this weekend.. but did you try out what I posted.. changing that part?
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 01:06 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.04243 seconds
  • Memory Usage 2,252KB
  • 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
  • (1)bbcode_code
  • (1)bbcode_php
  • (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
  • (7)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