May 17 2012 11:48:42
Navigation
Last Seen Users
J_K_NIELSEN00:25:18
volt12300:53:32
darans00:53:49
Acert01:27:41
michi01:51:11
LukeWarm01:55:13
Dave9202:33:17
KasteR02:37:07
colber02:54:45
rubberdark04:01:46

Members: 25,040
Newest: Dave92
Downloads v7
Currently popular Downloads

FusionBoard 4 6351
Video Gallery 4524
Video Infusion 4019
Photoalbum Mass U... 3499
Professional Down... 3403
Avatar Studio 3338
XHTML mod for mod... 3186
Button panel 2703
60 Animated smileys 2610
VArcade 2.1 2532

Latest Downloads


Code Snippets v1.10 8
Video Infusion Pro 84
Who Is Where 16
Facebook Login/Register 62
Yolks Smiley Pack 56
SWTOR Recruiting Panel 25
NeoBlog Theme 28
Code Snippets 9
FAQ Panel 15
Download Plus Panel 32

Latest 100
Downloads v6
Currently popular Downloads

Banner System v2.0.4 2269
Video Gallery 1560
Extreme Theme Editor 1257
Fuzed Shoutbox 1066
Seoname.php 1016
Icon Package 2.0 879
Extended Profile ... 782
News.php 699
Tabbed welcome panel 646
EXTboard 583

Latest Downloads


Banner System v2.0.4 2269
Last comments 102
Language switcher panel 319
Admin Submission Panel 130
Admin private messag... 253
Google Sitemap Fast 144
ExtBoard 1.2 430
EXTboard 583
v6.01.18 - v6.01.19 74
v6.01.19 FULL 240

Latest 100
Latest Articles
Patch Re-captcha PHP...
A tour through the n...
Protect your Fusion ...
Change your database...
Admin Control Panel ...
How to Secure Your I...
Show Content by Defa...
v7 | Add social book...
v7 | Custom MySQL er...
How To: A PM after r...
v7 | SEO friendly UR...
v7 | SEO friendly UR...
Comments Advanced Vi...
Auto-redirect to the...
A tour through PHP-F...

View all articles
Auto-redirect to the page visited after login...
This is s nice way to make your users happy, redirecting them to the page they were viewing before logging in.
Coded, Tested and Provided by webadmin88

Open maincore.php and find

define("THEMES", BASEDIR."themes/");

Add this after it:

define("REDURL", $_SERVER['REQUEST_URI']);


Find this line:

$result = dbquery("SELECT * FROM ".$db_prefix."users WHERE user_name='$user_name' AND (user_password='".md5($user_pass)."' OR user_password='$user_pass')");

Add this after it:

$readurl = $_POST['redeurl'];


Find this line:

$cookie_value = $data['user_id'].".".$user_pass;

Replace with this line:

$cookie_value = $data['user_id'].".".$user_pass.".".$readurl;

Close and save the file.

********************

Replace infusions/user_info_panel/user_info_panel.php with the below version:

DOWNLOAD

********************

Replace setuser.php (in your root directory) with the below version:

DOWNLOAD

********************

Open your locale/YOURLANGUAGE/global.php and add this line at the end just before ?> :

$locale['199'] = "Please wait while we transfer you...<br><br>";

********************

END! ENJOY! ;)

If you wish you can change the last sentence into your language, as well as some english entries in the setuser.php.

Regards,
webadmin88
Comments
#1dothemath on July 20 2008 16:52:48
dothemath
I trust this article is not finished, and it should be marked "not finished". :(

After debugging it would be a very nice addition. Big Smile
#2webadmin88 on July 23 2008 05:38:47
webadmin88
Believe me dothemath I finished it and am using it in my website. I started creating it but somehow it didn't show the whole thing I will try to continue it if Diemux give me the right Wink
#3webadmin88 on July 23 2008 05:45:34
webadmin88
Here is the continuation, Diemux will upload it sometime when he sees it here:

in the infusions/user_info_panel/user_info_panel.php find this line:
Code
<input type='checkbox' name='remember_me' value='y' title='".$locale['063']."' style='vertical-align:middle;'>




ADD THIS LINE AFTER IT:
Code
<input type='hidden' name='redeurl' value='".REDURL."'>




Save and upload the file.

Now open again setuser.php and find all $locale['197'] entries. Replace 197 with 199.

Go to your locale/$$$$/global.php

Find this line:
Code
$locale['198'] = "<b>Warning:</b> setup.php detected, please delete it immediately";




ADD THIS AFTER:
Code
$locale['199'] = "Please wait while we transfer you...<br><br>
[ <a href='".$readurl."'>Or click here if you do not wish to wait</a> ]";






THAT IS IT. YOU HAVE IT WORKING! :) THE ONLY PROBLEM IS THAT THE LINK THAT IS SHOWN ALWAYS LEADS TO THE INDEX.PHP PAGE. HOWEVER IF YOU WAIT IT WILL LEAD TO THE CURRENTLY VISITED PAGE. I AM DOING SOME DEBUGGING AND I WILL SOON GET IT DISPLAYING CORRECTLY.


REGARDS,
webadmin88
#4webadmin88 on July 23 2008 16:58:18
webadmin88
NOW I'VE MADE THE DEBUGGING AND THIS IS THE FINAL PART:

If you have modified your locale/$$$/global.php open it and find the lines with locale['199']. Then make them look like:

Code
$locale['199'] = "Please wait while we transfer you...<br><br>";



If you have not modified it, just copy the line above and paste it.

Open setuser.php

If you have modified it find all lines like
Code
echo $locale['199']."<br><br>




Replace with:
Code
echo $locale['199']."[ <a href='".$readurl."'>Or click here if you do not wish to wait</a> ]<br><br>





You can change the text in your own language if you want.

P.S. If you Diemux update the package you can miss the double and the mis-steps, so that it is sophisticated :) I will submit the article for the comment paging s00n.

Regards,
WebAdmin88
#5Diemux on July 24 2008 03:59:25
Diemux
Ok, updated this tutorial with the one you submitted. Thank you very much!
#6wadday on September 08 2008 17:17:54
wadday
does it work for v7
#7webadmin88 on September 24 2008 05:52:20
webadmin88
Well I am not familiar with V7's way of logging in, I heard it was using sessions as well? This particular tweak is ONLY limited for the V6, since the files and functions which I changed and tested were based on this version Smile
Right now I don't have a lot of time to do it again for V7, but you can still use it to create yours and submit it here Wink
#8ytterx on November 30 2008 20:22:16
ytterx
srry no sessions for V7
Post Comment
Please Login to Post a Comment.
Ratings
Rating is available to Members only.

Please login or register to vote.

Awesome! Awesome! 67% [2 Votes]
Very Good Very Good 33% [1 Vote]
Good Good 0% [No Votes]
Average Average 0% [No Votes]
Poor Poor 0% [No Votes]
Login
Username

Password



Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
Our Coders
Netrix
Smokeman
Elyn @ MrRusty
Diemux
Donate
Shoutbox
You must login to post a message.

17/05/2012 00:59
spam cleaned up

16/05/2012 05:55
I deleted forum posts but I don't have user banning or shoutbox editing permission or I would take care of those too...

15/05/2012 02:33
andredrake , Silvie Spam!! Confused perde

03/05/2012 22:00
El-nino.ugu.pl <---- Fanpage Fernando Torres PL / ENG

03/05/2012 21:34
Hi, everybody, it's been a while, since I was here...

01/05/2012 06:13
Bye!hi

28/04/2012 08:35
tomeck there is one in the downloads here check it out

23/04/2012 07:03
This is the theme of the site joga the theme of perde perde

22/04/2012 16:12
Hello, i need facebook login for fusion 7.01.5 can you help me ? Thumb Up!

21/04/2012 11:05
How i can disable the right click option in all pages over the site?

Member Poll
Which version of PHP-Fusion are you using?









You must login to vote.
Advertiser
One-click Translation
Translate This Site

Online Stats
Guests online: 5
Members online:
no members online


registered members: 25040
newest member: Dave92

user today: 3661
user online: 5
Max. onlinerecord: 86
Max. per day: 32490
user yesterday: 4992
user month: 137490
Entire users: 3839373

last 24h:
























In memoriam

Nick Jones
1973-2011
Render time: 1.80 seconds - 89 Queries 17,998,726 unique visits