vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Major Additions - Yet Another Ranks System (https://vborg.vbsupport.ru/showthread.php?t=265893)

TheLastSuperman 07-02-2011 06:42 AM

Quote:

Originally Posted by grey_goose (Post 2215703)
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 :cool:.

Edit: Updated, reference here: https://vborg.vbsupport.ru/showpost....58&postcount=2

sticky 07-02-2011 07:24 AM

Quote:

Originally Posted by TheLastSuperman (Post 2213940)
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 :cool:.

Are there any differences between this mod and the awards mod other than the wording?

borbole 07-02-2011 12:14 PM

Quote:

Originally Posted by Kaspersku (Post 2213836)
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 (Post 2213906)
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.

Also it would be better to use:

PHP Code:

$vbulletin->db->query_write 

instead of:

PHP Code:

$db->query_write 

Other than that, great mod :)

TheLastSuperman 07-02-2011 02:32 PM

Quote:

Originally Posted by borbole (Post 2215844)
Also it would be better to use:

PHP Code:

$vbulletin->db->query_write 

instead of:

PHP Code:

$db->query_write 


I noticed the install code this morning along w/ a few other misc changes, I had not noticed the above ^ ;).

TheLastSuperman 07-02-2011 04:12 PM

Quote:

Originally Posted by sticky (Post 2215769)
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 :cool:.

TheLastSuperman 07-03-2011 01:55 AM

Updated to v4.1.4 on 7/2/2011

Notes:
  • 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.
  • Tested and confirmed to work on vBulletin 4.1.4.

sticky 07-03-2011 06:03 AM

Quote:

Originally Posted by TheLastSuperman (Post 2215909)
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 :cool:.

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.

TheLastSuperman 07-03-2011 08:27 PM

Quote:

Originally Posted by sticky (Post 2216120)
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? ;).

Maischter 07-06-2011 05:24 PM

1 Attachment(s)
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

TheLastSuperman 07-06-2011 08:10 PM

Quote:

Originally Posted by Maischter (Post 2217478)
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?


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

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01433 seconds
  • Memory Usage 1,760KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_php_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete