Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Member Redirect

Asked Modified Viewed 3,818 times
R
radiofreebcj
R
  • Member, joined since
  • Contributed 73 posts on the community forums.
  • Started 11 threads in the forums
  • Started this discussions
asked
Member

I have my site opening to a custom page right now, but when a user logs into the site, I'd like to be able to redirect them automatically to the forum/index page. Is this possible?
0 replies

19 posts

H
helmuth
H
Danish translator of PHP-Fusion helmuth@php-fusion.dk
-----------------------------------------
All people are born alike - except Republicans and Democrats. (Groucho Marx)
Listen to the music... https://soundcloud.com/helmuth-mikkel...mikkelsen/
  • Senior Member, joined since
  • Contributed 706 posts on the community forums.
  • Started 219 threads in the forums
  • Answered 1 question
answered
Senior Member

you do that in

Quote

admin page --> system admin --> main settings
0 replies
R
radiofreebcj
R
  • Member, joined since
  • Contributed 73 posts on the community forums.
  • Started 11 threads in the forums
  • Started this discussions
answered
Member

but i want the main page to still be my custom page UNTIL people log in.
0 replies
R
radiofreebcj
R
  • Member, joined since
  • Contributed 73 posts on the community forums.
  • Started 11 threads in the forums
  • Started this discussions
answered
Member

so, i guess i should have been more specific.
0 replies
R
Reflectoman
R
------------------------------------------------
Adnan Ahmed Online
File Hosting | Image Hosting | Free SMS
  • Member, joined since
  • Contributed 176 posts on the community forums.
  • Started 9 threads in the forums
answered
Member

back up everything, and then try this ...

in index.php, u will find (shouldn't be that hard to find pfft)

Quote

redirect($settings['opening_page']);


replace that with,

Quote

if (iMEMBER) {fallback('".BASEDIR."/forum/'wink;}
else {redirect($settings['opening_page']);}


see if that does the trick.
Edited by Reflectoman on 09-02-2006 05:55,
0 replies
R
radiofreebcj
R
  • Member, joined since
  • Contributed 73 posts on the community forums.
  • Started 11 threads in the forums
  • Started this discussions
answered
Member

Thanks. It actually didn't do the trick, but it got me close enough that this did:

Quote

if (iMEMBER) {fallback('forum/index.php'wink;}
else {redirect($settings['opening_page']);}


After I changed the file, I just had to adjust my 'home' link to show the custom page.
Edited by radiofreebcj on 09-02-2006 18:36,
0 replies
R
Reflectoman
R
------------------------------------------------
Adnan Ahmed Online
File Hosting | Image Hosting | Free SMS
  • Member, joined since
  • Contributed 176 posts on the community forums.
  • Started 9 threads in the forums
answered
Member

:D
0 replies
— 7 months later —
R
radiofreebcj
R
  • Member, joined since
  • Contributed 73 posts on the community forums.
  • Started 11 threads in the forums
  • Started this discussions
answered
Member

Now...how would you change this so it would redirect to the member's profile page? I tried it with profile.php, but it's not working.
0 replies
S
Sbhedges
S
  • Member, joined since
  • Contributed 145 posts on the community forums.
  • Started 7 threads in the forums
answered
Member

Thats not what you asked in the first post. See what I said on your User Info Panel post
0 replies
R
radiofreebcj
R
  • Member, joined since
  • Contributed 73 posts on the community forums.
  • Started 11 threads in the forums
  • Started this discussions
answered
Member

I'm looking for both...I would like to have two different questions answered.
0 replies
S
Sbhedges
S
  • Member, joined since
  • Contributed 145 posts on the community forums.
  • Started 7 threads in the forums
answered
Member

try changing ['open_page'] to ['user_profile']
0 replies
R
radiofreebcj
R
  • Member, joined since
  • Contributed 73 posts on the community forums.
  • Started 11 threads in the forums
  • Started this discussions
answered
Member

Nope, that didn't work. Any other ideas? There must be a solution to this.
0 replies
R
radiofreebcj
R
  • Member, joined since
  • Contributed 73 posts on the community forums.
  • Started 11 threads in the forums
  • Started this discussions
answered
Member

I now know that this link: <a href='".BASEDIR."profile.php?lookup=".$userdata['user_id']."'>Your Profile</a> will give me a link to my profile from the user panel, or navigation panel, but how do I get this into my index.php file, so it will redirect me there when I login?
0 replies
R
radiofreebcj
R
  • Member, joined since
  • Contributed 73 posts on the community forums.
  • Started 11 threads in the forums
  • Started this discussions
answered
Member

anyone?
0 replies
R
radiofreebcj
R
  • Member, joined since
  • Contributed 73 posts on the community forums.
  • Started 11 threads in the forums
  • Started this discussions
answered
Member

I have my site opening to a custom page right now, but when a user logs into the site, I'd like to be able to redirect them automatically to their member profile page. Is this possible?
0 replies
R
radiofreebcj
R
  • Member, joined since
  • Contributed 73 posts on the community forums.
  • Started 11 threads in the forums
  • Started this discussions
answered
Member

This can't be a difficult one. Is there anyone who can please help me? I'm tired of bumping this post. Someone must be able to help me.
0 replies
B
blitzkrieg07
B
  • Member, joined since
  • Contributed 89 posts on the community forums.
  • Started 23 threads in the forums
answered
Member

Go to adin control panel>system admin>main settings. put in the page you want to appear when a user gets on to your site. if for instance the page that the user will see will be ummm *makes up somethin* index2.php, then put that in main settings instead of news.php. If you want users to get to your site, see the custom page, then redirect, then you have to use a redirection code. Look up redirection codes in google. A redirection code will redirect a user from one page to another.
0 replies
F
Falk
F
Falk 131
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 11 questions
answered
Super Admin

Edit index.php, replace:
redirect($settings['opening_page']);


With:
if (iMEMBER) {
   redirect(BASEDIR."profile.php?lookup=".$userdata['user_id']);
} else {
   redirect($settings['opening_page']);
}


You should set Opening Page to viewpage.php?page_id=x (x being the page_id number).
0 replies
R
radiofreebcj
R
  • Member, joined since
  • Contributed 73 posts on the community forums.
  • Started 11 threads in the forums
  • Started this discussions
answered
Member

Thanks Nick. I'l try that when I get to my computer.
0 replies
R
radiofreebcj
R
  • Member, joined since
  • Contributed 73 posts on the community forums.
  • Started 11 threads in the forums
  • Started this discussions
answered
Member

That works just fine. Thank you so much. It redirects right to the profile page when someone logs in.
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 19 posts
  • Votes 0 votes
  • Topic users 6 members

0 participants

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet