Would it be okay if it just went to the efiction front page and not necessarily the exact efiction page you logged in from?
A. W. G. Coleman
Home of the Fantasy/Adventure Series "Quest of the Seal Bearers"
Fanfiction, fanart, contests, prizes!
I don't know about confuzed, but that would work for me! I've tried editing the functions in ssi.php as they say to do on the smf forums, but that just doesn't seem to work. I think I read somewhere over there that it's broken. If you have a way to do this then please share?
Would it be okay if it just went to the efiction front page and not necessarily the exact efiction page you logged in from?
yeah that would be great, so long as it only redirects people to efiction if they came from efiction and not everyone who logs into the forum π
(I don't think SSI is broken as I have it on other parts of my site but I cant get it to work with efiction, though what Olandir posted for the header.php *did* work except for my TP problem)
Sorry, I wasn't clear. π³ I didn't mean that ssi.php was broken, just that the redirect function was broken. And then, I'm not sure about that. I just seem to remember reading one post on the subject where one of the smf staff said something about another function that was making it not work.
After reading so many threads, it all starts to blur together.
Well that sort of change is fairly simple
I just tried this on my forum so I'm giving this to you exactly as I just did it 5 minutes ago π
Go to your get_session_vars.php
Right at the top underneath
if(!defined("_CHARSET")) exit( );
add this line
$_SESSION['login_url'] = " http://yourwebsite/yourefictionpath";
for anyone who has used my "force theme" code this procedure should feel familiar :).
obviously replace the login url with the path to your efiction site.
Now this works for me because I have an SMF login box present in my efiction site... not 100% sure if it will work if you are using efictions built in login box, so try it and see, ok? If it doesn't work, we''ll try something else.
A. W. G. Coleman
Home of the Fantasy/Adventure Series "Quest of the Seal Bearers"
Fanfiction, fanart, contests, prizes!
no sorry, it still leaves me at the forum π
The changes to the header that you gave on page 1, is the way to go I think but for me, I cant use that because of TP. If you could do the same thing only instead of displaying the whole forum header, just display the login/logout box then I think that might work. I was trying various ways of setting that up but none of them worked (but then I was just guessing) For me also, I wanted to display the smf shoutbox somewhere on efiction that way too, but again, it was a bit hit and miss.
I think I'll need to see your site at least. I mean, I'm not sure it will help but it will be a start to see what is going on at your site from a user standpoint. What's the url?
A. W. G. Coleman
Home of the Fantasy/Adventure Series "Quest of the Seal Bearers"
Fanfiction, fanart, contests, prizes!
I have PMed it to you - thanks
Hi Olandir,
I have also been trying to figure out how to redirect it back to efiction after logging in as it goes to the forum page. I tried what you said above but it didn't work.
I have asked in the SMF, and efiction forums but no one responds :-(, could you please please tell me if you figure it out so i can get it fixed - at the moment it is driving me crazy having to click back to efiction everytime.
Thanks!
kylieh did you try the alterations on page one for the header.php? as that does work but not for me as I have Tiny Portal installed. That would do the trick for you and give you the forum header at the top of efiction. Have a look at Olandir's efiction and you will see what it does. π
Hi confuzed,
I was going to try it, but i didn't like the idea of it giving you the forum header because my efiction site looks a lot better than the forum does.
But it seems that I may have no choice - no one seems to be able to figure this one out. I might change the look of the forum a little and then give it a try. π
Thanks for responding - have been waiting 5 days for someone to respond in SMF. π₯
yeah I see that a lot with efiction questions over there, I dont know why.
Olandir is working on something as I have Tiny portal installed and the header idea doesnt work for me. But it does work if you dont use Tiny portal.
All it will display is the stuff at the top of the forum down as far as the navigation bar, it wont display any of the rest of the content. Are you using the smf default theme? If so, then maybe just make another copy of it and change the colours to match your efiction theme, then the smf header will blend in better π
Based on my work with the old mod the redirect seems to work sometimes, depending on your server configuration. It always worked on my old setup, but others using the same mod it would not work.
Unfortunately I never got a chance to really hunt down the problem, except that it seems to be an issue with SSI.php and how it handles the variable.
ok, I have been playing around with the SSI today and bearing in mind my coding knowledge is very limited,and I offer no guarantees,and this is a test!, this seems to work for me:
at the top of the header.php file, before the <?php
just to test the ssi functions, I put the following code:
<?php require("/home/******/public_html/forum/SSI.php");
ssi_welcome();
ssi_whosOnline();
ssi_login();
ssi_logout();
?>
this gives me the smf forum welcome (hello guest, or hello confused you have 23 messages)
shows me who is online in the forum
shows me the login box if I am not logged in
and shows me the logout text link if I am logged in
and then after
// To read the license please visit http://www.gnu.org/copyleft/gpl.html
// ----------------------------------------------------------------------
I put part of the code that Olandir gave on page 1 here:
// Theme we're going to use
$ssi_theme = 9;
// Enable GZip compression (saves bandwidth)
$ssi_gzip = true;
global $inefiction;
$inefiction = true;
** theme is whatever your theme id is
Now this looks a little ugly and a little slow to load but what it does is:
if I log in using that login box, it logs me in ON THE EFICTION PAGE and doesnt take me to the forum! If I logout using the logout link, then it logs me out and takes me to the forum.
I think it needs some work and it could be made prettier and maybe faster to load (?) but there is some progress in that it is not redirecting me to the forum when I log in. I tried it in Firefox, opera and IE7 and they all worked. It does give you a white page when you are changing pages, just a quick flash, I dont know why, and I don't know what will happen if I take it off either lol. So I am testing it for now.
It would be nice to be able to put this elsewhere than at the very top of the page, but I don't know how to do that in efiction π
Or if it could be put into a block maybe and displayed on the left hand side? I know how to put ssi in a block on other software but not on efiction.
anyway its a start...
Hi confuzed,
I tried doing what you said with the login box at the top, but when i log in using that box it still took me to the forum. π₯
I'm now going to try the other idea about the header and see if that works.
Thanks
** UPDATE **
Ok, I just tried the header - got the header working on the efiction page, it was above the efiction header no errors etc. BUT every time i tried to login using the login in the SMF header it kept saying incorrect password, i tried a couple of different accounts and i know i had the right password but it kept saying it was wrong.
Would you have any other ideas confuzed? ....olandir?.... anyone? Please pleeeeease! π₯ π₯
