* CREATE A BACKUP OF YOUR FORUM AND DATABASE BEFORE INSTALLING !
I've had quite a few PM's in regards to this and seeing as how once upon a time I administered a gaming tournament forum it came in handy... we had virtual armies in battlefield games with Generals, LtCol's, Captains, squads of 6 and enjoyed a rank structure along with our awards so we converted the Awards mod into a Ranks mod, many also had a need for it and now we have it for 4.x. This is a complete re-write of the 4.x Yet Another Awards System by CypherSTL and Xanlamin ( https://vborg.vbsupport.ru/showthread.php?t=232684 ) with updates including one fix by another community member for the profile tabs (noted in Changelog.txt). I hope everyone enjoys it who finds a use for it .
DESCRIPTION:
This is a Medals/Ranks system. Admin can give members ranks, and rank icons will be displayed in member's profile, posts, as well as in a rank list.
FEATURES:
In AdminCP
Can Create/Edit/Delete/Reorder categories/sub-categories in ACP (with category name and description)
Can Create/Edit/Delete ranks in ACP (with Rank Name, Description, Icon URL, Image URL)
Can Move one (or all) rank(s) from one category to another
Can set some ranks un-classified (not displayed for public)
Can re-order ranks in ranks showcase
Issue ranks to members, based on username or userid, with Issue Reason
Remove ranks from members
In ModCP
Issue ranks to members, based on username or userid, with Issue Reason
Remove ranks from members
Front page & other
Display ranks list in with: Rank Name, Description, Icon, Image, and Members who get each rank.
Display ranks showcase in profile, with Rank information, Issue time and reason
Display rank icons in postbit (showthread, showpost, announcement, private)
Separate Rank Request/Recommendation Forms
CSS Customizable
Points System *Requires MySQL 5.0+
Attention:
If you do not properly setup this modification you will see errors such as:
Quote:
Originally Posted by faraz_hamza
Code:
Something unexpected has happened, your rank request cannot be sent at this time. Please contact a site administrator for assistance.
I am getting this error when i recommend or issue rank request?
how to fix it ?
Basically here's the short on this:
Edit your usergroups, for each usergroup set whether they can request and recommend ranks.
Setup the mod options in AdminCP > Ranks System > Rank System Settings.
If your having the requests or recommendations posted as a New Thread OR New Post within a existing thread please ensure that the members usergroup has permission to do so, in other words they can't post a new rank request into a private admin-only forum or a new post in a admin only thread correct? Bingo . You can create a new forum and only allow viewing to normal members .
If your having users requesting ranks every min or two, adjust your minimum time between posts to be one minute.
Try disabling the Points System, do you still have a issue?
Other issues:
What is the minimum version of MySQL Required?
- The core of the ranks sytem will function on MySQL 4.1. However, in order to use the Points System you must be running at least MySQL 5.0+
I'm seeing output like "-- BEGIN TEMPLATE: ranks_rankusers_bit -->" before it displays members. Why?
In your AdminCP > Settings > Options > General Settings > Add Template Name in HTML Comments = OFF
If you have any other issues, post them however I need to know if this was the 2nd, 3rd or 4th request, what was done before the error and if issuing to another user worked afterwords! Thanks!
Fixed that by turning off adding template names as HTML comments.
However, requests don't seem to be working:
There's some error when sending your rank request. Please contact site's administrator for assistant.
Confirmed, will release a new version fixing requests/recommend asap although more than likely right after Monday (4th). Anyone else feel free to use the current version and simply restrict those two options in your usergroup settings until the new version is out .
Bingo, so you can install this and use in conjunction w/ the Awards mod if your running a military or FPS gaming community etc etc same as it's been since we first converted Hachno's mod into the Ranks system pretty much, I simply used Cypher and Xan's code to make it easier on me to update since a few had requested it for 4.x .
In fact you could rename the Awards mod into well.. anything and use it like a badge/ribbon/award/rank whatever mod, it is marked as re-usable code after all .
Are there any differences between this mod and the awards mod other than the wording?
Oh dear, it can not be installed on vbb 4.1.4
When I installed the 4.1.4 database, then it fails, I try to install on localhost, it was like, you can explain ?
It looks like the installer did not add the rank table at your database.
Quote:
Originally Posted by TheLastSuperman
I've only ran this on 4.1.3 and below per the info in the mod description: vB Version: 4.1.3
It shouldn't make any difference at all about the versions, mod database install wise I mean.
After taking a quick look at the xml file I noticed a few things that need correction. For example, at the below install code you have forgotten to include the TABLE_PREFIX part which has been included everywhere else. Because if a user is using a custom prefix at his/her database then it won't work. It will work only if no prefix has been used at all.
PHP Code:
<installcode><![CDATA[$db->reporterror = 0; $db->query_write("ALTER TABLE `rank` CHANGE `rank_desc` `rank_desc` TEXT NOT NULL"); $db->query_write("ALTER TABLE `rank_user` CHANGE `issue_reason` `issue_reason` TEXT NOT NULL"); echo "<font size=\"1\">Alter table - 2.1.4</font><br />"; $db->reporterror = 1;]]></installcode>
Also you are using the depricated font size all over the place. It would be better, coding wise to use <span style instead.
Are there any differences between this mod and the awards mod other than the wording?
As far as revisions to code and corrections per Borbole's suggestion above and other misc changes and updates... yes, as far as functionality that would be none. So again, no need to use this unless you have a requirement to give out Awards and Ranks and the ranks should be used in a different manner other than "titles" per say as you already have a rank structure i.e. Administrator/Moderator/Member etc etc .
Removed some residual Awards references in snippets of the code.
Updated two phrases.
Tested and initial bug report of database error depends on settings from tests ran, please be sure to test on a site with more than one user and have the options set correctly in admincp.
As far as revisions to code and corrections per Borbole's suggestion above and other misc changes and updates... yes, as far as functionality that would be none. So again, no need to use this unless you have a requirement to give out Awards and Ranks and the ranks should be used in a different manner other than "titles" per say as you already have a rank structure i.e. Administrator/Moderator/Member etc etc .
Can I change the text in this to saw "award" instead of "rank?"
If the coding is cleaner and has some fixes I would prefer to use this.
Can I change the text in this to saw "award" instead of "rank?"
If the coding is cleaner and has some fixes I would prefer to use this.
Well... it's not just a simple matter of find/replace as some would think there's many variations i.e.
Award = Rank
Awards = Ranks
award = rank
awards = ranks
aw = ra
au = ru
etc
etc
etc
So it might be easier for you to simply rename a few phrases, in that case most of it would show the wording "Award" or whatever you wish it to say... some areas in admincp may still say Ranks etc but a few changes to the phrases in the xml and you should have something working the only con to that is if you have Awards mod installed atm it might conflict and certainly won't upgrade from a previous Award mod version know what I mean? .
the profil menu isnt displayed correctly...??? attachment 1
and could you insert an option for postbit info placement like in attachment 2?
if im in the my ranks menu (in the profile section) i cant see the the yars menu anymore! ( attachment 3)
p.s. i have 4.1.4
For the first image, it seems you have a fixed width or your browser was at a certain set size due to screen resolution but the point being once you install so many mods that add tabs your going to run out of room and it will drop the others on a new line. I also assume you have "My Ranks" from this modification and "Ranks" from another mod perhaps a DB Tech mod or something to do w/ ranks as well?
Second image, sure let me see what I can whip up, about to release a update here shortly and will include that information.
Third image I'm assuming is another mod conflicting.. what else do you have installed that interacts with your postbit?