readme (235)


--------------------------------------------------------
--------------------------------------------------------

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:


Optional Information All information will be viewable by other members.


Add BELOW:


Custom Title:


--------------------------------------------------------

Step 6
--------------------------------------------------------
Open templates/members_profile.htm

Find:


Name:
$user_info[username]


Add BELOW:


Title:
$user_info[customtitle]

---------------------------------------------------------

Step 7
---------------------------------------------------------
Open templates/thread_postbit.htm

Find:

$status

Add BELOW:


$customtitle
---------------------------------------------------------





Wyszukiwarka

Podobne podstrony:
README
Readme
readme
readme
readme
7 ReadMe
dist mem gen v6 2 readme
ReadMe
readme
Mscode99 README
README

więcej podobnych podstron