Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by Ralgar Ralgar is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 11-02-2001 Last Update: Never Installs: 11
 
No support by the author.

Following features

You can add so many rankingsystems you want extremly easy
The users can switch the systems at the cp and choose his own rankingsystem at the registration
complet admintool support
a possible ramified rankingsystem

i hope u like all

sigh, wrong board, pls move :stupid:

Update 24.11.2001:
The following bugs are handled

When a new user registered to the forum, the user would get the first title from the OLD usertitles. This is fixed.
When a user changed the ranksystem, he would only changed the title then he post something. This is also fixed.

Here are the Bugfixcode, the zipfile is now the bugfixed full release

Code:
*******************
* files, which will be edit by the bugfix
*******************

register.php 
member.php


*******************
* file
* member.php
* -------------
* modify the display for the field Ranksystem
* -------------
*******************

***
*search:
***

  // Custom User Title Code!

  if ($resettitle) {
    $group=$DB_site->query_first("SELECT usertitle FROM usergroup WHERE usergroupid=$bbuserinfo[usergroupid]");
    if ($group[usertitle]=="") {

      $gettitle=$DB_site->query_first("SELECT title FROM usertitle WHERE minposts<=$bbuserinfo[posts] ORDER BY minposts DESC LIMIT 1");
      $usertitle=$gettitle[title];
    } else {
      $usertitle=$group[usertitle];
    }
    $bbuserinfo[usertitle] = $usertitle;
    $bbuserinfo[customtitle] = 0;
    unset($customtext);
    
  }

***
*replace with
***

  // Custom User Title Code!

  $group=$DB_site->query_first("SELECT usertitle FROM usergroup WHERE usergroupid=$bbuserinfo[usergroupid]");
  if ($group[usertitle]=="") {

      $getprofilefield=$DB_site->query_first("SELECT profilefieldid from profilefield where 1 and title = 'Ranksystem' LIMIT 0, 1");
      $varname="field$getprofilefield[profilefieldid]";
      $rankid = $$varname;
      $gettitle=$DB_site->query_first("Select rankdetail.title from user, rankdetail left join userfield on user.userid = userfield.userid where user.userid= $bbuserinfo[userid] and rankdetail.rankid = $rankid and rankdetail.minposts <= user.posts ORDER BY rankdetail.minposts DESC LIMIT 1");

      $usertitle=$gettitle[title];
  } else {
    $usertitle=$group[usertitle];
  }
  $bbuserinfo[usertitle] = $usertitle;
  $bbuserinfo[customtitle] = 0;
  unset($customtext);
    
  $customtext = $usertitle;


*******************
* file
* register.php
* -------------
* modify the display for the field Ranksystem
* -------------
*******************

***
*search
***

  $usergroup=$DB_site->query_first("SELECT usertitle FROM usergroup WHERE usergroupid='$newusergroupid'");
  if ($usergroup[usertitle]=="") {

    $gettitle=$DB_site->query_first("SELECT title FROM usertitle WHERE minposts<=0 ORDER BY minposts DESC LIMIT 1");
    $usertitle=$gettitle[title];
  } else {
    $usertitle=$usergroup[usertitle];
  }

***
*replace with
***

  $usergroup=$DB_site->query_first("SELECT usertitle FROM usergroup WHERE usergroupid='$newusergroupid'");
  if ($usergroup[usertitle]=="") {

    $getprofilefield=$DB_site->query_first("SELECT profilefieldid from profilefield where 1 and title = 'Ranksystem' LIMIT 0, 1");
    $varname="field$getprofilefield[profilefieldid]";
    $rankid = $$varname;
    $gettitle=$DB_site->query_first("Select rankdetail.title from rankdetail where rankdetail.minposts <= 0 and rankdetail.rankid = $rankid ORDER BY rankdetail.minposts DESC LIMIT 1");

    $usertitle=$gettitle[title];
  } else {
    $usertitle=$usergroup[usertitle];
  }

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #62  
Old 08-02-2002, 02:37 AM
Sadie Frost's Avatar
Sadie Frost Sadie Frost is offline
 
Join Date: Dec 2001
Location: Pittsburgh
Posts: 307
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Remove the drop down box from their edit profile I'm not exactly sure where the code is without looking for it though
Reply With Quote
  #63  
Old 08-04-2002, 08:27 PM
Flash_Prince Flash_Prince is offline
 
Join Date: Aug 2002
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

I have installed the hack and it is running!

But there is still one Problem left, although is installed the updates.

The Ranksystem-Scrolldown is in the "Profile-Menu" in the Profile under the neccessary information for the registration, but the other informations like

Biography:
A few details about yourself
Location:
Where you live
Interests:
Your hobbies, etc
Occupation:
Your job

are also up under this topic, although they have been under "Additional information" before I installed the hack

What did I wrong.

I hope somebody is able to help me and excuse my english.

So long...

CU

*edit*: The custon User Titles are reverted back after changing them. This is the same Problem which the others have too.

P.S. I installed the fix, but the problems are still there.

PLEASE Help me.
Reply With Quote
  #64  
Old 08-06-2002, 03:40 AM
Ryangel Ryangel is offline
 
Join Date: Jun 2002
Posts: 100
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This hack is great!

Just one question to anyone who can answer.
Mods and Admins will not see the titles and remain as mod/admin <- this is good. What i want is to add another variable eg. $rank_title , so that mods and admins can ALSO have their ranks displayed together with the normal $usertitle.
Reply With Quote
  #65  
Old 08-06-2002, 04:25 AM
Ryangel Ryangel is offline
 
Join Date: Jun 2002
Posts: 100
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok i got what i wanted to work to work .... but it involves creating templates and editing some php files. but it worked....

also I've installed in vb2.2.6 and it seems to be working fine. (testing in my test board)

About the "custom User Titles are reverted back after changing them", how can i recreate it? I want to see if i have that problem..
Reply With Quote
  #66  
Old 08-06-2002, 11:06 PM
Zedd's Avatar
Zedd Zedd is offline
 
Join Date: Mar 2002
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

whne people who have picked a custom title post it reverts back to the original.

Although I think I have this fixed now
Reply With Quote
  #67  
Old 08-08-2002, 05:58 PM
Streicher Streicher is offline
 
Join Date: Oct 2001
Location: Reinbek, Germany
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Flash_Prince
Hi,

I have installed the hack and it is running!

But there is still one Problem left, although is installed the updates.

The Ranksystem-Scrolldown is in the "Profile-Menu" in the Profile under the neccessary information for the registration, but the other informations like

Biography:
A few details about yourself
Location:
Where you live
Interests:
Your hobbies, etc
Occupation:
Your job

are also up under this topic, although they have been under "Additional information" before I installed the hack

What did I wrong.

I hope somebody is able to help me and excuse my english.

So long...

CU

*edit*: The custon User Titles are reverted back after changing them. This is the same Problem which the others have too.

P.S. I installed the fix, but the problems are still there.

PLEASE Help me.
Find in member.php

Code:
eval("\$customfields_required .= \"".gettemplate("register_customfields")."\";");
change in

Code:
eval("\$customfields .= \"".gettemplate("register_customfields")."\";");
And what ist this also in member.php:

Code:
$rankid = $$varname;
Should this not be:

Code:
$rankid = $varname;
Reply With Quote
  #68  
Old 09-22-2002, 02:23 AM
Amasov's Avatar
Amasov Amasov is offline
 
Join Date: Nov 2001
Location: Hamburg (GE)
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Martyjp
On my board mods and admins can set their own titles, yet after installing this hack that no longer works, the option is still there but after they make the change it just reverts to the default title. Any ideas why?

Its no biggie as it can still be changed from the admin control panel, just wondering if I have done something wrong?
Has anybody found a solution for this problem? I have the same one

Everytime my mods change their profile, their ranktitel is reset to default.
Reply With Quote
  #69  
Old 11-30-2002, 10:24 PM
SirSteve SirSteve is offline
 
Join Date: Oct 2001
Posts: 382
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is this working for 2.2.9?
Reply With Quote
  #70  
Old 01-05-2003, 02:15 AM
AZone's Avatar
AZone AZone is offline
 
Join Date: Nov 2002
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, it is working on 2.2.9
One question - how to rename "Ranksystem" field? I need permission to rename this field through AdminCP , but not to remove. Help me please.
Reply With Quote
  #71  
Old 01-17-2003, 01:54 PM
Sadie Frost's Avatar
Sadie Frost Sadie Frost is offline
 
Join Date: Dec 2001
Location: Pittsburgh
Posts: 307
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm not sure how to change the field name, but I would maybe search the files for the word ranksystem? Sorry, I know that's not much help.

Has anyone found a fix for the custom titles not staying? I have it set so people can choose a custom title after so many posts - but when people try to do it they still get their regular ranksystem title. Similarly, if I change it in the admincp, after a bit it reverts back to the ranksystem value. Anyone have any suggestions?
Reply With Quote
Reply


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:53 PM.


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.08865 seconds
  • Memory Usage 2,315KB
  • Queries Executed 25 (?)
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
  • (5)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete