Navigation
Last Seen Users
NoyoshiOnline
Shatum00:16:14
tungtung00:58:25
Marcel0501:27:20
ElifeMod201:41:30
Papus02:13:01
bl3v302:19:59
Montgomery802:56:16
Rywin03:01:56
Koob03:35:15

Members: 27,776
Newest: Rywin
Downloads v7
Downloads v6
One-click Translation
Translate This Site

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

6.xx.xx
6.xx.xx
4% [20 Votes]

7.00.xx
7.00.xx
8% [39 Votes]

7.01.xx
7.01.xx
8% [42 Votes]

7.02.xx
7.02.xx
81% [417 Votes]

Votes: 518
You must login to vote.
Started: 26/03/2012 11:58

Polls Archive
Login
Username

Password



Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
Connect via Facebook
Connect via Facebook
Our Coders
Shoutbox
You must login to post a message.

17-06-2013 04:03
info jadwal imsakiyah 2013 Thumb Up! semoga bermanfaat

16-06-2013 20:57

16-06-2013 20:56

16-06-2013 20:55

16-06-2013 20:55

16-06-2013 20:54

16-06-2013 05:39

16-06-2013 05:35

16-06-2013 05:25

16-06-2013 05:23

Shoutbox Archive
In memoriam

Nick Jones
1973-2011

Sponsors
Articles Hierarchy
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
298
dothemath on July 20 2008 21: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

291
webadmin88 on July 23 2008 10: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

291
webadmin88 on July 23 2008 10: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

291
webadmin88 on July 23 2008 21: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

1
Diemux on July 24 2008 08:59:25

Ok, updated this tutorial with the one you submitted. Thank you very much!

1093
wadday on September 08 2008 22:17:54

does it work for v7

291
webadmin88 on September 24 2008 10: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

459
ytterx on December 01 2008 01:22:16

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]