March 11 2010 22:36:10
Navigation
Last Seen Users
Kevin2009< 5 mins
mafiotabg< 5 mins
Nemo_O00:06:31
MasteR_SVK00:13:58
afoster00:20:16
Silentneeb00:21:39
klopdd00:22:28
DJ-SKY00:23:31
Lukass44500:24:19
ST6600:32:42

Members: 13,490
Newest: weaser
Blogs
Diemux
» 18-09-2009 - Say ...
Diemux
» 10-07-2009 - Will...
Diemux
» 24-06-2009 - Blog...
elyn
» Elyn + Streamyx (...
Diemux
» 19-05-2009 - Thin...
Diemux
» 15-05-2009 - Week...
Diemux
» 13-05-2009 - Comp...
elyn
» Number 1925
Diemux
» Number One
Things to Do
Latest Articles
Protect your Fusion ...
Change your database...
Handling MySQL Datab...
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...
Upgrading to PHP-Fus...

View all articles
Downloads v7
Currently popular Downloads

FusionBoard 4 3160
Video Gallery 2271
Professional Down... 2231
Photoalbum Mass U... 2053
Avatar Studio 1995
Extended Profile 1687
VArcade 2.1 1582
HighSlide Gallery... 1559
XHTML mod for mod... 1443
Button panel 1439

Latest Downloads


User Info [Remade] 272
BBcode: AVI 6
Pimped PHP-Fusion 4
XHTML mod for modern... 1443
Banner Rotater 865
Who's Where Panel 733
VU Tab Panel 382
Viewlog Script 186
Usergroup Management 658
Unauthenicated User 185

Latest 100
Downloads v6
Currently popular Downloads

Banner System v2.0.4 1412
Video Gallery 1064
Extreme Theme Editor 815
Fuzed Shoutbox 705
Seoname.php 664
Icon Package 2.0 651
Extended Profile ... 610
EXTboard 542
News.php 541
Tabbed welcome panel 489

Latest Downloads


Google Sitemap Fast 4
ExtBoard 1.2 366
EXTboard 542
v6.01.18 - v6.01.19 20
v6.01.19 FULL 54
Birthday 88
Moneybookers 32
User info 74
Link to us 245
jNews.php 312

Latest 100
Provider
PHPfusion-mods.net is hosted at:

110MB
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 21 2008 06: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 19: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 19: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 24 2008 06: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 17:59:25
Diemux
Ok, updated this tutorial with the one you submitted. Thank you very much!
#6wadday on September 09 2008 07:17:54
wadday
does it work for v7
#7webadmin88 on September 24 2008 19: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 December 01 2008 12:22:16
ytterx
srry no sessions for V7
#9elyn on December 21 2008 17:02:47
elyn
i mean really
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
Rizald 'Elyn' Maxwell
Diemux
Netrix
Donate
Shoutbox
You must login to post a message.

11/03/2010 16:55
New spammer: deal202 That really suxx!

11/03/2010 13:57
Support question? Post in the forums!

11/03/2010 02:24
@Diemux: Important PM for you.

10/03/2010 20:10
Cool, added the download again Smile. Also cleaned inbox Smile

10/03/2010 13:41
Ohh - your inbox is full btw!

10/03/2010 13:40
@Diemux: I've re-coded the naptzer_user_info - from the "z-dump". You can DL it from here: www.dvdside.dk/do.
..r_info.zip

10/03/2010 00:07
So if you have some spare time Smile

10/03/2010 00:07
Introduced the "z dumb" category in v7 downloads. There reside the infusions who need some TLC to work again.

09/03/2010 19:35
Removed spam.

09/03/2010 17:38
New spammer: dottech Thumb Down!

Advertiser
One-click Translation
Translate This Site

Render time: 0.24 seconds 3,989,469 unique visits