|
|
Joined: Aug 2002
Posts: 109
Journeyman
|
Journeyman
Joined: Aug 2002
Posts: 109 |
When you go into admin and show/edit users, You search for a user...This hack will add two options to either Email the user or PM the user (with the least amount of hacking/having to edit too much. --------------- In Admin/selectoption.php find this: <br />// --------------------------------------------------<br />// Give them the option of editing this user's groups<br /> echo "<br /> <tr><td class=lighttable valign=top><br /> <a href=\"{$config['phpurl']}/admin/showugroup.php?Cat=$Cat&User=$User\">Edit groups</a><br /> </td><td class=darktable><br /> Edit the groups that this user belongs to.<br /> </td></tr><br /> ";<br /> Below it, add this: <br />// ---------------------------------------------------<br />// Give them the option to PM or Email this user<br />echo "<br /> <tr><td class=lighttable valign=top><br /> <a href=\"{$config['phpurl']}/sendprivate.php?Cat=$Cat&User=$User&Board=$Board&Number=$Number\" target=new> <br /> Send PM</a><br /> </td><td class=darktable><br /> Send this user a Private Message.<br /> </td></tr>";<br /> <br /> $query = "<br /> SELECT U_Email<br /> FROM {$config['tbprefix']}Users<br /> WHERE U_Number = '$User'<br /> ";<br /> $sth = $dbh -> do_query($query);<br />list($Email) = $dbh -> fetch_array($sth);<br />echo "<br /> <br /> <tr><td class=lighttable valign=top><br /> <a href=\"mailto:$Email\"> <br /> Email User</a><br /> </td><td class=darktable><br /> Send this user an Email.<br /> </td></tr><br /> ";<br />
|
|
|
|
Joined: May 1999
Posts: 1,715
Addict
|
Addict
Joined: May 1999
Posts: 1,715 |
Thanks for that easy hack, will certainly add that to my board.
|
|
|
|
Joined: Aug 2002
Posts: 109
Journeyman
|
Journeyman
Joined: Aug 2002
Posts: 109 |
np, I've been studying up on php in my spare time...what little I have hehe I've gotten so many hacks and help from alot of people, including you Gardener...It makes me very happy to be able to finally help you and others in return
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
Good work!
|
|
|
|
Joined: Jan 2002
Posts: 674
Junior Member
|
Junior Member
Joined: Jan 2002
Posts: 674 |
Good job... this should be standard.
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 21,079
Joined: March 2000
|
|
Forums63
Topics37,573
Posts293,925
Members13,849
|
Most Online5,166 Sep 15th, 2019
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|
|