Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Beta Releases

Reply
 
Thread Tools
Title Class Hack Details »»
Title Class Hack
Version: 1.00, by DraX DraX is offline
Developer Last Online: Apr 2014 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 10-13-2002 Last Update: Never Installs: 45
Is in Beta Stage  
No support by the author.

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.



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.


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.

Show Your Support

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

Comments
  #22  
Old 10-28-2002, 06:28 PM
Pezman's Avatar
Pezman Pezman is offline
 
Join Date: Aug 2002
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #23  
Old 10-30-2002, 04:02 AM
DraX DraX is offline
 
Join Date: Aug 2002
Location: Bear, DE
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 ++++.
Reply With Quote
  #24  
Old 11-07-2002, 03:33 AM
Pezman's Avatar
Pezman Pezman is offline
 
Join Date: Aug 2002
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #25  
Old 11-12-2002, 10:40 PM
RoYaL HQ RoYaL HQ is offline
 
Join Date: Aug 2002
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #26  
Old 11-15-2002, 03:31 AM
Schmoo's Avatar
Schmoo Schmoo is offline
 
Join Date: Nov 2001
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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).
Reply With Quote
  #27  
Old 11-17-2002, 03:22 AM
AZone's Avatar
AZone AZone is offline
 
Join Date: Nov 2002
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very-very-very-very good hack! Thank you a lot!
Reply With Quote
  #28  
Old 11-20-2002, 08:05 PM
AZone's Avatar
AZone AZone is offline
 
Join Date: Nov 2002
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #29  
Old 11-21-2002, 01:01 AM
DraX DraX is offline
 
Join Date: Aug 2002
Location: Bear, DE
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #30  
Old 11-21-2002, 01:03 AM
DraX DraX is offline
 
Join Date: Aug 2002
Location: Bear, DE
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #31  
Old 11-21-2002, 01:20 AM
AZone's Avatar
AZone AZone is offline
 
Join Date: Nov 2002
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
Reply

Thread Tools

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 04:35 AM.


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.06335 seconds
  • Memory Usage 2,310KB
  • 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
  • (3)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