11
Danielw42
Re: display user avatar in template
  • 2010/8/3 1:21

  • Danielw42

  • Just popping in

  • Posts: 15

  • Since: 2010/1/14


Hi
I have a question. How to modify this block to display my avatar when I am on my own profile. And when I will visit someone's else profile, I will see his/her avatar.



12
Danielw42
Re: How do I put two dropdowns in one line in the Edit Profile form?
  • 2010/5/16 16:18

  • Danielw42

  • Just popping in

  • Posts: 15

  • Since: 2010/1/14


Ghia, thank you for your response.
I still don't understand the second part.
I want to put two or three dropdowns in one line in both edit profile and register form.

Where do I have to put this code to make it work?
include_once $GLOBALS['xoops']->path('class/xoopsform/formdualselect.php');
$dualDrop = new XoopsFormDualSelect('Something',$test1,$test2);
$form->addElement($dualDrop);



13
Danielw42
Re: How do I put two dropdowns in one line in the Edit Profile form?
  • 2010/5/16 6:19

  • Danielw42

  • Just popping in

  • Posts: 15

  • Since: 2010/1/14


Hi Bandit-x
Could you explain more precisely?



14
Danielw42
Yogurt
  • 2010/1/29 15:51

  • Danielw42

  • Just popping in

  • Posts: 15

  • Since: 2010/1/14


Hi everyone

Let's say, I want to add someone to my friends list so I send a request to that person. Here's what I want to do: If that person refuses my request,a message should be automatically sent to me.

In makefriends.php, after line 73, I added this code:

$pm_handler =& xoops_gethandler('privmessage');
$pm =& $pm_handler->create();
$pm->setVar("subject", "Friend request");
$pm->setVar("msg_text", "text here");
$pm->setVar("to_userid",$petitioner_uid );
$pm->setVar("from_userid, 1");
$pm_handler->insert($pm);

where petitioner_uid = uid.

I am missing something because a message is still not sent to that user with id of petitioner_uid.

How to get id from petitioner_uid?
$petitioner_uid = $xoopsUser->getVar('uid');?

Please help me.



15
Danielw42
Private message
  • 2010/1/14 5:56

  • Danielw42

  • Just popping in

  • Posts: 15

  • Since: 2010/1/14


Hello
I am trying to find a solution for my problem but no success so far. Basically, I want to have display name instead of username to whom I want to send a private message.





TopTop
« 1 (2)



Login

Who's Online

230 user(s) are online (151 user(s) are browsing Support Forums)


Members: 0


Guests: 230


more...

Donat-O-Meter

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

Latest GitHub Commits