Jump to content

Invision


natimage

Recommended Posts

Maybe not the best forum...it's too late here for me to make that decision very well!! :) Anyway, I'm wondering if it is possible to change which invision power board page loads after login or registration.

 

I have a client who wants to start out just using the calendar feature. I'm sure later they will move into using the forums, but right now, it's just the calendar they want. Now, these aren't all the most computer literate people I've ever run across. So, in my effort to make it as easy as possible, I'd like to have the calendar page come up instead of the main IPB forums page.

 

Anyone know how to go about doing this???

Link to comment
Share on other sites

Tracy, I'd say you have to change the login page and make it redirect you to the calendar page instead of the "main" page.

 

I have never done it, so I don't know where you should look for it but I don't think it's very hard. Since IPB redirects you, then it's only a matter of changing where it redirects you to.

 

If it's with a PHP redirect, then you should look in the login code for something that looks like this

>header("location: index.php");

and change "index.php" into whatever you want.

On the other hand, if it's an HTML redirect (I don't think so), you should be looking for something that looks like this

><meta http-equiv="Refresh" content="5; URL=index.php">

and, once again, change "index.php" to the calendar URL.

Link to comment
Share on other sites

well...I'm not directly finding either of your suggestions. I have played with some things, but haven't gotten anywhere. The last thing I found was

 

><meta http-equiv='refresh' content='2; url={$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}$Url'>

which I tried changing to no avail. When I put the calendar.php into that syntax, or try to access the calendar.php page directly, I get this error:

Fatal error: Call to a member function on a non-object in /home/pioneers/public_html/invision/sources/calendar.php on line 50

 

Maybe some of this info. will help someone know what I should be looking for. I'm somewhat comfortable working with php, but trying to read the php in this program is a bit over my head.

 

Thanks for the help...I'll keep working on it!

Link to comment
Share on other sites

WOW...I got it to work. Now, there's this strange little thing happening during the re-direct time, you know, when you have the little box in the middle of the screen telling you that you are being logged in or re-directed, or whatever.

 

Up in the top, left corner the word calendar> is appearing. To check it out, you can login to THIS BOARD using:

 

username=testing

password=testing

 

Thanks for checking it out. Here is how I made the code work. In the skins_global.php file, I changed the http refresh on line 149 to

><meta http-equiv='refresh' content='2; url={$ibforums->base_url}&act=calendar'>{$ibforums->lang['tb_calendar']}>

Link to comment
Share on other sites

Well, looks like I'm a bit late to try and help you but you didn't seem to need my help anyway ;)

Glad you got it working :D

Thumbs Up

I wouldn't say that...you got me to looking for the right things! Just took a bit of guessing on my part since I felt like I was trying to read some foreign language!!! ;)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...