August 01 2010 00:02:25
Navigation
Last Seen Users
Samp< 5 mins
mojitoman< 5 mins
Deus00:09:06
davidbusch00:11:19
Assensvej01:02:19
hooz01:09:40
Narco01:11:04
KissXme01:21:32
schweinebob01:40:03
bigcarrot01:52:52

Members: 15,625
Newest: KissXme
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
A tour through the n...
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...

View all articles
Downloads v7
Currently popular Downloads

FusionBoard 4 3859
Video Gallery 2749
Professional Down... 2497
Photoalbum Mass U... 2427
Avatar Studio 2287
Extended Profile 1863
XHTML mod for mod... 1808
Button panel 1789
VArcade 2.1 1778
HighSlide Gallery... 1762

Latest Downloads


XHTML mod for modern... 1808
Pimped-Fusion v0.08.01 4
Update Package v0.08.01 0
Support Panel-Skype 7
Header Weather Widget 59
Forum Thread List Pa... 23
Meta Keywords/Descri... 73
Security System 127
User Field: US State... 24
Forum sub categories... 135

Latest 100
Downloads v6
Currently popular Downloads

Banner System v2.0.4 1648
Video Gallery 1183
Extreme Theme Editor 887
Fuzed Shoutbox 789
Seoname.php 736
Icon Package 2.0 687
Extended Profile ... 648
News.php 578
EXTboard 549
Tabbed welcome panel 518

Latest Downloads


Google Sitemap Fast 46
ExtBoard 1.2 381
EXTboard 549
v6.01.18 - v6.01.19 27
v6.01.19 FULL 81
Birthday 111
Moneybookers 43
User info 100
Link to us 259
jNews.php 339

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
Smokeman
Rizald 'Elyn' Maxwell
Diemux
Netrix
Donate
Shoutbox
You must login to post a message.

31/07/2010 17:39
Never mind. Got it now.

31/07/2010 17:32
I am looking for the developers pack that used to be here. This pack gave you the basic outline to start from.

30/07/2010 14:35
I'm new here, lurking and downloading ur hard work now ! Cheers!

30/07/2010 08:47
thankkkkks........
..................
..................
........... Cheers! Ventilator

29/07/2010 19:25
Sorry about the previous Shouts and post in theforums regarding lisence. I got a bit power hungry when I USED to be crew. Thumb Up!

29/07/2010 09:54
... and now he's banned. Thumb Up!

29/07/2010 08:55
hyzhy = spambot

28/07/2010 16:26
Thumb Up!

28/07/2010 16:20
@AKC_Pico said he purchased the licence and you still left him a message...

28/07/2010 16:14
Is "PHP-Fusion By Nick Jones" is sufficient?

Advertiser
One-click Translation
Translate This Site

Render time: 0.17 seconds 5,063,480 unique visits