moyashi Posted April 26, 2003 Author Share Posted April 26, 2003 hehe, just an update to OrderCheck .. released that today. For 1.5 NewsDesk ... I'll be adding authors. And hopefully, something like CrossX to patch in products to the news. Not sure really, but I'll be aiming for this since many have wanted it. Quote NewsDesk(934) / FAQDesk(1106) / OrderCheck(1168) ::: Link to comment Share on other sites More sharing options...
Spadver Posted April 27, 2003 Share Posted April 27, 2003 Thank's for greate work! Only some things. ;-) I've download this contribution+putch only yesterday 26/04 and I am trying to add this at MS1 now. And I meet the same bugs to fix that I must read all this thread. :( And those bugs are still in donload files!!! 1. Problem SQL - answer is here, about page 4. Done! 2. Problem error 185 line (this is about "tep... ) answer is here about page 7. Done! 3. For NOnENGLISH speaking users! To see NewsDesk at 1'st time you can switch language to ENGLISH! 4. Now I miss STYLES sheet at http://my_site/newsdesk_info.php?newsdesk_id=2 BUT NOT at http://my_site/newsdesk_index.php?newsPath=1 But may be tomorrow the new release will be placed? And we start new thread? :D Quote Link to comment Share on other sites More sharing options...
Spadver Posted April 27, 2003 Share Posted April 27, 2003 Cant't find EDIT button :D 1. SQL Mooh say (page3) Hy, I find the problem with newsdesk.sql, it's a problem of apostrophe (in text) line 288 -> €r€nIsn€'t this line 291 -> you€'ll enjoy line 294 -> Isn€'t life grand line 304 -> I wonder who€'ll 2. Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in e:conceptioneasyphpwwwsitecatalognewsdesk_index.php on line 185 rubygirl say (page 4) Instead of: (about lines 183-187 without wordwrap on!) if (($categories['categories_image'] = 'NULL') or categories) { } else { $print_echo = "tep_image(DIR_WS_IMAGES . $categories['categories_image'], $categories['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT)"; } It should be: (about lines 183-187 without wordwrap on!) if (($categories['categories_image'] = 'NULL') or categories) { } else { $print_echo = tep_image(DIR_WS_IMAGES . $categories['categories_image'], $categories['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT); } One no need to use " !!! before tep_image and after SUBCATEGORY_IMAGE_HEIGHT) Quote Link to comment Share on other sites More sharing options...
Eliot Rayner Posted April 28, 2003 Share Posted April 28, 2003 I found that to get NewsDesk 1.4 working with the latest snapshots (and without having to sort out using the new upload file class) you need to add all the following to the bottom of adminfunctionsnewsdesk_general.php function tep_get_uploaded_file($filename) { if (isset($_FILES[$filename])) { $uploaded_file = array('name' => $_FILES[$filename]['name'], 'type' => $_FILES[$filename]['type'], 'size' => $_FILES[$filename]['size'], 'tmp_name' => $_FILES[$filename]['tmp_name']); } elseif (isset($GLOBALS['HTTP_POST_FILES'][$filename])) { global $HTTP_POST_FILES; $uploaded_file = array('name' => $HTTP_POST_FILES[$filename]['name'], 'type' => $HTTP_POST_FILES[$filename]['type'], 'size' => $HTTP_POST_FILES[$filename]['size'], 'tmp_name' => $HTTP_POST_FILES[$filename]['tmp_name']); } else { $uploaded_file = array('name' => $GLOBALS[$filename . '_name'], 'type' => $GLOBALS[$filename . '_type'], 'size' => $GLOBALS[$filename . '_size'], 'tmp_name' => $GLOBALS[$filename]); } return $uploaded_file; } // the $filename parameter is an array with the following elements: // name, type, size, tmp_name function tep_copy_uploaded_file($filename, $target) { if (substr($target, -1) != '/') $target .= '/'; $target .= $filename['name']; move_uploaded_file($filename['tmp_name'], $target); } // return a local directory path (without trailing slash) function tep_get_local_path($path) { if (substr($path, -1) == '/') $path = substr($path, 0, -1); return $path; } by the way a great mod :) Quote Link to comment Share on other sites More sharing options...
moyashi Posted April 28, 2003 Author Share Posted April 28, 2003 Thanks for the code and for the compliment :D I didn't realize until recently how popular it has become :shock: Quote NewsDesk(934) / FAQDesk(1106) / OrderCheck(1168) ::: Link to comment Share on other sites More sharing options...
Salvo Posted April 28, 2003 Share Posted April 28, 2003 Very Very popular and nice....too :) Quote Link to comment Share on other sites More sharing options...
moyashi Posted April 28, 2003 Author Share Posted April 28, 2003 ok ok ... are we all now racking up brownie points :wink: So, before I get that warm and fuzzy feeling all over ... what is it that you all want next :?: Quote NewsDesk(934) / FAQDesk(1106) / OrderCheck(1168) ::: Link to comment Share on other sites More sharing options...
Salvo Posted April 29, 2003 Share Posted April 29, 2003 An IceScreemDesk with cocholate on top... :-) will do for me.. I was wandering if you planning the 1.5 newsdesk... there are fews small bugs in the 1.4 ie.. Start Date (doen't work), Hyperlink in summary and content (doesn't work) Salvo Quote Link to comment Share on other sites More sharing options...
Guest Posted May 6, 2003 Share Posted May 6, 2003 Hey all, Nice topic, solved alot of the issues with the initial contrib. Although, in admin I still get an error: Parse error: parse error, unexpected $end in D:Internetwwwrootngadminincludesboxescatalog.php on line 39 Couldn?t find any solutions in this thread. Anyone got any ideas? Quote Link to comment Share on other sites More sharing options...
moyashi Posted May 6, 2003 Author Share Posted May 6, 2003 Hi ALL :D A kind user sent this email to me ... the below code fixes some problems with images in newer snapshots. Hello, I just finished setting up your FAQ mod on a client's osc installation. It seems they hae updated their uploading functions into a class. So I had to make 2 changes i nthe admin to make it work. Oh, btw this is for the latest dev version of osc as of May 1st. in the category image section i replaced the whole image upload section with this: ------------------------------------------------------------------------------------------------------- if ($categories_image = new upload('categories_image', DIR_FS_CATALOG_IMAGES)) { tep_db_query("update " . TABLE_FAQDESK_CATEGORIES . " set categories_image = '" . $categories_image->filename . "' where categories_id = '" . tep_db_input($categories_id) . "'"); } and the product add section al lthe image upload stuff with this ------------------------------------------------------------------------------------------ if ($faqdesk_image = new upload('faqdesk_image', DIR_FS_CATALOG_IMAGES)) { $faqdesk_image_name = $faqdesk_image_name->filename; } else { $faqdesk_image_name = $HTTP_POST_VARS['products_previous_image']; } if ($faqdesk_image_two = new upload('faqdesk_image_two', DIR_FS_CATALOG_IMAGES)) { $faqdesk_image_two_name = $faqdesk_image_two->filename; } else { $faqdesk_image_two_name = $HTTP_POST_VARS['products_previous_image_two']; } if ($faqdesk_image_three = new upload('faqdesk_image_three', DIR_FS_CATALOG_IMAGES)) { $faqdesk_image_three_name = $faqdesk_image_three->filename; } else { $faqdesk_image_three_name = $HTTP_POST_VARS['products_previous_image_three']; } Thanks a lot for the mod. It looks and works incredibly well. I had a couple issues with browser crashes at first (ie6 xp), but when i made the above updates everything seemed to work ok. Mark A. Oh, and if you happen to use these changes and reference me anywhere (you don't have to), please don't use this address but [email protected] instead. Thanks!!!! I'm a bit busy but to use the above code just change out the faqdesk references and use the ones for newsdesk. Cheers and special thanks to Mark :!: Quote NewsDesk(934) / FAQDesk(1106) / OrderCheck(1168) ::: Link to comment Share on other sites More sharing options...
Guest Posted May 7, 2003 Share Posted May 7, 2003 Hi, I installed News desk like written in readme but it does not working I always get strange errors tep_get_uploaded_file() I tried to workaround but it does not working Quote Link to comment Share on other sites More sharing options...
moyashi Posted May 7, 2003 Author Share Posted May 7, 2003 hmmm ... you tried the workaround above and changed the faqdesk variables to newsdesk? I don't have the time right now to fiddle with a snapshot version. I do promise to support the next MS release. Quote NewsDesk(934) / FAQDesk(1106) / OrderCheck(1168) ::: Link to comment Share on other sites More sharing options...
Guest Posted May 7, 2003 Share Posted May 7, 2003 In the mean time I installed MS1 and it is working but it breaks down when I insert larger picture Quote Link to comment Share on other sites More sharing options...
Guest Posted May 7, 2003 Share Posted May 7, 2003 Now I have this problem; Warning: reset() [function.reset]: Passed variable is not an array or object in C:Program FilesApache GroupApache2htdocscatalogadminincludesclassesobject_info.php on line 17 Warning: Variable passed to each() is not an array or object in C:Program FilesApache GroupApache2htdocscatalogadminincludesclassesobject_info.php on line 18 Quote Link to comment Share on other sites More sharing options...
Guest Posted May 7, 2003 Share Posted May 7, 2003 I also lost dropdown menu, or better there it is but without languages to select. It is on english now but I wonder why it was changed. Quote Link to comment Share on other sites More sharing options...
moyashi Posted May 8, 2003 Author Share Posted May 8, 2003 What did you change when you used MS1? Quote NewsDesk(934) / FAQDesk(1106) / OrderCheck(1168) ::: Link to comment Share on other sites More sharing options...
Guest Posted May 12, 2003 Share Posted May 12, 2003 Hi, have installed News Desk but when I enter news it crash under XP. When I click preview with no news entered (blank fields) it does not crash. Quote Link to comment Share on other sites More sharing options...
Druide Posted May 12, 2003 Share Posted May 12, 2003 Hi, have installed News Desk but when I enter news it crash under XP. When I click preview with no news entered (blank fields) it does not crash. did you rechecked all your changes twice ? it sounds like you made a wrong query somehow... Quote Robert We all need to learn it once, how hard it may seem when you look at it, also you will master it someday ;) Link to comment Share on other sites More sharing options...
Snowman Posted May 13, 2003 Share Posted May 13, 2003 I have a problem that when i go into the admin/newsdesk.php and click on the new story link it all loads ok except i get image not found X's by the add image functions. If i then go and add a story and click on preview it crashes my browser. Im using ie 6.1 on XP any ideas as to why this would be happening? Quote Link to comment Share on other sites More sharing options...
Guest Posted May 13, 2003 Share Posted May 13, 2003 Yes I did, it is all like have to be but... Quote Link to comment Share on other sites More sharing options...
moyashi Posted May 13, 2003 Author Share Posted May 13, 2003 hmmm, I wonder if it's the javascript editor that's causing this crash? any information in ie? Quote NewsDesk(934) / FAQDesk(1106) / OrderCheck(1168) ::: Link to comment Share on other sites More sharing options...
Snowman Posted May 13, 2003 Share Posted May 13, 2003 it doesnt bring up any error messages or anything it just goes straight to the do you want to tell Bill gates his software is cr@p box :shock: not sure what the issue is....the editor loads ok on the page, its only when you click preview that it goes wrong Quote Link to comment Share on other sites More sharing options...
moyashi Posted May 13, 2003 Author Share Posted May 13, 2003 :lol: haha, that's pretty funny :!: M$ products on OSX run pretty well. Well, IE is like only at version 5.2.2 or so ??? but it was at one time the best browser on a mac. Office vx kills what I have to use at work too. Anyway, looks like this is a javascript error. oh well, so much for ie compliance. hmmm, I'm really busy this week but if you can, why not try to remove the editor. Or down grade to ND 1.3. 1.4 was editor verison ... haha, I think :oops: gee, it's getting late or I'm getting old. Is this on MS1 or a newer snapshot? Quote NewsDesk(934) / FAQDesk(1106) / OrderCheck(1168) ::: Link to comment Share on other sites More sharing options...
Snowman Posted May 13, 2003 Share Posted May 13, 2003 ah yes its on a MS1 release. Ive installed it on 3 different copies of MS1 and the same issue in every one... Quote Link to comment Share on other sites More sharing options...
moyashi Posted May 13, 2003 Author Share Posted May 13, 2003 that's strange. I've never had this problem with MS1. hmmm, I wonder if it's only ie 6.1 that does this. Quote NewsDesk(934) / FAQDesk(1106) / OrderCheck(1168) ::: 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.