Welcome to Geeklog Monday, May 20 2013 @ 01:45 PM EDT
|
||||||||
![]() |
Forum Index > Extensions > Cool Hacks |
New Topic
|
Post Reply
|
Improved users.php |
|||
| POunder |
|
||||||
![]() ![]() ![]() ![]() ![]() Newbie ![]() Status: offline ![]() Registered: 06/28/03 Posts: 1 |
Have made some changes to
PHP Formatted Code users.phpSo... If you open users.php and find around line 599 the line PHP Formatted Code templates->set_var('site_url', $_CONF['site_url']);and underneith add the lines: PHP Formatted Code if($_GET['bLoginOnly']==1) { $user_templates->set_var('start_block_loginagain', COM_startBlock($LANG04[107])); } else { $user_templates->set_var('start_block_loginagain', COM_startBlock($LANG04[65])); } if($_GET['bLoginOnly']==1) { $user_templates->set_var('lang_message', $LANG04[106]); } else { $user_templates->set_var('lang_message', $LANG04[66]); } then if you open one (or all) of your language files and go to the bottom of $LANG04 ( PHP Formatted Code 105 => 'Show up in Who's Online block',PHP Formatted Code 106 => 'Please login using the form below.', 107 => 'Log In', So now if you access users.php?bLoginOnly=1 it just says please login instead of incorrect login credentials |
||||||
|
|||||||
| Content generated in: 2.33 seconds |
|
|
|