John Doswell Posted December 15, 2003 Share Posted December 15, 2003 not bad... but i would rather have a set of skins for the infoboxes left & right a set of skins for the midle boxes including header & footer a set of skins for the midle boxes but behinde the products making it sort of wrap in regards john ;-) ps. also would be nice to see diferent stylesheets attached to diferent styles! Quote Link to comment Share on other sites More sharing options...
Guest Posted December 17, 2003 Share Posted December 17, 2003 Greetings! I'm just getting my first osCom sit set up so I'm a bit of a newb here, but I installed this awesome hack... and well this is what happen: http://www.templatedreams.com/ Nothing too serious, but the tabels and such aren't all even like it is when I shut it off or like in the defualt install when each block has a set width. It seems like this is on auto width or something. Anyone have any ideas on how I could fix this so my boxes are all one width or all one percentage in width? Thanks in advance! Quote Link to comment Share on other sites More sharing options...
luder1 Posted December 17, 2003 Share Posted December 17, 2003 i love this mod. i've been searching for it for so long. thanks! Quote Link to comment Share on other sites More sharing options...
equilla Posted December 17, 2003 Author Share Posted December 17, 2003 Hi All, just a quick one cos as you can imagine I'm quite a busy chap right now. Anyway, the first look at the button creator I promised is now online here for demonstration: http://www.oscommerce-templates.net/demosh...ton_creator.php Still some tidying up to do before it is contrib worthy, but some initial thoughts/comments welcome as always. It borrows heavily from the Infobox Skin Manager, so hopefully you can see how the principle works (basically chop the left and right margin portions off and stick to the left/right edges of the new button and then fill the centre gap using a 1 pixel stretched slice). The text defaults to middle of the image, but can be nudged up, down, left and right by entering values (in pixels) in the appropriate boxes. At the moment it just generates English buttons, but it's just a matter of populating further array values with "text" and "filename" to do any other languages. The fonts list is generated from those found in a given folder on the server (set for your own particular server font location, or one within your store if you don't have good fonts available), so you can easily add more by uploading. At the moment the script will only cope with Jpeg images for the button bases, but the final release will also allow Pngs (for transparent background images) and BMP, etc. The output images are actually pngs (to preserve transparency when I have that done), but are of course named xxxx.gif so that osC picks them up without problems. Cheers, Mark Quote Mark Stephens Contribs: http://www.oscommerce.com/community/contributions,1680 http://www.oscommerce.com/community/contributions,1467 http://www.oscommerce.com/community/contributions,1422 Link to comment Share on other sites More sharing options...
Guest Posted December 20, 2003 Share Posted December 20, 2003 Thank you much for this contribution! Here is my site running this add-on perfectly: http://www.templatedreams.com My client is very happy with its look at the moment thanks to these skins :) Saved me ALOT of time. Thank you again! Quote Link to comment Share on other sites More sharing options...
johnnymke Posted January 13, 2004 Share Posted January 13, 2004 Hi- Got it installed, everything looking good. Only problem... ;) I have a extra slash on slice_sets//top_left.jpg Where is this defined and how can I change it? thanks and great contrib.! Quote Link to comment Share on other sites More sharing options...
equilla Posted January 13, 2004 Author Share Posted January 13, 2004 Hi there, many thanks for your support. :D Could you PM me a URL so I can have a look at the problem first hand. The thing is that ....slice_sets/.... is used in more than one place, so where to change it depends on exactly where the problem is occuring on the page. Many thanks, Quote Mark Stephens Contribs: http://www.oscommerce.com/community/contributions,1680 http://www.oscommerce.com/community/contributions,1467 http://www.oscommerce.com/community/contributions,1422 Link to comment Share on other sites More sharing options...
johnnymke Posted January 14, 2004 Share Posted January 14, 2004 alrighty then... it looks like I can't have "Enable Infobox Skin?" enabled under Configuration. However the columns are skinning fine... This is the path in the infoboxes: /images/slice_sets//top_left.jpg Looks like its leaving out the $slice_set variable for some reason... Also in the template admin, under where it says "Preview of your skin slice set 1" the path is: admin/images/slice_sets/1/top_left.jpg with broken links, oc. Samething in "Infobox Skin Mapping", broken image links to admin/images/slice_sets/1/top_left.jpg Thanks for the quick response... Quote Link to comment Share on other sites More sharing options...
equilla Posted January 14, 2004 Author Share Posted January 14, 2004 Hi again, Wierdness indeed :o just a quick thought - you don't have BTS on your site by any chance do you....? Not sure why the admin/images thing is happening. The base for the path is taken from the DIR_WS_CATALOG_IMAGES, so the first thing to do would be to check /catalog/admin/includes/configure.php to see that the path of this is correctly set to point at your ..../catalog/images folder. Regards, Quote Mark Stephens Contribs: http://www.oscommerce.com/community/contributions,1680 http://www.oscommerce.com/community/contributions,1467 http://www.oscommerce.com/community/contributions,1422 Link to comment Share on other sites More sharing options...
azer Posted February 11, 2004 Share Posted February 11, 2004 is there any member that would like to work to make it work for ms1 ? i have so many contribution under my ms1 that i didnt jump to the ms2 . this contribtuion is what should really be included in base osc commerce , that s my dream come true ! thanks in advance for your hard work ! Quote MS2 Link to comment Share on other sites More sharing options...
uglti Posted March 2, 2004 Share Posted March 2, 2004 Probably this contribution is perfeckt but it won't work :( Everything I've setup correctly like file README.TXT says but when I'm clicking on "Templates" in Admin panel I've got such a news: ACCES DENIED You don't have permitions contact with your Administrator to resolve your problem. I've setup (I thing all) CHMOD rights which are mentioned in README.TXT file. What am I doing wrong??? Quote Link to comment Share on other sites More sharing options...
uglti Posted March 2, 2004 Share Posted March 2, 2004 (edited) Ohh and also when I want to enter into main site of the shop I've got such a communicate :unsure: : Warning: Failed opening 'includes/boxes/categories.php' for inclusion (include_path='.:/usr/share/pear') in /home/david/www/shop/catalog/includes/column_left.php on line 45 Warning: Failed opening 'includes/boxes/manufacturers.php' for inclusion (include_path='.:/usr/share/pear') in /home/david/www/shop/catalog/includes/column_left.php on line 52 Fatal error: Failed opening required 'includes/boxes/whats_new.php' (include_path='.:/usr/share/pear') in /home/david/www/shop/catalog/includes/column_left.php on line 56 I would be VERY GREATFULL for your help :rolleyes: Edited March 2, 2004 by uglti Quote Link to comment Share on other sites More sharing options...
blueline Posted March 2, 2004 Share Posted March 2, 2004 Just wondering....do you have the admin access contribution installed? -Chris Quote Chris Sullivan Link to comment Share on other sites More sharing options...
equilla Posted March 2, 2004 Author Share Posted March 2, 2004 Yes, I think Blueline is correct - you have an admin contrib installed. Check for an Administrators item in your admin menu and add the ISM pages to those allowed for yourself. The other error messages are quite normal when you preview the catalog - they will disappear once you have used the infobox_skin_mapping.php script to generate the missing files. Cheers, Quote Mark Stephens Contribs: http://www.oscommerce.com/community/contributions,1680 http://www.oscommerce.com/community/contributions,1467 http://www.oscommerce.com/community/contributions,1422 Link to comment Share on other sites More sharing options...
azer Posted March 2, 2004 Share Posted March 2, 2004 does anybody know if it can work with the BTS tempalte system , that is for instant used in the phesis MS2 crea load ... Quote MS2 Link to comment Share on other sites More sharing options...
uglti Posted March 2, 2004 Share Posted March 2, 2004 (edited) Ok thanks very much I've repair all that problems but also begin the new one: link to Admin panel e-mail adres: admin@localhost.com password: admin In the "TEMPLATES" NOTHING won't work. Everything looks perfect but if you press CONFIRM in "Infobox Skins" or in "Infobox Skin Mapping" there are a lot of mistakes and everything crashes. PLEASE if someone could help me I would be very greatfull because I'm exhausted and don't have any idea where and what repair to make that contribution works. Edited March 2, 2004 by uglti Quote Link to comment Share on other sites More sharing options...
Guest Posted March 3, 2004 Share Posted March 3, 2004 (edited) Mark. Thank you so much for this contribution. I absolutely love it. :) However, I have a bit of a problem. :blink: Let me give you the whole story. (won't take long). Basically, I installed this contrib (version 1.1..not the latest version) to my OSC test site and it works fine orks just fine. Just so you know, I installed my OSC store under my root directory on this test site...NOT under the popular "/catalog" directory like usual. Then, when I got the store set up and running the way I liked (including this mod) I then moved my store to one of my domains where I want a store up and running to sell stuff. How I did this move was I simply copied my SQL database and all my OSC files to my new domain and made the necessary chages to the configure.php files. Also not that I copied the store to a "/shop" directoy, not to the root with my test site. Now, the infobox skin manager works on my new site...sort of. I can change the infobox skins in my store throug hthe Admin->Templates->Infobox Skins and it works properly, however, I am not able to upload new skins. Here is what happens. -I click browse and select the skin file -Then I hit the upload button -But then I get the following error on the next page... Warning: copy(/hsphere/local/home/myhostuserid/mysite.com/shop/images/skins/"TheNameOfMySkinFile".jpg): failed to open stream: Permission denied in /hsphere/local/home/myhostuserid/mysite.com/shop/admin/infobox_skin.php on line 36 unable to copy /tmp/phpaoidX7 to location /hsphere/local/home/myhostuserid/mysite.com/shop/images/skins/"TheNameOfMySkinFile".jpg I have no idea what is wrong or how to correct the problem. Like I said, this is only happening on my productive site, not on my test site where it was originally installed on. I figure the problem has arisen because of the way I copied the site over to my domain, however, I have no idea what I would need to adjust if in fact this is the problem. I set permissions to "/skins", "admin/images" and even my "infobox_skins.php" file to 777 but nothing changed. Below is my /shop/admin/infobox_skin.php code. Thanks in advance for any help. Here is line 36: copy($image_source , $image_destination) or die("unable to copy $image_source to location $image_destination"); Here is the whole infobox_skin.php file... <?php /* ?$Id: options_images.php,v 1.0 2003/08/18 ?osCommerce, Open Source E-Commerce Solutions ?http://www.oscommerce.com ?Copyright (c) 2003 osCommerce ?Released under the GNU General Public License */ ?$language_id = '1'; ?require('includes/application_top.php'); //check that destination directories exist and are writeable ? if (is_dir(DIR_FS_CATALOG_IMAGES . 'infobox/')) { ? ?if (!is_writeable(DIR_FS_CATALOG_IMAGES . 'infobox/')) $messageStack->add('Error ?- infobox graphic directory not writeable', 'error'); ?} else { ? ?$messageStack->add('Error - Infobox graphic directory does not exist', 'error'); ?} ? if (is_dir(DIR_FS_CATALOG_IMAGES . 'skins/')) { ? ?if (!is_writeable(DIR_FS_CATALOG_IMAGES . 'skins/')) $messageStack->add('Error ?- skin graphic directory not writeable', 'error'); ?} else { ? ?$messageStack->add('Error - Skin graphic directory does not exist', 'error'); ?} ?if ($HTTP_GET_VARS['action']) { ? ?switch ($HTTP_GET_VARS['action']) { case 'save': ? ? ? ?$image_source = $HTTP_POST_FILES['image_input']['tmp_name']; ? ? ? ?$image_filename = $HTTP_POST_FILES['image_input']['name']; ? ?$image_destination = DIR_FS_CATALOG_IMAGES . 'skins/' . $image_filename; ? ? ? ?$skin_name = $HTTP_POST_VARS['name_input']; ? ? ?copy($image_source , $image_destination) or die("unable to copy $image_source to location $image_destination"); ? ? ? ? ? ?$query = "insert into " . TABLE_SKINS . " (skin_name, skin_filename) values ('" . $skin_name . "', '". $image_filename . "')"; ? ?$result = tep_db_query ($query); ? ? ? ?break; case 'slice': ? ? ? ? ? ?$left_margin = $HTTP_POST_VARS['left_margin']; ? ? ? ?$right_margin = $HTTP_POST_VARS['right_margin']; ? ? ? ?$top_margin = $HTTP_POST_VARS['top_margin']; ? ? ? ?$bottom_margin = $HTTP_POST_VARS['bottom_margin']; // ? ? ? ?$text_color = $HTTP_POST_VARS['text_color']; ? ? ? ?$image_id = $HTTP_POST_VARS['slice_select']; ? ?$query = "select skin_filename from " . TABLE_SKINS . " where skin_id='" . $image_id . "'"; ? ?$result = tep_db_query($query); ? ?$row = tep_db_fetch_array($result); ? ?$image_filename = $row['skin_filename']; ? ? ? ?$image = @getimagesize(DIR_FS_CATALOG_IMAGES . 'skins/' . $image_filename); ? ?$image_width = $image[0]; ? ?$image_height = $image[1]; ? ? ? ?$slice_coords[] = array('filename' => 'top_left.jpg', ? ? ? ? ? ? ? ? ? ? ? ? ? ?'x1' => '0', ? ? ? ? ? ? ? ?'x2' => $left_margin, ? ? ? ? ? ? ? ?'y1' => '0', ? ? ? ? ? ? ? ?'y2' => $top_margin); ? ? ? ? ? ? ? ? ? ? ? ?$slice_coords[] = array('filename' => 'top_right.jpg', ? ? ? ? ? ? ? ? ? ? ? ? ? ?'x1' => $image_width - $right_margin, ? ? ? ? ? ? ? ?'x2' => $image_width, ? ? ? ? ? ? ? ?'y1' => '0', ? ? ? ? ? ? ? ?'y2' => $top_margin); ? ? ? ? ? ? ? ? ? ? ? ?$slice_coords[] = array('filename' => 'bottom_left.jpg', ? ? ? ? ? ? ? ? ? ? ? ? ? ?'x1' => '0', ? ? ? ? ? ? ? ?'x2' => $left_margin, ? ? ? ? ? ? ? ?'y1' => $image_height - $bottom_margin, ? ? ? ? ? ? ? ?'y2' => $image_height); ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?$slice_coords[] = array('filename' => 'bottom_right.jpg', ? ? ? ? ? ? ? ? ? ? ? ? ? ?'x1' => $image_width - $right_margin, ? ? ? ? ? ? ? ?'x2' => $image_width, ? ? ? ? ? ? ? ?'y1' => $image_height - $bottom_margin, ? ? ? ? ? ? ? ?'y2' => $image_height); ? ? ? ? ? ? ? ? ? ? ? ?$slice_coords[] = array('filename' => 'top_background.jpg', ? ? ? ? ? ? ? ? ? ? ? ? ? ?'x1' => ($image_width/2), ? ? ? ? ? ? ? ?'x2' => ($image_width/2)+1, ? ? ? ? ? ? ? ?'y1' => '0', ? ? ? ? ? ? ? ?'y2' => $top_margin); ? ? ? ? ? ? ? ? ? ? ? ?$slice_coords[] = array('filename' => 'bottom_background.jpg', ? ? ? ? ? ? ? ? ? ? ? ? ? ?'x1' => ($image_width/2), ? ? ? ? ? ? ? ?'x2' => ($image_width/2)+1, ? ? ? ? ? ? ? ?'y1' => $image_height - $bottom_margin, ? ? ? ? ? ? ? ?'y2' => $image_height); ? ? ? ?$slice_coords[] = array('filename' => 'left_background.jpg', ? ? ? ? ? ? ? ? ? ? ? ? ? ?'x1' => '0', ? ? ? ? ? ? ? ?'x2' => $left_margin, ? ? ? ? ? ? ? ?'y1' => ($image_height/2), ? ? ? ? ? ? ? ?'y2' => ($image_height/2)+1); ? ? ? ? ? ? ? ? ? ? ? ?$slice_coords[] = array('filename' => 'right_background.jpg', ? ? ? ? ? ? ? ? ? ? ? ? ? ?'x1' => $image_width - $right_margin, ? ? ? ? ? ? ? ?'x2' => $image_width, ? ? ? ? ? ? ? ?'y1' => ($image_height/2), ? ? ? ? ? ? ? ?'y2' => ($image_height/2+1)); ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?$slice_coords[] = array('filename' => 'center.jpg', ? ? ? ? ? ? ? ? ? ? ? ? ? ?'x1' => $image_width/2, ? ? ? ? ? ? ? ?'x2' => ($image_width/2+1), ? ? ? ? ? ? ? ?'y1' => ($image_height/2), ? ? ? ? ? ? ? ?'y2' => ($image_height/2+1)); ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?$srcim = @imagecreatefromjpeg(DIR_FS_CATALOG_IMAGES . 'skins/' . $image_filename); ? ? ? ?//Get the colour from the centre of the image in order to set the colour ? ?//Of the middle cell, which will contain the old infobox contents ? ?$colorindex = ImageColorAt($srcim, ($image_width/2), ($image_height/2)); // ? ? ? ? ? ? ? ? ?$rgb = imagecolorsforindex($srcim, $colorindex); ? ? ? ? ? ? ? ? ?$rgbcol = dechex($colorindex); ? ? ? ? ? ? ? ? ? ? ?$query = "update " . TABLE_CONFIGURATION . " set configuration_value = '" . addslashes($rgbcol) . "' where configuration_key = 'INFOBOX_SKIN_BGCOL'"; ? ?tep_db_query ($query); ? ? ? ? ? foreach ($slice_coords as $v1){ ? ?$slice_width = $v1['x2'] - $v1['x1']; ? ?$slice_height = $v1['y2'] - $v1['y1']; ? ?$dstim = imagecreatetruecolor ($slice_width, $slice_height); ? ?$dst = DIR_FS_CATALOG_IMAGES . 'infobox/' . $v1['filename']; ? ?imagecopy ($dstim, $srcim, 0,0, $v1['x1'], $v1['y1'], $slice_width, $slice_height); ? ?imagejpeg($dstim, $dst, 90); ? ?imagedestroy($dstim); ? ? } ? ? ? ? ? ? ? ? ? ?imagedestroy($srcim); ? ? ? ?//Now update slice co-ords used for this skin in the database ? ?$query = "update " . TABLE_SKINS . " set left_margin = " . $left_margin . ",right_margin = " . $right_margin . ", top_margin = " . $top_margin . ", bottom_margin = " . $bottom_margin . ", text_color = '" . $text_color . "' where skin_id = " . $image_id; ? ? ? $result = tep_db_query($query); ? ? ? ?$query = "update " . TABLE_CONFIGURATION . " set configuration_value = '" . $text_color . "' where configuration_key = 'HEADER_TEXT_COLOR'"; ? ?tep_db_query ($query); ? ?tep_redirect(tep_href_link(FILENAME_INFOBOX_SKIN, '&sid=' . $image_id)); ? ? ? ? ? ? ? ? ? ? ? ? ?break; ? ? case 'delete': ? ? ? $skin_id = $HTTP_GET_VARS['sid']; ? ?tep_db_query("delete from " . TABLE_SKINS . " where skin_id = '" . $skin_id . "'"); ? ?tep_redirect(tep_href_link(FILENAME_INFOBOX_SKIN)); ? ?break; ? ?} ? ? ? ?} ?> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html <?php echo HTML_PARAMS; ?>> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <title><?php echo TITLE; ?></title> <link rel="stylesheet" type="text/css" href="includes/stylesheet.css"> <script language="javascript" src="includes/general.js"></script> </head> <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF" onload="SetFocus();"> <!-- header //--> <?php require(DIR_WS_INCLUDES . 'header.php'); ?> <!-- header_eof //--> <!-- body //--> <table border="0" width="100%" cellspacing="2" cellpadding="2"> ?<tr> ? ?<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="1" cellpadding="1" class="columnLeft"> <!-- left_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> <!-- left_navigation_eof //--> ? ?</table></td> <!-- body_text //--> ? ?<td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2"> ? ? ? ?<tr> ? ? ? ?<td colspan="2"><table border="0" width="100%" cellspacing="0" cellpadding="0"> ? ? ? ? ?<tr> ? ? ? ? ? ?<td class="pageHeading"><?php echo 'Infobox Skin Manager'; ?></td> ? ? ? ? ?</tr> <?php ? ?echo '<tr><td align="center">'; ? ?echo '<table border="0" cellspacing="0" cellpadding="0">'; ? ?echo tep_draw_form('image_input', FILENAME_INFOBOX_SKIN, '&action=slice', 'post'); ? ? ? ? ? ?$query = "select * from " . TABLE_SKINS; ? ?$result = tep_db_query($query); ? ?if (isset($HTTP_GET_VARS['sid'])) $sid = $HTTP_GET_VARS['sid']; ? ? ? ?echo '<tr><td colspan="4" align="center"><b><u>Infobox Skins Currently in the Library</b></u><br><br></td></tr>'; ? ? ? ?echo '<table border="0" cellspacing="0" cellpadding="3"><tr>'; ? ?$cell_count=0; ? ?while ($row = tep_db_fetch_array($result)){ ? ?//Limit Library display to 4 entries per row... ? ? ?if ($cell_count > 3) { ? ? ? echo '</tr><tr>'; ? ? ?$cell_count=0; ? ? ? } ? ? ?echo '<td align="center"><table border="0" cellspacing="0" cellpadding="0">'; ? ? ?echo '<tr><td align="center">' . tep_image(DIR_WS_CATALOG_IMAGES . 'skins/' . $row['skin_filename'], $row['skin_name'], 100, 100) . '</td></tr>'; ? ? ?echo '<tr><td align="center"><input type= "radio" name="slice_select" value="' . $row['skin_id'] . '"'; ? ? ?if ($row['skin_id'] == $sid) echo ' checked '; ? ? ? ?echo "onclick = document.location.href='" . FILENAME_INFOBOX_SKIN . "?sid=" . $row['skin_id'] . "'"; ? ? ?echo '></td></tr>'; ? ? ? ? echo '<tr><td align="center">' . $row['skin_name'] . '</td></tr>'; ? ? ? ? echo '<tr><td align="center"><a href="' . FILENAME_INFOBOX_SKIN . '?action=delete&sid=' . $row['skin_id'] . '">' . ?tep_image_button('button_delete.gif', IMAGE_DELETE) . '</a></td></tr>'; ? ? ?echo '</table></td>'; ? ? $cell_count++; ? ?} ? ?echo '</tr></table>'; ? ?echo '</tr>'; ? ? ? ? ? echo '<tr><td align="center"><br><br><table border="1" cellspacing="0" cellpadding="0"><tr>'; ? ?echo '<td align="center" colspan="2"><b><u>Enter margins to use for slicing selected image and click Confirm to skin!</b></u></td></tr>'; ? ?echo '<tr><td>'; ? ? ? ? ? if (isset($sid)){ ? ? ?$result = tep_db_query("select * from " . TABLE_SKINS . " where skin_id = '" . $sid . "'"); ? ? $row = tep_db_fetch_array ($result); ? ? $left_margin = $row['left_margin']; ? ? ?$right_margin = $row['right_margin']; ? ? ?$top_margin = $row['top_margin']; ? ? ?$bottom_margin = $row['bottom_margin']; ? ? ?$text_color = $row['text_color']; ? ? ? } ? ? ? ? ? ? ? ?echo 'Left margin: ' . '</td><td>' . tep_draw_input_field('left_margin', $left_margin, '', true) . '</td></tr>'; ? ? echo '<tr><td>' . 'Right margin: ' . '</td><td>' . tep_draw_input_field('right_margin', $right_margin, '', true) . '</td></tr>'; ? ?echo '<tr><td>' . 'Top margin: ' . '</td><td>' . tep_draw_input_field('top_margin', $top_margin, '', true) . '</td></tr>'; ? ?echo '<tr><td>' . 'Bottom margin: ' . '</td><td>' . tep_draw_input_field('bottom_margin', $bottom_margin, '', true) . '</td></tr>'; ? ? ? ? ? ? ? ? ? ? ? ? echo '<td align="center" colspan="2"><b><u>Enter the color your would like the header text to be. ?Use any HTML Color Code.</b></u><br><font color="#808080" size="1">For Example: 000000=Black, FFFFFF=White, FF0000=Red, 0000C0=Blue, 00C000=Green, FFA500=Orange</font></td></tr>'; ? ?echo '<tr><td>' . 'Text Color: ' . '</td><td>' . tep_draw_input_field('text_color', $text_color, '', false) . '</td></tr>'; ? ? ? echo '<tr><td align="center" colspan="2">' . ?tep_image_submit('button_confirm.gif', IMAGE_CONFIRM); ? ?echo '</form></td></tr></table></td></tr>'; ? ? ?> ? ? ? ? ?</td></tr> ? ? ? ?</table></td> ? ? ?</tr> ? ? <tr><td align="center"><br><br> ? ? ? <?php ? ? ? ? echo '<table border="1" cellspacing="0" cellpadding="0"><tr><td align="center">'; ? ? ? echo '<table border="0" cellspacing="0" cellpadding="0">'; ? ?echo '<tr><td colspan="2" align="center" valign="top"><b><u>Add a skin to the library</b></u></td></tr>'; ? ?echo '<tr><td>' . tep_draw_form('image_input', FILENAME_INFOBOX_SKIN, '&action=save', 'post', 'enctype="multipart/form-data"'); ? ?echo 'Select File to Upload: ' . '</td><td>' . tep_draw_file_field('image_input') . '</td></tr>'; ? ?echo '<tr><td>Skin Name: </td><td>' . tep_draw_input_field('name_input') . '</td></tr>'; ? ? ? echo '<tr><td colspan="2" align="center"><br>' . ?tep_image_submit('button_upload.gif', IMAGE_UPLOAD); ? ?echo '</form><br><br></td></tr></table></td>'; ? ?echo '<td valign="top">'; ? ? ? ?echo '<table cellspacing="0" cellpadding="0" border="0"><tr><td colspan="3" align="center"><b><u>Preview of your current skin</b></u><br><br></td></tr>' . ? ? ? ? ?'<tr><td><img src="' . DIR_WS_CATALOG_IMAGES . 'infobox/top_left.jpg"></td>' . ? ? ? ?'<td background = "' . DIR_WS_CATALOG_IMAGES . 'infobox/top_background.jpg" valign="middle" align="center" width="100%"><b><font color="' . HEADER_TEXT_COLOR. '">Header Text</font></b></td>' . ? ? ? '<td><img src="' . DIR_WS_CATALOG_IMAGES . 'infobox/top_right.jpg"></td></tr>' . ? ? ? '<tr><td background ="' . DIR_WS_CATALOG_IMAGES . 'infobox/left_background.jpg"></td><td bgcolor = "#' . stripslashes(INFOBOX_SKIN_BGCOL) . '">' . ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?'Infobox Content Here...!' . ? ? ? ? ? ? '</td><td background ="' . DIR_WS_CATALOG_IMAGES . 'infobox/right_background.jpg"></td></tr>' . ? ? ? ? '<tr><td><img src="' . DIR_WS_CATALOG_IMAGES . 'infobox/bottom_left.jpg"></td>' . ? ? ? ?'<td background ="' . DIR_WS_CATALOG_IMAGES . 'infobox/bottom_background.jpg"></td>' . ? ? ? '<td><img src="' . DIR_WS_CATALOG_IMAGES . 'infobox/bottom_right.jpg"></td></tr></table>'; ? ? ? ? ? ?echo '</td></tr></table>'; ? ? ? ?echo '</td></tr>'; ?> ? ? ? ? ?</table></td> <!-- body_text_eof //--> ?</tr> </table> <!-- body_eof //--> <!-- footer //--> <?php require(DIR_WS_INCLUDES . 'footer.php'); ?> <!-- footer_eof //--> <br> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> Edited March 3, 2004 by cxm322 Quote Link to comment Share on other sites More sharing options...
marcmerz Posted March 3, 2004 Share Posted March 3, 2004 cxm322, i am not sure whether the readme file for this contribution did contain something about file and directory permissions already but you should check the section of the readme again. Basically you need to set the permissions on some of the newly created directories to 777. As i said (i do not have access to the readme right now) it should be described in the readme which directory permissions have to be changed to 777. Just in case you are not that experienced, you can use your ftp program to adjust the attributes (read: permissions) of your directories. Regards, Marcus Quote Link to comment Share on other sites More sharing options...
marcmerz Posted March 3, 2004 Share Posted March 3, 2004 cxm322, oh well....probably too early in the morning. Please disregard my last posting ( i did not read your posting until the end). Marcus Quote Link to comment Share on other sites More sharing options...
Guest Posted March 3, 2004 Share Posted March 3, 2004 I did not see anywhere in the ReadMe file that mentions permissions however, it is mentioned in the infobox_skin.php file to... //check that destination directories exist and are writeable I did set the destination fold (shop/images/skins/") to 777 but I still get the above warning. Thanks, though. Quote Link to comment Share on other sites More sharing options...
Guest Posted March 4, 2004 Share Posted March 4, 2004 A newbie question? In your readme text you quote "Now Do the MySQL Stuff" Would anybody like to inform me how to set the infobox_skin.sql up? I have a test site up and have looked in myphpadmin and can't quite get there. Thanks in advance. P.S. I have tried many contrabutions and I am glad that so many people upload them but find that only about 60% work right off even when they are written for the correct osCommerce version. Hence 'Blurry Eyes' Quote Link to comment Share on other sites More sharing options...
Guest Posted March 5, 2004 Share Posted March 5, 2004 After alot of looking I found a thred to guide me how to set up myphpadmin. Got the skins working well. Thanks Quote Link to comment Share on other sites More sharing options...
azer Posted March 5, 2004 Share Posted March 5, 2004 reallt noone tried it under MS1 version or creal load6 ms2 version ? :( Quote MS2 Link to comment Share on other sites More sharing options...
Zoi Posted March 8, 2004 Share Posted March 8, 2004 Hey.. i saw this to change infoboxes.. etc. seem to be a cool contribution.. however.. how do i do with the "gdlib2 " ? i have a webhosting, that osC2.2 is pre-installed, on my webstorage.. do i have to make them install it ? or how do i make this thing work? - You must have gdlib2 installed on your server for this script to work. let me know how i do - n00b - / Andrew :blink: Quote Link to comment Share on other sites More sharing options...
equilla Posted March 8, 2004 Author Share Posted March 8, 2004 Hi Andrew, You may well have gdlib2 available to you already. The way to check is to go into your osCommerce admin and select Tools and then Server Info. Here you see a whole lot of stuff about your Apache (assuming it is Apache), and Php setup, including installed modules, etc. Scroll down and see if you see a section that begins with "gd" in bold, similar to the following: gd GD Support enabled GD Version bundled (2.0.15 compatible) FreeType Support enabled FreeType Linkage with freetype GIF Read Support enabled JPG Support enabled PNG Support enabled WBMP Support enabled XBM Support enabled The (2.0.15 compatible), or similar, part is the important bit. If it's like the above (begins with the number 2), you have gdlib2. If it says 1. something in the brackets you have gdlib 1, which can be worked around..... If you can't find gd at all, then it isn't available on the server and you could try to ask your host to install it - some will - some won't :o Hope this helps, Mark Quote Mark Stephens Contribs: http://www.oscommerce.com/community/contributions,1680 http://www.oscommerce.com/community/contributions,1467 http://www.oscommerce.com/community/contributions,1422 Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.