Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

Private message select friends search

12 years 3 months ago
  • Marc's Avatar
    Topic Author
  • Marc
  • Offline
  • Fresh Boarder
  • Posts: 23
  • Thank you received: 5
Licenses:
JomSocial Expired

When using private messaging and adding recipients, the search function is active immediately after typing the first letter. This makes adding recipients very slow and painfull.
For example, if i wanted to add a friend called Marc, I would type in M, wait for the recipients to update with every friend who has an M in the name, then type A and wait, then type R and wait etc
Can the ajax search call be set so that its only active from the 3rd letter entered?

Attachments:
12 years 3 months ago
Licenses:

Hi Marc,

you can do it by using override documentation.jomsocial.com/wiki/Customizing_Template .
1. copy ajax.showfriends.php from /components/com_community/templates/default/ to /templates/rt_oculus/html/com_community/ create the folder if not exist
2. edit that copied file, line 30:

From
<input class="input text" type="text" onkeyup="joms.friends.loadFriend(this.value,'<?php echo $callback;?>','<?php echo $cid;?>','0','<?php echo $limit;?>');" value="" placeholder="<?php echo JText::_('COM_COMMUNITY_INVITE_TYPE_YOUR_FRIEND_NAME');?>" name="friendsearch" id="friend-search-filter">

To
<input class="input text" type="text" onkeyup="if (this.value.length > 2 || this.value.length == 0) joms.friends.loadFriend(this.value,'<?php echo $callback;?>','<?php echo $cid;?>','0','<?php echo $limit;?>');" value="" placeholder="<?php echo JText::_('COM_COMMUNITY_INVITE_TYPE_YOUR_FRIEND_NAME');?>" name="friendsearch" id="friend-search-filter">

Let me know the result.

Regards,
Albert

12 years 3 months ago
Licenses:

Hi Marc,

We have not received any response back from you in over 7 days, and would like to know if you consider this issue to be resolved. If you have any further questions, simply reply to this post.

Regards,
Albert

The following user(s) said Thank You: Marc
12 years 3 months ago
  • Marc's Avatar
    Topic Author
  • Marc
  • Offline
  • Fresh Boarder
  • Posts: 23
  • Thank you received: 5
Licenses:
JomSocial Expired

Sorry....yes, that change does exactly what I want and makes finding friends for PM's much more usable and more functional.
Thank you for the fix and the prompt response!

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW