Blog literacki, portal erotyczny - seks i humor nie z tej ziemi
--------------------------------------------------------
--------------------------------------------------------
Hack: Custom User Titles
Author: XeroStatik
Files Edited:
profile.php
members.php
thread.php
profile_editprofile.htm
members_profile.htm
thread_postbit.htm
--------------------------------------------------------
--------------------------------------------------------
This hack adds a new field to your profile which enables
your users to have two titles; i.e. "wBB Administrator"
and "Superman". This hack edits your database, so it is
recommended that you backup before installing this hack.
--------------------------------------------------------
--------------------------------------------------------
Step 1
--------------------------------------------------------
Upload and run the file install_title.php
--------------------------------------------------------
Step 2
--------------------------------------------------------
Open profile.php
Find:
'".editPostdata(nt_wordwrap($usertext,25))."'
Add AFTER:
, customtitle='".editPostdata($customtitle)."'
Find:
$work = editDBdata($user_info[work]);
Add BELOW:
$customtitle = editDBdata($user_info[customtitle]);
--------------------------------------------------------
Step 3
--------------------------------------------------------
Open members.php
Find:
else eval ("\$birthday = \"".gettemplate("profile_nodeclaration")."\";");
Add BELOW:
if($user_info[customtitle]) $customtitle = editDBdata($user_info[customtitle]);
else eval ("\$customtitle = \"".gettemplate("profile_nodeclaration")."\";");
--------------------------------------------------------
Step 4
--------------------------------------------------------
Open thread.php
Find:
unset($regdate);
Add BELOW:
unset($customtitle);
Find:
if($posts[yim]) {
Add ABOVE:
if($posts[customtitle]) {
$customtitle = editDBdata($posts[customtitle]);
}
--------------------------------------------------------
Step 5
--------------------------------------------------------
Open templates/profile_editprofile.htm
Find:
Add BELOW:
--------------------------------------------------------
Step 6
--------------------------------------------------------
Open templates/members_profile.htm
Find:
Add BELOW:
---------------------------------------------------------
Step 7
---------------------------------------------------------
Open templates/thread_postbit.htm
Find:
$status
Add BELOW:
$customtitle
---------------------------------------------------------