Jump to content

drumcentral

Members
  • Content count

    51
  • Joined

  • Last visited

Profile Information

  1. drumcentral

    ADDING NEW PRODUCT FIELD

    Hi there. I took the advice in your post and added the Add New Product fields contribution. I added it as a RRP field, and it seems to be okay so far. I've been trying to find how to disable the RRP: £ field to not display when there is no RRP inserted in the admin section. You can see what I've done so far at www.drumcentral.co.uk. If you look at single product you can see where I've put it. I've also been trying to shift the RRP field up in the edit/add new product page in admin, so it's beside the other price fields. Should I be looking at the mysql database? I managed to get the field to display in the product listing page: http://www.drumcentral.co.uk///accessories...-c-318_460.html The site is fairly heavily modded, so it was hard work putting all the new code in! Any help would be great! Kenny
  2. drumcentral

    photo gallery for oscommerce

    Thanks for the code to show thumbnails in the admin. I have another problem; almost every day now, some spamming robot is adding hundreds of lines of text and links to other sites in the comment box in the first image. Does anyone have any ideas how to stop this?
  3. drumcentral

    photo gallery for oscommerce

    Hello again. Just like the user who posted here earlier, I was wondering if there was an easy way to sort the pictures by upload date? The newest ones are currently added to the end of the page. Kenny
  4. drumcentral

    photo gallery for oscommerce

    Hi Andy. do you mean that you'd prefer it to look something like my page?: www.drumcentral.co.uk/gallery.php To change the text you've highlighted, open catalog/gallery.php Find line 188 and you should see: <p>Klik <a href="gallery_user.php">hier</a> om uw eigen foto's toe te voegen aan deze gallerij. Just change it to What you need. I changed mine to: <p>Click <a href="gallery_user.php"><b>HERE</b></a> to add your own pictures to these galleries. Show us your kits or setups, and pics of your band or school playing live. You must have an active Drum central account and be logged in to post pictures.<br<b>Conditions for upload:</b> <li>Maximum 6 pictures; <li>Only jpg files are allowed; <li>Filesize may not exceed 1mb; <li>Dimensions may not exceed 1280px X 1024px To remove the image at the top of the page, in gallery.php go to line 152 - 153 and you should see: <td class="pageHeading"><?php echo HEADING_TITLE; ?></td> <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_specials.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td> I changed mine to: <td class="pageHeading"><?php echo HEADING_TITLE; ?></td> <td class="pageHeading" align="right"></td> You can change the header text in: catalog/includes/languages/english/gallery.php line 14: define('HEADING_TITLE', 'Photo gallery'); Just change it to: define('HEADING_TITLE', 'Gallery'); The box in the column will still say 'Photo Gallery'. To change the box title, go to: catalog/includes/languages/english.php and edit the line you added. I changed mine to: define('BOX_HEADING_GALLERY', 'Photo Gallery'); define('TEXT_GALLERY', 'Your Pictures'); Hope all this makes sense... and I hope I've done it right! Kenny
  5. drumcentral

    photo gallery for oscommerce

    It might be that your server is running SQL 4 (maybe?) the text below is the start of the MYSQL from the contrib which seems to say that it's for version 5.0.21 Maybe I'm wrong..... Can you find out which version of MYSQL is on your server? -- phpMyAdmin SQL Dump -- version 2.8.1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generatie Tijd: 24 Aug 2008 om 12:57 -- Server versie: 5.0.21 -- PHP Versie: 5.1.4 -- I've also noticed that there should be a space just before the last ';' So it should be: AUTO_INCREMENT=18 ; but yours is: AUTO_INCREMENT=18; Of course, this may make no difference at all!! Kenny
  6. drumcentral

    photo gallery for oscommerce

    Hmm. okay, I've just added this to the head section of gallery.php: <meta http-equiv="refresh" content="30"> This will force a refresh after 30 seconds, or however many seconds you like. Not an ideal fix, but it might help. Kenny
  7. drumcentral

    photo gallery for oscommerce

    I may have found a way to make the pages show the new uploaded images by using an old-fashioned bit of java script: I've put this into both gallery.php and gallery_user.php Place this at the top of your page, in the head part: <script language=" JavaScript" ><!-- function MyReload() { window.location.reload(); } //--></script> [b]Then change your <Body> to say;[/b] <Body onLoad=" MyReload()" > let me know if this works for you. Kenny
  8. drumcentral

    photo gallery for oscommerce

    Hi there. I make all my changes on my live site! I wish there was a way to force a refresh on the customer/users browser. Some people using the gallery for the first time might not know how to do that, or understand what it means. I think I will follow your changes. I did think that 100k and 800/600 was too small for most people. And I will add the extensions as you did. Many thanks. Kenny
  9. drumcentral

    photo gallery for oscommerce

    Thanks. Yes, I has assumed that it was a cache issue. Just wasn't sure if it was a local or oscommerce online cache. After forcing a refresh it all appeared. I might put that info on the gallery page to help users. Kenny
  10. drumcentral

    photo gallery for oscommerce

    I've just noticed that I have the same problem!
  11. drumcentral

    photo gallery for oscommerce

    Hah. Managed to find the answer to the Flash movies appearing in front of the zoomed pics. I went to the Highslide site: http://highslide.com/forum/viewtopic.php?t...highlight=flash They have the answers. You have to change/add a minor thing in the Flash movies. Kenny
  12. drumcentral

    photo gallery for oscommerce

    Thanks for all the help. The extra /// in the address has always been there. It seems to have appeared after the secure certificate was installed some time ago. Everything on the site works with one slash or three, so I've never attempted to change it. (if it ain't broke etc) It is a little bit odd. When I was testing the gallery pages earlier, just after I installed the contribution, everything was working fine, except for the problem with the Flash images. I'll have a look at the cache. EDIT: I had added a line to my .htaccess file This was causing the images to stop zooming. Can you guys have another look and tell me what you think about the Flash problem? www.drumcentral.co.uk/gallery.php Could this be a javascript thing? Maybe in highslide.js ? Thanks again. Kenny
  13. drumcentral

    photo gallery for oscommerce

    Hi there. Thanks for putting this contribution together and sharing it with us all. I've successfully managed to integrate it onto my (heavily edited) site. I have a small problem. I use Flash for the header image and for various banner adverts. When I click on an image in the gallery, the image zooms in in front of the page, but appears behind the Flash items! Have you any clues as to how I might make them appear in front of everything? You can see my results at: www.drumcentral.co.uk/gallery Many thanks Kenny
  14. drumcentral

    Request Product Info

    Sorry to hear that it's not working for you. I am using the latest version of this mod, and it works for my site. There's probably something in your code, if you've previously modified your oscommerce files. I know it seems to work better with Firefox (surprise!)
  15. drumcentral

    Request Product Info

    Hi Jack. Thanks for the info. After a bit of experimenting I managed to find the code in the catalog/contact_us.php file and inserted it into the catalog/request-product-info.php file. After Line 114, which should be: <?php if ($messageStack->size('request_info') > 0) { ?> insert this code from the catalog/contact_us file: <?php } else { if (tep_session_is_registered('customer_id')) { $account_query = tep_db_query("select customers_firstname, customers_lastname, customers_email_address from " . TABLE_CUSTOMERS . " where customers_id = '" . (int)$customer_id . "'"); $account = tep_db_fetch_array($account_query); $name = $account['customers_firstname'] . ' ' . $account['customers_lastname']; $email = $account['customers_email_address']; } ?> This should automatically add the logged-in customers name and email address the the form fields. I hope this is of some use to everyone. Thanks again.
×