Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Regarding: HF Features Broken - Self Close/Open & Memberlist Reputation

I would like to help with two of the features currently broken from the list.

1. Add Memberlist option to sort by reputation.
2. Fix the Open/Close plugin.

I have created a plugin for the reputation on memberlist page and I updated the Self Close/Open that you originally created and that I updated for you in 2011/2012.

==================

1. Add Memberlist option to sort by reputation.

Traditionally you have likely done this via template edits as you posted about here back in 2010. However MyBB 1.8 now has a variable $colspan instead of a static number that you can change. For this reason (and to easier handle template edits) I propose to use a plugin instead of just editing the templates manually.

Plugin hooks:
memberlist_end
memberlist_user

Template edits:
{$orderarrow['threadnum']}</span></td> changed to {$orderarrow['threadnum']}</span></td>{$rep_header}
{$lang->sort_by_posts}</option> changed to {$lang->sort_by_posts}</option>{$sort_by_rep}
{$user['threadnum']}</td> changed to {$user['threadnum']}</td>{$rep_user}

Pastebin: https://pastebin.com/WSVn7iGt

Pastebin BB Code (Click to View)

The plugin includes:
1. Adding the reputation to the select drop down box.
2. Adding the column to display the reputation in results.
3. Stylizes the reputation based on value (negative/neutral/positive).
4. Constructs a link to the users reputation page.

==================

2. Fix the Open/Close plugin.

This plugin is a little more in depth. Back in 2011/2012 when I was helping Omniscient out at MyBB Central I updated the Self Close/Open plugin. See that thread here: http://www.mybbcentral.com/thread-7917.html

MyBB 1.8 has brought changes and permission bugs have caused some issues. I have resolved the permission issues and made the admin settings page cleaner.

-Permission now checks for all usergroups instead of just primary group.
-Got rid of old close/open buttons with image in exchange for normal <a> tag.
-Add the usual MyBB 1.8 prompt ($prompt) so there is a confirmation to close/open.
-Changed textbox in AdminCP to the built in 'groupselect'. Much cleaner this way.
-Minor logic adjustments.
-Uses language files.

I have tested it on a default MyBB board that I have for development. I don't think HF should require any additional alterations beyond regular plugin upload/installation because the template edit is pretty non-intrusive. It still uses "Posting" in settings.

GitHub project page: https://github.com/xerotic/self_close

Plugin Code: https://github.com/xerotic/self_close/bl..._close.php

Just needs inc folder uploaded. One plugin file and two language files (regular/admin).

Images:
https://i.imgur.com/mZnYx3D.png

https://i.imgur.com/WNSvb9C.png

https://i.imgur.com/YvLu9Py.png

==================

Hope this helps.
[Image: DE93-ABEA-2-E28-4-F9-D-9-BB6-312-B3328937-E.png]
Hopefully Omni will add the code. It’s been like 4 months.

Trust scan is probably gone forever.
The only actual reason why Omni could use that plugin instead of the code within his original tutorial is this:

Quote:3. Stylizes the reputation based on value (negative/neutral/positive).
4. Constructs a link to the users reputation page.


Other than that, changing the {$colspan} variable (don't really need that variable) to the number 8 works perfectly. You've basically done it in your plugin. He'd also have to add in the ahref sort link


Nonetheless, good work.
Way to take initiative. Some great work here. Hopefully it'll save Omniscient some time and get the site fixed a little faster 😁
[Image: WDngpYJ.png]
(Feb 5, 2018 02:10 AM)Charger Wrote:  Hopefully Omni will add the code. It’s been like 4 months.

Trust scan is probably gone forever.

It’s possible to make it come back, don’t be negative on such :p
(Feb 5, 2018 10:19 AM)Galaxias Wrote:  It’s possible to make it come back, don’t be negative on such :p

It will most likely get done. The question is when. The trust scan feature was an amazing add-on to the forums. Was most useful to group leaders and when users are dealing in the market place.
[Image: XeoMD0Q.gif]
(Feb 5, 2018 02:10 AM)Charger Wrote:  Hopefully Omni will add the code. It’s been like 4 months.

Trust scan is probably gone forever.

Not really, Omniscient has a lot in his plate right now.Just have patience he'll bring back everything as it was also EVEN BETTER.
Also great work Xerotic.
Awesome job! I really hope Omni adds this to the site so we can have these features again.

Nowadays? I'm just here for the nostalgia.
(Feb 5, 2018 04:01 PM)Bluffer Wrote:  Awesome job! I really hope Omni adds this to the site so we can have these features again.

Hopefully. I know a lot is going on at once so every bit ought to help.
[Image: DE93-ABEA-2-E28-4-F9-D-9-BB6-312-B3328937-E.png]
Wow.

I’m still sort of new here but some of the dedication towards helping the site I see from users is incredible. Good job man.
This is awesome. Nice job Xerotic.
Good job on this plugin as well. Great stuff.
[Image: 2.gif]
Self Close plugin not working correctly.

EDIT: Got it working. A few minor adjustments. Good work.

EDIT2: Added your reputation on memberlist plugin too. Working well. Good job.
(Feb 5, 2018 02:10 AM)Charger Wrote:  Hopefully Omni will add the code. It’s been like 4 months.

Trust scan is probably gone forever.

I really f*cking miss Trust scan.... 😟
(Feb 6, 2018 08:14 PM)Armada Wrote:  I really f*cking miss Trust scan....  😟

When I fix the database it will come back.


Possibly Related Threads...
Thread / Author Replies Views Last Post
by OmniscientNov 11, 2024 03:13 PM 14 519 Nov 11, 2024 03:13 PM
Last Post: Omniscient
by OmniscientMar 11, 2018 09:35 PM 1,683 77,845 Mar 11, 2018 09:35 PM
Last Post: Omniscient
by BrBiDec 6, 2017 05:54 PM 12 636 Dec 6, 2017 05:54 PM
Last Post: minimalist