Jump to content

DamanC

Members
  • Content count

    134
  • Joined

  • Last visited

Everything posted by DamanC

  1. DamanC

    Google XML Sitemap SEO

    Me again! My Articles do not seem to be generating. The only reference I get in my site map is; sitemappages.xml articles.php?tPath=2 articles.php?tPath=3 articles.php?tPath=4 plus the normal article-submit.php article-topics.php article_info.php article_reviews_info.php article_reviews_write.php articles.php articles_new.php Secondly, articles.php?tPath=2 is not rewritten :S if you click it then it rewrites the URL and the correct page is displayed. Any thoughts? Thanks
  2. DamanC

    Article Manager v1.0

    My version (if it is 3.1.0) has it. Works perfectly. Thank you as always :)
  3. DamanC

    Article Manager v1.0

    Just a quick Question. I have AM v1.57 installed. Works great. I also have headertags SEO (V 3.1.0 I think? is there anyway to tell?) Is there a way to make the tags display as the article name or even the article topic? All I can get it to display is the static root tag.
  4. DamanC

    Links Manager II

    Thanks for the prompt reply, I should have made myself a little clearer. Im wanting to use the contribution purely to monitor backlinks. It is a nice way to keep a track of what I have out there, and what is live, expired and general notes on each link. I have no need to have the links link in my information box, I am simply just wanting that not displayed :)
  5. DamanC

    Links Manager II

    Thankyou again for another great Contribution, your a credit to the OSC Community :) A very quick Nub question; All installed and works loverly, I wanted to just use the contribution to keep tabs on all the other links to my site. I am not interested in running an exchange program. Am I correct in thinking I can just set the options Status to "disabled" and remove the refence in catalog/includes/boxes/information.php and catalog/includes/column_right.php (or column_left.php per your preference)? Thanks
  6. Nice contribution :) Im watching this with close eyes. Without straying too far from the project, im guessing its possible to do this to the index page?
  7. Hi Guys, I think I know the answer but wanted to check with you all. I have a google XML sitemap setup, with the aid of Jacks fantastic contribution, linked it up with a google account, left it a week and waited for it to propagate. Turns out I have 156 crawl errors, Ill start with the smallest issue; HTTP- 1 Error (4xx error) http://www.MYDOMAIN.co.uk/%s What on earth is that?!?!? Not Found- 155 Errors (404) Lots of 404's. Not sure what they are tbh. I have "SEO URLs" and "FWR URL Validation" installed but cant see them causing the issue? To me it looks like a bunch of old test products I had in there. Any ideas? http://www.MYDOMAIN.co.uk/-p-12.html http://www.MYDOMAIN.co.uk/-p-34.html?language=de http://www.MYDOMAIN.co.uk/-c-2_15.html?language=en http://www.MYDOMAIN.co.uk/popup_image.php?pID=35 http://www.MYDOMAIN.co.uk/product-024-p-24.html?language=de Finally, what should I do with all the 404 errors? Just simply add them all to the robots text file? Thanks in advance Daman
  8. DamanC

    Google XML Sitemap SEO

    Working on "[Mon Jul 13 19:55:48 2009] [error] [client 82.23.38.199] SoftException in Application.cpp:252: File "/home/ukgaming/public_html/googlesitemap/index.php" is writeable by group" I checked my permissions again and again to no avail :( Submitted a help ticket to my hosts. Then reset the permissions and now it seems to work :D Sorry to clog up this most excellent thread. Cheers for the help though guys, appreciate it.
  9. DamanC

    Google XML Sitemap SEO

    Its definitely there multimixer... Re-uploaded it too.
  10. DamanC

    Google XML Sitemap SEO

    Just incase this helps, thse are the entries from my error log; [Mon Jul 13 19:55:48 2009] [error] [client 82.23.38.199] File does not exist: /home/ukgaming/public_html/500.shtml [Mon Jul 13 19:55:48 2009] [error] [client 82.23.38.199] SoftException in Application.cpp:252: File "/home/ukgaming/public_html/googlesitemap/index.php" is writeable by group [Mon Jul 13 19:55:44 2009] [error] [client 82.23.38.199] File does not exist: /home/ukgaming/public_html/404.shtml, referer: http://www.ukgamingcomputers.co.uk/stylesheet.css [Mon Jul 13 19:55:44 2009] [error] [client 82.23.38.199] File does not exist: /home/ukgaming/public_html/images/line_x.gif, referer: http://www.ukgamingcomputers.co.uk/stylesheet.css [Mon Jul 13 19:55:44 2009] [error] [client 82.23.38.199] File does not exist: /home/ukgaming/public_html/404.shtml, referer: http://www.ukgamingcomputers.co.uk/stylesheet.css [Mon Jul 13 19:55:44 2009] [error] [client 82.23.38.199] File does not exist: /home/ukgaming/public_html/404.shtml, referer: http://www.ukgamingcomputers.co.uk/stylesheet.css [Mon Jul 13 19:55:44 2009] [error] [client 82.23.38.199] File does not exist: /home/ukgaming/public_html/images/name2_bg.gif, referer: http://www.ukgamingcomputers.co.uk/stylesheet.css [Mon Jul 13 19:55:44 2009] [error] [client 82.23.38.199] File does not exist: /home/ukgaming/public_html/images/line_y.gif, referer: http://www.ukgamingcomputers.co.uk/stylesheet.css [Mon Jul 13 19:55:44 2009] [error] [client 82.23.38.199] File does not exist: /home/ukgaming/public_html/404.shtml, referer: http://www.ukgamingcomputers.co.uk/stylesheet.css [Mon Jul 13 19:55:44 2009] [error] [client 82.23.38.199] File does not exist: /home/ukgaming/public_html/images/bg_list_hline.gif, referer: http://www.ukgamingcomputers.co.uk/stylesheet.css
  11. DamanC

    Google XML Sitemap SEO

    Wow! Thankyou for the prompt reply :) I have deleted the index.html file and now receive; Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, webmaster@ukgamingcomputers.com and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 mod_jk/1.2.25 Server at www.ukgamingcomputers.co.uk Port 80
  12. DamanC

    Google XML Sitemap SEO

    I do hate to sound like a wet fart here but I have run into a problem. When going to MYDOMAIN/googlesitemap/index.php I am taken to the install instructions (MYDOMAIN/googlesitemap/index.html / Google XML Sitemap Feed Documentation) I have triple checked my files are all there, set all the permissions to 777 :blink: Kinda stumped, could it be something to do with my HTAcess file? # $Id: .htaccess 1739 2007-12-20 00:52:16Z hpdl $ # # This is used with Apache WebServers # # For this to work, you must include the parameter 'Options' to # the AllowOverride configuration # # Example: # #<Directory "/usr/local/apache/htdocs"> # AllowOverride Options #</Directory> Options +FollowSymlinks RewriteEngine on RewriteBase / RewriteCond %{HTTP_HOST} ^(www\.)?ukgamingcomputers\.com [NC] RewriteRule ^(.*)$ http://www.ukgamingcomputers.co.uk/$1 [R=301,L] RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /.*index\.html\ HTTP/ RewriteRule ^(.*)index\.html$ http://www.ukgamingcomputers.co.uk/$1 [R=301,L] RewriteCond %{HTTP_HOST} ^ukgamingcomputers\.co.uk RewriteRule (.*) http://www.ukgamingcomputers.co.uk/$1 [R=301,L] RewriteCond %{THE_REQUEST} ^.*/index.php RewriteRule ^(.*)index.php$ http://www.ukgamingcomputers.co.uk/$1 [R=301,L] #Ultimate SEO URLS# RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-c-(.*).html$ index.php?cPath=$2&%{QUERY_STRING} RewriteRule ^(.*)-m-([0-9]+).html$ index.php?manufacturers_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-pi-([0-9]+).html$ popup_image.php?pID=$2&%{QUERY_STRING} RewriteRule ^(.*)-t-([0-9]+).html$ articles.php?tPath=$2&%{QUERY_STRING} RewriteRule ^(.*)-a-([0-9]+).html$ article_info.php?articles_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-pr-([0-9]+).html$ product_reviews.php?products_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-pri-([0-9]+).html$ product_reviews_info.php?products_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-i-([0-9]+).html$ information.php?info_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-pm-([0-9]+).html$ extra_info_pages.php?pages_id=$2&%{QUERY_STRING} SetEnvIfNoCase Request_URI IP_Trapped\.txt ban <Files ~ "^.*$"> order allow,deny allow from all deny from env=ban </Files> # # # # 'All' with also work. (This configuration is in the # apache/conf/httpd.conf file) # The following makes adjustments to the SSL protocol for Internet # Explorer browsers #<IfModule mod_setenvif.c> # <IfDefine SSL> # SetEnvIf User-Agent ".*MSIE.*" \ # nokeepalive ssl-unclean-shutdown \ # downgrade-1.0 force-response-1.0 # </IfDefine> #</IfModule> # If Search Engine Friendly URLs do not work, try enabling the # following Apache configuration parameter # AcceptPathInfo On # Fix certain PHP values # (commented out by default to prevent errors occuring on certain # servers) # php_value session.use_trans_sid 0 #php_value register_globals 1
  13. Hi Guys, Bit stumped with this one :( Options - Price Update installed. Got it working, also got it to work with GBP. Excellent contribution. Currently the price is displayed on one part of the page, I would also like to add the price to another part of the page, say the bottom. However for the life of me, I cant work it out. This is the code responsible (I think) for out putting the price; <div class="main"><div class="desc"><?php echo stripslashes($product_info['products_description']); ?></div><br> <div align="center"> <!-- price update attributes begin --> <?php if(tep_has_product_attributes($product_info['products_id'])){ if ($new_price = tep_get_products_special_price($product_info['products_id'])) { ?> <script type="text/javascript">document.write('<span class="productSpecialPriceb"><div id="productNEWprice"></div>\n</span>');</script> <script type="text/javascript">document.write('<span class="productSpecialPriceb"><div id="productNEWprice"></div>\n</span>');</script> <noscript><?php echo $products_price; ?></noscript> <?php } else {?> <script type="text/javascript">document.write('<span class="productSpecialPriceb"><div id="productNEWprice"></div>\n</span>');</script> <noscript><?php echo $products_price; ?></noscript> <?php } } else { echo $products_price; } ?> <input type="hidden" name="nuPrice" value="<?php echo str_replace("£","",$nuPrice); ?>"> <input type="hidden" name="nuPrice1" value="<?php echo str_replace("£","",$nuPrice1); ?>"> <!-- price update attributes end --> </div></div> Any tips or pointers would be greatly appreciated :)
  14. Hi Guys, Just having a slight problem with the Jquery lightbox. As always, works great in firefox, just not IE. When clicking an image the popup is displayed in the center of the screen, except if you scroll down. I have images below my product options, so when you click one the popup darts to the top tof the page and "centers" itself as if the page is only 800 x 600, 1024 x 768, 1280 x 1024 etc. The result is if you are towards the bottom of the page, the lightbox pops up off the page. I can see it confusing the end user. Firefox - the popup is displayed in the center of wherever you are on the page. Perfect Rather hard to explain. This is my Prettyphoto.css Any input appreciated :) /* ------------------------------------------------------------------------ This you can edit. ------------------------------------------------------------------------- */ div.pictureHolder .top .left { background: url(../images/prettyPhoto/tl.gif) top left no-repeat;} /* Top left corner */ div.pictureHolder .top .middle { background: #fff; } /* Top pattern/color */ div.pictureHolder .top .right { background: url(../images/prettyPhoto/tr.gif) top left no-repeat; } /* Top right corner */ div.pictureHolder .content a.next:hover { background: url(../images/prettyPhoto/btnNext.gif) center right no-repeat; cursor: pointer;outline:none; } /* Next button */ div.pictureHolder .content a.previous:hover { background: url(../images/prettyPhoto/btnPrevious.gif) center left no-repeat; cursor: pointer;outline:none; } /* Previous button */ div.pictureHolder .content a.close { width: 100px; height: 26px; background: url(../images/prettyPhoto/btnClose.gif) no-repeat; cursor: pointer;outline:none; } /* Close button */ div.pictureHolder .bottom .left { background: url(../images/prettyPhoto/bl.gif) top left no-repeat; } /* Bottom left corner */ div.pictureHolder .bottom .middle { background: #fff; } /* Bottom pattern/color */ div.pictureHolder .bottom .right { background: url(../images/prettyPhoto/br.gif) top left no-repeat; } /* Bottom right corner */ div.pictureHolder .loaderIcon { background: url(../images/prettyPhoto/loader.gif) top left no-repeat; } /* Loader icon */ /* ------------------------------------------------------------------------ DO NOT CHANGE ------------------------------------------------------------------------- */ div.prettyPhotoOverlay { background: #000; position: absolute; top: 0; left: 0; z-index: 2; width: 100%; } div.pictureHolder { position: absolute; z-index: 3; top: 50%; left: 50%; width: 100px; } div.pictureHolder .top { position: relative; height: 20px; } * html div.pictureHolder .top { padding: 0 20px; } div.pictureHolder .top .left { position: absolute; left: 0; width: 20px; height: 20px; } div.pictureHolder .top .middle { position: absolute; left: 20px; right: 20px; height: 20px; } * html div.pictureHolder .top .middle { position: static; } div.pictureHolder .top .right { position: absolute; top: 0; left: auto; right: 0; width: 20px; height: 20px; } div.pictureHolder .content { position: relative; background-color: #fff; text-align: left; width: 100%; height: 40px; } div.pictureHolder .content .details { display: none; margin: 15px 15px 0 20px; } div.pictureHolder .content .details p { float: left; clear: left; margin: 0; } div.pictureHolder .content div.hoverContainer { position: absolute; z-index: 2000; top: 0; left: 0; width: 100%; } div.pictureHolder .content a.next { position: relative; z-index: 2000; display: block; float: right; text-indent: -10000px; width: 49%; height: 100%; background: url(../images/en/buttons/btnNext.gif) 10000px 50% no-repeat; /* Need to be defined that way to fix an IE bug */ outline:none; } div.pictureHolder .content a.previous { cursor: pointer; display: block; text-indent: -10000px; width: 49%; height: 100%; background: url(../images/en/buttons/btnPrevious.gif) -10000px 50% no-repeat; /* Need to be defined that way to fix an IE bug */ outline:none; } div.pictureHolder .content a.close { float: right; display: block; text-indent: -10000px; outline:none; } div.pictureHolder .bottom { position: relative; height: 20px; } * html div.pictureHolder .bottom { padding: 0 20px; } div.pictureHolder .bottom .left { position: absolute; left: 0; width: 20px; height: 20px; } div.pictureHolder .bottom .middle { position: absolute; left: 20px; right: 20px; height: 20px; } * html div.pictureHolder .bottom .middle { position: static; } div.pictureHolder .bottom .right { position: absolute; top: 0; left: auto; right: 0; width: 20px; height: 20px; } div.pictureHolder .loaderIcon { display: none; position: absolute; top: 50%; left: 50%; margin: -16px 0 0 -16px; width: 32px; height: 32px; } div.pictureHolder #fullResImage { display: block; margin: 0 auto; }
  15. DamanC

    Lightbox IE position problem

    Solved it - installed light box 2!
  16. DamanC

    options price update help needed

    This maybe of help.......im going to try it: http://forums.oscommerce.com/index.php?sho...l=price++update
  17. Hi guys, This looks like the place to ask :) I have come to a bit of a hault with developing my site, and I hope someone out there can help :) I have recently installed to my RC2a site; Flash Banners v2.1 which I must say works perfectly also J Query Lightbox with Ultra Pics (manual install + update) again a fantastic contribution and works flawlessly. The problem comes when both contributions come into play at the same time. The lightbox overlays the entire site but the flash banner. Its as If the site is made up of 3 layers; TOP MOST LAYER Flash banner Lightbox Site BOTTOM MOST LAYER Attached is a picture of said problem, it should explain things far more clearly than what I can. Beer or cookies in the post to however can help/point me in the right direction :) Thanks Daman
  18. Im still struggling with this if anyone would be so kind to help?
  19. Hi Jono, Really appreciate you taking the time to help :) I have had a look @ the CSS for the lightbox (ROOT\lightbox\prettyphoto.css), code below; (Codebox removed to show colour) /* ------------------------------------------------------------------------ This you can edit. ------------------------------------------------------------------------- */ div.pictureHolder .top .left { background: url(../images/prettyPhoto/tl.gif) top left no-repeat;} /* Top left corner */ div.pictureHolder .top .middle { background: #fff; } /* Top pattern/color */ div.pictureHolder .top .right { background: url(../images/prettyPhoto/tr.gif) top left no-repeat; } /* Top right corner */ div.pictureHolder .content a.next:hover { background: url(../images/prettyPhoto/btnNext.gif) center right no-repeat; cursor: pointer;outline:none; } /* Next button */ div.pictureHolder .content a.previous:hover { background: url(../images/prettyPhoto/btnPrevious.gif) center left no-repeat; cursor: pointer;outline:none; } /* Previous button */ div.pictureHolder .content a.close { width: 100px; height: 26px; background: url(../images/prettyPhoto/btnClose.gif) no-repeat; cursor: pointer;outline:none; } /* Close button */ div.pictureHolder .bottom .left { background: url(../images/prettyPhoto/bl.gif) top left no-repeat; } /* Bottom left corner */ div.pictureHolder .bottom .middle { background: #fff; } /* Bottom pattern/color */ div.pictureHolder .bottom .right { background: url(../images/prettyPhoto/br.gif) top left no-repeat; } /* Bottom right corner */ div.pictureHolder .loaderIcon { background: url(../images/prettyPhoto/loader.gif) top left no-repeat; } /* Loader icon */ /* ------------------------------------------------------------------------ DO NOT CHANGE ------------------------------------------------------------------------- */ div.prettyPhotoOverlay { background: #000; position: absolute; top: 0; left: 0; z-index: 1; width: 100%; } div.pictureHolder { position: absolute; z-index: 2; top: 50%; left: 50%; width: 100px; } div.pictureHolder .top { position: relative; height: 20px; } * html div.pictureHolder .top { padding: 0 20px; } div.pictureHolder .top .left { position: absolute; left: 0; width: 20px; height: 20px; } div.pictureHolder .top .middle { position: absolute; left: 20px; right: 20px; height: 20px; } * html div.pictureHolder .top .middle { position: static; } div.pictureHolder .top .right { position: absolute; top: 0; left: auto; right: 0; width: 20px; height: 20px; } div.pictureHolder .content { position: relative; background-color: #fff; text-align: left; width: 100%; height: 40px; } div.pictureHolder .content .details { display: none; margin: 15px 15px 0 20px; } div.pictureHolder .content .details p { float: left; clear: left; margin: 0; } div.pictureHolder .content div.hoverContainer { position: absolute; z-index: 2000; top: 0; left: 0; width: 100%; } div.pictureHolder .content a.next { position: relative; z-index: 2000; display: block; float: right; text-indent: -10000px; width: 49%; height: 100%; background: url(../images/en/buttons/btnNext.gif) 10000px 50% no-repeat; /* Need to be defined that way to fix an IE bug */ outline:none; } div.pictureHolder .content a.previous { cursor: pointer; display: block; text-indent: -10000px; width: 49%; height: 100%; background: url(../images/en/buttons/btnPrevious.gif) -10000px 50% no-repeat; /* Need to be defined that way to fix an IE bug */ outline:none; } div.pictureHolder .content a.close { float: right; display: block; text-indent: -10000px; outline:none; } div.pictureHolder .bottom { position: relative; height: 20px; } * html div.pictureHolder .bottom { padding: 0 20px; } div.pictureHolder .bottom .left { position: absolute; left: 0; width: 20px; height: 20px; } div.pictureHolder .bottom .middle { position: absolute; left: 20px; right: 20px; height: 20px; } * html div.pictureHolder .bottom .middle { position: static; } div.pictureHolder .bottom .right { position: absolute; top: 0; left: auto; right: 0; width: 20px; height: 20px; } div.pictureHolder .loaderIcon { display: none; position: absolute; top: 50%; left: 50%; margin: -16px 0 0 -16px; width: 32px; height: 32px; } div.pictureHolder #fullResImage { display: block; margin: 0 auto; } And have edited the first two Z-index value to a higher number (998 and 999) to no avail. The last two I have left at 2000, they seem high enough! I cant find any CSS relating to the banner, would it use the main stylesheet.css? The flash banner contribution asks to ad two JS files: AC_ActiveX.js and AC_RunActiveContent.js and edit; catalog/includes/functions/html_output.php with:- - at the end of the files ( just before the ?> ) ADD : ========== //// // output a flash movie - by ManMachine /* $name is for the movie id $movie is the flash file ie : movie.swf if no width or height are set the movie will be displayed as big as possible ( depending on browser ) . if no background is set , will be a trasnparent background parameters must look like : 'param1=value1&param2=valu2' or 'param1='.$value1.'$param2=value2' ..etc.. enjoy ;) ManMachine */ function mm_output_flash_movie($name, $movie, $width = '' , $height = '' , $background = '' , $parameters = '') { if(tep_not_null($width)) { $movie_width = 'width="'.$width.'"' ; } if(tep_not_null($height)) { $movie_height = 'height="'.$height.'"' ; } if(tep_not_null($parameters)) { $flash_movie = $movie . '?' . $parameters ; } else { $flash_movie = $movie ; } //fix ie 1 :: begins $flash = '<script src="AC_RunActiveContent.js" type="text/javascript"></script>' . "\n" ; $flash .= '<script type="text/javascript">AC_FL_RunContent( \'codebase\',\'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\', \'width\',\' '. $width .'\', \'height\',\' '. $height .'\', \'quality\',\'high\', \'pluginspage\',\'http://www.macromedia.com/go/getflashplayer\', \'movie\',\' '. $movie .'\' );' . "\n" ; $flash .= '</script>' . "\n" ; $flash .= '<noscript><EM>' . "\n" ; //fix ie 1 :: ends $flash .= '<object type="application/x-shockwave-flash" data="'. $movie .'" '. $movie_width .' '. $movie_height.'>'."\n"; $flash .= '<param name="movie" value="'.$flash_movie.'" />' . "\n"; if(tep_not_null($background)) { $flash .= '<param name="bgcolor" value="#'.$background.'" />' . "\n" ; } else { $flash .= '<param name="wmode" value="transparent">' . "\n" ; } $flash .= '</object>' . "\n\n" ; //fix ie 2 :: begins $flash .= '</EM></noscript><EM>' . "\n" ; //fix ie 2 :: ends return $flash; return $flash; } The next is to edit: catalog/includes/functions/banner.php with this:- Replace this ============ // Display a banner from the specified group or banner id ($identifier) function tep_display_banner($action, $identifier) { if ($action == 'dynamic') { $banners_query = tep_db_query("select count(*) as count from " . TABLE_BANNERS . " where status = '1' and banners_group = '" . $identifier . "'"); $banners = tep_db_fetch_array($banners_query); if ($banners['count'] > 0) { $banner = tep_random_select("select banners_id, banners_title, banners_image, banners_html_text from " . TABLE_BANNERS . " where status = '1' and banners_group = '" . $identifier . "'"); } else { return '<b>TEP ERROR! (tep_display_banner(' . $action . ', ' . $identifier . ') -> No banners with group \'' . $identifier . '\' found!</b>'; } } elseif ($action == 'static') { if (is_array($identifier)) { $banner = $identifier; } else { $banner_query = tep_db_query("select banners_id, banners_title, banners_image, banners_html_text from " . TABLE_BANNERS . " where status = '1' and banners_id = '" . (int)$identifier . "'"); if (tep_db_num_rows($banner_query)) { $banner = tep_db_fetch_array($banner_query); } else { return '<b>TEP ERROR! (tep_display_banner(' . $action . ', ' . $identifier . ') -> Banner with ID \'' . $identifier . '\' not found, or status inactive</b>'; } } } else { return '<b>TEP ERROR! (tep_display_banner(' . $action . ', ' . $identifier . ') -> Unknown $action parameter value - it must be either \'dynamic\' or \'static\'</b>'; } if (tep_not_null($banner['banners_html_text'])) { $banner_string = $banner['banners_html_text']; } else { $banner_string = '<a href="' . tep_href_link(FILENAME_REDIRECT, 'action=banner&goto=' . $banner['banners_id']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $banner['banners_image'], $banner['banners_title']) . '</a>'; } tep_update_banner_display_count($banner['banners_id']); return $banner_string; } BY This ======== function tep_display_banner($action, $identifier) { if ($action == 'dynamic') { $banners_query = tep_db_query("select count(*) as count from " . TABLE_BANNERS . " where status = '1' and banners_group = '" . $identifier . "'"); $banners = tep_db_fetch_array($banners_query); if ($banners['count'] > 0) { $banner = tep_random_select("select banners_id, banners_title, banners_image, banners_html_text from " . TABLE_BANNERS . " where status = '1' and banners_group = '" . $identifier . "'"); } else { return '<b>TEP ERROR! (tep_display_banner(' . $action . ', ' . $identifier . ') -> No banners with group \'' . $identifier . '\' found!</b>'; } } elseif ($action == 'static') { if (is_array($identifier)) { $banner = $identifier; } else { $banner_query = tep_db_query("select banners_id, banners_title, banners_image, banners_html_text from " . TABLE_BANNERS . " where status = '1' and banners_id = '" . (int)$identifier . "'"); if (tep_db_num_rows($banner_query)) { $banner = tep_db_fetch_array($banner_query); } else { return '<b>TEP ERROR! (tep_display_banner(' . $action . ', ' . $identifier . ') -> Banner with ID \'' . $identifier . '\' not found, or status inactive</b>'; } } } else { return '<b>TEP ERROR! (tep_display_banner(' . $action . ', ' . $identifier . ') -> Unknown $action parameter value - it must be either \'dynamic\' or \'static\'</b>'; } if (tep_not_null($banner['banners_html_text'])) { $banner_string = $banner['banners_html_text']; } else { if ( substr($banner['banners_image'], -3, 3) == 'swf' ) { $size = getimagesize(DIR_WS_IMAGES . $banner['banners_image']); $banner_string = '<a href="' . tep_href_link(FILENAME_REDIRECT, 'action=banner&goto=' . $banner['banners_id']) . '" target="_blank">' . mm_output_flash_movie( $banner['banners_title'], DIR_WS_IMAGES . $banner['banners_image'] , $size[0] , $size[1]) . '</a>'; } else { $banner_string = '<a href="' . tep_href_link(FILENAME_REDIRECT, 'action=banner&goto=' . $banner['banners_id']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $banner['banners_image'], $banner['banners_title']) . '</a>'; } } tep_update_banner_display_count($banner['banners_id']); return $banner_string; } I cannot find any reference to Z-index values :( The $flash .= '<param name="wmode" value="transparent">' . "\n" ; is present in the html_output.php edit. This was my first place I looked, but it looks ok? Should I be looking somewhere else? Thanks in advance to anyone that can help Daman
×