vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=5)
-   -   Title Class Hack (https://vborg.vbsupport.ru/showthread.php?t=44599)

DraX 10-13-2002 10:00 PM

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/vB...ass/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/vB...ass/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. :)

DraX 10-14-2002 02:46 AM

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. :)

DraX 10-14-2002 02:56 PM

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 :)

DraX 10-14-2002 08:01 PM

I'm sorry, ethics, what are you talking about? I don't think that has anything to do with my hack.

DraX 10-14-2002 08:03 PM

Quote:

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.

DraX 10-28-2002 07:35 AM

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:
PHP Code:

<smallfont>$post[usertitle]</smallfont><br>
$post[avatar]<p

Replace:
PHP Code:

<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 :

Code:

$post[userid]
Satan

DraX 10-28-2002 04:32 PM

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.

DraX 10-30-2002 04:02 AM

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

DraX 11-21-2002 01:01 AM

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

DraX 11-21-2002 01:03 AM

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
Quote:

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:
Quote:

$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:
Quote:

// 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://...")

DraX 11-25-2002 09:39 PM

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.

DraX 04-07-2003 01:19 AM

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

DraX 04-07-2003 01:20 AM

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? ;)

DraX 04-09-2003 05:14 AM

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)


All times are GMT. The time now is 04:49 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.01363 seconds
  • Memory Usage 1,831KB
  • 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_code_printable
  • (2)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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