Jump to content

Nimmit

Members
  • Content count

    246
  • Joined

  • Last visited

Everything posted by Nimmit

  1. AJAX Attribute Manager - v1 beta What is this contribution?? The idea of this contribution is to make the administration of product options, option values and attributes much quicker and easier. http://www.oscommerce.com/community/contributions,4063 http://www.oscommerce.com/community/contributions,4041 It uses a technology known as AJAX (Asynchronous JavaScript And XML). This enables us to do is make page sub-reqests without refreshing a page. In this case, it enables us to make a attribute manager that sits on the product addition page. From which, you can do everything (ish - see notes) that the product attributes page does but in a much more convenient and tidy way. Installation takes 5 mins Full Documentation in the package Any future upgrades will require no editing ***** IMPORTANT ***** As this is a beta release. There will be updates to this contribution. Please don't change anything and re-upload it the contribution section (even if it just a typo) untill it has been officialy released. Please let us know of any bugs in the oscommerce forums - Thank you! Any Comments welcomed Nimmit :thumbsup:
  2. support thread for this contribution http://www.oscommerce.com/community/contributions,2183 Nimmit :)
  3. Nimmit

    AJAX Attribute Manager support

    Phocea - Thanks for taking this one on, I don't seem to be able to find the time these days. If you get it stable, please feel free to take it out of beta, I can't realistically see myself delving back into it. Thanks again, Nimmit :thumbsup:
  4. Nimmit

    AJAX Attribute Manager support

    Do you have any other attribute contribution on the product page?
  5. Nimmit

    AJAX Attribute Manager support

    Hi, Thought i'd post just to let everyone know what the status of this contribution is. I have decided not to continue with the rewrite as i think it will complicate matters which isn't fair because i dont have the time to support it. I know that it currently seems to have some quirks that i think are session related (ie. different setups). Unfortunatly in my testing i dont seem to be able to replicate them. As soon as i possibly can i will release version 1 which will include a few fixes to problems that people have been having. I will then "open it to the masses" so hopefully other people will continue / extend it. Thanks for any compliments that people have been giving, they are very appreciated. Sam aka Nimmit :thumbsup: At the moment there is no sort order system in place. My problem was there were so many sort order contributions it is difficult to choose which one to base it on. Because i just don't have the time to 'properly' support it i thought it would be simpler not to include any. thanks
  6. Nimmit

    AJAX Attribute Manager support

    As it says in the install "Only needed if you have any of the following contributions installed - Admin Access" You obvioulsy don't have that contribution installed so don't worry about that step
  7. Nimmit

    AJAX Attribute Manager support

    Just to let everyone know, I am currently doing a complete re-write of this contribution. It is not ready yet but the previous version will become (in my eyes) obsolete. It includes drag and drop sort order, more refinded interface, better graphics and animated effects. I have (silently) taken into account everyones suggestions and comments all the current issues will be / have been addressed. On the down side (for some), it will be using the prototype.js library wich will conflict with the most popular wysiwyg contribution. The benifits of using this and other librarys in the new version way out ways the down points. There are other wysiwyg editors such as tinymce which are 10x better anyway. I am extreemly busy at the moment with other things (such as relocating to the other side of the world) but as soon as everything has settled down at this end i will release a final version of the current system, then release the new one when i finish it. Some comments and quick fixes for some questions people have been asking... It does, and if you look at the code you will see that? Already defined messages fix Only some setup are effected by this problem and it is becaue of the way the include paths are setup. In attributeManager/attributeManager.php - add the full include path to the includes comming out of the attribute manager direcory. e.g. change // db wrapper require_once('classes/amDB.class.php'); // session functions require_once('includes/attributeManagerSessionFunctions.inc.php'); // config require_once('classes/attributeManagerConfig.class.php'); // misc functions require_once('includes/attributeManagerGeneralFunctions.inc.php'); // parent class require_once('classes/attributeManager.class.php'); // instant class require_once('classes/attributeManagerInstant.class.php'); // atomic class require_once('classes/attributeManagerAtomic.class.php'); // security class require_once('classes/stopDirectAccess.class.php'); to... // db wrapper require_once('attributeManager/classes/amDB.class.php'); // session functions require_once('attributeManager/includes/attributeManagerSessionFunctions.inc.php'); // config require_once('attributeManager/classes/attributeManagerConfig.class.php'); // misc functions require_once('attributeManager/includes/attributeManagerGeneralFunctions.inc.php'); // parent class require_once('attributeManager/classes/attributeManager.class.php'); // instant class require_once('attributeManager/classes/attributeManagerInstant.class.php'); // atomic class require_once('attributeManager/classes/attributeManagerAtomic.class.php'); // security class require_once('attributeManager/classes/stopDirectAccess.class.php'); Im not quite sure what is going on the the session not registered problem i will have to spend a bit more time trying to replicate it. A quick fix for anyone using .htpasswd to secure there admin directory is just to comment out this line in attributeManager/attributeManager.php change... stopDirectAccess::checkAuthorisation(AM_SESSION_VALID_INCLUDE); to ... //stopDirectAccess::checkAuthorisation(AM_SESSION_VALID_INCLUDE); Anyone using an admin password contribution shouldn't use the above fix as it will open up a security hole and you could find your selfs waking up with no attributes in your db! Hope this helps a bit, Sam
  8. Nimmit

    AJAX Attribute Manager support

    That isn't a bug, the prices arn't saved in the template. Just add ... below it <!-- osc@kangaroopartners.com - AJAX Attribute Manager --> <tr> <td colspan="2"><?php require_once('attributeManager/includes/attributeManagerPlaceHolder.inc.php')?></td> </tr> <!-- osc@kangaroopartners.com - AJAX Attribute Manager end -->
  9. Nimmit

    AJAX Attribute Manager support

    as far as i know wysiwyg doesn't work in firefox anyway - i may well be wrong
  10. Nimmit

    AJAX Attribute Manager support

    <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF" onload="SetFocus();"> That bit of code is just your body tag? If that is the code currently on your site then you haven't followed the install i instructions for this contrib properly From install... What i was saying is. if mo pics required you to add somthing to the onload function e.g. onload="moPicsFunction();" you would need to add that function call to the go on load funciton instead. I think you have just missed one of the steps of the install. Just replace the SetFocus() with goOnload() and see what happens
  11. Nimmit

    AJAX Attribute Manager support

    This is an admin module so the customer will never see it. I think you want the quick find contribution. Please search the forums for an answer a this question has nothing todo with this contribution. <script language="JavaScript" type="text/javascript"> function goOnLoad() { <?php if('new_product' == $action || 'update_product' == $action) echo 'attributeManagerInit();specManagerInit();'; ?> SetFocus(); // ADD YOUR JAVASCRIPT ONLOAD FUNCTION CALL HERE << functionCall(); } </script> From the sounds of that error somthing hidden is trying to get focus. Nothing in this contribution takes focus. Focus is taken by calling the javascript function focus() (e.g. element.focus();) It isn't called once in this. I had a quick search on the net for this and saw a few references to wysiwyg editors. I'm not saying it is anything todo with your error but if you do have the wysiwyg editor installed might be worth looking there. or here http://forums.oscommerce.com/index.php?showtopic=139939 someone else on this forum with similar error.
  12. Nimmit

    AJAX Attribute Manager support

    attributeManager.js in function amUpdate (look for the blur()). If in the future you need any help todo with your modifications can you please pm me because it is not strictly anything todo with the contribution. Thanks.
  13. Nimmit

    AJAX Attribute Manager support

    Does the more pics use javascript? If so, in the install were you required to add somthing to the onload in the body tag? If you were add what ever function call to attrubuteManager/includes/attributeManagerHeader.inc.php within the goOnLoad javascript funciton. Thank you, it is nice to hear some positive feed back!
  14. Nimmit

    AJAX Attribute Manager support

    Yes - Thanks again. Please be patient. I am not able to replicate this problem which means it must be platform specific. I susspect it is todo with the way in which the php require_once works. Becuase of where the different files are used they all need access to the db class, i was under the impression (and have been using it in this way since php4) that require_once would take care of the duplication of includes. But it appears that php is seeing the from different include paths and as such is treating them as different files. I know how to sort it out, but I am not happy with releasing so many versions so quickly. i am not releasing another version untill i can take some time to go over the whole contribution. The reason i have been uploading so many versions is I have found from experence that if i do not do so people will start fixing the bugs and uploading them. The problem with this is that then several versions start running and people overwrite each others 'fixes', it gets very confusing! I have a few more features i need finish off then i will release version 1 - then people can do what they like. I hope everyone understands what im going on about here. FreeLancer i will get to your query. Bloating the thread with repeats doesn't help anyone. This is free software so unfortunatly some times you have to be patient.
  15. Nimmit

    AJAX Attribute Manager support

    Ouch :blush: that bit hadn't been updated since about version 1.6! There were other bits in that file that had to be changed Thanks for letting me know Eventualy the bugs will all be ironed out! AJAX Attribute Manager v2.1 beta - Multilingual
  16. Nimmit

    AJAX Attribute Manager support

    Humm... I don't know. That class is declared in its own file then included with require_once so it should only be included (as so declared) once. What version of PHP are you running?
  17. Nimmit

    AJAX Attribute Manager support

    Thank you, i understand now. I too tried it and can see exactly what you mean. I have fixed it and uploaded another version. AJAX Attribute Manager v1.9 beta - Multilingual Thank you for pointing it out. p.s. Dont use the comma when you are adding the price. p.p.s. Opera for your second choice of browser?? Firefox is the best!!
  18. Nimmit

    AJAX Attribute Manager support

    I dont know what you are going on about, can you please try and write in clearer english. It updates the price on each attribute when you go away from that text field. so once you have setup your attributes you can just go down them all very quickly. Do you mean that you would like the price brought over in the templates? That is obviolsy a naming conflict. I will rename the db class and all calls to it and re-upload I don't know
  19. Nimmit

    AJAX Attribute Manager support

    A few questions... What browser are you using? What version of PHP is installed on your server? What version of OSC are you using? Is it local or remote install? It is a admin session problem, the more info i can get the better. Is anyone else having this problem ?
  20. Nimmit

    AJAX Attribute Manager support

    Are you still having this problem? Let me know. It shouldn't be happening, unless you are trying to directly access attributeManager.php - Please make sure you have followed every install step correctly. Thats right, you have to force the charset to utf-8. If you are parsing non latin charicters from javascript to the server you will also need to add setRequestHeader("Content-Type", "text/html; charset=ISO-8859-1"); to the request object. I haven't used the new version of htmlarea - the place i was reffering to is in attributeManager/includes/attributeManagerHeader.inc.php - anything that was previously called within the body onload will have to be called in there instead. Let me know how you get on with this. Yes there will be in the next propper release. Its part done, just need to finish it off.
  21. Nimmit

    AJAX Attribute Manager support

    Sorry about that. That is a feature not yet implemented, i got an if/else the wrong way around. I have uploaded another version, its only one line in attributeManagerInstant.class.php changed (157). AM_USE_SORT_ORDER should be !AM_USE_SORT_ORDER Everyone else ingnore this unless you have this problem. Thanks for letting me know. AJAX Attribute Manager v1.7 beta - Multilingual Sam
  22. Nimmit

    AJAX Attribute Manager support

    AJAX Attribute Manager v1.6 beta - Multilingual * Changed it so that only indiviual sections get updated each time an action is performed Fixed a small problem with one of the javascript prompts if they contained a ' Fixed non-latin charicters showing up as question marks changed all the prompts to make them more flexable added Multilingual support added attribute templates. With... quick load easy save easy rename delete Nimmit :thumbsup:
  23. Nimmit

    AJAX Attribute Manager support

    Soon. Please be patient, we are very busy at the moment and will get the new release out as soon as we can. I just don?t want do release it without all of the features that have been added complete. It is fixed and will be in the next release, see screen below. Sam
  24. Nimmit

    AJAX Attribute Manager support

    This is only with newer versions of HTML area. Just so you know, you would be better off adding it within the goOnload function in attributeManager/attributeManagerHeader.inc.php
×