Jump to content
Sign in to follow this  
equilla

Infobox Skin Manager v2.0

Recommended Posts

Not a problem.

 

If you look at my www button, you will find a forum on that site which should answer this and many other questions you might find.

 

The answer to this I think lies in the permissions on the /includes/boxes folder, which needs to be writeable for public.

 

Cheers,

Share this post


Link to post
Share on other sites

Hi All

 

Had a problem which took me as being a newbie in PHP programming and osc a couple of days to figure out what was wrong.

When skinmanager is installed you will get an TEP error as soon as you click a product which is in de shopping cart.

 

The error only occured when the product has attributes. It is trying to do an sql query with an invalid product code something like product_id = 23{1}1

 

Been searching everywhere but never expected to find it in skin_top.php.

You will find the following piece of code

$prod_name_query = tep_db_query("select * from " . TABLE_PRODUCTS . " as p, " . TABLE_PRODUCTS_DESCRIPTION . " as pd where p.products_id = pd.products_id and pd.products_id = " . $HTTP_GET_VARS['products_id']);

 

This should be

$prod_name_query = tep_db_query("select * from " . TABLE_PRODUCTS . " as p, " . TABLE_PRODUCTS_DESCRIPTION . " as pd where p.products_id = pd.products_id and pd.products_id = " . (int)$HTTP_GET_VARS['products_id']);

This way the attributes are stripped and things work again.

 

Hope someone is helped with this solution

 

Erald

:D

Edited by Erald

Share this post


Link to post
Share on other sites

Hi Erald,

 

thanks for pointing that one out.

 

To be honest, I had noticed it some time ago - meant to fix it - forgot all about it because I've been so busy.... well you know how the story goes.

 

Anyway, thanks for sharing your solution - now I should make sure it gets included in future builds.

 

Cheers,

Share this post


Link to post
Share on other sites

hi mark

 

how about the products discription box ,can you cheng it to?

 

 

you the man

 

thanks alot

albert isakov :D

Share this post


Link to post
Share on other sites

Hi,

 

i found another small issue concerning MySQL but i think it depends on the MySQL version of the server:

 

In /catalog/admin/infobox_skin_mapping.php search for this code:

  if ($HTTP_GET_VARS['action']) {
   switch ($HTTP_GET_VARS['action']) {
   case 'save':
   $skin_map = ($HTTP_POST_VARS['skin_map']);

  //first empty all entries from the database as we are now to re-establish them!

  $query = "truncate table " . TABLE_INFOBOX_SKIN_MAPPING;
  tep_db_query ($query);

 

On MySQL 3.23.32 running on Windows XP i got a Tep Error because of the 'truncate' table query. I replaced it with:

 

  if ($HTTP_GET_VARS['action']) {
   switch ($HTTP_GET_VARS['action']) {
   case 'save':
   $skin_map = ($HTTP_POST_VARS['skin_map']);

  //first empty all entries from the database as we are now to re-establish them!

  $query = "delete from " . TABLE_INFOBOX_SKIN_MAPPING;
  tep_db_query ($query);

 

and then it worked for me.

 

Regards,

Marcus

Share this post


Link to post
Share on other sites

Hello, I am trying to install on a new osc install. I have added Ultra images_html package 1.2 to my store. All was well. I installed the skin manager, now my header image won't come up. you can see here www.cowhidecreations.com/cart .

 

I have even changed the header file back to the old one but no luck. Everything else seems to be ok. I have checked the file, the logo is referenced like it should be.

 

Original:

 

?>

<table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr class="header">

<td align="center"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'logo.png', 'Cowhide Creations') . '</a>'; ?></td>

 

</tr>

</table>

<table border="0" width="100%" cellspacing="0" cellpadding="1">

<tr class="headerNavigation">

<td class="headerNavigation">  <?php echo $breadcrumb->trail(' » '); ?></td>

<td align="right" class="headerNavigation"><?php if (tep_session_is_registered('customer_id')) { ?><a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGOFF; ?></a>  |  <?php } ?><a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a>  |  <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a>  |  <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CHECKOUT; ?></a>   </td>

</tr>

</table>

<?php

if (isset($HTTP_GET_VARS['error_message']) && tep_not_null($HTTP_GET_VARS['error_message'])) {

?>

<table border="0" width="100%" cellspacing="0" cellpadding="2">

<tr class="headerError">

<td class="headerError"><?php echo htmlspecialchars(urldecode($HTTP_GET_VARS['error_message'])); ?></td>

</tr>

</table>

<?php

 

file with package:

 

 

?>

<table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr class="header">

<td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'oscommerce.gif', 'osCommerce') . '</a>'; ?></td>

<td align="right" valign="bottom"><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_account.gif', HEADER_TITLE_MY_ACCOUNT) . '</a>  <a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '">' . tep_image(DIR_WS_IMAGES . 'header_cart.gif', HEADER_TITLE_CART_CONTENTS) . '</a>  <a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_checkout.gif', HEADER_TITLE_CHECKOUT) . '</a>'; ?>  </td>

</tr>

</table>

 

 

<table border="0" width="100%" cellspacing="0" cellpadding="1">

<tr>

<?php echo '<td class="headernavigation" background="' . DIR_WS_IMAGES . 'slice_sets/' . INFOBOX_HEADERNAV_SLICE_SET . '/top_background.jpg" height="' . INFOBOX_HEADERNAV_HEIGHT . '">  ';?>

<?php echo $breadcrumb->trail(' » '); ?></td>

<?php echo '<td class="headernavigation" align="right" background="' . DIR_WS_IMAGES . 'slice_sets/' . INFOBOX_HEADERNAV_SLICE_SET . '/top_background.jpg" height="' . INFOBOX_HEADERNAV_HEIGHT . '">';?>

<?php if (tep_session_is_registered('customer_id')) { ?><a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGOFF; ?></a>  |  <?php } ?><a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a>  |  <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a>  |  <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CHECKOUT; ?></a>   </td>

</tr>

</table>

 

I cannot get either logo to pull up.

 

Any suggestions?

 

Thanks, Kevin

Edited by okie

Share this post


Link to post
Share on other sites

I have ultra pics too, and i also have the logon infobox addon...how should i intergrate that into this contrib?

 

Danny

 

Cheers

Share this post


Link to post
Share on other sites

Hi All,

 

Kevin, I'm assuming you have now solved your header problem as your site header seems to be loading OK now?.... However, I would suggest looking at autothumbnail, or reducing the size of some of those product pics another way as they are huge and your site load time is mightily affected as a result.

 

Danny, when you mention the logon infobox - are you having problems skinning this box? If so, it probably means that the box code has been written in a "non standard" way - i.e. it doesn't use the infobox() class like the others. The code for the box will therefore need to be written in some way to account for this.

 

Regards,

Share this post


Link to post
Share on other sites

Hi Mark, I've just installed your contribution and am facing some problems. In your installation instructions, you mentioned that we have to use Admin to enter in to the Templates section. I'm not able to see any templates section on admin/index.php. I need to be click in to Tools, then it appears at the bottom of the left column. Is this supposed to work like that?

 

Another thing, once I enter InfoBox Skin Manager, you also mentioned that we were supposed to see radio buttons? I don't see any...what I get are fields asking me to enter margins? I also don't see any skins at all..

 

Also, when I try to access infobox_skin_mapping.php, I get error messages:

Skin Slice Set Allocation

Box Filename Empty Empty Empty Empty Empty Empty Empty Empty Empty Empty No Skin

best_sellers.php1146 - Table 'kidtech_osc1.skin_mapping' doesn't exist

 

select * from skin_mapping where filename ='best_sellers.php'

 

[TEP STOP]

.

 

Seems like something went wrong during installation though I double-checked all the files already and I imported infobox_skins.sql into phpMyAdmin twice..

 

Please help!! Many thanks..

Share this post


Link to post
Share on other sites

When I try to load a skin, I get this error

 

 

Fatal error: Call to undefined function: imagecreatetruecolor() ......./catalog/admin/infobox_skin.php on line 132

 

Could you explain what is going wrong

 

Thanks

Share this post


Link to post
Share on other sites

Hi,

 

the problem is either:

 

you do not have gdlib installed on the server

 

or:

 

you have gdlib1 and not gdlib2.

 

Try replacing that function with imagecreate() instead, which is available in gdlib1 to see if that fixes the problem.

 

HTH,

 

 

 

 

Mark

Share this post


Link to post
Share on other sites

Thanks, I actually figured that out right after I posted!

 

The next problem I have is that the center image or the "Infobox Contents" background is black. I am not sure as to why this would be so. I have set the background color in the css, but is the contrib supposed to also slice the middle image and use it for the contents background?

Share this post


Link to post
Share on other sites

Hi

 

Thx for nice contribution.

 

I have one small problem. The skin dont show up in the header and footer. Can anyone help me.

 

Code in the generated page for the header show this

 

<!-- header //-->

<table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr class="header">

<td valign="middle"><a href="http://localhost/catalog/index.php?osCsid=d361e1930a20031afa4f5976df3e52df"><img'>http://localhost/catalog/index.php?osCsid=d361e1930a20031afa4f5976df3e52df"><img src="images/oscommerce.gif" border="0" alt="osCommerce" title=" osCommerce " width="204" height="50"></a></td>

<td align="right" valign="bottom"><a href="http://localhost/catalog/account.php?osCsid=d361e1930a20031afa4f5976df3e52df"><img'>http://localhost/catalog/account.php?osCsid=d361e1930a20031afa4f5976df3e52df"><img src="images/header_account.gif" border="0" alt="My Account" title=" My Account " width="30" height="30"></a>  <a href="http://localhost/catalog/shopping_cart.php?osCsid=d361e1930a20031afa4f5976df3e52df"><img'>http://localhost/catalog/shopping_cart.php?osCsid=d361e1930a20031afa4f5976df3e52df"><img src="images/header_cart.gif" border="0" alt="Cart Contents" title=" Cart Contents " width="30" height="30"></a>  <a href="http://localhost/catalog/checkout_shipping.php?osCsid=d361e1930a20031afa4f5976df3e52df"><img'>http://localhost/catalog/checkout_shipping.php?osCsid=d361e1930a20031afa4f5976df3e52df"><img src="images/header_checkout.gif" border="0" alt="Checkout" title=" Checkout " width="30" height="30"></a>  </td>

</tr>

</table>

 

 

<table border="0" width="100%" cellspacing="0" cellpadding="1">

<tr>

<td class="headernavigation" background="images/slice_sets/2/top_background.jpg" height="40">  <a href="http://localhost" class="headerNavigation">Top</a> » <a href="http://localhost/catalog/index.php?osCsid=d361e1930a20031afa4f5976df3e52df" class="headerNavigation">Catalog</a></td>

<td class="headernavigation" align="right" background="images/slice_sets/2/top_background.jpg" height="40"><a href="http://localhost/catalog/account.php?osCsid=d361e1930a20031afa4f5976df3e52df" class="headerNavigation">My Account</a>  |  <a href="http://localhost/catalog/shopping_cart.php?osCsid=d361e1930a20031afa4f5976df3e52df" class="headerNavigation">Cart Contents</a>  |  <a href="http://localhost/catalog/checkout_shipping.php?osCsid=d361e1930a20031afa4f5976df3e52df" class="headerNavigation">Checkout</a>   </td>

</tr>

</table>

 

<!-- header_eof //-->

 

:lol:

Share this post


Link to post
Share on other sites

The readme.txt file suggests that there should be slice_sets as someone else pointed out they are missing (earlier in this thread).

 

Should I go ahead without them?

Share this post


Link to post
Share on other sites

Also, here's my gd from my server_info.php

 

gd

GD Support enabled

GD Version bundled (2.0.23 compatible)

FreeType Support enabled

FreeType Linkage with freetype

GIF Read Support enabled

JPG Support enabled

PNG Support enabled

WBMP Support enabled

XBM Support enabled

 

 

Do I have the right stuff to get this to work?

Share this post


Link to post
Share on other sites

The slice_sets folders have to be created to get this to work. The instructions imply they should be uploaded.

 

Has anyone adapted this for BTS?

Share this post


Link to post
Share on other sites

Hi anyone with an ear attached to a knowledgable brain:

 

Just installed skins on pretty much a clean install. Everthing was almost to easy, until it was already installed. The samples load as expected... the first sign of trouble were the broken links at the bottom 'preview your skin'.

 

Once I made a selection and "confirmed", it gave a similar array of errors to me trying to upload my own sample.

 

I'm green green green, and I have a sneaky suspicion this has something to do with my server settings. If so, some direction in how to fix it would be greatly appreciated.

 

My site is on it's back kicking and screaming, so any urgent attention will be appreciated. Here's an excerpt of the loooooong repetition of errors that came up:

 

 

 

"Warning: imagejpeg(): open_basedir restriction in effect. File(/home2/wrapped/public_html/catalog/images/slice_sets/1/top_left.jpg) is not within the allowed path(s): (/home2/wrapped/:/usr/lib/php:/usr/local/lib/php:/tmp) in /usr/home2/wrapped/public_html/catalog/admin/infobox_skin.php on line 135

 

Warning: imagejpeg(): Invalid filename '/home2/wrapped/public_html/catalog/images/slice_sets/1/top_left.jpg' in /usr/home2/wrapped/public_html/catalog/admin/infobox_skin.php on line 135

 

Warning: imagejpeg(): open_basedir restriction in effect. File(/home2/wrapped/public_html/catalog/images/slice_sets/1/top_right.jpg) is not within the allowed path(s): (/home2/wrapped/:/usr/lib/php:/usr/local/lib/php:/tmp) in /usr/home2/wrapped/public_html/catalog/admin/infobox_skin.php on line 135

 

Warning: imagejpeg(): Invalid filename '/home2/wrapped/public_html/catalog/images/slice_sets/1/top_right.jpg' in /usr/home2/wrapped/public_html/catalog/admin/infobox_skin.php on line 135

 

Warning: imagejpeg(): open_basedir restriction in effect. File(/home2/wrapped/public_html/catalog/images/slice_sets/1/bottom_left.jpg) is not within the allowed path(s): (/home2/wrapped/:/usr/lib/php:/usr/local/lib/php:/tmp) in /usr/home2/wrapped/public_html/catalog/admin/infobox_skin.php on line 135

...." :o

 

And so on and so on. Thanks.


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

One day I will be a newie no more

Share this post


Link to post
Share on other sites

Hi there,

 

I noticed the infobox skin manager only works with infoBox. I tried to make it work with contentBox but obviously it looks harder than I thought. Did anyone allready made this little hack to make it work to any boxes?

Share this post


Link to post
Share on other sites

BUMP for airolg questions.

 

Anyone adapted this to work with BTS ???

 

I cannot seem to get the two to work together.

 

Projectn

Share this post


Link to post
Share on other sites

Hi,

I maybe have to same problem/question.

Iam not sure what is contentBox.

 

As you can see on https://secure.optimizekit.com

Only the 'inner' boxes like on

https://secure.optimizekit.com/shopping_cart.php

and the subscribtions and Extra features boxes are not ok yet... (Click on subscribtions and Extra features under Categories)

 

is this called contentbox?

 

Anyone know hot to do them?

 

ps: great contribution, thank you one more time!!

 

Hi there,

 

I noticed the infobox skin manager only works with infoBox. I tried to make it work with contentBox but obviously it looks harder than I thought. Did anyone allready made this little hack to make it work to any boxes?


Keesjan

Share this post


Link to post
Share on other sites

I was on the way installing this contribution until I noticed there is no instructions about how to update the "replacement files" files manually. I have at least 20 other mods in my store so I cannot just replace them. Does anyone have instructions for manual editing?

Share this post


Link to post
Share on other sites

has anyone used this and found that it slows down your site a LOT?

 

i have skinned most of my infoboxes in different templates, and now the site takes a very long time to load.

 

is there a solution to this? or has anyone played aorund with the code a bit?

Share this post


Link to post
Share on other sites

Hello,

 

Is this contribution still offering support? Just incase i will write my problem in hope it may get answered.

 

Firstly i apologise if this issue has been addressed and i have not picked up on it.

 

Basicly, i have installed this contribution with no problems, i manually edited the files and did not replace anything. I uploaded the extra files and had no problems adding the sql to my database.

 

Admin works well, i uploaded my own skin and that was just fine... The only problem i see in Admin is i am getting the titles of the Categories as "BOX_HEADING_TEMPLATES BOX_TEMPLATES_INFOBOX BOX_TEMPLATES_INFOBOX_MAPPING" which is usually insight into a problem that has occured.

 

Anyways, when i click confirm after doing all the steps and getting no errors i look at my site and nothing, same as before, no changes at all...

 

I know it has to do with something i have done wrong but i have installed twice now following the readme and i just can't work it out where i have gone wrong. This is my last step before removing the contribution and going back to how it was before (and currently is apparantly lol)

 

I have the following contributions incase of compatibility:

Secure Admin login-logout

Paypal Verified Infobox

Livehelp Infobox

Google Checkout IPN

Country/State Selector

That's about it.

 

If it helps to look at my website to see if you can see anything i have done wrong please go to https://www.falquan.co.uk

 

I appreciate any suggestions or help if possible.

 

Thanks.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×