vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   How do I add a Display Field to the Control Panel Find Box? (https://vborg.vbsupport.ru/showthread.php?t=27700)

David Copeland 09-08-2001 09:26 PM

In the Control Panel Find feature (Ver 2.0.3) , I have added
the following sorts:

[list=1][*]Usergroupid
[*]email
[*]password
[/list=1]


Then I can choose below the sort window which items
I want to be Displayed in my sort.

All of the items are listed in the Display Option,
except Password

How do I add password to the Display Feature?

https://vborg.vbsupport.ru/external/2001/09/3.gif

David Copeland 09-09-2001 11:08 PM

I'm not sure why my topic was moved to the Hack section,
and I'm not sure why the How Do I Forum Moderators could
not complete my request aftet they had started it!

The above sort fields are not hacks, but fields of VB data
already in the database. I was given a very short helpful
instruction in the other forum to have these fields show up in
the drop down menu of the Find feature in the Control
Panel.

Alll I'm asking for is to know how to let these fields show up!
What good is it for me to sort a field without seeing it?

Please forgive me, but no one at the other forum bothered
to use the VB copy redirect command on my topic. They
just did a straight move without any notice to me whatsoever. :(

David

Steve Machol 09-10-2001 01:41 AM

I'm not sure who moved your threads, but I do believe the Hacks Requests forum is the proper place for them. As far as I can tell, both of your requests would requite hacking vB PHP scripts - hence 'Hack Requests'.

In this case, you would have to hack the admin/index.php script.

David Copeland 09-10-2001 03:37 PM

I'm a novice at this. So where does my topic go from here?

Steve Machol 09-10-2001 03:40 PM

I guess you just have to wait and hope that someone will do this hack for you.

Admin 09-10-2001 03:47 PM

In user.php:
Replace
Code:

  makeyesnocode("Display email address","displayemail",1);
with
Code:

  makeyesnocode("Display email address","displayemail",1);
  makeyesnocode("Display password","displaypassword",1);

By the way, you can make it
Code:

makeyesnocode("Display password","displaypassword",0);
if you don't want it to be selected by default.

Also replace
Code:

  $users=$DB_site->query("SELECT user.userid,username,usergroupid,birthday,email,parentemail,coppauser,homepage,icq,aim,yahoo,signature,usertitle,FROM_UNIXTIME(joindate) AS joindate,FROM_UNIXTIME(lastvisit) AS lastvisit,FROM_UNIXTIME(lastpost) AS lastpost,posts,ipaddress,userfield.* FROM user,userfield WHERE $condition AND userfield.userid=user.userid ORDER BY $orderby $direction LIMIT $limitstart,$limitnumber");
with
Code:

  $users=$DB_site->query("SELECT user.userid,username,usergroupid,birthday,email,password,parentemail,coppauser,homepage,icq,aim,yahoo,signature,usertitle,FROM_UNIXTIME(joindate) AS joindate,FROM_UNIXTIME(lastvisit) AS lastvisit,FROM_UNIXTIME(lastpost) AS lastpost,posts,ipaddress,userfield.* FROM user,userfield WHERE $condition AND userfield.userid=user.userid ORDER BY $orderby $direction LIMIT $limitstart,$limitnumber");
Also replace
Code:

  if ($displayemail==1) {
    echo "<td><p><b><span class='tblhead'>Email</span></b></p></td>";
  }

with
Code:

  if ($displayemail==1) {
    echo "<td><p><b><span class='tblhead'>Email</span></b></p></td>";
  }
  if ($displaypassword==1) {
    echo "<td><p><b><span class='tblhead'>Password</span></b></p></td>";
  }

And last but not least replace
Code:

    if ($displayemail==1) {
      echo "<td><p><a href='mailto:$user[email]'>$user[email]</a>&nbsp;</p></td>";
    }

with
Code:

    if ($displayemail==1) {
      echo "<td><p><a href='mailto:$user[email]'>$user[email]</a>&nbsp;</p></td>";
    }
    if ($displaypassword==1) {
      echo "<td><p>$user[password]&nbsp;</p></td>";
    }

And there you have it. :)

P.S.
Why did you add the option to sort by password?
Just curious... :)

Steve Machol 09-10-2001 03:52 PM

FireFly to the rescue! :)

Admin 09-10-2001 03:55 PM

Hehe. :)

By the way steve, are you wanted dead or alive? (or both ;))
And most important, is there a reward?
Just wanted to know... *whistles*

Steve Machol 09-10-2001 04:11 PM

Good questions! I'm wanted alive. of course - and you actually have to pay me the reward! ;)

Admin 09-10-2001 04:18 PM

lol, pay you. :p

Anyway, David, if you want to display the passwords also when just clicking List all users, add this code
PHP Code:

    $displaypassword=1

right after
PHP Code:

    $displayemail=1

(in user.php of course :))


All times are GMT. The time now is 03:54 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01187 seconds
  • Memory Usage 1,743KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (9)bbcode_code_printable
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete