Jump to content


  • Content count

  • Joined

  • Last visited

Everything posted by PandA.nl

  1. PandA.nl


    For security maybe better: replace (configure_jts.php): $tplName = $_GET['tplName']; by: $tplName = tep_db_prepare_input($_GET['tplName']); I guess all data stored into the database is filtered thorougly. Just in case you decide to leave url "Template switching allowed" on after testing.
  2. PandA.nl

    Admin DHTML Menu

    They probably didn't upgrade the zendoptimizer version right away, it needs to be upgraded together with the upgrade to PHP 4.3.10 (else there will be problems with some array's)
  3. PandA.nl


    DOWNLOAD HERE: http://www.oscommerce.com/community/contributions,3025 I forgot to mention: credits stil go to Brenden Vickery the author of the first BTS version.
  4. If we're talking about the same contribution, I wonder how you can get 400 invoices to print? It prints the invoices that are shown in orders.php (so you can use the order status to select a range (max 20) of invoices). So normally the max you can print in one go is 20 invoices, then you can go to the next orders page and print another 20 etc etc.. Anyway I doubt if 400 invoices in one go would be doable with this contribution at all, it loads all invoices to print in one frames page, and it would not suprise me if your browser crashes or something if you try to load 400 frames. (also maybe a screen shot could help?)
  5. :blink: so what entry to what table would that be ?? This absolutely does not make any sense at all, it has nothing to do with this contribution. But probably with the "Admin Account with Access Level" contri you installed (or you're probably using some of the loaded versions or something?)
  6. PandA.nl

    Official PayPal IPN Support Thread

    The status does change, but it doesn't change correctly I think. It seems that the "Preparing [PayPal IPN]" status "moves down" after the IPN is received.
  7. PandA.nl

    [contribution] Simple Template System (sts)

    I don't use the STS myself and I haven't read this thread. But it looks like the STS has a bug/problem with sid's. It seems to me that, if you add $sid to your STS links (and if you don't you will certainly have problems), the sid is allways shown, so also to spiders !
  8. PandA.nl

    Embed Links with SID in Description

    Hi Steve, I got a question too. Not directly about your contribution, but more about the sid's in general. You seem to know how it works, so I hope you ca help me understand. I allways understood that if the users browser is set to block cookies, the tep_href_link() function detects it and adds the sid to the url. Trying to check this I set my browsers to block all cookies and removed the tep_href_link() function from the contact_us page link. But to my suprise the same sid still appears on all links. Also on the one I remove the tep_href_link() from! And the cart isn't emptied when I click the link. Does that make sense to you? Thanks! Paul
  9. PandA.nl

    [Contribution] Admin Notes

    Scott thanks again for this great contrib! I'm using it almost daily now :) I made one little change so that the default status is "Important", I just like it a little better that way (= red light = '0'). In admin/admin_notes.php changed: case 'insert': if ($HTTP_POST_VARS['category_new'] != '') { tep_db_query("insert into " . TABLE_ADMIN_NOTES_TYPE . " (type_id, type_name, status) values ('1', '" . $HTTP_POST_VARS['category_new'] . "','1')"); } tep_db_query("insert into " . TABLE_ADMIN_NOTES . " (contr_id, category, admin_note, config_comments, note_created, status, last_update) values ('','" . $HTTP_POST_VARS['file_type_id'] . "','" . $HTTP_POST_VARS['admin_note_new'] . "','" . $HTTP_POST_VARS['config_comments'] . "', now(), '2', '" . $HTTP_POST_VARS['last_update'] . "' )"); tep_redirect(tep_href_link(FILENAME_ADMIN_NOTES, '&sID=' . $contr_id)); break; to: case 'insert': if ($HTTP_POST_VARS['category_new'] != '') { tep_db_query("insert into " . TABLE_ADMIN_NOTES_TYPE . " (type_id, type_name, status) values ('1', '" . $HTTP_POST_VARS['category_new'] . "','0')"); } tep_db_query("insert into " . TABLE_ADMIN_NOTES . " (contr_id, category, admin_note, config_comments, note_created, status, last_update) values ('','" . $HTTP_POST_VARS['file_type_id'] . "','" . $HTTP_POST_VARS['admin_note_new'] . "','" . $HTTP_POST_VARS['config_comments'] . "', now(), '0', '" . $HTTP_POST_VARS['last_update'] . "' )"); tep_redirect(tep_href_link(FILENAME_ADMIN_NOTES, '&sID=' . $contr_id)); break; edit: wow that looks like a lot more code than in the editor ;) this is the changed line: tep_db_query("insert into " . TABLE_ADMIN_NOTES . " (contr_id, category, admin_note, config_comments, note_created, status, last_update) values ('','" . $HTTP_POST_VARS['file_type_id'] . "','" . $HTTP_POST_VARS['admin_note_new'] . "','" . $HTTP_POST_VARS['config_comments'] . "', now(), '0', '" . $HTTP_POST_VARS['last_update'] . "' )"); (only one '2' changed to '0')
  10. PandA.nl

    BTSv1.2 Support

    oops I see I made a little mistake: this would add a unwanted column to your layout! you can add </tr><tr> for example at the end of the code, that would make a new row i.s.o. column. Or even better add the code you posted just befor the previous row starts in main_page.tpl.php
  11. PandA.nl

    BTSv1.2 Support

    The update was a year ago, the message you quoted says it's jan 2004 i.s.o jan 2005 :D You are trying to add something to the middle content area, which is partly the same but mostley different for all pages, that's why every page uses it's own template for this area. (b.t.w. using a CSS layout you could simple put the code anywhere, and absoluteley position the output anywhere you want it) But I see you are adding it inside the content area while it looks like you want it to appear just above the content area. Can't you add somehthing like this <td background="images/greenbar.gif" height="23"> <p align="center"><b><font size="1" face="Tahoma" color="#FFFFFF"> <a href="http://example.com" class="headerNavigation">Top</a> » <a href="http://example.com/index.php" class="headerNavigation">Catalog</a></font></b></td> inside main_page.tpl.php ? just tbefore the content is loaded. So just before: <td id="contentLT"><?php include(DIR_WS_INCLUDES . 'select_template_content.php'); // BTSv1.4 b.t.w. you know you better don't post and/or add to you code any osCsid'd ? and you need to use the tep_href_link function for links ? edit: but please don't add it to the select_template_content.php file! That's only to be used to select the right template, becomes very confusing if you are going to add other things there. If you really need to include it, better write a new/separate include line for your own added code.
  12. PandA.nl

    Official PayPal IPN Support Thread

    I'm thinking about switching to another PayPal module. The old one only had one flaw for me: some orders weren't stored in the databse because the customer didn't return. It can be resolved by (temporary) storing the order before checkout, I think there's a contrib for it. Now: I've got many "fake" orders (customers going to PayPal, but never coming back), the tax didn't show, and the order status acts weird. Easy to install, but hard to use. B.t.w. is this one supported by someone?
  13. PandA.nl

    BTSv1.2 Support

    The idea is not only to say that you managed, but also how you did it.
  14. PandA.nl

    BTS heLP

    The optional/automatic box templates are for use with the small sideboxes only. for details see the BTS support thread: http://forums.oscommerce.com/index.php?showtopic=71930
  15. PandA.nl

    BTSv1.2 Support

    In general I would say this: http://www.w3schools.com/css/default.asp But to be more specific: the code can be combined if you like: table#mainLayoutLT { margin: 0px auto; width: 100%; border: 2px #ffb21c solid; } If I remember well I split the "border and colors" and "fonts" and some other properties into separate sections of the stylesheet then. It is not the standard way to setup the styles, but it seemed fun to try it like that for a change :)
  16. PandA.nl

    BTSv1.2 Support

    You can safely remove the line(s) calling the keepieapart.js script, it's not needed. It was added for testing purposes only (testing compatibility with older IE versions). About the layout: you can produce any layout, with or without the BTS. The main differerence between stock osC, and osC with the BTS, is that most common HTML code and PHP layout code has been moved to one main_page.tpl.php (=>40+ catalog files) and one box.tpl.php (=>15 sideboxes) file. This makes it easyer to modify the looks and create new templates, switch templates etc etc. But adding most catalog side contributions (which are made for stock osC) will be more problematic (because the code has moved). With a stock osC MS2 install you can create exactly the same layout as with the BTS, you only need to modify a lot more files to achieve the same. I.E.: I've seen several skins for download for osC MS2, but none using a CSS main layout. That a CSS mainlayout template exists for the BTS is because I found it was quite easy to create with the BTS. I would certainly not have done it without the BTS.
  17. PandA.nl

    Official PayPal IPN Support Thread

    Hi Rik Could you please post your settings? To compare. Because we get the wrong order status after the IPN ack.
  18. PandA.nl

    Official PayPal IPN Support Thread

    Same here. Because everything else seems to work fine, I decided to let it be. But of course it does seem wrong to me too, not sure if it's a bug or a setting. Is there anyone who does NOT have this problem? If so, could you post your settings?
  19. Hi Kenneth, I'm glad you figured it out (and posted back) yourself. Saves me some time :) I do wonder though if there's a special reason to have the boxes unchecked by default? The way I use it is like this: all orders that I've checked (payment etc) I give the order status "Processing", then select to view only "Processing" orders in orders.php, and then print all packing slips and invoices for all those "Processing" orders (only sometimes uncheking one or two for whatever reason).
  20. PandA.nl

    Official PayPal IPN Support Thread

    Sounds a bit weird indeed. I currently don't have this double tax problem, but maybe that's because the dutch paypal does not exist (I see the German does). There is a Dutch link, but it redirects and there seems to be nothing dutch about it after the redirect. I assume you ment "on top of" or "in addition to" i.s.o. "instead of". But thanks for the update Frank, it will save me a headache if paypal decides to change the Dutch site in the same way.
  21. PandA.nl

    Template systems

    Which one is better for you depends totally on your skills and needs. The STS and BTS are different, I think you can't say one of both it better in general. The STS is a template system or engine, to use it you need to learn to use the STS and it will enable you to change the looks of your site by editting just a couple of files. The STS will give you fast results, but won't let you use PHP in the templates, only HTML. Thus, the system might limit your possibilities. Looking at the STS support thread it looks like you will have trouble with some of the contributions using it. The BTS is a template structure, to use it you need some PHP knowledge and it will enable you the looks by editting just a couple of files. With the BTS it might take some more time to get the first results, but there are no limitations other than the limitations of your knowledge and php itself. Adding some of the contributions will be more difficult because most catalog code has been moved to other files than the default. I think it's often like this: if you are a wysiwyg type you'll like the STS, but if you are more a code editor type you'll like the BTS more. (B.t.w. a skilled programmer could combine the two without to much trouble I think.)
  22. Tried to edit my last post but I was too late :( @Cindy we almosted posted at the same time, so I did not read your last post until now. We're not allowed to discuss loaded versions here, but you can try to find the support thread for the Admin Account with Access Level contri or, if you can't find it, try to contact the person who created it. It looks like you need to change some of its settings.
  23. Don't know why I'm doing this but I'm switching to hold hands mode: 1) did a quick search using google (for the above mentioned error message): concluded it's a typical osC (and relatives) problem (so nothing todo with host or php prob) 2) searched a little deeper and read some posts: found it's very likely that it has something todo with admin access contribution 3) searched the osC contri's (for admin access): found a contri called Admin Account with Access Level That happens to have a language file which contains: define('HEADING_TITLE', 'Access Denied'); define('NAVBAR_TITLE', 'No Right Permission Access'); define('TEXT_MAIN', ' Please contact your <b>Web Administrator</b> to request <br> more access or if you found any problem.<br> '); define('TEXT_BACK', 'back'); BINGO! end hold hands mode
  24. :'( Ok, anyone who gets this message: I'm 99.9% sure it has nothing todo with the batch-invoice-printing contribution. I think you're all using one of the loaded versions or added one of the admin access contributions to the osC script. In stead of just asking, it might be a good idea to search the forums and/or compare what you have in common (like what osC version and what other admin contri's you added).
  25. Sorry, didn't get any notifications :huh: No idea. Since two of you have it, I guess it's something that you have in common (PHP version or settings? or same host?), especially since you also have the same problem with another contribution. Of course it might also be a good idea to do what the message says: Please contact your Web Administrator Are you sure you mailed to the right address? May be it was accidently deleted or something but I haven't seen your mail.