Ed
30-Nov-2003, 09:27 PM
ok well here goes for a second round of IB mods (IBS) to be exact.
ok the following file will need to be downloaded, to be modified.
./admin.php
./index.php
./sources/functions.php
./sources/lib/post_q_reply_post.php
./sources/lib/post_reply_post.php
./sources/lib/post_new_post.php
./sources/Topics.php
./sources/Admin/admin_pages.php
./sources/Admin/ad_groups.php
./sources/Admin/ad_members.php
./Skin/s#/skin_global.php
./Skin/s#/skin_topics.php
./lang/##/lang_global.php
So download those files to a really safe place (you only need to download these files if you have made other modifications to your forum/board, other wise create copies of the files from the orginal download, and mod the copies.)
Ok, Before we proceed, We'll need to upload some things to some directories. So, Get out your Ftp editor, and log on, and then get ready to upload. So, Upload the following to their corrosponding folders:
./html/store/
./sources/store/
./sources/storeitems/
./sources/Admin/ad_store.php
./Skin/s#/skin_store.php
./lang/##/lang_store.php
The last two
./Skin/s#/skin_store.php
./lang/##/lang_store.php
will need to be uploaded into ALL of your lang and skin folders, unless of course you prefer only to allow one skin to be used with ibstore. But thats all up to you, I only use one skin, so I dont need to worry. :nbsdesignz:
Ok, Now that you have uploaded all the file into the correct folders, we can move on, Ok, Now upload one more file you your website ROOT FORUM DIRECTORY!! Upload the ibs_install.php file to the root forum directory, and then go to http://www.yoursite.com/ibs_install.php . and then follow the steps.
After you are done uploading and done executing that php file DELETE IT. Don't leave that file on your server.
Then, Now, We get to do the fun stuff. MODING THE PHP FILES!! YAYYY
Ok first, Ill trust that you have did one of the two things i said aboe, either make copies of the orginal files, or downloaded the files from your server, then Open the following file:
--------------------------------------------
Open File Admin.php
--------------------------------------------
Find the following
--------------------------------------------
'msubs' => 'subsmanager',
'mtools' => 'member_tools',
'skinfix' => 'skinfix',
--------------------------------------------
Add Below that the following
--------------------------------------------
'store' => 'store',
--------------------------------------------
Save, Close, and re upload.
--------------------------------------------
--------------------------------------------
Open the file Index.php
--------------------------------------------
--------------------------------------------
Find the Following Code
--------------------------------------------
'warn' => "misc/warn",
'home' => 'dynamiclite/csite',
'module' => 'modules',
-------------------------------------------
After that add the following
-------------------------------------------
'store' => 'store/store',
-------------------------------------------
Save, Close, ReUpload
-------------------------------------------
-------------------------------------------
Open file Functions.php
-------------------------------------------
-------------------------------------------
Find the Following code
-------------------------------------------
m.dst_in_use, m.view_prefs, m.org_perm_id,
-------------------------------------------
Replace that code with the Following
-------------------------------------------
m.dst_in_use, m.view_prefs, m.org_perm_id,m.points, m.deposited, m.auto_collect, m.last_collect,m.extra_intrest,
-------------------------------------------
Save, Close, And ReUpload
-------------------------------------------
-------------------------------------------
Open the file post_q_reply_post.php
-------------------------------------------
-------------------------------------------
Find the Following Code
-------------------------------------------
$DB->query("UPDATE ibf_members SET ".$pcount.$mgroup.
"last_post='" .$ibforums->member['last_post'] ."'".
"WHERE id='" .$ibforums->member['id']."'");
-------------------------------------------
Replace that with the following
-------------------------------------------
$points = "points=points+".$ibforums->vars['pointsper_reply'].",";
$DB->query("UPDATE ibf_members SET ".$pcount.$mgroup.$points.
"last_post='" .$ibforums->member['last_post'] ."'".
"WHERE id='" .$ibforums->member['id']."'");
-------------------------------------------
Save, Close, and ReUpload that file
-------------------------------------------
-------------------------------------------
Open the file post_new_post.php
-------------------------------------------
Find the Following code
-------------------------------------------
$DB->query("UPDATE ibf_members SET ".$pcount.$mgroup.
"t_post='" .$ibforums->member['last_post'] ."'".
"WHERE id='" .$ibforums->member['id']."'");
-------------------------------------------
Replace that code with the following
-------------------------------------------
$points = "points=points+".$ibforums->vars['pointsper_topic'].",";
$DB->query("UPDATE ibf_members SET ".$pcount.$mgroup.$points.
"last_post='" .$ibforums->member['last_post'] ."'".
"WHERE id='" .$ibforums->member['id']."'");
------------------------------------------
Save, Close, And ReUpload
------------------------------------------
Open the file sources/topics.php
------------------------------------------
Find the following code
------------------------------------------
m.warn_level, m.warn_lastwarn,
------------------------------------------
Replace that code with the following
------------------------------------------
m.warn_level, m.warn_lastwarn, m.points,
------------------------------------------
In that same file find the following
------------------------------------------
//--------------------------------------------------------------
// Warny porny?
//-----------------------------------------------------------------
------------------------------------------
Add ABOVE THAT the following
------------------------------------------
$member['member_points'] = $std->do_number_format($member['points']);
$member['member_points'] = $ibforums->vars['currency_name'].': '.$member['member_points'];
------------------------------------------
Save, Close, And ReUpload
------------------------------------------
------------------------------------------
Open the file admin_pages.php
------------------------------------------
------------------------------------------
Find the following code
------------------------------------------
11 => array(
1 => array( 'View Moderator Logs', 'act=modlog' ),
2 => array( 'View Admin Logs' , 'act=adminlog' ),
3 => array( 'View Email Logs' , 'act=emaillog' ),
4 => array( 'View Bot Logs' , 'act=spiderlog' ),
5 => array( 'View Warn Logs' , 'act=warnlog' ),
),
-------------------------------------------
Add BELOW that
-------------------------------------------
12 => array (
1 => array( 'IBStore Settings' , 'act=store'),
2 => array( 'Add Item' , 'act=store&code=add'),
3 => array( 'Edit Item' , 'act=store&code=itemedit'),
4 => array( 'Add Category' , 'act=store&code=add_category'),
5 => array( 'Edit Category' , 'act=store&code=edit_cat'),
6 => array( 'Add Quiz' , 'act=store&code=qadd'),
7 => array( 'Manage Quiz' , 'act=store&code=qdowhat'),
8 => array( 'Logs' , 'act=store&code=item_logs'),
9 => array( 'Moderator Logs' , 'act=store&code=mod_logs'),
10 => array( '<b>Update Check</b>' , 'act=store&code=update'),
),
);
-----------------------------------------
Find the following in the same file
-----------------------------------------
11 => 'Board Logs',
-----------------------------------------
Add below that
-----------------------------------------
12 => "IBStore",
----------------------------------------
Next find
----------------------------------------
11 => "View admin, moderator and email logs (Root admin only)",
----------------------------------------
Add Below that
----------------------------------------
12 => "Change IBStore settings and add items/quizs/categorys.",
----------------------------------------
Save, Close, And ReUpload
----------------------------------------
----------------------------------------
Open File ad_groups.php
----------------------------------------
----------------------------------------
Find the following code
----------------------------------------
'g_dohtml' => $IN['g_dohtml'],
'g_edit_topic' => $IN['g_edit_topic'],
'g_email_limit' => intval($IN['join_limit']).':'.intval($IN['join_flo od']),
----------------------------------------
Add BELOW that the following
----------------------------------------
'g_fine_edit' => $IN['g_fine_edit'],
'g_allow_inventoryedit' => $IN['g_allow_inventoryedit'],
'g_discount' => $IN['g_discount'],
----------------------------------------
In that same file find the following
----------------------------------------
$SKIN->td_header[] = array( " " , "40%" );
$SKIN->td_header[] = array( " " , "60%" );
//+-------------------------------
$ADMIN->html .= $SKIN->start_table( "Moderation Permissions", "Allow or deny this group moderation abilities" );
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Is Super Moderator (can
oderate anywhere)?$guest_legend" ,
$SKIN->form_yes_no("g_is_supmod", $group['g_is_supmod'] )
) );
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Can access the Admin CP?$guest_legend" ,
$SKIN->form_yes_no("g_access_cp", $group['g_access_cp'] )
) );
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Allow user group to post in 'closed' topics?" ,
$SKIN->form_yes_no("g_post_closed", $group['g_post_closed'] )
) );
$ADMIN->html .= $SKIN->end_table();
----------------------------------------
ABOVE that Add the following
----------------------------------------
//+-------------------------------
$SKIN->td_header[] = array( " " , "40%" );
$SKIN->td_header[] = array( " " , "60%" );
//+-------------------------------
$ADMIN->html .= $SKIN->start_table( "IBStore Settings", "IBStore Settings" );
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Allow this usergroup to?</b><br>Does not apply to Root Admins." ,
$SKIN->form_dropdown('g_fine_edit',
array( 0 => array(0,"Do nothing"),
1 => array(1,"Fine Members"),
2 => array(2,"Edit Members Points")
), $group['g_fine_edit'] )
) );
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Allow this usergroup to edit otheres Inventorys?</b><br>This allows the usergroup to edit othere members inventory." ,
$SKIN->form_yes_no("g_allow_inventoryedit", $group['g_allow_inventoryedit'] )
) );
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Discount:</b><br>Leave blank or put zero to disable." ,
$SKIN->form_input("g_discount", $group['g_discount'] ).'...percent discount'
) );
$ADMIN->html .= $SKIN->end_table();
----------------------------------------
Save, Close, ReUpload
----------------------------------------
----------------------------------------
Open File Admin/ad_members.php
----------------------------------------
----------------------------------------
Find the following code
----------------------------------------
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Post Count</b>" ,
$SKIN->form_input("posts", $mem['posts'])
) );
----------------------------------------
Add BELOW THAT
----------------------------------------
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Members Points</b>" ,
$SKIN->form_input("points", $mem['points'])
) );
----------------------------------------
IN THAT SAME FILE FIND
----------------------------------------
'avatar' => $IN['avatar'],
'avatar_size' => $IN['avatar_size'],
'posts' => $IN['posts'],
----------------------------------------
Add Below that
----------------------------------------
'points' => $IN['points'],
----------------------------------------
Save, Close, And ReUpload
----------------------------------------
----------------------------------------
Open the file Skin/s#/skin_global.php
----------------------------------------
----------------------------------------
Find the following code
----------------------------------------
<img src="{$ibforums->vars['img_url']}/atb_help.gif" border="0" alt="" /> <a href='{$ibforums->base_url}act=Help'>{$ibforums->lang['tb_help']}</a>
----------------------------------------
Add BELOW THAT
----------------------------------------
<img src="{$ibforums->vars['img_url']}/atb_members.gif" border="0" alt="" /> <a href='{$ibforums->base_url}act=store'>{$ibforums->lang['ibstore']}</a>
----------------------------------------
Save, Close, And ReUpload
----------------------------------------
----------------------------------------
Open file Skin/s#/skin_topics.php
---------------------------------------
---------------------------------------
Find the Following Code
---------------------------------------
{$author['member_group']}<br />
{$author['member_posts']}<br />
---------------------------------------
ADD BELOW THAT
---------------------------------------
{$author['member_points']}<br />
----------------------------------------
Save, Close, And ReUpload
----------------------------------------
----------------------------------------
Open the file lang/##/lang_global.php
----------------------------------------
---------------------------------------
Find the Following code
---------------------------------------
$lang = array (
---------------------------------------
ADD BELOW THAT
---------------------------------------
'ibstore' => "IBStore",
Please, I dont give support for IBStore, I just Feel that the orgianl installation instructions are a bit confusing, and can cause probelms if you dont understand them, But again I dont personally give support for IBStore, so Do not contact me with support questions, please direct them to ibplanet.com the Offical Support site for IBStore. Like wise with my tutorial on IBShop, I dont give support for either one.
Thank you,
Ed~Installa (installaboard)
ok the following file will need to be downloaded, to be modified.
./admin.php
./index.php
./sources/functions.php
./sources/lib/post_q_reply_post.php
./sources/lib/post_reply_post.php
./sources/lib/post_new_post.php
./sources/Topics.php
./sources/Admin/admin_pages.php
./sources/Admin/ad_groups.php
./sources/Admin/ad_members.php
./Skin/s#/skin_global.php
./Skin/s#/skin_topics.php
./lang/##/lang_global.php
So download those files to a really safe place (you only need to download these files if you have made other modifications to your forum/board, other wise create copies of the files from the orginal download, and mod the copies.)
Ok, Before we proceed, We'll need to upload some things to some directories. So, Get out your Ftp editor, and log on, and then get ready to upload. So, Upload the following to their corrosponding folders:
./html/store/
./sources/store/
./sources/storeitems/
./sources/Admin/ad_store.php
./Skin/s#/skin_store.php
./lang/##/lang_store.php
The last two
./Skin/s#/skin_store.php
./lang/##/lang_store.php
will need to be uploaded into ALL of your lang and skin folders, unless of course you prefer only to allow one skin to be used with ibstore. But thats all up to you, I only use one skin, so I dont need to worry. :nbsdesignz:
Ok, Now that you have uploaded all the file into the correct folders, we can move on, Ok, Now upload one more file you your website ROOT FORUM DIRECTORY!! Upload the ibs_install.php file to the root forum directory, and then go to http://www.yoursite.com/ibs_install.php . and then follow the steps.
After you are done uploading and done executing that php file DELETE IT. Don't leave that file on your server.
Then, Now, We get to do the fun stuff. MODING THE PHP FILES!! YAYYY
Ok first, Ill trust that you have did one of the two things i said aboe, either make copies of the orginal files, or downloaded the files from your server, then Open the following file:
--------------------------------------------
Open File Admin.php
--------------------------------------------
Find the following
--------------------------------------------
'msubs' => 'subsmanager',
'mtools' => 'member_tools',
'skinfix' => 'skinfix',
--------------------------------------------
Add Below that the following
--------------------------------------------
'store' => 'store',
--------------------------------------------
Save, Close, and re upload.
--------------------------------------------
--------------------------------------------
Open the file Index.php
--------------------------------------------
--------------------------------------------
Find the Following Code
--------------------------------------------
'warn' => "misc/warn",
'home' => 'dynamiclite/csite',
'module' => 'modules',
-------------------------------------------
After that add the following
-------------------------------------------
'store' => 'store/store',
-------------------------------------------
Save, Close, ReUpload
-------------------------------------------
-------------------------------------------
Open file Functions.php
-------------------------------------------
-------------------------------------------
Find the Following code
-------------------------------------------
m.dst_in_use, m.view_prefs, m.org_perm_id,
-------------------------------------------
Replace that code with the Following
-------------------------------------------
m.dst_in_use, m.view_prefs, m.org_perm_id,m.points, m.deposited, m.auto_collect, m.last_collect,m.extra_intrest,
-------------------------------------------
Save, Close, And ReUpload
-------------------------------------------
-------------------------------------------
Open the file post_q_reply_post.php
-------------------------------------------
-------------------------------------------
Find the Following Code
-------------------------------------------
$DB->query("UPDATE ibf_members SET ".$pcount.$mgroup.
"last_post='" .$ibforums->member['last_post'] ."'".
"WHERE id='" .$ibforums->member['id']."'");
-------------------------------------------
Replace that with the following
-------------------------------------------
$points = "points=points+".$ibforums->vars['pointsper_reply'].",";
$DB->query("UPDATE ibf_members SET ".$pcount.$mgroup.$points.
"last_post='" .$ibforums->member['last_post'] ."'".
"WHERE id='" .$ibforums->member['id']."'");
-------------------------------------------
Save, Close, and ReUpload that file
-------------------------------------------
-------------------------------------------
Open the file post_new_post.php
-------------------------------------------
Find the Following code
-------------------------------------------
$DB->query("UPDATE ibf_members SET ".$pcount.$mgroup.
"t_post='" .$ibforums->member['last_post'] ."'".
"WHERE id='" .$ibforums->member['id']."'");
-------------------------------------------
Replace that code with the following
-------------------------------------------
$points = "points=points+".$ibforums->vars['pointsper_topic'].",";
$DB->query("UPDATE ibf_members SET ".$pcount.$mgroup.$points.
"last_post='" .$ibforums->member['last_post'] ."'".
"WHERE id='" .$ibforums->member['id']."'");
------------------------------------------
Save, Close, And ReUpload
------------------------------------------
Open the file sources/topics.php
------------------------------------------
Find the following code
------------------------------------------
m.warn_level, m.warn_lastwarn,
------------------------------------------
Replace that code with the following
------------------------------------------
m.warn_level, m.warn_lastwarn, m.points,
------------------------------------------
In that same file find the following
------------------------------------------
//--------------------------------------------------------------
// Warny porny?
//-----------------------------------------------------------------
------------------------------------------
Add ABOVE THAT the following
------------------------------------------
$member['member_points'] = $std->do_number_format($member['points']);
$member['member_points'] = $ibforums->vars['currency_name'].': '.$member['member_points'];
------------------------------------------
Save, Close, And ReUpload
------------------------------------------
------------------------------------------
Open the file admin_pages.php
------------------------------------------
------------------------------------------
Find the following code
------------------------------------------
11 => array(
1 => array( 'View Moderator Logs', 'act=modlog' ),
2 => array( 'View Admin Logs' , 'act=adminlog' ),
3 => array( 'View Email Logs' , 'act=emaillog' ),
4 => array( 'View Bot Logs' , 'act=spiderlog' ),
5 => array( 'View Warn Logs' , 'act=warnlog' ),
),
-------------------------------------------
Add BELOW that
-------------------------------------------
12 => array (
1 => array( 'IBStore Settings' , 'act=store'),
2 => array( 'Add Item' , 'act=store&code=add'),
3 => array( 'Edit Item' , 'act=store&code=itemedit'),
4 => array( 'Add Category' , 'act=store&code=add_category'),
5 => array( 'Edit Category' , 'act=store&code=edit_cat'),
6 => array( 'Add Quiz' , 'act=store&code=qadd'),
7 => array( 'Manage Quiz' , 'act=store&code=qdowhat'),
8 => array( 'Logs' , 'act=store&code=item_logs'),
9 => array( 'Moderator Logs' , 'act=store&code=mod_logs'),
10 => array( '<b>Update Check</b>' , 'act=store&code=update'),
),
);
-----------------------------------------
Find the following in the same file
-----------------------------------------
11 => 'Board Logs',
-----------------------------------------
Add below that
-----------------------------------------
12 => "IBStore",
----------------------------------------
Next find
----------------------------------------
11 => "View admin, moderator and email logs (Root admin only)",
----------------------------------------
Add Below that
----------------------------------------
12 => "Change IBStore settings and add items/quizs/categorys.",
----------------------------------------
Save, Close, And ReUpload
----------------------------------------
----------------------------------------
Open File ad_groups.php
----------------------------------------
----------------------------------------
Find the following code
----------------------------------------
'g_dohtml' => $IN['g_dohtml'],
'g_edit_topic' => $IN['g_edit_topic'],
'g_email_limit' => intval($IN['join_limit']).':'.intval($IN['join_flo od']),
----------------------------------------
Add BELOW that the following
----------------------------------------
'g_fine_edit' => $IN['g_fine_edit'],
'g_allow_inventoryedit' => $IN['g_allow_inventoryedit'],
'g_discount' => $IN['g_discount'],
----------------------------------------
In that same file find the following
----------------------------------------
$SKIN->td_header[] = array( " " , "40%" );
$SKIN->td_header[] = array( " " , "60%" );
//+-------------------------------
$ADMIN->html .= $SKIN->start_table( "Moderation Permissions", "Allow or deny this group moderation abilities" );
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Is Super Moderator (can
oderate anywhere)?$guest_legend" ,
$SKIN->form_yes_no("g_is_supmod", $group['g_is_supmod'] )
) );
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Can access the Admin CP?$guest_legend" ,
$SKIN->form_yes_no("g_access_cp", $group['g_access_cp'] )
) );
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Allow user group to post in 'closed' topics?" ,
$SKIN->form_yes_no("g_post_closed", $group['g_post_closed'] )
) );
$ADMIN->html .= $SKIN->end_table();
----------------------------------------
ABOVE that Add the following
----------------------------------------
//+-------------------------------
$SKIN->td_header[] = array( " " , "40%" );
$SKIN->td_header[] = array( " " , "60%" );
//+-------------------------------
$ADMIN->html .= $SKIN->start_table( "IBStore Settings", "IBStore Settings" );
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Allow this usergroup to?</b><br>Does not apply to Root Admins." ,
$SKIN->form_dropdown('g_fine_edit',
array( 0 => array(0,"Do nothing"),
1 => array(1,"Fine Members"),
2 => array(2,"Edit Members Points")
), $group['g_fine_edit'] )
) );
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Allow this usergroup to edit otheres Inventorys?</b><br>This allows the usergroup to edit othere members inventory." ,
$SKIN->form_yes_no("g_allow_inventoryedit", $group['g_allow_inventoryedit'] )
) );
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Discount:</b><br>Leave blank or put zero to disable." ,
$SKIN->form_input("g_discount", $group['g_discount'] ).'...percent discount'
) );
$ADMIN->html .= $SKIN->end_table();
----------------------------------------
Save, Close, ReUpload
----------------------------------------
----------------------------------------
Open File Admin/ad_members.php
----------------------------------------
----------------------------------------
Find the following code
----------------------------------------
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Post Count</b>" ,
$SKIN->form_input("posts", $mem['posts'])
) );
----------------------------------------
Add BELOW THAT
----------------------------------------
$ADMIN->html .= $SKIN->add_td_row( array( "<b>Members Points</b>" ,
$SKIN->form_input("points", $mem['points'])
) );
----------------------------------------
IN THAT SAME FILE FIND
----------------------------------------
'avatar' => $IN['avatar'],
'avatar_size' => $IN['avatar_size'],
'posts' => $IN['posts'],
----------------------------------------
Add Below that
----------------------------------------
'points' => $IN['points'],
----------------------------------------
Save, Close, And ReUpload
----------------------------------------
----------------------------------------
Open the file Skin/s#/skin_global.php
----------------------------------------
----------------------------------------
Find the following code
----------------------------------------
<img src="{$ibforums->vars['img_url']}/atb_help.gif" border="0" alt="" /> <a href='{$ibforums->base_url}act=Help'>{$ibforums->lang['tb_help']}</a>
----------------------------------------
Add BELOW THAT
----------------------------------------
<img src="{$ibforums->vars['img_url']}/atb_members.gif" border="0" alt="" /> <a href='{$ibforums->base_url}act=store'>{$ibforums->lang['ibstore']}</a>
----------------------------------------
Save, Close, And ReUpload
----------------------------------------
----------------------------------------
Open file Skin/s#/skin_topics.php
---------------------------------------
---------------------------------------
Find the Following Code
---------------------------------------
{$author['member_group']}<br />
{$author['member_posts']}<br />
---------------------------------------
ADD BELOW THAT
---------------------------------------
{$author['member_points']}<br />
----------------------------------------
Save, Close, And ReUpload
----------------------------------------
----------------------------------------
Open the file lang/##/lang_global.php
----------------------------------------
---------------------------------------
Find the Following code
---------------------------------------
$lang = array (
---------------------------------------
ADD BELOW THAT
---------------------------------------
'ibstore' => "IBStore",
Please, I dont give support for IBStore, I just Feel that the orgianl installation instructions are a bit confusing, and can cause probelms if you dont understand them, But again I dont personally give support for IBStore, so Do not contact me with support questions, please direct them to ibplanet.com the Offical Support site for IBStore. Like wise with my tutorial on IBShop, I dont give support for either one.
Thank you,
Ed~Installa (installaboard)