Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 09-08-2001, 09:26 PM
David Copeland's Avatar
David Copeland David Copeland is offline
 
Join Date: Oct 2001
Location: USA
Posts: 80
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?

Reply With Quote
  #2  
Old 09-09-2001, 11:08 PM
David Copeland's Avatar
David Copeland David Copeland is offline
 
Join Date: Oct 2001
Location: USA
Posts: 80
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #3  
Old 09-10-2001, 01:41 AM
Steve Machol's Avatar
Steve Machol Steve Machol is offline
 
Join Date: Nov 2001
Posts: 1,896
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 09-10-2001, 03:37 PM
David Copeland's Avatar
David Copeland David Copeland is offline
 
Join Date: Oct 2001
Location: USA
Posts: 80
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm a novice at this. So where does my topic go from here?
Reply With Quote
  #5  
Old 09-10-2001, 03:40 PM
Steve Machol's Avatar
Steve Machol Steve Machol is offline
 
Join Date: Nov 2001
Posts: 1,896
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I guess you just have to wait and hope that someone will do this hack for you.
Reply With Quote
  #6  
Old 09-10-2001, 03:47 PM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...
Reply With Quote
  #7  
Old 09-10-2001, 03:52 PM
Steve Machol's Avatar
Steve Machol Steve Machol is offline
 
Join Date: Nov 2001
Posts: 1,896
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

FireFly to the rescue!
Reply With Quote
  #8  
Old 09-10-2001, 03:55 PM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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*
Reply With Quote
  #9  
Old 09-10-2001, 04:11 PM
Steve Machol's Avatar
Steve Machol Steve Machol is offline
 
Join Date: Nov 2001
Posts: 1,896
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Good questions! I'm wanted alive. of course - and you actually have to pay me the reward!
Reply With Quote
  #10  
Old 09-10-2001, 04:18 PM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

lol, pay you.

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 )
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:38 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04973 seconds
  • Memory Usage 2,268KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (9)bbcode_code
  • (2)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete