vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Muliple Rank Sets (https://vborg.vbsupport.ru/showthread.php?t=70892)

xg3 10-22-2004 09:29 PM

Muliple Rank Sets
 
I'm looking for a hack that allows you to make multiple rank sets.

For a simple example, a user can choose..."Plant" or "Animal" category.

The rank images (stars or whatever) will correspond to whichever category he picked. For example, if a plant user has 10 posts, it will show a maple leaf, but a 10 post animal user will show a cat or something.

So different images corresponding to different categories at the same post counts.

It would be easy for the admin modify rank page..
10 posts: ____________ (url for plant category) ____________ (url for animal)
50 posts: ____________ (url for plant category) ____________ (url for animal)

AN-net 10-22-2004 09:45 PM

you can do this by creating usergroups for each;)

xg3 10-23-2004 02:20 AM

Creating usergroups is a hard way to do it though..since you would have to assign people manually and such. I don't think people can change their own usergroup? Can't someone find a way to allow rank sets based on a profile field or something?

Gaffer 10-23-2004 02:52 AM

there was a hack made for vb2.X which LoB made. i know LoB and have already asked him if he could help me convert it to vb3 but i've not seen him for a while

that said i've done one with public seletable usergroups.

look here

xg3 10-24-2004 12:52 AM

thanks a lot, it's a little complicated for the average user though, so if you're reading this and you're capable..please make a hack for this. Thanks!

Barrikin 10-24-2004 06:13 AM

They way i did was for the image paths for the ranks in the admincp i put say xxx.jpg

Then i edited the templated and did something like this
HTML Code:

<img src="/images/ranks/$bbuserinfo[styleid]/$vb.ranks.var.from.admincp">
I'm sure its the wrong var names but i'm super tired and don't feel like loggin into my admincp to get it ;p


It works great. Only down side is you can't see the ranks in the admincp they will show up as broken images.


If it doesn't work send me a pm and i'll help ya when i wake up form my hangover. hah
:tired: :tired: :tired:


All times are GMT. The time now is 11:19 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.01035 seconds
  • Memory Usage 1,720KB
  • 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
  • (1)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete