FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » Undefined variables: "register_conf_subject" and "reset_confirmation"
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Undefined variables: "register_conf_subject" and "reset_confirmation" [message #167381 is a reply to message #167380] Tue, 12 June 2012 08:04 Go to previous messageGo to previous message
DaveQB is currently offline  DaveQB   Australia
Messages: 109
Registered: January 2006
Location: Sydney
Karma:
Senior Member

I just did a diff on your new file with mine compared to the diff with your new patch and the last version fro the 6th of June.

I have the same changes until line 354 where I continue to have more.

See code block below.

Also, may I suggest line 190 be changed from:
echo errorify('Sorry, you cannot abdicate from being and administrator. Ask another administrator to remove your account.');

to
echo errorify('Sorry, you cannot abdicate from being an administrator. Ask another administrator to remove your account.');







@@ -356,7 +354,7 @@
                $item_s = _esc($item_s);
 
                if (($cnt = q_singleval('SELECT count(*) FROM '. $DBHOST_TBL_PREFIX .'users WHERE '. $field . ($like ? ' LIKE ' : '=') . $item_s))) {
-                       $c = uq(q_limit('SELECT id, alias, email, last_visit, last_used_ip, posted_msg_count FROM '. $DBHOST_TBL_PREFIX .'users WHERE '. $field . ($like ? ' LIKE ' : '=') . $item_s . ' ORDER BY last_login DESC', 40, $start));
+                       $c = uq(q_limit('SELECT id, alias, email, last_login, last_known_ip, posted_msg_count FROM '. $DBHOST_TBL_PREFIX .'users WHERE '. $field . ($like ? ' LIKE ' : '=') . $item_s, 40, $start));
                }
                switch ($cnt) {
                        case 0:
@@ -376,12 +374,12 @@
                                echo '<p>There are '. $cnt .' users that match this '. $field .' mask:</p>';
                                echo '<table class="resulttable fulltable">';
                                echo '<thead><tr class="resulttopic">';
-                               echo '  <th>User Login</th><th>E-mail</th><th>Last visit</th><th>Last IP</th><th>Posts</th><th>Action</th>';
+                               echo '  <th>User Login</th><th>E-mail</th><th>Last online</th><th>Last IP</th><th>Posts</th><th>Action</th>';
                                echo '</tr></thead>';
                                $i = 0;
                                while ($r = db_rowarr($c)) {
                                        $bgcolor = ($i++%2) ? ' class="resultrow2"' : ' class="resultrow1"';
-                                       echo '<tr'. $bgcolor .'><td>'. $r[1] .'</td><td>'. htmlspecialchars($r[2]) .'</td><td>'. fdate($r[3], 'd M Y H:i:s') .'</td><td>'. $r[4] .'</td><td>'. $r[5] .'</td><td><a href="admuser.php?usr_id='. $r[0] .'&amp;act=m&amp;'. __adm_rsid .'">Edit</a> | <a href="admuser.php?act=del&amp;usr_id='. $r[0] .'&amp;'. __adm_rsid .'">Delete</a></td></tr>';
+                                       echo '<tr'. $bgcolor .'><td>'. $r[1] .'</td><td>'. htmlspecialchars($r[2]) .'</td><td>'. fdate($r[3], 'd M Y') .'</td><td>'. long2ip($r[4]) .'</td><td>'. $r[5] .'</td><td><a href="admuser.php?usr_id='. $r[0] .'&amp;act=m&amp;'. __adm_rsid .'">Edit</a> | <a href="admuser.php?act=del&amp;usr_id='. $r[0] .'&amp;'. __adm_rsid .'">Delete</a></td></tr>';
                                }
                                echo '</table>';
                                unset($c);
@@ -421,11 +419,11 @@
        if ($u->sig) {
                echo '<tr class="field"><td>Signature:</td><td>'. $u->sig .'</td></tr>';
        }
-       if ($u->registration_ip) {
-               echo '<tr class="field"><td>Registration:</td><td>'. fdate($u->join_date, 'd M Y') .' from <a href="../'. __fud_index_name__ .'?t=ip&amp;ip='. $u->registration_ip .'&amp;'. __adm_rsid .'" title="Analyse IP usage">'. $u->registration_ip .'</a></td></tr>';
+       if ($u->reg_ip) {
+               echo '<tr class="field"><td>Registration:</td><td>'. fdate($u->join_date, 'd M Y') .' from <a href="../'. __fud_index_name__ .'?t=ip&amp;ip='. long2ip($u->reg_ip) .'&amp;'. __adm_rsid .'" title="Analyse IP usage">'. long2ip($u->reg_ip) .'</td></tr>';
        }
-       if ($u->last_used_ip) {
-               echo '<tr class="field"><td>Last visit:</td><td>'. fdate($u->last_visit, 'd M Y') .' from <a href="../'. __fud_index_name__ .'?t=ip&amp;ip='. $u->last_used_ip .'&amp;'. __adm_rsid .'" title="Analyse IP usage">'. $u->last_used_ip .'</a></td></tr>';
+       if ($u->last_known_ip) {
+               echo '<tr class="field"><td>Last visit:</td><td>'. fdate($u->last_visit, 'd M Y') .' from <a href="../'. __fud_index_name__ .'?t=ip&amp;ip='. long2ip($u->last_known_ip) .'&amp;'. __adm_rsid .'" title="Analyse IP usage">'. long2ip($u->last_known_ip) .'</a></td></tr>';
        }
        if ($u->posted_msg_count) {
                echo '<tr class="field"><td>Post count:</td><td>'. $u->posted_msg_count .' [ <a href="../'.__fud_index_name__.'?t=showposts&amp;id='.$usr_id.'&amp;'.__adm_rsid.'" title="View user\'s messages on the forum">View Messages</a> ]</td></tr>';
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Problems After Members Login
Next Topic: Can I stop subscription notification?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri May 17 06:07:57 GMT 2024

Total time taken to generate the page: 0.05236 seconds