php forum
php mysql forum
php mysql smarty
 
Topic Options
#44794 - 02/09/04 08:29 PM Redirect after change of profile.
brihan Offline
Junior Member

Registered: 08/23/00
Posts: 3
Loc: San Clemente, CA USA
Hi,

I had tried the login.cgi mod on my 5.45c board and it worked OK but it really messed up the "New Message" icons. My members couldn't tell what they had already read.

I want to try going about this in a slightly different way that will help me with a second problem which is having members keep their e-mail address up to date.

What I want to do is have them log into the board through the "Profile".
http://inspectionnews.com/cgi-bin/ubb-cgi/ubbmisc.cgi?action=editbio

This way it will set their cookie (that takes care of one problem) and they will have to review their profile and hopefully will keep it up to date (that take care of the second problem.

Now here is my question/request for help.

After they click the "Submit" button in the profile I would like to redirect them directly to the forum summary page
http://inspectionnews.com/cgi-bin/ubb-cgi/Ultimate.cgi?action=intro&BypassCookie=true
rather than the current page which confirms the update and gives them a choice of where to go. This will remove one step/page to get on to the board. This is important because I am already making them jump through a hoop.

If you know how to handle this redirect please let me know.

Thank you for any help you can provide.

And before the question is asked, I have not updated because I have many hacks on the board and it works very well for me.

Thank you,

Brian

Top
#44795 - 02/09/04 10:16 PM Re: Redirect after change of profile.
Charles Capps Offline
Admin Emeritus
Resident Code Hacker

Registered: 01/09/00
Posts: 5438
Loc: Lynnwood, WA
You really, really need to upgrade. 5.45c is over four years old, and many stability and security improvements have been made since then, not to mention features. Most of the things that you've hacked in (at first glance) are stock features now...

There have been a grand total of seven active topics in this forum in the past year. The 5-series is dead. It's REALLY time to move on. smile

Now, as to address your problem....

It's a tough one. The cookies are set using javascript in the 5-series, so setting the login cookie during a redirect isn't gonna be too easy.

My first thought is using another actual Javascript to redirect the profile edit confirmation screen to Ultimate.cgi... though they'd still see the confirmation page for a bit.

Oh, and if this really is their first login, you'll want them to redirect to Ultimate.cgi, without the BypassCookie bit. BypassCookie ensures that their new post indicators aren't updated...
_________________________
UBB.classic: Love it or hate it, it was mine.

Top


Top Posters Last 30 Days
AllenAyres 84
Gizmo 28
Zarzal 21
sirdude 19
blaaskaak 13
willing 7
swebs 6
Who's Online
2 Registered (AllenAyres, mrx), 35 Guests and 12 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Team UBBDev Rides Again!
by AllenAyres
07/04/08 10:56 PM
[7.3.x] ubb.links
by AllenAyres
07/03/08 06:15 PM
Changing currency for subscriptions?
by AllenAyres
07/03/08 01:15 PM
Protect users emails
by AllenAyres
07/03/08 11:36 AM
VPS and Newbies
by Gizmo
07/02/08 09:08 PM
Drupal / UBB integration module for Drupal
by blaaskaak
06/30/08 01:52 PM
[7.3.x] Scheduled board close for backup
by AllenAyres
06/30/08 12:51 PM
New Mods
Protect users emails
by Basil Fawlty
06/29/08 08:44 AM
[7.3.x] Scheduled board close for backup
by blaaskaak
06/26/08 04:01 AM
[7.3+] CustomTag - Audo Embedding
by Gizmo
06/24/08 07:52 PM
[7.3.x] ubb.links
by AllenAyres
06/20/08 11:50 PM
[7.3] Dissallow quotes more then 3 levels deep
by blaaskaak
06/09/08 09:01 AM
Newest Members
ryzilla, M4D, Jer, Kanigo2, Bubba
13302 Registered Users

 

 

 
fusionbb message board php hacks