Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Aug 2002
Posts: 109
Journeyman
Journeyman
Offline
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:
Code
  <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:

Code
  <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&amp;User=$User&amp;Board=$Board&amp;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 />

Sponsored Links
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
Offline
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
Offline
Joined: Jan 2002
Posts: 674
Good job... this should be standard.

Sponsored Links

Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
AllenAyres
AllenAyres
Texas
Posts: 21,079
Joined: March 2000
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)