e107inc / e107

e107 Bootstrap CMS (Content Management System) v2 with PHP, MySQL, HTML5, jQuery and Twitter Bootstrap. Issue Discussion Room: https://gitter.im/e107inc/e107
https://e107.org
GNU General Public License v3.0
323 stars 214 forks source link

Reopening pull request #2065 forum userlist wrapping #5309

Open rica-carv opened 3 months ago

rica-carv commented 3 months ago

Reopening issue #2065

Types of Changes

Checklist

Jimmi08 commented 1 month ago

@rica-carv I appreciate your work so now I am trying to understand what you did.

This PR will be never approved. forum shortcodes file is already updated and there is a conflict in it with your code.

In the original PR @CaMer0n already told you that it breaks old themes. My objections are that you didn't fix this shortcode fully.

Link to user profile should use e107::getUrl() way, not hardcoded HTML code. On one place you are removing it, but on other place you let it there.

global $listuserson; - should be $listuserson = e107::getOnline()->userList();

return; should be return "";

user link should be:


        $uparams = array('id' => $oid, 'name' => $oname;
        $link = e107::getUrl()->create('user/profile/view', $uparams);

Everything is already managed (new way) in online plugin It should be done similar way as in $ONLINE_MENU_TEMPLATE['default']['online_members_list_extended']

I hope it helps somehow. The original issue should be opened, because this should be fixed. Thanks

Next notes:

rica-carv commented 1 month ago

@Jimmi08 Sorry, but i don't understand your post. If you check both files i changed, i only take out hardcode html inside the forum_shortcodes.php file to forum_template.php file! I didn't do anything else...

All the changes you're speaking were already there, so i don't see any other conflict....

I think you're mixing up old change with my new ones.... and i don't understand the changes you're talking about....