[Request] FFXI Charater Mod for 1.4.1

Mods etc.

Moderator: Integra Moderator

[Request] FFXI Charater Mod for 1.4.1

PostAuthor: darknights » Sun Jan 21, 2007 7:23 am

Your phpBB Version: 2.0.22
phpBB Type: Integramod 141
MODs: No
Your knowledge: Basic Knowledge
Board URL: [url]http://[/url]

PHP Version:
MySQL Version:


What was done before the problem appeared?



What was done to try to solve the problem?




De.scription and Message

Hi, i saw from post [url=http]http://www.integramod.com/forum/viewtopic.php?t=1835&highlight=ffxi[/url]
has this mod been tested in the latest release of IntegraMOD 1.4.1, or will it work in this release without issue, i just don't wanna test it, i spent a lot of time already on my forums and i don't wont to break it lol. Thanks for the replies in advanced everyone! thanks.
Last edited by darknights on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
User avatar
darknights
Members
Members
 
Posts: 38
Likes: 0 post
Liked in: 0 post
Joined: Thu Jan 11, 2007 8:03 pm
Cash on hand: 0.00

PostAuthor: Demonicpagan » Sun Jan 21, 2007 1:28 pm

"darknights";p="20016" wrote:Your phpBB Version: 2.0.22
phpBB Type: Integramod 141
MODs: No
Your knowledge: Basic Knowledge
Board URL: [url]http://[/url]

PHP Version:
MySQL Version:


What was done before the problem appeared?



What was done to try to solve the problem?




De..scription and Message

Hi, i saw from post [url=http]http://www.integramod.com/forum/viewtopic.php?t=1835&highlight=ffxi[/url]
has this mod been tested in the latest release of IntegraMOD 1.4.1, or will it work in this release without issue, i just don't wanna test it, i spent a lot of time already on my forums and i don't wont to break it lol. Thanks for the replies in advanced everyone! thanks.

I'm working on integrating it into my site as i was the original requester for this. As soon as I get it worked out, I'll let you know
Last edited by Demonicpagan on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

Demonicpagan
Members
Members
 
Posts: 55
Likes: 0 post
Liked in: 0 post
Joined: Tue Aug 01, 2006 1:02 am
Cash on hand: 0.00

Re: [Request] FFXI Charater Mod for 1.4.1

PostAuthor: darknights » Sun Jan 21, 2007 3:34 pm

Cool, ok thanks man!
Last edited by darknights on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
User avatar
darknights
Members
Members
 
Posts: 38
Likes: 0 post
Liked in: 0 post
Joined: Thu Jan 11, 2007 8:03 pm
Cash on hand: 0.00

Re: [Request] FFXI Charater Mod for 1.4.1

PostAuthor: Teelk » Mon Jan 22, 2007 1:35 pm

Hey, I've updated the install instructions. Was actually the first MOD I've updated, I just thought that I had already uploaded it... <img>

http://www.integramod.com/forum/viewtop ... 0114#20114
Last edited by Teelk on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
User avatar
Teelk
Dev Team
Dev Team
 
Posts: 1309
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 14, 2006 5:25 pm
Cash on hand: 0.00
Location: Canada

Re: [Request] FFXI Charater Mod for 1.4.1

PostAuthor: Demonicpagan » Mon Jan 22, 2007 2:03 pm

awesome Teelk. I've gone about and did some changes to it. To take a look, just browse on over to http://ffxi.stelth2000inc.com and look at the characters page.

I would say I've enhanced the look a little bit.
Last edited by Demonicpagan on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

Demonicpagan
Members
Members
 
Posts: 55
Likes: 0 post
Liked in: 0 post
Joined: Tue Aug 01, 2006 1:02 am
Cash on hand: 0.00

Re: [Request] FFXI Charater Mod for 1.4.1

PostAuthor: Teelk » Mon Jan 22, 2007 4:40 pm

Looks great Demonicpagan, those definitely are some nice improvements. <img>
Last edited by Teelk on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
User avatar
Teelk
Dev Team
Dev Team
 
Posts: 1309
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 14, 2006 5:25 pm
Cash on hand: 0.00
Location: Canada

Re: [Request] FFXI Charater Mod for 1.4.1

PostAuthor: darknights » Mon Jan 22, 2007 8:01 pm

Thanks, it appears to be functioning properly and working well. so far no messed up website lol. thank guys for the help and support!
Last edited by darknights on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
User avatar
darknights
Members
Members
 
Posts: 38
Likes: 0 post
Liked in: 0 post
Joined: Thu Jan 11, 2007 8:03 pm
Cash on hand: 0.00

Re: [Request] FFXI Charater Mod for 1.4.1

PostAuthor: Demonicpagan » Tue Jan 23, 2007 12:10 am

teelk, question for ya as i recall, didn't the character information show up in the viewposts under the user info?

if it did, guess i'm going to need help researching why it's not on mine
Last edited by Demonicpagan on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

Demonicpagan
Members
Members
 
Posts: 55
Likes: 0 post
Liked in: 0 post
Joined: Tue Aug 01, 2006 1:02 am
Cash on hand: 0.00

Re: [Request] FFXI Charater Mod for 1.4.1

PostAuthor: Teelk » Tue Jan 23, 2007 12:26 am

On viewtopic in the author panel? It should be, check your edits to the profilcp/def/ files.
Last edited by Teelk on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
User avatar
Teelk
Dev Team
Dev Team
 
Posts: 1309
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 14, 2006 5:25 pm
Cash on hand: 0.00
Location: Canada

Re: [Request] FFXI Charater Mod for 1.4.1

PostAuthor: Demonicpagan » Tue Jan 23, 2007 1:38 am

hmmm, i have the def files modded and i'm still not seeing anything


[fixed]
needed to go into the P.C.P wizard and alter the phpBB >> View Topic >> Left and add the item to that
Last edited by Demonicpagan on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

Demonicpagan
Members
Members
 
Posts: 55
Likes: 0 post
Liked in: 0 post
Joined: Tue Aug 01, 2006 1:02 am
Cash on hand: 0.00

Re: [Request] FFXI Charater Mod for 1.4.1

PostAuthor: darknights » Thu Jan 25, 2007 8:26 pm

Ok, now only problem i'm getting with this mod now is:
every time a new user registers, i have to go in an manually allow them to submit their char info, is there a way to auto enable this without me having to manually go and allow them to add there chars, thanks!
Last edited by darknights on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
User avatar
darknights
Members
Members
 
Posts: 38
Likes: 0 post
Liked in: 0 post
Joined: Thu Jan 11, 2007 8:03 pm
Cash on hand: 0.00

Re: [Request] FFXI Charater Mod for 1.4.1

PostAuthor: Teelk » Fri Jan 26, 2007 3:34 am

Ok, this may get a little complicated...

Run the following query in phpmyadmin.
Code: Select all
ALTER TABLE `phpbb_users` ADD `user_allow_ffxi_char_over` TINYINT( 2 ) DEFAULT '1' NOT NULL ;ALTER TABLE `phpbb_users` CHANGE `allow_ffxi_char` `user_allow_ffxi_char` TINYINT( 2 ) NOT NULL DEFAULT '1';


OPEN characters.php
FIND
Code: Select all
$button = ($userdata['user_id'] != ANONYMOUS) && ( $board_config['allow_ffxi_characters'] != 0) && ( $userdata['allow_ffxi_char'] != 0) ? "<form><input></form>" ]
REPLACE WITH[php]$button = ($userdata['user_id'] != ANONYMOUS) && ( $board_config['allow_ffxi_characters'] != 0) && ( $userdata['user_allow_ffxi_char'] != 0) ? "<form><input></form>" : "";


Open profilcp/def/def_userfields.php
FIND
Code: Select all
            'user_allow_email' => array(                 'lang_key'     => 'User_allow_email',                 'class'        => 'generic',                 'type'         => 'TINYINT',                 'auth'         => ADMIN,                 'get_mode'     => 'LIST_RADIO',                 'values'       => 'list_yes_no',             ),

AFTER ADD
Code: Select all
            'user_allow_ffxi_char' => array(                 'lang_key'     => 'ffxi_character_create',                 'class'        => 'generic',                 'type'         => 'TINYINT',                 'auth'         => ADMIN,                 'get_mode'     => 'LIST_RADIO',                 'values'       => 'list_yes_no',             ),


OPEN profilcp/def/def_usermaps.php
FIND
Code: Select all
    'PCP.profil.profile_prefer.admin' => array(                 'order'       => 20,                                         'title'       => 'profilcp_admin_shortcut',                         'fields'     => array(

AFTER ADD
Code: Select all
                        'user_allow_ffxi_char' => array(                             ),


OPEN admin/admin_users.php
FIND
Code: Select all
        $allow_ffxi_char = ( !empty($HTTP_POST_VARS['allow_ffxi_char']) ) ? intval( $HTTP_POST_VARS['allow_ffxi_char'] ) : 0;

REPLACE WITH
Code: Select all
        $allow_ffxi_char = ( !empty($HTTP_POST_VARS['user_allow_ffxi_char']) ) ? intval( $HTTP_POST_VARS['user_allow_ffxi_char'] ) : 0;

FIND
Code: Select all
            $sql = "UPDATE " . USERS_TABLE . "                 SET " . $username_sql . $passwd_sql . "user_email = '" . str_replace("'", "''", $email) . "', user_icq = '" . str_replace("'", "''", $icq) . "', user_website = '" . str_replace("'", "''", $website) . "', user_occ = '" . str_replace("'", "''", $occupation) . "', user_from = '" . str_replace("'", "''", $location) . "', user_interests = '" . str_replace("'", "''", $interests) . "', user_extra = '$user_extra', user_sig = '" . str_replace("'", "''", $signature) . "', user_viewemail = $viewemail, user_aim = '" . str_replace("'", "''", $aim) . "', user_yim = '" . str_replace("'", "''", $yim) . "', user_msnm = '" . str_replace("'", "''", $msn) . "', user_attachsig = $attachsig,user_setbm = $setbm, user_sig_bbcode_uid = '$signature_bbcode_uid', user_allowsmile = $allowsmilies, user_allowhtml = $allowhtml, user_allowavatar = $user_allowavatar, allow_ffxi_char = $allow_ffxi_char, user_allowsignature = $user_allowsignature, user_allowbbcode = $allowbbcode, user_allow_viewonline = $allowviewonline, user_notify = $notifyreply, user_allow_pm = $user_allowpm, user_notify_pm = $notifypm, user_popup_pm = $popuppm, user_lang = '" . str_replace("'", "''", $user_lang) . "', user_style = $user_style, user_timezone = $user_timezone, user_dateformat = '" . str_replace("'", "''", $user_dateformat) . "', user_active = $user_status, user_warnings = $user_ycard, user_rank = $user_rank" . $avatar_sql . "

IN-LINE FIND
Code: Select all
allow_ffxi_char

IN-LINE REPLACE WITH
Code: Select all
user_allow_ffxi_char

FIND
Code: Select all
        $allow_ffxi_char = $this_userdata['allow_ffxi_char'];

REPLACE WITH
Code: Select all
        $allow_ffxi_char = $this_userdata['user_allow_ffxi_char'];

FIND
Code: Select all
            $s_hidden_fields .= '<input>';

REPLACE WITH
Code: Select all
            $s_hidden_fields .= '<input>';


Now you can go to ACP>>General Admin>>Configuration+, click "profile options", the go to "administration". "Allow to Create FFXI Characters?" should be right at the top. Set to yes, and override users choice to yes. Now all users should be able to create characters on registration.

Think I might add this to the package since the default should be yes, but PCP is overriding it unless you do the above.
Last edited by Teelk on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
User avatar
Teelk
Dev Team
Dev Team
 
Posts: 1309
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 14, 2006 5:25 pm
Cash on hand: 0.00
Location: Canada

Re: [Request] FFXI Charater Mod for 1.4.1

PostAuthor: Demonicpagan » Fri Jan 26, 2007 3:53 am

weird that it's not allowing yes by default because the structure of the allow_ffxi_char in the phpbb_users table is set to 1 by default. i am researching it at the present moment. i'm thinking it may be because the type is TINYINT. as soon as i figure out what it is, i'll edit this post with the correction.

[edit]
Scratch what I say above, Teelk beat me to it... LOL

Teelk,
I've had a request by one of my forum users and I don't know how to go about implementing the code. On the characters.php page where you can presently sort the list by Forum Username, Character Name, Server, Rank, Nation, Main Job, Sub Job. Can we add to this where it sorts by Job Level?

An example site which has another version of the mod done by Jadestone that can be gotten at http://ffxi.xenoveritas.org/mod_ffxicharacter/ can be seen [url=http]here[/url].

This mod has some other features that my be worth implementing.
Last edited by Demonicpagan on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

Demonicpagan
Members
Members
 
Posts: 55
Likes: 0 post
Liked in: 0 post
Joined: Tue Aug 01, 2006 1:02 am
Cash on hand: 0.00

Re: [Request] FFXI Charater Mod for 1.4.1

PostAuthor: Teelk » Fri Jan 26, 2007 5:58 pm

I'll take a look, unfortunately it doesn't seem to have any version information or upgrade instructions so I'll have to do it all manually which will take some time.
Last edited by Teelk on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
User avatar
Teelk
Dev Team
Dev Team
 
Posts: 1309
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 14, 2006 5:25 pm
Cash on hand: 0.00
Location: Canada

Re: [Request] FFXI Charater Mod for 1.4.1

PostAuthor: Demonicpagan » Fri Jan 26, 2007 10:45 pm

yeah, no rush on it. the one by jadestone and the one i posted were done by two totally different people, don't know who had the first implementation, but if there is a way to pull some of the features from the other mod into the one that we currently have, that'd be cool. to me they both have awesome features, and combining the two would make for the best ffxi mod.
Last edited by Demonicpagan on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

Demonicpagan
Members
Members
 
Posts: 55
Likes: 0 post
Liked in: 0 post
Joined: Tue Aug 01, 2006 1:02 am
Cash on hand: 0.00

Next

Return to IntegraMOD Modifications

Who is online

Registered users: Bing [Bot], Google [Bot], Helter, Majestic-12 [Bot]