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 (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

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

check it out on my board @
STGN
go into the UserCP -> edit profile, and select a rankset from the dropdown menu..
im just finishing off the control panel section to allow you to add rank schemes through there instead of using phpmyadmin like im doing at the moment, should all be done by tomorrow at which time ill attatch the hack.

i made this for ikonboard months ago and we were the only one to have it, i thought "ill not share this i want us to be origional" but after receiving so much help from here i want to give something back for it

basically it allows your users to pick a scheme for the rank pips, i.e. they pick trees and it gives them tree pips, they pick snowmen it gives them snowmen pips

Show Your Support

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

Comments
  #12  
Old 10-12-2001, 07:59 AM
Shakron Shakron is offline
 
Join Date: Oct 2001
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, it seems you won't give it to us even if you promised to do so

... but it would be just fair if you could as at least tell us why ... because if you don't do that we all will come here every day to see if you posted it ... and will get disappointed every day
Reply With Quote
  #13  
Old 10-12-2001, 08:03 AM
Goldfinger's Avatar
Goldfinger Goldfinger is offline
 
Join Date: Oct 2001
Posts: 120
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i'd like to get my hands on this hack .
Reply With Quote
  #14  
Old 10-12-2001, 08:55 AM
LoB
Guest
 
Posts: n/a
Default

oh sorry guys i totally forgot, heres the multi rank control panel (im sure someone could improve on this, it was just... thrown together as quickly as possible) ill post the hack in a few hours, just need to extract the changes from the code. while you wait, youll be able to see how the hack works from the admin script though.
NOTE: you will also need to add the hack for the selection box in the users profile to get this to work, otherwise users will get a box where theyll have to type the rank name in manually (guess) which isn't great, ill bundle that hack in the same zip
Reply With Quote
  #15  
Old 10-12-2001, 10:21 AM
Shakron Shakron is offline
 
Join Date: Oct 2001
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks ... I really thought you wouldn't give it to us anymore

... as soon as we have it on our board we will show you our brand new SWG-board
Reply With Quote
  #16  
Old 10-12-2001, 08:18 PM
Ruth Ruth is offline
 
Join Date: Oct 2001
Posts: 171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Lob
Reply With Quote
  #17  
Old 10-13-2001, 06:12 AM
Bitmap Bitmap is offline
 
Join Date: Oct 2001
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yea ... thanks lob ... it looks pretty cool in the admincenter but i'm still waiting for the rest of the hack
hope your not forgetting to attach it like last time
Reply With Quote
  #18  
Old 10-14-2001, 02:34 PM
Shakron Shakron is offline
 
Join Date: Oct 2001
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't want to get on your nerves but .. could we please get the other part of the hack?

I mean .. I don't understand you ... you offered that hack and now you are not posting it and you are ignoring me when I try to contact you .. what have I done wrong?

... and if you are mad about me (don't know why) ... then please give it at least to the other people or tell us, that you won't give it to us.
Reply With Quote
  #19  
Old 10-14-2001, 04:42 PM
Ichabod_Crane
Guest
 
Posts: n/a
Default

LoB, could you please post the second part of the code, im dying to get that stuff

thanks,
Ichabod Crane
Reply With Quote
  #20  
Old 10-18-2001, 11:27 AM
Shakron Shakron is offline
 
Join Date: Oct 2001
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by rcooper
Man is thisn what i am thinking. Like picking what stars go to what group you select? I run a hunting , fishing and acamping board I would like to have the stars go with the person say they are hunting -> deer fishing ->fish etc etc.

Is that what this hack does?

R.cooper
Hmm .. I am not sure if I understood it right, but it's like this:

UserA opens his user-center and there he is able to choose what ranking-path he wants. So if we take as an example a Star Wars board this would mean, that he is able to choose between the following paths:
- Jedi
- Dark-Jedi
- Rebell
- Imperial
- Crime

Now, let's say he chooses the Imperial-path. This means he will get ranks like Leutnant, General, Grand-Admiral ...

Someone else chose Jedi and so his rank-path will be like Jedi-Padwan- Jedi - Jedi-Master ...

.. ok? Well .. that's it and believe me: It's pretty cool

.. so I am still hoping that we get the second part ...
Reply With Quote
  #21  
Old 10-18-2001, 03:52 PM
LoB
Guest
 
Posts: n/a
Default

here it is sorry for the long wait, i do things then wait so long to document them i forget how they work lol.

BEFORE INSTALLING:
you will need the hack which allows for the use of combo (dropdown) boxes in the user profile fields
when it's done, you'll need a custom user profile field called "Rankset" using the dropdown combobox (otherwise people will have to type in rankset names by hand instead of selecting from a list)

run the install script (attatched to this post)
and modify the code (below)
then use the ranks admincenter to add ranks.


look for this code in admin/functions.php

on a sidenote, you'll see [field8] below, in userfields find out which is your last unused custom user field and use that (change the number in this script) or simply add a new column in phpmyadmin, the custom user field (8) stores the rank info for that user

PHP Code:
        if ($avatarurl=="" or ($bbuserinfo[userid]>and !($bbuserinfo[showavatars]))) {
            
$post[avatar]="";
        } else {
            eval(
"\$post[avatar] = \"".gettemplate("postbit_avatar")."\";");
        }
        if (
$post[customtitle]==2) {
            
$post[usertitle] = htmlspecialchars($post[usertitle]);
        } 
right after it put this:

PHP Code:
//START MULTI RACE HACK

$res mysql_query("SELECT * FROM userfield WHERE userid='$post[userid]'");
$userinfo mysql_fetch_array($res);
mysql_free_result($res);

//go through all of the ranks, seeing which postcount fits which pip

$res mysql_query("SELECT * FROM rankcategories WHERE cat_name='$userinfo[field8]'");
$rankinfo mysql_fetch_array($res);
mysql_free_result($res);

if(!isset(
$rankinfo[cat_id]) || strlen($rankinfo[cat_id])<1)
{
$rankinfo[cat_id]=1;
}

$rankposts mysql_query ("SELECT * FROM ranks WHERE rank_catid='$rankinfo[cat_id]'");

while(
$row mysql_fetch_array($rankposts))
   {

if(
$post[posts]>=$row[rank_posts])
{

$temppostcount $row[rank_posts];

}


   }

$res mysql_query("SELECT * FROM ranks WHERE rank_catid='$rankinfo[cat_id]' AND rank_posts='$temppostcount'");
$rank mysql_fetch_array($res);
mysql_free_result($res);

$rankpip "<img src=$rank[rank_graphic]>";

$post[usertitle]="$post[usertitle]<br>$rankpip"

//END MULTI RANK HACK 
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 01:39 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
  • Page Generation 0.04449 seconds
  • Memory Usage 2,317KB
  • 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
  • (2)bbcode_php
  • (1)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
  • (3)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
  • (7)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
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_imicons
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete