Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons

Reply
 
Thread Tools
Yet Another Ranks System Details »»
Yet Another Ranks System
Version: 4.1.4, by TheLastSuperman (Senior Member) TheLastSuperman is offline
Developer Last Online: Oct 2023 Show Printable Version Email this Page

Category: Major Additions - Version: 4.2.x Rating:
Released: 06-27-2011 Last Update: 10-29-2012 Installs: 171
Supported DB Changes Uses Plugins Auto-Templates
Additional Files Translations  

* 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 View Post
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
  • Styling issues? - https://vborg.vbsupport.ru/showpost....58&postcount=2
  • 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!

Download Now

File Type: zip Innovative-YARS-vB4.zip (102.2 KB, 796 views)

Screenshots

File Type: png RankAdmin.png (158.9 KB, 0 views)
File Type: png RankPostbit.png (67.6 KB, 0 views)
File Type: png RankPrivateMessage.png (94.4 KB, 0 views)
File Type: png RankProfile.png (65.0 KB, 0 views)
File Type: png RankAdmin2.png (98.2 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
12 благодарности(ей) от:
Azucar, BCP Hung, elwizard, FinalFantasy, Gorgasm, Jack.D, mitch84, mohammadxxx, Sage Knight, Sayid, snowlion

Comments
  #62  
Old 10-11-2011, 01:09 AM
Capt C Ray Capt C Ray is offline
 
Join Date: Sep 2011
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ahoy TheLastSuperman,

In reading your description of this add-on, it looks close to what I am looking for, but not quite. The current medal system I have on our site allows our members to nominate other members and add comments as to why they are nominating said member. The admins then approve or dis-approve the medal.
We also have a tab that when clicked on shows al the medals we offer plus who has been awarded them.
Can this add-on be modified to do these same functions?
You may view the medals by visiting our web site http://www.disneypotco.com/phpBB3/index.php and clicking on the medals button.

Capt C Ray
Reply With Quote
  #63  
Old 10-11-2011, 04:24 PM
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
Senior Member
 
Join Date: Sep 2008
Location: North Carolina
Posts: 5,844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Capt C Ray View Post
Ahoy TheLastSuperman,

In reading your description of this add-on, it looks close to what I am looking for, but not quite. The current medal system I have on our site allows our members to nominate other members and add comments as to why they are nominating said member. The admins then approve or dis-approve the medal.
We also have a tab that when clicked on shows al the medals we offer plus who has been awarded them.
Can this add-on be modified to do these same functions?
You may view the medals by visiting our web site http://www.disneypotco.com/phpBB3/index.php and clicking on the medals button.

Capt C Ray
In the Ranks mod you can:
- Members can recommend Ranks to other members w/ description, then admin approves or pushes through manually after review.
- You can create a new navbar tab to show the Ranks Page, same functionality you want pretty much.

So all-in-all it's actually closer to what you wanted then you realized if I read your request correctly .
Reply With Quote
  #64  
Old 10-11-2011, 07:40 PM
Capt C Ray Capt C Ray is offline
 
Join Date: Sep 2011
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TheLastSuperman View Post
In the Ranks mod you can:
- Members can recommend Ranks to other members w/ description, then admin approves or pushes through manually after review.
- You can create a new navbar tab to show the Ranks Page, same functionality you want pretty much.

So all-in-all it's actually closer to what you wanted then you realized if I read your request correctly .
By this description, it appears you are correct. Now to just get a skin installed and this add-on to see what I have to work with.

Thanks much.
Reply With Quote
  #65  
Old 10-13-2011, 09:28 PM
Capt C Ray Capt C Ray is offline
 
Join Date: Sep 2011
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Do you know how this will function in version 4.1.6?
Reply With Quote
  #66  
Old 10-13-2011, 11:07 PM
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
Senior Member
 
Join Date: Sep 2008
Location: North Carolina
Posts: 5,844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Capt C Ray View Post
Do you know how this will function in version 4.1.6?
https://vborg.vbsupport.ru/showpost....7&postcount=60
https://vborg.vbsupport.ru/showpost....7&postcount=56

Best advice I can give to anyone looking to install a mod is, if it's supported and/or has multiple pages of posts it's best advised to skim all the pages and see if any posts about issues or working with certain versions has been stated by the author or other members. Sometimes there are solutions to problems posted as well, for example the profile tab fix in the Yet Another Awards System is not listed in the mod files or mod description yet it exist and you can browse to find it and fix the issue yourself . In this case we see that it will work on 4.1.6 and should work on 4.1.7 as well .
Reply With Quote
  #67  
Old 10-15-2011, 03:35 PM
CharlieDelta CharlieDelta is offline
 
Join Date: Apr 2010
Posts: 616
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Getting this error when I try to go to the ranks page. Using Vb 4.1.5.
Code:
Fatal error: Cannot redeclare construct_depth_mark() (previously declared in //....html/testvb/ranks.php:97) in /....html/testvb/includes/adminfunctions.php on line 1907
Reply With Quote
  #68  
Old 10-15-2011, 06:10 PM
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
Senior Member
 
Join Date: Sep 2008
Location: North Carolina
Posts: 5,844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by CharlieDelta View Post
Getting this error when I try to go to the ranks page. Using Vb 4.1.5.
Code:
Fatal error: Cannot redeclare construct_depth_mark() (previously declared in //....html/testvb/ranks.php:97) in /....html/testvb/includes/adminfunctions.php on line 1907
In ranks.php find:

PHP Code:
// ###################### Start makedepthmark #######################
function construct_depth_mark($depth$depthchar$depthmark '')
{
// repeats the supplied $depthmark for the number of times supplied by $depth
// and appends it onto $depthmark
    
for ($i 0$i $depth$i++)
    {
        
$depthmark .= $depthchar;
    }
    return 
$depthmark;

Replace with:

PHP Code:
if (!function_exists('construct_depth_mark'))
{
// ###################### Start makedepthmark #######################
    
function construct_depth_mark($depth$depthchar$depthmark '')
    {
    
// repeats the supplied $depthmark for the number of times supplied by $depth
    // and appends it onto $depthmark
        
for ($i 0$i $depth$i++)
        {
            
$depthmark .= $depthchar;
        }
        return 
$depthmark;
    }

*The reason for the error is simple, as you can see by the second part of your error this "function" was called again because it's defined twice - in short the guys who originally made the Awards mod (which this is a conversion of that) simply copy/pasted the function to suite the mod not taking into affect they should not. I've wrapped it in a simple conditional to check for the function first. Update will be in the next release, in the meantime please edit ranks.php accordingly if you encounter this issue as CharlieDelta has .

**Also, if your reading this and have the "Yet Another Awards System" installed you should do this same exact edit in awards.php
Reply With Quote
Благодарность от:
CharlieDelta
  #69  
Old 10-15-2011, 06:23 PM
CharlieDelta CharlieDelta is offline
 
Join Date: Apr 2010
Posts: 616
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you Superman!! That did the trick!!
Reply With Quote
Благодарность от:
TheLastSuperman
  #70  
Old 10-15-2011, 08:47 PM
CharlieDelta CharlieDelta is offline
 
Join Date: Apr 2010
Posts: 616
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

My ranks are not showing up in the profile tab. I see that you mentioned in an earlier post that there is most likely a fix for it over at the awards mod. I have searched through there and all the fixes that I have found you already implemented. I must be missing something?????
I do not have two tabs or a ghost tab just no content.
I see Odie3 got his working, hmmmm......
Reply With Quote
  #71  
Old 10-22-2011, 02:37 PM
Nuker_Viper Nuker_Viper is offline
 
Join Date: Sep 2011
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by CharlieDelta View Post
My ranks are not showing up in the profile tab. I see that you mentioned in an earlier post that there is most likely a fix for it over at the awards mod. I have searched through there and all the fixes that I have found you already implemented. I must be missing something?????
I do not have two tabs or a ghost tab just no content.
I see Odie3 got his working, hmmmm......
i have had the same problem so this is what i did:
Since i use the ranks for my clan members only and they can only have 1 rank at a time; i disabled the following in the Plugin Manger:

YARS in Member Profile - Cache Templates
YARS in Member Profile - Init
YARS in Member Profile - Profile

I also replaced $vbphrase[rank_description] the text "Description" with "Rank Duties"
And sme rank settings: userinfo_left and style 3 so that it just uses the icon. Disabled the image in the display. So no need to upload an image - just an icon.

This will disable the tab in your profiles but keep the postbit intact. Just make sure your postbit i set to at least 1 and it is active.
Reply With Quote
2 благодарности(ей) от:
CharlieDelta, TheLastSuperman
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:09 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06395 seconds
  • Memory Usage 2,387KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (2)bbcode_php
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (15)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (6)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete