1. ruud
  2. Features Request
  3. Monday, April 20 2015, 03:58 PM
Hi,

I'm in the middle of creating a native easyprofle kunena plugin (instead of via jomsocial bridge).
Avatar and profile url is already working, what I am struggling with is the user list.
I want to display the jsn user list, but the url I'm trying doesn't work: ./index.php?option=com_jsn&view=list

It is missing the &itemid=xyz

not sure what the xyz is referring to and where to get the correct value?
Or is there another way?
Accepted Answer
ruud Accepted Answer
Content Protected
  1. more than a month ago
  2. Features Request
  3. # Permalink
admin Accepted Answer
Admin
Hi,
for security purposes you can't get a list of users if you not have a Itemid (menu item).

You can add in plugin a option to choose User List menu item and use this Itemid. for example you can see our Search Module.

Our search module require an "User List" menu item to show search results.
  1. more than a month ago
  2. Features Request
  3. # 1
ruud Accepted Answer
Content Protected
  1. more than a month ago
  2. Features Request
  3. # 2
admin Accepted Answer
Admin
Hi,
you can change avatar value with this:
$avatar=JURI::base( true ).'/'.$user->getValue('avatar');
References
  1. https://docs.joomla.org/JURI/base
  1. more than a month ago
  2. Features Request
  3. # 3
ruud Accepted Answer
Content Protected
  1. more than a month ago
  2. Features Request
  3. # 4
admin Accepted Answer
Admin
Hi,
ruud I have tried your plugin and works, this plugin is providential :D

Our Jomsocial bridge not work on coming soon Kunena 4 (now beta status), we will add a fix after stable release.

Now the only way to use Easy Profile and Kunena 4 is your amazing plugin :D
  1. more than a month ago
  2. Features Request
  3. # 5
ruud Accepted Answer
Content Protected
  1. more than a month ago
  2. Features Request
  3. # 6
admin Accepted Answer
Admin
Hi Ruud,
we want to put a link to your plugin in our Download Area, we waited to develop a small further integration. You would like to test it? now is a beta

These plugins allow you to put tabs with post/topic from Kunena (see screenshot).

We make internal test another 1 week before release ;)
Attachments (4)
  1. more than a month ago
  2. Features Request
  3. # 7
ruud Accepted Answer
Content Protected
  1. more than a month ago
  2. Features Request
  3. # 8
ruud Accepted Answer
Content Protected
  1. more than a month ago
  2. Features Request
  3. # 9
admin Accepted Answer
Admin
Hi,
very thanks for your testing

Doing it this way is (I think) also the way to display users articles, etc.
this plugin is already ready, we will release next week (in screenshot there is a "Articles" tab ;) )

What I noticed is that there is no way to disable the intro text. Setting the 'Intro Post Text Limit' to 0 doesn't work (default back to 300 I think), setting it to 1 works but displays to much information. Would be nice to disable the intro text.
We will add ;)

the two topic titles do not look like a links (links are green on my site, and when klikking on them they give a 404.
Thanks, we will fix these issue.


What would be great to also have as functionality...
We will try to add all these features, does not seem complicated :D
  1. more than a month ago
  2. Features Request
  3. # 10
DaffRider Accepted Answer
Content Protected
  1. more than a month ago
  2. Features Request
  3. # 11
DaffRider Accepted Answer
Content Protected
  1. more than a month ago
  2. Features Request
  3. # 12
admin Accepted Answer
Admin
Have you updated to latest versions of Easy Profile and Social Network Plugin? if yes, can you please post me your site details?
  1. more than a month ago
  2. Features Request
  3. # 13
DaffRider Accepted Answer
HI

yea i have update last release
  1. more than a month ago
  2. Features Request
  3. # 14
admin Accepted Answer
Admin
Hi,
Kunena Tabs Plugins are disabled ;)
Attachments (1)
  1. more than a month ago
  2. Features Request
  3. # 15
DaffRider Accepted Answer
Content Protected
  1. more than a month ago
  2. Features Request
  3. # 16
DaffRider Accepted Answer
Content Protected
  1. more than a month ago
  2. Features Request
  3. # 17
DaffRider Accepted Answer
moving tabs on top
  1. more than a month ago
  2. Features Request
  3. # 18
admin Accepted Answer
Admin
i have have other question it's possible to change order of tabs ? or move tab with SocialNetwork tabs/menu ?
Yes, this depends by orders of our plugins:
- Go into Administration->Extensions->Plugin Manager
- Filter by type "jsn"
- order plugins

moving tabs on top
No sorry :( , this is not possible with a simple way, you need to change Social Network theme and Easy Profile layout (not small changes,it is very very complex)
  1. more than a month ago
  2. Features Request
  3. # 19
DaffRider Accepted Answer
Content Protected
  1. more than a month ago
  2. Features Request
  3. # 20
DaffRider Accepted Answer
Content Protected
  1. more than a month ago
  2. Features Request
  3. # 21
DaffRider Accepted Answer
Content Protected
  1. more than a month ago
  2. Features Request
  3. # 22
admin Accepted Answer
Admin
Hi,
to add tab you can write plugin based on kunena tab plugin. one tab for each plugin. In alternative you can override profile view.

I am sorry not to give you more information, but we are writing documentation for developers to add various tab.
  1. more than a month ago
  2. Features Request
  3. # 23
DaffRider Accepted Answer
OK

thank you for your help

my idea it's add simple external url link
<li><a href="#">new tab link</a></li>
in this tabs
  1. more than a month ago
  2. Features Request
  3. # 24
DaffRider Accepted Answer
Dave FALL wrote:

OK

thank you for your help

my idea it's add simple external url link
<li><a href="#">new tab link</a></li>
in this tabs
  1. more than a month ago
  2. Features Request
  3. # 25
admin Accepted Answer
Admin
Hi,
follow these steps:
- Copy /components/com_jsn/views/profile/tmpl/default.php into /templates/your-template-folder/html/com_jsn/profile/default.php
- add at line 113 add this code
$tabs[]=array('tab title','tab content');


another way is to develop plugin, but we need to write docs
  1. more than a month ago
  2. Features Request
  3. # 26
DaffRider Accepted Answer
Content Protected
  1. more than a month ago
  2. Features Request
  3. # 27
admin Accepted Answer
Admin
Hi,
social network use social.php instead default.php, so copy file social.php and insert code at line 55
  1. more than a month ago
  2. Features Request
  3. # 28
DaffRider Accepted Answer
Content Protected
  1. more than a month ago
  2. Features Request
  3. # 29
John_Neal Accepted Answer
Pro
I was looking into the tab plugins and it seams the only issue is the link that is built is not including the "Itemid" To notice this I had to turn off SEF Maybe this will be a lead for you to follow. I may try to find a solution in my spare time but this is low on my list of things to do. I would love to see some documentation on the tabs at some point if any is available yet.
  1. more than a month ago
  2. Features Request
  3. # 30
ruud Accepted Answer
Content Protected
  1. more than a month ago
  2. Features Request
  3. # 31
admin Accepted Answer
Admin
Hi,
this is a very great news, we are preparing the new documentation to release the Kunena tabs http://docs.easy-profile.com/index.php/article/integration-kunena

Very thanks Ruud :)
  1. more than a month ago
  2. Features Request
  3. # 32
Peter_London Accepted Answer
Content Protected
  1. more than a month ago
  2. Features Request
  3. # 33
ruud Accepted Answer
Hi Peter,
thanks for your input. I myself do not get these notices so cannot reproduce (I am on Kunena 4, maybe that is what makes it different), However: I made some changes to the code, if you could test if these fix the notices for you?

in file: plugins/kunena/easyprofile/profile.php
replace
        public function getUserListURL($action = '', $xhtml = true)
{
if ($config->userlist_allowed == 1 && $my->id == 0)
{
return false;
}
elseif ($this->params->get('userlist', 0) == 0)
{
$config = KunenaFactory::getConfig();
$my = JFactory::getUser();

return KunenaRoute::_('index.php?option=com_kunena&view=user&layout=list' . $action, $xhtml);
}
else
{
return JRoute::_('index.php?option=com_jsn&view=list&Itemid='.$this->params->get('menuitem',''),false);
}
}

with
        public function getUserListURL($action = '', $xhtml = true)
{
$config = KunenaFactory::getConfig();
$my = JFactory::getUser();

if ($config->userlist_allowed == 1 && $my->id == 0)
{
return false;
}
elseif ($this->params->get('userlist', 0) == 0)
{
return KunenaRoute::_('index.php?option=com_kunena&view=user&layout=list' . $action, $xhtml);
}
else
{
return JRoute::_('index.php?option=com_jsn&view=list&Itemid='.$this->params->get('menuitem',''),false);
}
}


now for the 'user list', if you want to use the Kunena user list you should disable the userlist and profile in the kunen-easyprofile plugin and enable the 'Enable Kunena Profiles' in the 'Kunena - Kunena Integration' plugin.
could you give that a try?
  1. more than a month ago
  2. Features Request
  3. # 34
Peter_London Accepted Answer
Content Protected
  1. more than a month ago
  2. Features Request
  3. # 35
ruud Accepted Answer
Content Protected
  1. more than a month ago
  2. Features Request
  3. # 36
John_Neal Accepted Answer
Pro
Content Protected
  1. more than a month ago
  2. Features Request
  3. # 37
ruud Accepted Answer
Content Protected
  1. more than a month ago
  2. Features Request
  3. # 38
John_Neal Accepted Answer
Pro
Content Protected
  1. more than a month ago
  2. Features Request
  3. # 39
John_Neal Accepted Answer
Pro
title=here
  1. more than a month ago
  2. Features Request
  3. # 40
admin Accepted Answer
Admin
I noticed that if the topic title and the post title (hope I am getting that right) are usually the same and it was redundant in most cases to display them
Yes but this is not issue, this is normal like Kunena profile page, kunena allow you to add a title for reply, if title is not specified then the reply inherit topic title. In screenshot you will see that also kunena seems to repeat a title, but it is not.

Anyway I understand that this is not elegant, so in next release we will add a parameter to show Reply title ;) .
  1. more than a month ago
  2. Features Request
  3. # 41
admin Accepted Answer
Admin
I noticed that if the topic title and the post title (hope I am getting that right) are usually the same and it was redundant in most cases to display them
Yes but this is not issue, this is normal like Kunena profile page, kunena allow you to add a title for reply, if title is not specified then the reply inherit topic title. In screenshot you will see that also kunena seems to repeat a title, but it is not.

Anyway I understand that this is not elegant, so in next release we will add a parameter to show Reply title ;) .
Attachments (1)
  1. more than a month ago
  2. Features Request
  3. # 42
John_Neal Accepted Answer
Pro
Content Protected
  1. more than a month ago
  2. Features Request
  3. # 43
admin Accepted Answer
Admin
I hope you do not think I am degrading in the way that i post?
No :D :D any suggestion is appreciated, but when a user searches for a solution, I want him to find full reply in each topic.

Still: Sorry, only recently this forum is used for actual discussions (and not only for support), I have to get used:D
  1. more than a month ago
  2. Features Request
  3. # 44
John_Neal Accepted Answer
Pro
Content Protected
  1. more than a month ago
  2. Features Request
  3. # 45
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.
Sorry, the discussion is currently locked. You will not be able to post a reply at the moment.