![]() |
|
Regarding: HF Features Broken - Self Close/Open & Memberlist Reputation - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Hack Forums Official Information (https://hackforums.net/forumdisplay.php?fid=1) +--- Forum: Site News (https://hackforums.net/forumdisplay.php?fid=2) +--- Thread: Regarding: HF Features Broken - Self Close/Open & Memberlist Reputation (/showthread.php?tid=5795160) Pages: Pages
1
2
|
Regarding: HF Features Broken - Self Close/Open & Memberlist Reputation - Xerotic - Feb 5, 2018 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/blob/master/inc/plugins/self_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. RE: Regarding: HF Features Broken - Self Close/Open & Memberlist Reputation - Charger - Feb 5, 2018 Hopefully Omni will add the code. It’s been like 4 months. Trust scan is probably gone forever. RE: Regarding: HF Features Broken - Self Close/Open & Memberlist Reputation - Wires - Feb 5, 2018 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). 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. RE: Regarding: HF Features Broken - Self Close/Open & Memberlist Reputation - Steve - Feb 5, 2018 Way to take initiative. Some great work here. Hopefully it'll save Omniscient some time and get the site fixed a little faster 😁 RE: Regarding: HF Features Broken - Self Close/Open & Memberlist Reputation - Galaxias - Feb 5, 2018 (Feb 5, 2018 02:10 AM)Charger Wrote: Hopefully Omni will add the code. It’s been like 4 months. It’s possible to make it come back, don’t be negative on such :p RE: Regarding: HF Features Broken - Self Close/Open & Memberlist Reputation - ❤️BowmanBot❤️ - Feb 5, 2018 (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. RE: Regarding: HF Features Broken - Self Close/Open & Memberlist Reputation - Crystallize. - Feb 5, 2018 (Feb 5, 2018 02:10 AM)Charger Wrote: Hopefully Omni will add the code. It’s been like 4 months. 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. RE: Regarding: HF Features Broken - Self Close/Open & Memberlist Reputation - Bluffer - Feb 5, 2018 Awesome job! I really hope Omni adds this to the site so we can have these features again. RE: Regarding: HF Features Broken - Self Close/Open & Memberlist Reputation - Xerotic - Feb 5, 2018 (Feb 5, 2018 04:01 PM)Βluffer 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. RE: Regarding: HF Features Broken - Self Close/Open & Memberlist Reputation - Ben Shapiro - Feb 5, 2018 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. RE: Regarding: HF Features Broken - Self Close/Open & Memberlist Reputation - Riyu - Feb 6, 2018 This is awesome. Nice job Xerotic. RE: Regarding: HF Features Broken - Self Close/Open & Memberlist Reputation - Biggy - Feb 6, 2018 Good job on this plugin as well. Great stuff. RE: Regarding: HF Features Broken - Self Close/Open & Memberlist Reputation - Omniscient - Feb 6, 2018 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. RE: Regarding: HF Features Broken - Self Close/Open & Memberlist Reputation - Armada - Feb 6, 2018 (Feb 5, 2018 02:10 AM)Charger Wrote: Hopefully Omni will add the code. It’s been like 4 months. I really f*cking miss Trust scan.... 😟 RE: Regarding: HF Features Broken - Self Close/Open & Memberlist Reputation - Omniscient - Feb 6, 2018 (Feb 6, 2018 08:14 PM)Armada Wrote: I really f*cking miss Trust scan.... 😟 When I fix the database it will come back. |