Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

Thanks...and a question

Quote Reply
Thanks...and a question
First let me thank Jason and Alex for helping me get my forum back up and running.

If your web services are hosted, make damn sure they actually do the back-ups they claim to do. I found out the hard way. Of course if they're lying to you, not much you can do but hold your breath. After about 2 months of some really good growth for my forum, the SQL server flamed out and the db was "not recoverable". I had my own DTS export, but it was over 45 days old. In that period we had gone from 100 subscribers to nearly 400. The hit was fatal for the momentum we had started to build.

That disaster was followed by numerous configuration problems and I was starting think either I or my copy of Gforums was cursed Tongue. This week Jason resolved the last of the issues and after two months I'm finally ready to relaunch our forum. <whew!>

Well this ran longer than I thought, I'll append my question.
Quote Reply
...and the question In reply to
On log-out, I would like to redirect users to a specific URL (specifically my main site page). How could this best be done?

Could "do=logout;" be modified?

Also, any suggestions on improving look and feel would be greatly appreciated.

http://www.heavybombers.com/forums/gforum.cgi

For instance, has somebody done something nice with the legends that they would like to share?

-Thanks for your patience
Quote Reply
Re: [HeavyBombers] ...and the question In reply to
>>
On log-out, I would like to redirect users to a specific URL (specifically my main site page). How could this best be done?

Could "do=logout;" be modified?
<<

I think you should just be able to edit:

admin/GForum/User.pm .....sub logout()

The last line of the routine is:

GForum::do_func('login');

Just replace it with:

$IN->redirect('http://www.yoururl.com');
Quote Reply
Re: [Paul] ...and the question In reply to
Paul,

That got me this:

' in 'e:/..../forums/admin/templates/default/../common' or any inheritance directories at e:/..../forums/admin/GT/Template.pm line 571. Set-Cookie: gforum_1006370746_session=0; expires=Thu, 05-Apr-2001 20:49:36 GMT; path=/

A fatal error has occurred:
GT::Template::Parser (2844): Unable to locate template file 'Location: http://www.heavybombers.comContent-type: text/html' in 'e:/..../forums/admin/templates/default/../common' or any inheritance directories at e:/..../forums/admin/GT/Template.pm line 571.




Please enable debugging in setup for more details.

So I reverted back. No harm no foul.

Last edited by:

HeavyBombers: Apr 5, 2002, 12:48 PM
Quote Reply
Re: [HeavyBombers] ...and the question In reply to
Ewww wonder why a redirect is calling the parser.

Sorry about that. I better let Alex/Jason answer. Guess its not as simple as it looked.

Last edited by:

Paul: Apr 5, 2002, 12:49 PM
Quote Reply
Re: [HeavyBombers] ...and the question In reply to
Heh, try replacing:

GForum::do_func('login');

with:

print $IN->redirect( $url );
return;

Must have that return there.

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] ...and the question In reply to
Hmmmm, can one of you translate that into 'dumb guy' for me?

print $IN->redirect( $url );
return;

Is "$url" where I put my http:// ?

-Thanks
Quote Reply
Re: [HeavyBombers] ...and the question In reply to
In Reply To:
Is "$url" where I put my http:// ?
yep

Adrian

Last edited by:

brewt: Apr 5, 2002, 6:26 PM
Quote Reply
Re: [brewt] ...and the question In reply to
Thanks, worked like a charm. Those quotes around the URL are important for anybody else's future reference.

print $IN->redirect( http://www.yourwebsite.com );
return;

This will be handy feature. People who surf into the forum sometimes forget about all the resources of the larger site above it. Forcing them to the main URL on logout will be a great reminder.

-Scott
Quote Reply
Re: [Alex] ...and the question In reply to
In Reply To:
Heh, try replacing:

GForum::do_func('login');

with:

print $IN->redirect( $url );
return;

So this is something I can't do without touching the code? What happens when upgrading?
Lauri
Quote Reply
Re: [lpa] ...and the question In reply to
I guess to do it "neatly", you would have to make a plugin, setting a POST hook on do_logout, and redirect in this way.

Not tested...

Ivan
-----
Iyengar Yoga Resources / GT Plugins