vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   mYvBindex v3.1 (https://vborg.vbsupport.ru/showthread.php?t=44691)

mv540 04-29-2003 06:52 PM

how do i make it so that when people log in, it takes them to the main portal page (ie: mysite.com/index.php) instead of directly into the forums? (ie: mysite.com/forums)

thanks in advance :glasses:

Tigga 04-29-2003 07:05 PM

It should already take them to the index page if you followed the instructions in the install file and made the modifications to your member.php file. ;)

mv540 04-29-2003 07:05 PM

i made the proper modifications as instructed, but it doesnt seem to be working correctly..where can i start looking for this redirecting problem?

thanks tigga..

Tigga 04-29-2003 07:07 PM

If you made that modification to member.php and uploaded the file then it will work as it's supposed to.

mv540 04-29-2003 07:10 PM

//header("Location: $url");

$url = str_replace("\"", "", $url);
eval("standardredirect(\"".gettemplate("redirect_l ogin")."\",\"\$url\");");
} else {
$bbuserinfo=getuserinfo($userid);
eval("standardredirect(\"".gettemplate("redirect_l ogin")."\",\"\$url\");");
}

does this look right?...should it be double like that?..looks like the code inputs twice... :bored: i just went over the proceedures to see if everything is correct in member.php...but im alittle confused about the code showing up twice here...

Tigga 04-29-2003 07:13 PM

Yes, that's the way it should look. It's not doing anything twice as there is an } else { statement before the last line.

mv540 04-29-2003 07:16 PM

i appreciate your help tigga, but what else can i look at cause it doesnt appear to be directing them to the portal after sign in..thanks

Tigga 04-29-2003 07:17 PM

If you'd like to PM me with the FTP info and url to your site I'll take a look and see what the problem is.

mv540 04-29-2003 07:18 PM

..as of for the second part for the member.php editing, does this look correct?

$session['sessionhash']=md5(uniqid(microtime()));
$session['dbsessionhash']=$session['sessionhash'];
$DB_site->query("INSERT INTO session (sessionhash,userid,host,useragent,lastactivity,st yleid) VALUES ('".addslashes($session['sessionhash'])."','0','".addslashes($session['host'])."','".addslashes($session['useragent'])."','".time()."','0')");
vbsetcookie("sessionhash",$session['sessionhash'],0);

eval("standardredirect(\"".gettemplate("error_cook ieclear")."\",\"\$url\");");

mv540 04-29-2003 07:18 PM

Quote:

Today at 09:17 PM Tigga said this in Post #1148
If you'd like to PM me with the FTP info and url to your site I'll take a look and see what the problem is.

will do :cheeky:


All times are GMT. The time now is 04: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.03057 seconds
  • Memory Usage 1,736KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (6)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete