Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

version 1.4 -- NewsDesk released!


moyashi

Recommended Posts

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.

NewsDesk(934) / FAQDesk(1106) / OrderCheck(1168) :::

Link to comment
Share on other sites

  • Replies 244
  • Created
  • Last Reply

Top Posters In This Topic

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

Link to comment
Share on other sites

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)

Link to comment
Share on other sites

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 :)

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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 :!:

NewsDesk(934) / FAQDesk(1106) / OrderCheck(1168) :::

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

NewsDesk(934) / FAQDesk(1106) / OrderCheck(1168) :::

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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...

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

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?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

: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?

NewsDesk(934) / FAQDesk(1106) / OrderCheck(1168) :::

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...