Ibshop V.1.25 - NBS






 

 

Ibshop V.1.25 - NBS

View Full Version : Ibshop V.1.25


Ed
20-Oct-2003, 06:07 PM
**MANUAL** INSTALLATION INSTRUCTIONS - Instructions for Ibforums V 1.2 RC1, RC2, and FINAL -

1. Turn your ibf offline. Goto your acp General configurations , then set board on/off.

2.download the files need (in your case you probably have already.

3.Create and chmod the following files in your ftp editor.

3a. Goto your favorite ftp editor and then find the Main forum files
Ex: public_html/forums/ but note your forums maybe named differently.

4. Go into your ftp and goto the html folder, create a folder called shop.

5. Then go into your sources folder and create another folder called shop.

6. Upload the files that go into the correct folder sources/shop to sources/shop and html/shop to html/shop.

7. CHMOD 777 sources/shop

7a. To CHMOD the sources/shop folder, go back to the sources folder where the shop folder is localed, highlight the shop folder but dont double click, right clic and find the CHMOD option, change the number in there to 777 and click ok.

8. CHMOD 777 sources/shop/* (all files in that folder - [select them all and change to 777])

8a. Go into the shop folder now, and highlight all the files in there. Again right click on any one of them, and then choose CHMOD and then set them to 777.

9. Upload the shop.gif image into your style_images folder, if you ahve more than one, youll need to upload the file into all folders in style_images, 1, 2, 3, etc.

10. BACK UP YOUR FORUMS FILES NOW!!! We're going to be doing some coding now, oh boy, FUN YAY...

11. downlaod index.php (from your ROOT forum folder) to your computer, somewhere easy to access. Open that file up in an php editor, microsoft wordpad, notepad will work also, I prefer the WordPad because it has a searching feature, makes it easier. Ok find the following :

Index.php

             'warn'     => "misc/warn",

If there is anything below this, you'll need to click enter and re alighn that line to match the rest, makes it look pretty. ok. So in the space below this

             'warn'     => "misc/warn",

enter the following, but make sure your not replacing anything. so make sure you have your pointer/mouse in that space only. then enter the following

'shop'    => "shop/core_shop",

Now go all the way to the end of the index.php file.
?>
before that code (?>) enter this

function currencyformat($var)
{
 global $ibforums;
 return $ibforums->vars['shop_currencyprefix'] . number_format($var,$ibforums->vars['shop_currencydps'], ".", ",") . $ibforums->vars['shop_currencysuffix'];
}


Save and close the index.php file. put it somewhere that it wont be lost or deleted. Then open up the file admin.php.

admin.php

'warnlog'      => "warnlogs",

Add after that this code

'shop'       => 'shop',

Save and Close the admin.php file put it somewhere not to be deleted or lost.
and then open up the file named admin_pages.php
found in the folder /sources/Admin/admin_pages.php

find the following code:

admin_pages.php

Find:

20 =>array( 'IPDynamic Lite Set-up'    , 'act=csite'        ),

After you have found this, press enter, and line up the text again to make it pretty, and then in the black space add this.

21 =>array( 'IBShop' , 'act=shop' ),
NOTE: YOU MAY HAVE TO RE NUMBER THE STUFF AFTER THIS.!!!! DONT WORRY.

Save, Close and put it somewhere nice.

Open the file functions.php in the sources folder an d find the following:
This code may have things changed so find something similar to it.
Find:

m.last_visit, m.last_activity, m.dst_in_use, m.view_prefs, m.org_perm_id, m.temp_ban, g.*

Change this code to the following

m.last_visit, m.last_activity, m.dst_in_use, m.view_prefs, m.points, m.org_perm_id, m.temp_ban, g.*

Close and Save, the functions.php file. put it some where nice and safe.

Open the file
post_new_post.php found in sources/lib/

Find :


$DB->query("UPDATE ibf_members SET ".$pcount.$mgroup.
"last_post='"    .$ibforums->member['last_post']   ."'".
"WHERE id='"     .$ibforums->member['id']."'");


REPLACE THIS WITH


$type = "newtopic"; include "sources/shop/core_postroutine.php";
$DB->query("UPDATE ibf_members SET ".$pcount.$mgroup.$points.
"last_post='"    .$ibforums->member['last_post']   ."'".
"WHERE id='"     .$ibforums->member['id']."'");


Save, CLose and open the next file.

post_q_reply_post.php found in the folder sources/lib/

Find:


$DB->query("UPDATE ibf_members SET ".$pcount.$mgroup.
"last_post='"    .$ibforums->member['last_post']   ."'".
"WHERE id='"     .$ibforums->member['id']."'");


REPLACE WITH


$type = "newreply"; include "sources/shop/core_postroutine.php";
$DB->query("UPDATE ibf_members SET ".$pcount.$mgroup.$points.
"last_post='"    .$ibforums->member['last_post']   ."'".
"WHERE id='"     .$ibforums->member['id']."'");


Save, Close and open the next file.

post_reply_post.php found in the souces/lib/ folder.

Find:


$DB->query("UPDATE ibf_members SET ".$pcount.$mgroup.
"last_post='"    .$ibforums->member['last_post']   ."'".
"WHERE id='"     .$ibforums->member['id']."'");


REPLACE WITH


$type = "newreply"; include "sources/shop/core_postroutine.php";
$DB->query("UPDATE ibf_members SET ".$pcount.$mgroup.$points.
"last_post='"    .$ibforums->member['last_post']   ."'".
"WHERE id='"     .$ibforums->member['id']."'");


Save, Close, and put some where that you wont forget where it is, and then open the next file.

Topics.php found in sources/

Find:


m.msnname,


AFTER THAT ADD


m.points,m.nameglow,


Next Find:


$member['message_icon'] = "<a href='{$this->base_url}act=Msg&amp;CODE=04&amp;MID={$member['id']}'><{P _MSG}></a>";


ADD AFTER THAT


$member["points"] = $ibforums->vars["shop_currencyname"] . ": " . currencyformat($member["points"]);
if ($member['nameglow']!=""){
$member['member_glow']= "filter: Glow(Color=" . $member['nameglow'] . ", Strength=6); width: 100%;";
}else {$member['member_glow'] = "";}



Save, Close and open the next file.

TWO MORE FILES TO GO!!!!!!! YAY ALMOST THERE!!! DON'T QUIT NOW!

Open skin_topic.php found in the folder Skin/S# folder.
Note: # = the skin number that you use, I suggest if you ahve more than one, you should redo skin_topic.php and skin_global.php... in all /S# folders.'

In skin_topic.php find the following.

Find:


<span class='{$post['name_css']}'>{$author['name']}</span>


REPLACE WITH THE FOLLOWING


<span class='{$post['name_css']}' style='{$author['member_glow']}'> {$author['name']}</span>


Find


{$author['member_joined']}<br><br>


ADD AFTER THAT


{$author['points']}<br><br>


Close, Save, and open the next folder.

Open folder skin_global.php found in Skin/S#/

Find


<a href='{$ibforums->base_url}act=calendar'>{$ibforums->lang['tb_calendar']}</a>


ADD AFTER THAT


&nbsp;<img src="{$ibforums->vars['img_url']}/shop.gif" border="0" alt="" />&nbsp;<a href='{$ibforums->base_url}&act=shop'>Forum Shop</a>


Goto your Invision Power Board Administration Center, open the
"Board Settings" menu, and click "IBShop Setup".

Don't forget to turn your board back online.

Hope this helps for everyone having trouble installing IBShop mod 1.25.