1
sev7en
Private Message (PM) Module: How to hack.
  • 2006/5/16 14:36

  • sev7en

  • Just popping in

  • Posts: 23

  • Since: 2005/11/11


Dear friends,
I'd like to tweak a while this mod. So basically I need only a little change to "To" field: now I have to click to "List" button to show the contacts but I would like to have them directly because I don't need addictional selection as member or rank. I've a picture to show you:

Resized Image



Thanks

2
sceilig
Re: Private Message (PM) Module: How to hack.
  • 2006/5/16 19:00

  • sceilig

  • Just popping in

  • Posts: 53

  • Since: 2006/3/1 1


Try tweaking
modules/pm/pmlite.php

Uncomment these two lines:

Quote:

$to_username = new XoopsFormSelectUser('', 'to_userid');
$xoopsTpl->assign('to_username', $to_username->render());


Put in this instead
Quote:

$criteria = new CriteriaCompo();
$criteria->setSort('uname');
$selusers = new XoopsFormSelect("Select Member", "to_userid", array(), 1, '');
$selusers->addOptionArray($member_handler->getUserList($criteria));
$pmform->addElement($selusers);

3
sev7en
Re: Private Message (PM) Module: How to hack.
  • 2006/5/16 23:26

  • sev7en

  • Just popping in

  • Posts: 23

  • Since: 2005/11/11


It works like a charm! Many thanks sceilig!!! :)

4
guitahra
Re: Private Message (PM) Module: How to hack.
  • 2006/5/26 13:18

  • guitahra

  • Just popping in

  • Posts: 18

  • Since: 2006/5/3 1


Dear Sceilig or to anyone who is generous to assist,

I would like to only have display a selected group and not all members in the PM dropdown, is this possible? The group for dropdown display will always stay the same.

g.

Login

Who's Online

266 user(s) are online (164 user(s) are browsing Support Forums)


Members: 0


Guests: 266


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits