vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   help with user titles (https://vborg.vbsupport.ru/showthread.php?t=93410)

FatalBreeze 08-02-2005 12:08 AM

help with user titles
 
Hello!
im trying to build a hack which combine the gender hack and the usertitles in the forum, but i cant seem to find the file that is incharge of changing usertitle when the user has reached a certain amount of posts.
for example if i set a new usertitle by the name of "good member" and change the minimum posts to 100, what file makes the user get the new user title when he reaches 100 posts.
at first i thought it is promotions.php but i guess its not.

Thanks for your help :)

sketch42 08-02-2005 10:24 PM

Quote:

Originally Posted by FatalBreeze
Hello!
im trying to build a hack which combine the gender hack and the usertitles in the forum, but i cant seem to find the file that is incharge of changing usertitle when the user has reached a certain amount of posts.
for example if i set a new usertitle by the name of "good member" and change the minimum posts to 100, what file makes the user get the new user title when he reaches 100 posts.
at first i thought it is promotions.php but i guess its not.

Thanks for your help :)

this is what i found in admincp/user.php
PHP Code:

        if ($user['customtitle'] == 0)
        {
                
$usergroup $DB_site->query_first("
                        SELECT usertitle
                        FROM " 
TABLE_PREFIX "usergroup
                        WHERE usergroupid = 
$user[usergroupid]
                "
);
                if (empty(
$usergroup['usertitle']))
                {
                        
$gettitle $DB_site->query_first("
                                SELECT title
                                FROM " 
TABLE_PREFIX "usertitle
                                WHERE minposts <= 
$user[posts] + 1
                                ORDER BY minposts DESC
                        "
);
                        
$user['usertitle'] = $gettitle['title'];
                }
                else
                {
                        
$user['usertitle'] = $usergroup['usertitle'];
                }
        } 


Andreas 08-02-2005 10:36 PM

There are several places that update the usertitle, unfortunately there is no function for it :(

Search for $gettitle = in all .php files to get all locations.


All times are GMT. The time now is 05:33 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.00956 seconds
  • Memory Usage 1,734KB
  • 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_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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