![]() |
Show TOP Reputation Poster
Hi,
I would like to show the Top reputation poster on my board. Preferably on the sidebar. Is there a way? |
1 Attachment(s)
Yes, you will need to create a new "Forum Block."
Follow: AdminCP -> Forums & Moderators -> Forum Blocks Manager At the bottom of the form, click "Add Block". From the drop-down menu for "Select Block Type", choose "Custom HTML/PHP" then click "Continue". You will be presented with a form for defining your new block. Give it a title, such as "Top 5 Reputations" and a description. I recommend caching the block for at least 60 minutes, this way the database need only be queried once an hour. Set the display order so that it shows where you desire in the sidebar. For "Content Type" select "PHP". And for the content, add the following code: PHP Code:
PHP Code:
Note: Users who have elected to hide their reputations will not be displayed. It only makes sense to honor this setting here. Also, banned users are excluded. If you have any changes to the way the users are displayed, please let me know. The usernames are shown with their username markup, and link to their profiles. |
Quote:
can also avatar be displayed? Also I want admin to be escluded from the list please |
1 Attachment(s)
Quote:
PHP Code:
|
Quote:
There is an avatar issue (check screenshot below) they should be all square Also I would disable the bullet points Thank you! https://vborg.vbsupport.ru/external/2017/10/4.jpg |
If you force the avatars to be square, then the aspect ratio of the images won't be preserved, and you will wind up with "squished" images. However, give this a try, and you'll see what I mean:
PHP Code:
|
Quote:
Do you think it can be also made by top poster of the week, month and so? You should make it as an official mod :) Thanks dude |
Quote:
Quote:
|
Quote:
- top reputation of the week - top reputation of the month - all time top reputation |
I get a blank white page following the link you posted to your site. However, if you could create a mockup image of what you want this reputation block to ultimately look like, that would be a huge help in making certain I get what you want without having to make multiple changes.
Also, this would take some time, so it would be a while once I know exactly what you want before I would have the code ready. :) |
Quote:
because of this error: Code:
[20-Oct-2017 23:56:54 Europe/Rome] PHP Fatal error: Call to undefined function fetch_avatar_url() in /home/interfan/public_html/forum/includes/block/html.php(95) : eval()'d code on line 17 |
Odd, I've used that function in forum blocks for years on end without any issue on many different sites.
--------------- Added [DATE]1508550205[/DATE] at [TIME]1508550205[/TIME] --------------- Try this code: PHP Code:
|
Quote:
Anyway how to disable admins to appear in the list? I have made a quick mockup, showing the 3 tabs: week, month, all time. https://vborg.vbsupport.ru/external/2017/10/6.jpg |
Quote:
PHP Code:
PHP Code:
Quote:
|
Quote:
|
1 Attachment(s)
I have created a product that you can now install, and which I have attached. :)
First, delete the previous forum block that you created. Then download and import the attached .XML file. The new forum block will be auto-created. Then visit the product settings to configure the settings to your preferences. Let me know if there are any issues, or changes you would like. :D |
Quote:
- can we set the order in the settings for the tabs: week, month, all time - the list seems pretty much the same in all 3 tabs |
Quote:
Quote:
|
Quote:
--------------- Added [DATE]1508949583[/DATE] at [TIME]1508949583[/TIME] --------------- Oh maybe because I've introduced the REP feature last 2 weeks so there is no much history yet |
Quote:
|
1 Attachment(s)
I've attached a .ZIP file containing instructions and a description. The include .XML file is more robust, and uses phrasing/stylevars to allow you to customize more fully.
Before installing this update, please uninstall the previous product. :) |
All times are GMT. The time now is 06:56 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|