View Full Version : Title Class Hack
This hack is similar in idea to the Job Class Hack, except designed for users who don't want all the RPG options attached to it, and want an easy means to edit it through the control panel.
What does it do?
The Title Class Hack allows you to categorize your user titles via the control panel. Each title is assigned to a "titleclass" via a drop down list of available classes.
http://www.draxdesigns.com/images/vBulletin/screens/titleclass/shot01.gif
The Title Classes are conveniently listed in the modify section of the user titles panel, showing each title underneath it's respective class.
Whenever you update user titles through the control panel, or whenever a user makes a new post, their user title is normally updated based upon their thread count.
This hack adds a new check into that, altering the user title based only on those titles that are in the same class as the one the user selected.
http://www.draxdesigns.com/images/vBulletin/screens/titleclass/shot02.gif
Users can easily select their Title Class via the Profile section of the User Control Panel.
This hack was written on version 2.2.6, but will likely work on any other 2.2.x version.
This hack has already been tested by a few friends, but I wanted to get some of you guys involved before posting it as a full release.
Erwin
10-14-2002, 02:39 AM
Very cool idea. I think there is a similar hack like this already, but it's a good idea anyway. :)
Is there, I looked all over for one, and the only things I could find that were similar had a whole bunch of RPG-related options included, and not as friendly an interface for changing titles and such.
So I figured i may as well make my own :)
Link14716
10-14-2002, 12:40 PM
I think there is, but who cares? There wasn't one recently, and I am getting this hack. :)
Just please confirm for me that everything works fine, so that I can move this hack to the full releases forum. :)
[D]Vincent
10-14-2002, 03:41 PM
This is a great idea. Think you can just do this to make it to where you can select different things for each user group instead of class they select?
ethics
10-14-2002, 03:49 PM
Is there anyway to QUOTE the message thread you are PMing about?
In other words, I see a good post in the thread. The PM user button, when pressed, will quote the URL of the message (or thread) in the PM with something like, "Regarding your post: url blah blah" where the URL address would reside?
LeeCHeSSS
10-14-2002, 07:22 PM
Ohhh, this is nice. Now if only it could do what Vincent asked already: tie the various title-ladders to specific usergroups instead of letting the users choose.
But I bet I can edit that myself too :)
I'm sorry, ethics, what are you talking about? I don't think that has anything to do with my hack.
Ohhh, this is nice. Now if only it could do what Vincent asked already: tie the various title-ladders to specific usergroups instead of letting the users choose.
I'll see about adding that option in a future release... I hadn't even thought about it..... shouldn't be too difficult. Maybe I could even find a way for it to allow only certain classes for certain usergroups....
I'll definately look into it.
geniuscrew
10-14-2002, 10:27 PM
So is this like multiple usergroups, except you can choose your usergroup?
Looks great thought mate!
Maybe an integration with the new "PayCheck" hack would be great...
dogbomb
10-15-2002, 12:36 AM
I am not using this hack, but one idea jut LEAPED out at me when I saw it... Sex-defined-usergroups!
Males ---> Princes to Kings...
Females ---> Princesses to Queens...
Possibilities are endless, and you can simple ask the simple question "male or female" in the control panel. Good work!
Graphics
10-17-2002, 04:57 AM
woah, that hack is totally nice so ...
for mydigimon rpg they will whose the group of usertitles... like
Normal
Rookie - Champion - Ultimate - Mega
Normal-Jap
Child-Adult-Perfect-Ultimate
Hybrid
Pico Hybrid - Human Hybrid - Beast Hybrid - Advance Hybrid - Final Hybrid
HEHEHEHEHEHE
*hits the install buttons*
You are sooo kawaii
zajako
10-21-2002, 02:15 PM
that is a damn good idea dogbomb, ill have to edit it to do that and use it. Also if desiered i will release the coding here.
Chris M
10-21-2002, 04:46 PM
Wow:)
Cool:)
Satan
Hooloovoo
10-21-2002, 08:29 PM
This is something I've been looking for, and should fit my needs just nicely.
I'll post here to let you know how the install goes.
THANKS!
Pezman
10-28-2002, 06:13 AM
I haven't installed this hack yet, but I was wondering if it is possible to have avatars associated with each usertitle.
I would like promotion of posts to introduce different titles AND avatars that are bound to that particular title.
I'm actually working on the avatars addition for the next version :)
My suggestion for now is to upload a few images into a subdirectory of the default images folder, and then change the postbit template.
Find:
<smallfont>$post[usertitle]</smallfont><br>
$post[avatar]<p>
Replace:
<smallfont>$post[usertitle]</smallfont><br>
<img width="64" height="64"
src="https://vborg.vbsupport.ru/images/titleavatars/$post[usertitle].gif" alt=""><p>
Obviously this would require the name of each usertitle to be unique.
Chris M
10-28-2002, 12:44 PM
Perhaps doing it on a userid & usertitle basis would be better - the userid is unique;)
And incase you are wondering, the code for userid is :
$post[userid]
Satan
Once you change that avatar to be pulled from the userid, you're completely defeating the purpose that he was looking for though.
If you're going to base it on userid, then why not just use the avatar functions already included in vBulletin?
He wanted to have a different avatar only for each User Title / Rank.
Pezman
10-28-2002, 06:28 PM
I plan to have 3 "ladders" of avatars.
If the usergroup is "REGISTERED"
Then I will promote a users title every "X" ammount of posts, so like 50, 100, 250, 500, 1337, etc.
Ladders are as follows...
Aliens:
- TITLE: Facehugger AVATAR: image of facehugger
- TITLE: Chestburster AVATAR: image of
- TITLE: Drone AVATAR: image of
- TITLE: Praetorian AVATAR: image of
- TITLE: Queen AVATAR: image of
OR
Predator:
- TITLE: Bleh AVATAR: image of something
- TITLE: bleh AVATAR: image of something
- TITLE: Bleh AVATAR: image of something
- TITLE: etc AVATAR: image of something
OR
GTA3:
- TITLE: Henchman AVATAR: image of henchman
- TITLE: Gansta AVATAR: image of something
- TITLE: Bleh AVATAR: image of something
- TITLE: etc AVATAR: image of something
The idea is that each user gets a new "title" dependant upon posts, as part of this they will also get a new "avatar" until they hit something like 2000 posts, at which point they will be able to get a custom icon using the vB system.
So in review..
Registered users who have less then 2,000 posts are on a ladder system for TITLES and AVATARS, when they get to 2,000 posts I let the vB avatar system take over.
I want this hack to allow for the above PLUS 3 different "Ladders" since my board will have 3 major communities, GTA3, Aliens, and Predator.
I hope that this makes sense and someone will be able to answer my question.
I can't think of any way to setup the system to switch over to another system once they reach a certain amount of posts, sorry.
BTW, I got your email, I guess you didn't check the readme for the hack... post here and wait for me or someone else who's used the hack to respond. I've got a busy schedule and don't ave time to respond to personal support emails. That's what this thread is for.
I've agreed to provide support, but ONLY on this thread.
Sorry, don't mean to sound like a ++++.
Pezman
11-07-2002, 03:33 AM
Pfft. I Figured out a way easy way to do it. I simply put HTML into the custom title. So USER TITLE <br><img src="blah">
and it works just as I want.
RoYaL HQ
11-12-2002, 10:40 PM
Have I messed something up, or is this a common bug in version 2.2.8:
I have installed the hack, and it seems to work fine, except, as soon as you select the Class Type in User Profile, it resets to default.
( ow, and btw. I cannot choose the Classification at Signup, should I be able to, if not, how can I allow the user to select his Class at signup )
Plz Help, Tia.
Schmoo
11-15-2002, 03:31 AM
Alright, well I'm having a few problems here. (currently running vb 2.2.6)
1. First off, the classtitlelist does not show up in the modify profile. It shows up under new registrations however. I am not sure whether something needs to be done on my part or if anyone else is having this problem.
2. When you click to view another users profile, it appears like you can edit certain fields. It won't go through, but still there is a form/option box to enter the information (and often times you get your own profile to show up on the other users when looking at it).
AZone
11-17-2002, 03:22 AM
Very-very-very-very good hack! Thank you a lot!
AZone
11-20-2002, 08:05 PM
I'm sorry, but hack doesn't work on my forum!
I mean, it works, but title updates ONLY after update from AdminCP!
Every time user change TitleClass, he/she has to wait until admin press Update title button on AdminCP... So post new message doesn't work.
May be that is why I use Store Hack Made by Lesane?
Please, help me! I think problem in newreply.php and newthread.php (because both of hacks use the same script-blocks in these files).
HELP
You're going to have to examine the portion of the newthread/newreply that updates the database, and make sure the information from BOTH hacks is there for, AZone
If the title class list doesn't show up in modify profile, then you forgot to add it to that template.
As per the second problem, I've never seen that occur and am not sure how to handle that. Send me the url to an example.
AZone
11-21-2002, 01:20 AM
Link to my forum - http://forum.azkg.us/ (content Russian language, but still in English)
In the instruction said about newreply.php
In /newreply.php, find:
------------------
// update user stuff
$dotitle="";
if ($bbuserinfo[userid]!=0)
{
if ($bbuserinfo[customtitle]==0 && $foruminfo[countposts])
{
$usergroup=$DB_site->query_first("SELECT usertitle FROM usergroup WHERE usergroupid='$bbuserinfo[usergroupid]'");
if ($usergroup[usertitle]=="") {
$gettitle=$DB_site->query_first("SELECT title FROM usertitle WHERE minposts<=$bbuserinfo[posts]".iif ($foruminfo['countposts'],"+1","")." ORDER BY minposts DESC LIMIT 1");
$usertitle=$gettitle[title];
} else {
$usertitle=$usergroup[usertitle];
}
$dotitle="usertitle='".addslashes($usertitle)."',";
}
$DB_site->query("UPDATE user SET
".iif ($foruminfo[countposts],"posts=posts+1,","")."
$dotitle"."lastpost='".time()."' WHERE userid='$bbuserinfo[userid]'");
}
But following line:
$DB_site->query("UPDATE user SET
".iif ($foruminfo[countposts],"posts=posts+1,","")."
$dotitle"."lastpost='".time()."' WHERE userid='$bbuserinfo[userid]'");
}
is already changed and used by part of Lesane's Store Hack:
// Store hack by Lesane
$storeadmin = $DB_site->query_first("SELECT newreply FROM storeadmin");
$fool=$storeadmin[newreply];
if($fool=='0') {
$storeforum = $DB_site->query_first("SELECT storereply FROM forum WHERE forumid='$forumid'");
$fool = $storeforum[storereply];
}
$DB_site->query("UPDATE user SET
".iif ($foruminfo[countposts],"posts=posts+1,storep=storep+'$fool',","")."
$dotitle"."lastpost='".time()."' WHERE userid='$bbuserinfo[userid]'");
}
The same in the newthread.php
I think that is why titles do not update after new post...
May be it is better to use MultirankingSystem Hack?
sbywebs
11-23-2002, 01:59 PM
I just installed on vb 2.2.9 and it works perfectly, thank you very much. Hopefully you'll do that image add-on very soon, as when i post an announcement it takes a lot of room because it shows my image. (I did a thing like Title <br><img src="http://...")
The part that says UPDATE user SET etc.... in my hack and in Lesane's hack are different... you need to make sure the additional parts from both hacks are in there....
sbywebs
02-19-2003, 06:34 PM
Hello,
Me Again ... i was wondering if you were going to get that title class per usegroup thing done, would be a great help for my forum. Thank you.
Sorry, been away for a while... when someone chooses a new class, it doesn't automatically update their usertitle at this time, but will do so as soon as they make a post.
http://forums.raven-games.com for an example
spywebs, I'm actually getting around to that addition on my own forums, as I've realised I need it as well. When I finish the code I'll update the hack.
Kommissar
04-07-2003, 04:29 PM
Nice hack, good work. But: I want to choose for the users and disable the possibility to choose for them ;) How does this work?
Alien
04-08-2003, 08:58 PM
This is a great idea, thanks so much for writing this hack.
It's definatly going into my new forums when my complete redesign is finished! :D
I look forward to any updates you come up with as well! It will be my first hack in!
-Jason
Alien
04-08-2003, 08:59 PM
BTW, will this allow users to select their class upon registration?
I'd really love this if it is possible! That's all I need!
-Jason
Alien
04-08-2003, 09:00 PM
Lastly, can anyone confirm this working on a 2.3.0 installation? ;)
I've got it working on 2.30 on another forums that I'm an admin on ( http://www.wc3campaigns.com ).
I think I had to slightly modify some parts of the code, but I forget what.
My site's forums are 2.29 because all the hacks I was writing and the majority of the hacks available are 2.2x.
As per dissallowing users to select their class, I'm afraid that isn't possible at the moment, since i never found it necessary to add the current title Class of a user into the user edit section of the Admin CP. It's an end-user option, one that you already have enough control over.
The next version I release WILL have the Title Class option available in the User modify section of the Admin CP, as well as having the ability to set permissions to the title classes per user group (not sure yet how i'm setting those permissions... but I'll figure it out).
The next version will also immediately update a User's Title upon selecting it in the User CP.
And yes, this hack does affect the registration pages. (I was pretty thorough on it.... wasn't going to have it available in the user profile but not the register profile)
Alien
04-10-2003, 05:06 PM
Click install, thanks so much!
I'm going to try playing with this in 2.3.0 and see what happens on my test copy! I'm really looking forward to your update, any idea when that might be? Weeks, months? ;)
-Jason
Alien
04-13-2003, 11:51 PM
...years? :D
kevinnguyen
04-17-2003, 02:28 AM
its not working w/ me
i did all the step but it still shows my old title instead of the title class after i posted serveral posts
ahhhhhhhhhhhhhh
Alien
04-17-2003, 03:32 AM
Worked nicely for me on 2.3.0 after a few minor changes, should make note of them in your first post DraX. :)
I don't recall the minor changes, alien, can you post them here and I'l add them to the first post?
As for timeframe, I'm currently working on a complete site content management system for vBulletin (no, not along the lines of vBPortal, which is just a hack of nuke using the vBulletin user database)
After I finish that, i'll be updating this hack, as well as posting a few of the pieces of that management system (but not likely the whole thing by itself.... too much vBuletin code would have to be posted, and that would make the instructions WAAAAAY too complex)
I'm also working on a hack that will allow people to easily migrate from using Coranto for their site's news to using things like vBindex or vBhome by migrating the news database from CorantoSQL and associating posts with existing forum usernames.
All of this is necessary for the gaming sites I'm working on, and I'll be sharing a lot of that stuff here.
But quite obviously, this means I have quite a bit on my plate.
Alien
04-18-2003, 11:45 PM
Okay, I'm looking forward to seeing all your new stuff!
Thanks for your hard work!
...As for those changes, I'll see what I can do...
-Jason
Sylvus
04-24-2003, 02:05 AM
Drax, lovely hack but I have a question that perhaps you'd be able to answer. I'm trying to pull the User Title into the Postbit.
I've made one selection.
Default (obvious)
- New Member
- Junior Member
- Senior Member
Coca-Cola Fanatic (added via your hack).
- Rot your teeth drinker
- I love sweets drinker
- I need more coca-cola!
The title displays fine as "Rot your teeth drinker" if you have a minimum of 1 post. My question is, how can I get the Coca-Cola Fanatic choice to display also?
To be even more specific, in your screenshot on the first page, using that as an example, I want the "Serpent Riders" to also show in the postbit.
Alien
04-25-2003, 02:11 AM
Title Class Hack - vBulletin 2.3.0 Compatible Update
I've cleaned up the instructions a bit to work perfectly in vB 2.3.0
Only a few minor adjustments needed to be made.
For those who already have it working on 2.3.0, then your a smartypants and changed things on the fly properly and have no need to look at this. ;)
For earlier versions, his original file may work better. It depends on which version changed some of the default code. Not sure what changed between 2.2.7 - 2.3.0 that required the instructions to change but here they are!
Enjoy! :)
That would have been 2.30... the isntructions I initially provided are correct for 2.29.
Thanks for the update, Alien.
You want the chosen title class to show in the postbit? You'd end up having to add extra queries to the page, then..... either that, or modify my hack to add an additional text field in the database where, upon profile updates, the name of the selected title class would be entered.
Sylvus
08-11-2003, 01:26 AM
Any news on the update that allows for different usergroups?
Syl...
Lady Ginasue
10-23-2003, 12:50 AM
Before I install this hack, because it is one that I very much want. I need to know if it will work as is in version 2.3.2.
Odysseus
06-08-2004, 12:41 PM
Will there be a version for vBulletin 3? :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.