Guest Earth Bizz Posted June 21, 2005 Share Posted June 21, 2005 Three weeks down the track and I think I've finished .. the guts and extra mods part anyway! Tackled the graphics in a small way .. looking for criticism / ideas ... anyone? Its not live yet .. just filled it up with example catagories. Heres the site ..... Earth Bizz Thanks :) Quote Link to comment Share on other sites More sharing options...
Guest twisted Posted June 22, 2005 Share Posted June 22, 2005 First suggestion. In the footer.inc file, to the <td> tag that holds the copyright info, add "colspan=\"2\" " [withoput the opning and closing quotes] to the tag. This will put your footer notice back where it should be. Second suggestion. As you said...tackled the graphics in a small way. Well, tackle them a bit more. Work on the rest of the box images so they match your box header. Next...lose the grey background. Aren't you afraid that 3 copies of the site is going to make a lot of work for yourself? Quote Link to comment Share on other sites More sharing options...
Guest Earth Bizz Posted June 22, 2005 Share Posted June 22, 2005 Thanks for that.. I've implemented everything you suggested except changing the grey background. I tried replacing the following in header.inc.php </head> <BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" bgcolor="<?echo$bg_colour;?>" with ... </head> <BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" background="bground.jpg">" As suggested in your tutorial. I works .. but when I load the page there is a "> at the very top left of the page which moves the store_logo.gif and everything else down one line. I thought it might be this .. <meta http-equiv='Content-Type' content='text/html; charset=<?php echo $charset; ?>'> The '> .. so I deleted it and the logo moved back up but the background image would not display ... just a plain white b/ground. Heres the whole file .. <?php /*************************************************************************** * File Info: header.inc.php * Purpose: Header For Webpage * Updated: 31/07/2003 **************************************************************************** * Developer: Alistar Brookbanks (Devellion Limited) * Copyright: ©2003 Devellion Limited - http://www.devellion.com * Copyright: ©2003 http://www.cubecart.com * This program is not "free" software and restrictions apply! * Further Info: http://www.cubecart.com/license.php * Contact [email protected] if any conditions are not clear. * * Licensees holding valid "CubeCart Licence Number" may edit * the (powered by CubeCart) from browser title and "Powered by CubeCart" * and "© Brooky.com" from the web page footer. * * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING * THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE. This and all others in the download package can only be * redistributed with written permission from Alistair Brookbanks! * * The "CubeCart License" is available to purchase at * http://www.cubecart.com/site/purchase/ * For pricing please contact us via e-mail at [email protected] ***************************************************************************/ // update site hits for stats include("hits.php"); ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <HTML> <head> <title><?echo "$site_name";?></title> <meta http-equiv='Content-Type' content='text/html; charset=<?php echo $charset; ?>'> <style type="text/css"> <!-- @import url(<?echo"$site_url";?>/admin/style.css); --> </style> <script language="JavaScript" type="text/javascript"> setTimeout ("changePage()", 0); function changePage() { if (self.parent.frames.length != 0) self.parent.location=document.location; } </script> </head> <BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" background="bground.jpg">" <? // used for secure.php to autosubmit form data if($url=="secure"){ echo"onLoad='document.SecureForm.submit();'"; } ?>> <form action ="search.php" method="post"> <table width='100%' height='100%' align='center' border='0' cellspacing='0' cellpadding='0'> <tr height='80' width='100%'> <td valign='top' height='80' width='100%' align='center'> <table width='100%' height='80' valign='top' align='center' border='0' cellspacing='0' cellpadding='0'> <tr height='80'> <td align='left' height="80" width="100%" background="<?echo"$site_url/";?>images/store_logo_bg.jpg"><a href="<?echo"$site_url/index.php";?>"><img src="<?echo"$site_url/";?>images/store_logo.gif" alt="<?echo"$la_powered_by_cc";?>" border="0"></a></td> <td align="right" valign="bottom" width='220' height="80" background="<?echo"$site_url/";?>images/store_logo_bg.jpg"> <!-- start buttons & search --> <table width="220" height="80" border="0" cellspacing="0" cellpadding="0"> <tr width="220" valign="middle" align="right"> <td width="220" colspan="2" valign="middle" align="right"> <!-- start search table --> <table valign='top' width="220" align='right' valign='middle' height='56' border="0" cellspacing="0" cellpadding="0"> <tr align='right'> <td height='56' align="center"><b><?echo$la_header_search?></b> </td> <td height='56' align="center"><input name="search" class="textbox" type="text" size="15" maxlength="60"></td> <td height='56' align="center"> <input type="submit" class="submit" value='<?echo$la_go;?>' border="0" name="submit"></td> </tr> </table> <!-- end search table --> </td> </tr> <td width="220" align=\"left\" height=\"24\"> <a href="index.php">Store Home</a> <td width="220" align="center" height="24" background="<?echo"$site_url/";?>images/tab.gif" style='cursor: hand;' onClick="location.href='control_panel.php'"><a href='control_panel.php' target='_self'><font class='wht_btn'><?echo$la_your_account?></font></a></td> </tr> </table> <!-- end buttons & search --> </td> </tr> </table> <? // if store is selected as off line display message and disable if($online=="N") { echo"$offmsg</table>"; exit; }?> </td> </form> </tr> Any Ideas ? Thanks :) Quote Link to comment Share on other sites More sharing options...
Guest Posted June 22, 2005 Share Posted June 22, 2005 Yes very nice, clean and clear Quote Link to comment Share on other sites More sharing options...
Guest twisted Posted June 27, 2005 Share Posted June 27, 2005 <BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" background="bground.jpg">" This is wrong ... It should be <BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" background="bground.jpg" Yes...thats correct, no >"...the body tag is in fact closed after the onload event...by the ?>> Quote Link to comment Share on other sites More sharing options...
Guest Earth Bizz Posted June 27, 2005 Share Posted June 27, 2005 Thanks Twister .. that did it ! I'm mainly a "copy/paster" .. still getting used to all the nuances of html/php. So what do you think of the background now? .. a bit much? This is just my test site .. I'm still chopping and fiddling with it. Thanks again :) Quote Link to comment Share on other sites More sharing options...
Guest Earth Bizz Posted July 2, 2005 Share Posted July 2, 2005 Right! Applied changes as per previous critisisms .. still not live but almost. Is it OK now? PS ... You might notice in "Links" / "Other Links" there are 2 instances of links to cubecart .. anyone know how to get rid of one of them ? ... The "Manage Links" option in Admin does'nt work. I'm guessing I can do it through "PhpMyAdmin" but not sure how to do it. Quote Link to comment Share on other sites More sharing options...
Guest Posted July 2, 2005 Share Posted July 2, 2005 Was this a free mod? If so, post your manage links code here. Maybe we can help get you sorted. Quote Link to comment Share on other sites More sharing options...
Guest Earth Bizz Posted July 2, 2005 Share Posted July 2, 2005 Yes it was a free mod .. the file that gets called by "Manage links" is admin/links.php. When I click on Manage Links I just get a blank page. I worked out how to edit the links through PhpMyAdmin but it would be easier if the "Manage Links" in Admin worked. Adding links is no problem .. just removing them is the problem. Heres the code ... <?php /************************************************************************* * * MOD INFO * ************************************************************************** * * File info : admin/links.php * About : This MOD allows people to insert their own links * to your database * * Author : Chris G on January 28th, 2005 * * Changes : 1/28/2005 -> First Release * 1/29/2005 -> Fixed Missing ELSE Statement * -> Fixed The . Problem * ************************************************************************** * * ALWAYS BACK UP YOUR FILES BEFORE INSTALLING MODS! * **************************************************************************/ session_start(); // if session is not registered go to login if (!session_is_registered("admin")) { header("Location: login.php"); } // if session is registered continue if(session_is_registered("admin")){ include ("config.php"); include( "settings.inc.php"); $url="index"; include_once ("header.inc.php"); echo"<h2>Manage Your Link Page</h2>"; if($del==1){ $del = mysql_query("delete from ".$prefix."store_links where id='$link_id'"); echo"<br><br><p align=\"center\">Link Deleted!</p><br>"; } $sql_count = "select * from ".$prefix."store_links"; $result_count = mysql_query ($sql_count); $total = mysql_num_rows($result_count); // see if links are in database if ($total==0){ echo "<p align=\"center\">No Links In Database</p>"; include ("footer.inc.php"); exit;} // so continue if ($total==1) { echo "<p>You have $total link on your link page</p>"; } else { echo"<p>You have $total links on your link page</p>"; } // build table of data echo"<table align=\"center\" width=\"95%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"> <tr><td bgcolor=\"$colour_2\"> <table cellpadding=\"2\" cellspacing=\"1\" border=\"0\" width=\"100%\" align=\"center\"> <tr bgcolor=\"$colour_1\" height=\"20\" background=\"../images/bevel_bg.gif\"> <td align=\"center\" height=\"20\" background=\"../images/bevel_bg.gif\" nowrap><b>Link ID</b></td> <td align=\"center\" height=\"20\" background=\"../images/bevel_bg.gif\" nowrap><b>Link Name</b></td> <td align=\"center\" height=\"20\" background=\"../images/bevel_bg.gif\" nowrap><b>Link URL</b></td> <td align=\"center\" height=\"20\" background=\"../images/bevel_bg.gif\" nowrap><b>Delete?</b></td> </tr>"; $query = "SELECT * FROM ".$prefix."store_links order by id asc"; $result = mysql_query($query) or die("Error: " . mysql_error()); while($row = mysql_fetch_array($result)){ $link_id=$row["id"]; $link_name= $row["name"]; $link_url=$row["url"]; echo"<tr> <td bgcolor=\"$colour_1\" align=\"center\" width=\"10%\">$link_id</td> <td bgcolor=\"$colour_1\" align=\"center\" width=\"40%\">$link_name</td> <td bgcolor=\"$colour_1\" align=\"center\" width=\"40%\"><a href=\"$link_url\">$link_url</a></td> <td bgcolor=\"$colour_1\" align=\"center\" width=\"10%\"><a href=\"java script:decision('Are you sure you want to delete this link?','links.php?link_id=$link_id&del=1')\">Delete?</a></td></tr>"; } echo"</table></td></tr></table><br>"; include_once ("footer.inc.php"); }// end if session is registered} ?> Any ideas? :huh: Quote Link to comment Share on other sites More sharing options...
Guest Posted July 2, 2005 Share Posted July 2, 2005 I uploaded teh file onto my site and it opens up just fine. Could it be that the link is not pointing to the right place? Make sure your file is in your admin/ directory, and make sure the link is pointing to http://www.yoursite.com/admin/links.php Quote Link to comment Share on other sites More sharing options...
Guest Earth Bizz Posted July 2, 2005 Share Posted July 2, 2005 The links.php is in the right place . This is the address in the address bar ... http://www.earthbizz.com/store/admin/links.php But just a blank page ... I dunno. When I view the page source all I get is ... <html><body></body></html> ... A big empty !! Don't worry about it .. I'll just edit the links in PhpMyAdmin ... I won't be removing links that often. Only when the Klu Klux Klan or the United Lesbians of the Galaxy link to me! Thanks Booker :huh: Quote Link to comment Share on other sites More sharing options...
Guest Posted July 2, 2005 Share Posted July 2, 2005 Try copying the code from your post above and saving it as a new file on your desktop. Then upload it to your server. I can't see why it would work fine for me but not for you... And I don't even have the mod installed :huh: Quote Link to comment Share on other sites More sharing options...
Guest Earth Bizz Posted July 2, 2005 Share Posted July 2, 2005 That didn't work .. so I uploaded a fresh copy of it over the old one and now it works! Buggered if I know .. anyway that was the last problem with my cart ... what will I do now? :huh: Quote Link to comment Share on other sites More sharing options...
Guest Posted July 3, 2005 Share Posted July 3, 2005 what will I do now? Well, glad it's working!! As for what to do next... sell, sell, sell!! And when you find something new to do to your cart, mod, mod, mod!! Quote Link to comment Share on other sites More sharing options...
Guest twisted Posted July 3, 2005 Share Posted July 3, 2005 Nice. The live auctions table at the bottom of the page is a little difficult to read though on that background. Quote Link to comment Share on other sites More sharing options...
Guest Earth Bizz Posted July 3, 2005 Share Posted July 3, 2005 OK Twisted .. fixed that ... plus changed the side eBay box to one for future Google ads . Now it's finished. (I think !! .. maybe it's NEVER finished! ) .. (except for the Google Ads code .. do that later .. what's the bet I'll have hassles with THAT?) http://earthbizz.com/store :unsure: Quote 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.