X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   X-Cart Knowledge Base v4.x (https://forum.x-cart.com/showthread.php?t=56865)

delboy2028 12-03-2010 02:01 AM

X-Cart Knowledge Base v4.x
 
I am installing this into my site but i have a few problems everything seems to be ok in the code and the sql import was ok but when i lost the /kb/admin i just get a white page on firefox and on internet explorer i get 500 internet server error. when i lost the crazyleds.co.uk/kb.php it loads my site up fine and has text saying knowledge base but nothing else.

the config file has been edited to the correct details
below is installation instructions


Code:

===============================
X-Cart Knowledge Base v4.x
http://www.xcartmods.co.uk
===============================

Credits: http://www.kbpublisher.com





1) Upload all files and folders your store root directory.

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

2) In X-Cart Admin, run the SQL patch...

/kb/install_upgrade/install.sql

New database tables will be created that begin 's_'

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

3) Edit these settings to reflect your X-Cart database in /kb/admin/config.inc.php

If you are unsure of them, they are in /config.php

$conf['db_host']    = "localhost";
$conf['db_base']    = "kb";
$conf['db_user']    = "root";
$conf['db_pass']    = "";

---

If your store resides in a subdirectory, then you also need to set the following paths...

eg.

// admin path
$conf['home_dir']        = '/store/kb/admin/';    // path to admin dir without DOCUMENT_ROOT

// client path
$conf['client_home_dir']  = '/store/kb/';          // path to kb dir without DOCUMENT_ROOT
$conf['fck_upload_dir']      = '/store/kb_upload/';    // where FCK editor place uploaded images (relative to DOCUMENT_ROOT)

---

Also change language if necessary...

$conf['lang']        = 'en';              // see admin/lang/ - for available languages

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

4) CHMOD 777 (make writable) the following directories...

/kb/admin/cache
/kb_file
/kb_upload

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

5) In skin1/common_templates

Before...

{else}
{include file="main/error_page_not_found.tpl"}

Insert...

{* Knowledge Base Start *}
{elseif $main eq "kb"}
{include file="kb/kb.tpl"}
{* Knowledge Base End *}

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

6) In skin1/customer/home.tpl

Before...

</head>

Insert...

{if $main eq "kb"}
<script type="text/javascript" src="{$SkinDir}/kb/kb.js"></script>
{/if}

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

7) In skin1/admin/menu_admin.tpl

Before...

{/capture}

Insert...

<a href="{$http_location}/kb/admin" class="VertMenuItems" target="_blank">{$lng.lbl_knowledge_base}</a><br />

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

8) In skin1/help.tpl

Before...

{/capture}

Insert...

<a href="{$http_location}/kb.php" class="VertMenuItems">{$lng.lbl_knowledge_base}</a><br />

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

9) Run www.yourstore.com/cleanup.php

Done.

Customer Front End - www.yourstore.com/kb.php

Admin Front End - www.yourstore.com/kb/admin
Username: admin
Password: demo

Don't forget to change the password!

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




TIPS
====

1) Before uploading any files, ensure the file path is set correctly. Otherwise files may be stored in a directory one level beneath your root.

Go into Settings > Files tab

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

2) Remove the blue 'Knowledge Base' header by going into Settings > Look & Feel (format/template/style):

Set Template: to 'Without Header'

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

3) To allow people to use the contact form, ensure you have entered the 'From' email address...

Go into Settings > Email tab


delboy2028 12-03-2010 02:04 AM

Re: X-Cart Knowledge Base v4.x
 
just logged into the myphp admin and the prefex s_ is there so the db is updated

delboy2028 12-03-2010 04:43 AM

Re: X-Cart Knowledge Base v4.x
 
i got it working now but the creator used iframes and they just wont adjust correctly for me


Code:

{capture name=dialog}

{* IE7 Compatibility *}
{literal}
<style type="text/css">
.kb {
    position:relative;
    left:0px;
    top:0px;
    z-index:0;
    width:100%;
    height:auto;
    opacity:1.0;
    -moz-opacity:1.0;
}
</style>
{/literal}
{* /IE7 Compatibility *}

<div class="kb"><iframe src="./kb" onload="DYNIFS.resize('kbframe')" id="kbframe" name="kbframe" allowTransparency="true" frameborder="0" scrolling="yes" style="background-color:transparent; margin:0px; padding:0px; border:0px; width:100%; height:auto%;">Sorry, your browser doesn't support iframes.</iframe></div>

{/capture}
{include file="dialog.tpl" title=$lng.lbl_knowledge_base content=$smarty.capture.dialog extra="width=100%"}


delboy2028 12-03-2010 05:14 AM

Re: X-Cart Knowledge Base v4.x
 
If i adjust the kb.tpl with sizes to make the ifram bigger it makes it ok for firefox then knackers up for i.e and goggle chrome if i get it ok for chrome and i.e firefox screws up. the hight is auto yet it does not changed and only gives a small box.


All times are GMT -8. The time now is 02:18 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.