November 21 2008 00:29:51 Home | Mod Downloads v6 | Mod Downloads v7 | Support Forum | Useful Resources | Articles | Dev log
 
Navigation
Home
Home
Articles
Search

Community
Mod Downloads v6
Mod Downloads v7
Support Forum
Contact Us

Information
News Categories
Useful Resources
Photo Gallery
Dev log
Site Map
Last Seen Users
rodjakOnline
GhostRider2007Online
Massa< 5 mins
Thijs< 5 mins
dallas00:13:28
UniCoRN00:15:31
rudik00:18:17
baz00:24:20
chearles00:27:31
Diemux00:29:42

Guests Online: 0
Registered Members: 2,573
Newest Member: rushqone
Latest Articles
Admin Control Panel Protection
How to Secure Your Importan...
Show Content by Default Use...
v7 | Add social bookmark to...
v7 | Custom MySQL error mes...
How To: A PM after registra...
v7 | SEO friendly URL's for...
v7 | SEO friendly URL's for...
Comments Advanced View and ...
Auto-redirect to the page v...
A tour through PHP-Fusion v...
Upgrading to PHP-Fusion v7 ...
SEO | Improve your PHP-Fusi...
Advertisements in article f...
Improving your photogallery...

View all articles
Downloads v7
Currently popular Downloads

Professional Downloa... 344
Extended Profile 330
Photoalbum Mass Upload 297
Photo in Profile 289
FusionBoard 4 278
HighSlide Gallery In... 274
Avatar Studio 257
Wap Mod 235
VArcade 1.7 226
Download System mSF 220

Latest Downloads


PHP-Fusion v7 Bosnia... 1
Memberlist with avatar 24
Orders script 9
Unactivated Users li... 6
Forum Ad Bot Agent 14
catsbyR5 news catego... 5
Qrmiz new category i... 3
Qrmiz news category ... 1
Clean set of news ca... 1
News Category Images... 0
Downloads v6
Currently popular Downloads

EXTboard 322
Video Gallery 302
Extreme Theme Editor 280
Icon Package 2.0 233
Fuzed Shoutbox 225
News.php 225
Tabbed welcome panel 221
Extended Profile 2.20 217
Header Banner System 177
Seoname.php 165

Latest Downloads


ExtBoard 1.1 67
Forum Attachment Admin 1
Extended User Search 1
CCMail Infusion 1
Advanced Search 92
Expose Photogallery 80
Who is online | Admin 110
Mark Threads As Read 2 10
Forum look without s... 46
Banner System v2.0.4 165
Provider
PHPfusion-mods.net is hosted at:

Security System 1.8.5 © 2006 by BS-Fusion Deutschland
CTracker - cback.de


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


Article Tags
Login auto direct PHP-Fusion v6 modification mod redirect automatic webadmin88 PHP HTML tutorial how-to how to improvement
Comments
webadmin88 on 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
wadday on September 09 2008 08:17:54
does it work for v7
Diemux on July 24 2008 18:59:25
Ok, updated this tutorial with the one you submitted. Thank you very much!
webadmin88 on 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
webadmin88 on 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:
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
webadmin88 on 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
dothemath on July 21 2008 07: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.
Post Comment
Please Login to Post a Comment.
Ratings
Rating is available to Members only.

Please login or register to vote.

Awesome! Awesome! 100% [1 Vote]
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.
PHP-Fusion Coders
Andrean Rashkov
Georgios
Diemux
Donate

Affiliates:


Shoutbox
You must login to post a message.

bullet Diemux 
20/11/2008 20:59
@sathishIPL: - I thought you meant the article (pm after registration). Anyhow, I have commented at the download.

bullet 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

bullet sathishIPL 
20/11/2008 15:29
I cant find .... as u said in article

bullet Diemux 
20/11/2008 12:32
Check the article comment please

bullet 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

Bullet Display More Shouts Bullet

bullet Diemux 
20/11/2008 02:12
@samaritean: - Check the "Orders script" in v7 downloads under Miscellaneous.

bullet Diemux 
20/11/2008 02:11
@gozoc, ratings is fixed, thanks . Couldn't find anything wrong with comments or redirect?

bullet samaritean 
19/11/2008 21:02
There is a infusion for sell cars ?To add cars in the forum as Infusion.

bullet gozoc 
19/11/2008 20:07
...and fix your redirect after post a shout to the download overview

bullet gozoc 
19/11/2008 20:06
diemux, please fix your download-ratings

Advertiser
One-click Translation

Powered by Google