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')");
webadmin88on September 24 2008 20: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
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
waddayon September 09 2008 08:17:54
does it work for v7
Diemuxon July 24 2008 18:59:25
Ok, updated this tutorial with the one you submitted. Thank you very much!
webadmin88on July 24 2008 07: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
webadmin88on July 23 2008 20: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:
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
webadmin88on July 23 2008 20: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
dothemathon July 21 2008 07:52:48
I trust this article is not finished, and it should be marked "not finished".
Diemux 20/11/2008 20:59 @sathishIPL: - I thought you meant the article (pm after registration). Anyhow, I have commented at the download.
elyn 20/11/2008 19:38 lol. diemux seems like an operator here.
user :
*dialed 1515-phpfusion-MODs
operator (diemux) :
for any enquiries.. please press 1 ... for
*user press 1
operator(diemux) : for..
and it
sathishIPL 20/11/2008 15:29 I cant find ....
as u said in article
Diemux 20/11/2008 12:32 Check the article comment please
sathishIPL 20/11/2008 10:35 Hi Diemux,
The Mod Pm after Registration works for me...but i want to add the from ...where i can add thr from