Welcome to Geeklog, Anonymous Monday, November 25 2024 @ 03:49 pm EST

Geeklog Forums

Improved users.php


Status: offline

POunder

Forum User
Newbie
Registered: 06/28/03
Posts: 1
indifferent
Have made some changes to
Text Formatted Code
users.php
for those like me who like to use staticpages to do geeklog functions (Like: You are not logged in click here to log in). Normally when you access users.php it tells you you've mistyped your login credentials, which can be confusing for some users as they have never even entered any. So... If you open users.php and find around line 599 the line
Text Formatted Code
templates->set_var('site_url', $_CONF['site_url']);
and underneith add the lines:
Text 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 (
Text Formatted Code
105 => 'Show up in Who's Online block',
) and add the following lines (of corse you can change them)
Text 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 Big Grin
 Quote

All times are EST. The time is now 03:49 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content