January 06 2009 14:25:07
Navigation
Last Seen Users
subaru2Online
soldbauOnline
Joshiley< 5 mins
Grimloch< 5 mins
elyn< 5 mins
ytterx< 5 mins
BladeFight< 5 mins
Diemux< 5 mins
purefantasy< 5 mins
bikerbones00:09:40

Guests Online: 0
Registered Members: 3,626
Newest Member: BladeFight
Downloads v7
Currently popular Downloads

Professional Down... 544
Extended Profile 503
FusionBoard 4 474
Photoalbum Mass U... 470
Avatar Studio 450
HighSlide Gallery... 416
Photo in Profile 400
VArcade 1.7 388
Wap Mod 360
Who Is Online Adm... 338

Latest Downloads


Online Users Extend ... 0
Login Redirect 9
Apache Errors Mod 3
View & Delete all Co... 0
Mod "index.php + mod... 4
Comments Management 2
FB Latest Referrers ... 8
Slideshow Lightbox P... 10
RSS and Panel 11
Secure Admin Login 21
Downloads v6
Currently popular Downloads

Video Gallery 376
EXTboard 362
Extreme Theme Editor 343
Icon Package 2.0 290
Banner System v2.0.4 284
Tabbed welcome panel 281
Fuzed Shoutbox 276
Extended Profile ... 272
News.php 265
Header Banner System 221

Latest Downloads


Login Redirect 0
Mod "index.php + mod... 0
Base Games 1
Banner exchange system 0
Poll with comments a... 90
Media Streamer 5
v6.01.18 FULL 14
v6.01.16 - v6.01.17 44
v6.01.15 - v6.01.16 1
v6.01.17 - v6.01.18 8
Provider
PHPfusion-mods.net is hosted at:

110MB
Online Stats
Guests online: 5
Members online:
soldbau, subaru2

registered members: 3626
newest member: BladeFight

user today: 3872
user online: 7
Max. onlinerecord: 43
Max. per day: 5705
user yesterday: 4842
user month: 28064
Entire users: 101847

last 24h:
























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
#9elyn on December 21 2008 17:02:47
i mean really
#8ytterx on December 01 2008 12:22:16
srry no sessions for V7
#7webadmin88 on September 24 2008 19:52:20
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
#6wadday on September 09 2008 07:17:54
does it work for v7
#5Diemux on July 24 2008 17:59:25
Ok, updated this tutorial with the one you submitted. Thank you very much!
#4webadmin88 on July 24 2008 06:58:18
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
#3webadmin88 on July 23 2008 19:45:34
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
#2webadmin88 on July 23 2008 19:38:47
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
#1dothemath on July 21 2008 06:52:48
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
Post Comment
Please Login to Post a Comment.
Ratings
Rating is available to Members only.

Please login or register to vote.

Awesome! Awesome! 100% [2 Votes]
Very Good Very Good 0% [No Votes]
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
Donate

Affiliates:
Venue

Shoutbox
You must login to post a message.

06/01/2009 13:21
Check out my Support PHP-Fusion v7 -> Mod/Infusion Request Smile

06/01/2009 10:14
@diemux - i've upload my mod.. with updates..

06/01/2009 09:57
just submit again, I will check both Smile

06/01/2009 06:21
how to update my uploaded mod here? i forgot to attached the images

06/01/2009 03:42
Mod "index.php + mod panels" doenst have a install.php as said on readme file

06/01/2009 01:00
Cheers!

05/01/2009 23:27
Bye!

05/01/2009 20:01
Helloy Bye!

05/01/2009 17:58
kkcafe : lol. yes i am

05/01/2009 17:30
owh.. elyn, are u Malaysian?

Advertiser
One-click Translation
Translate This Site

Render time: 0.27 seconds 472,262 unique visits