Jump to content
Sign in to follow this  
241

NewsDesk v1.48 Support

Recommended Posts

Hi all,

 

Firstly - thats for a great contribution.

 

I am having a little trouble with the operation of newdesk.

 

have installed and all is working except for article management in the admin.

 

When i click on "article management" i get the following info displayed ...

 

=======

 

($product_query); return $product['newsdesk_article_description']; } // ------------------------------------------------------------------------------------------------------------------------------------------------------------- function newsdesk_get_newsdesk_article_shorttext($product_id, $language_id) { // ------------------------------------------------------------------------------------------------------------------------------------------------------------- $product_query = tep_db_query("select newsdesk_article_shorttext from " . TABLE_NEWSDESK_DESCRIPTION . " where newsdesk_id = '" . $product_id . "' and language_id = '" . $language_id . "'"); $product = tep_db_fetch_array($product_query); return $product['newsdesk_article_shorttext']; } // ------------------------------------------------------------------------------------------------------------------------------------------------------------- // Count how many products exist in a category // TABLES: products, products_to_categories, categories function newsdesk_products_in_category_count($categories_id, $include_deactivated = false) { // ------------------------------------------------------------------------------------------------------------------------------------------------------------- $products_count = 0; if ($include_deactivated) { $products_query = tep_db_query("select count(*) as total from " . TABLE_NEWSDESK . " p, " . TABLE_NEWSDESK_TO_CATEGORIES . " p2c where p.newsdesk_id = p2c.newsdesk_id and p2c.categories_id = '" . $categories_id . "'"); } else { $products_query = tep_db_query("select count(*) as total from " . TABLE_NEWSDESK . " p, " . TABLE_NEWSDESK_TO_CATEGORIES . " p2c where p.newsdesk_id = p2c.newsdesk_id and p.newsdesk_status = '1' and p2c.categories_id = '" . $categories_id . "'"); } $products = tep_db_fetch_array($products_query); $products_count += $products['total']; $childs_query = tep_db_query("select categories_id from " . TABLE_NEWSDESK_CATEGORIES . " where parent_id = '" . $categories_id . "'"); if (tep_db_num_rows($childs_query)) { while ($childs = tep_db_fetch_array($childs_query)) { $products_count += newsdesk_products_in_category_count($childs['categories_id'], $include_deactivated); } } return $products_count; } // ------------------------------------------------------------------------------------------------------------------------------------------------------------- // Count how many subcategories exist in a category // TABLES: categories function newsdesk_childs_in_category_count($categories_id) { // ------------------------------------------------------------------------------------------------------------------------------------------------------------- $categories_count = 0; $categories_query = tep_db_query("select categories_id from " . TABLE_NEWSDESK_CATEGORIES . " where parent_id = '" . $categories_id . "'"); while ($categories = tep_db_fetch_array($categories_query)) { $categories_count++; $categories_count += newsdesk_childs_in_category_count($categories['categories_id']); } return $categories_count; } // ------------------------------------------------------------------------------------------------------------------------------------------------------------- function newsdesk_generate_category_path($id, $from = 'category', $categories_array = '', $index = 0) { // ------------------------------------------------------------------------------------------------------------------------------------------------------------- global $languages_id; if (!is_array($categories_array)) $categories_array = array(); if ($from == 'product') { $categories_query = tep_db_query("select categories_id from " . TABLE_NEWSDESK_TO_CATEGORIES . " where newsdesk_id = '" . $id . "'"); while ($categories = tep_db_fetch_array($categories_query)) { if ($categories['categories_id'] == '0') { $categories_array[$index][] = array('id' => '0', 'text' => TEXT_TOP); } else { $category_query = tep_db_query("select cd.categories_name, c.parent_id from " . TABLE_NEWSDESK_CATEGORIES . " c, " . TABLE_NEWSDESK_CATEGORIES_DESCRIPTION . " cd where c.categories_id = '" . $categories['categories_id'] . "' and c.categories_id = cd.categories_id and cd.language_id = '" . $languages_id . "'"); $category = tep_db_fetch_array($category_query); $categories_array[$index][] = array('id' => $categories['categories_id'], 'text' => $category['categories_name']); if ( (tep_not_null($category['parent_id'])) && ($category['parent_id'] != '0') ) $categories_array = newsdesk_generate_category_path($category['parent_id'], 'category', $categories_array, $index); $categories_array[$index] = array_reverse($categories_array[$index]); } $index++; } } elseif ($from == 'category') { $category_query = tep_db_query("select cd.categories_name, c.parent_id from " . TABLE_NEWSDESK_CATEGORIES . " c, " . TABLE_NEWSDESK_CATEGORIES_DESCRIPTION . " cd where c.categories_id = '" . $id . "' and c.categories_id = cd.categories_id and cd.language_id = '" . $languages_id . "'"); $category = tep_db_fetch_array($category_query); $categories_array[$index][] = array('id' => $id, 'text' => $category['categories_name']); if ( (tep_not_null($category['parent_id'])) && ($category['parent_id'] != '0') ) $categories_array = newsdesk_generate_category_path($category['parent_id'], 'category', $categories_array, $index); } return $categories_array; } // ------------------------------------------------------------------------------------------------------------------------------------------------------------- function newsdesk_remove_category($category_id) { // ------------------------------------------------------------------------------------------------------------------------------------------------------------- $category_image_query = tep_db_query("select categories_image from " . TABLE_NEWSDESK_CATEGORIES . " where categories_id = '" . tep_db_input($category_id) . "'"); $category_image = tep_db_fetch_array($category_image_query); $duplicate_image_query = tep_db_query("select count(*) as total from " . TABLE_NEWSDESK_CATEGORIES . " where categories_image = '" . tep_db_input($category_image['categories_image']) . "'"); $duplicate_image = tep_db_fetch_array($duplicate_image_query); if ($duplicate_image['total'] < 2) { if (file_exists(DIR_FS_CATALOG_IMAGES . $category_image['categories_image'])) { @unlink(DIR_FS_CATALOG_IMAGES . $category_image['categories_image']); } } tep_db_query("delete from " . TABLE_NEWSDESK_CATEGORIES . " where categories_id = '" . tep_db_input($category_id) . "'"); tep_db_query("delete from " . TABLE_NEWSDESK_CATEGORIES_DESCRIPTION . " where categories_id = '" . tep_db_input($category_id) . "'"); tep_db_query("delete from " . TABLE_NEWSDESK_TO_CATEGORIES . " where categories_id = '" . tep_db_input($category_id) . "'"); if (USE_CACHE == 'true') { tep_reset_cache_block('categories'); tep_reset_cache_block('also_purchased'); } } // ------------------------------------------------------------------------------------------------------------------------------------------------------------- function newsdesk_remove_product($product_id) { // ------------------------------------------------------------------------------------------------------------------------------------------------------------- $product_image_query = tep_db_query("select newsdesk_image, newsdesk_image_two, newsdesk_image_three from " . TABLE_NEWSDESK . " where newsdesk_id = '" . tep_db_input($product_id) . "'"); $product_image = tep_db_fetch_array($product_image_query); $duplicate_image_query = tep_db_query("select count(*) as total from " . TABLE_NEWSDESK . " where newsdesk_image = '" . tep_db_input($product_image['newsdesk_image']) . "'"); $duplicate_image = tep_db_fetch_array($duplicate_image_query); if ($duplicate_image['total'] < 2) { if (file_exists(DIR_FS_CATALOG_IMAGES . $product_image['newsdesk_image'])) { @unlink(DIR_FS_CATALOG_IMAGES . $product_image['newsdesk_image']); } } $duplicate_image_query_two = tep_db_query("select count(*) as total from " . TABLE_NEWSDESK . " where newsdesk_image_two = '" . tep_db_input($product_image['newsdesk_image_two']) . "'"); $duplicate_image_two = tep_db_fetch_array($duplicate_image_query_two); if ($duplicate_image_two['total'] < 2) { if (file_exists(DIR_FS_CATALOG_IMAGES . $product_image['newsdesk_image_two'])) { @unlink(DIR_FS_CATALOG_IMAGES . $product_image['newsdesk_image_two']); } } $duplicate_image_query_three = tep_db_query("select count(*) as total from " . TABLE_NEWSDESK . " where newsdesk_image_three = '" . tep_db_input($product_image['newsdesk_image_three']) . "'"); $duplicate_image_three = tep_db_fetch_array($duplicate_image_query_three); if ($duplicate_image_three['total'] < 2) { if (file_exists(DIR_FS_CATALOG_IMAGES . $product_image['newsdesk_image_three'])) { @unlink(DIR_FS_CATALOG_IMAGES . $product_image['newsdesk_image_three']); } } tep_db_query("delete from " . TABLE_NEWSDESK . " where newsdesk_id = '" . tep_db_input($product_id) . "'"); tep_db_query("delete from " . TABLE_NEWSDESK_TO_CATEGORIES . " where newsdesk_id = '" . tep_db_input($product_id) . "'"); tep_db_query("delete from " . TABLE_NEWSDESK_DESCRIPTION . " where newsdesk_id = '" . tep_db_input($product_id) . "'"); $product_reviews_query = tep_db_query("select reviews_id from " . TABLE_NEWSDESK_REVIEWS . " where newsdesk_id = '" . tep_db_input($product_id) . "'"); while ($product_reviews = tep_db_fetch_array($product_reviews_query)) { tep_db_query("delete from " . TABLE_NEWSDESK_REVIEWS_DESCRIPTION . " where reviews_id = '" . $product_reviews['reviews_id'] . "'"); } tep_db_query("delete from " . TABLE_NEWSDESK_REVIEWS . " where newsdesk_id = '" . tep_db_input($product_id) . "'"); if (USE_CACHE == 'true') { tep_reset_cache_block('categories'); tep_reset_cache_block('also_purchased'); } } // ------------------------------------------------------------------------------------------------------------------------------------------------------------- // Sets the status of a product // ------------------------------------------------------------------------------------------------------------------------------------------------------------- function newsdesk_set_product_status($newsdesk_id, $status) { if ($status == '1') { return tep_db_query("update " . TABLE_NEWSDESK . " set newsdesk_status = '1', newsdesk_last_modified = now() where newsdesk_id = '" . $newsdesk_id . "'"); } elseif ($status == '0') { return tep_db_query("update " . TABLE_NEWSDESK . " set newsdesk_status = '0', newsdesk_last_modified = now() where newsdesk_id = '" . $newsdesk_id . "'"); } else { return -1; } } // ------------------------------------------------------------------------------------------------------------------------------------------------------------- function newsdesk_get_newsdesk_article_url($product_id, $language_id) { // ------------------------------------------------------------------------------------------------------------------------------------------------------------- $product_query = tep_db_query("select newsdesk_article_url from " . TABLE_NEWSDESK_DESCRIPTION . " where newsdesk_id = '" . $product_id . "' and language_id = '" . $language_id . "'"); $product = tep_db_fetch_array($product_query); return $product['newsdesk_article_url']; } // ------------------------------------------------------------------------------------------------------------------------------------------------------------- function newsdesk_get_newsdesk_article_url_name($product_id, $language_id) { // ------------------------------------------------------------------------------------------------------------------------------------------------------------- $product_query = tep_db_query("select newsdesk_article_url_name from " . TABLE_NEWSDESK_DESCRIPTION . " where newsdesk_id = '" . $product_id . "' and language_id = '" . $language_id . "'"); $product = tep_db_fetch_array($product_query); return $product['newsdesk_article_url_name']; } // ------------------------------------------------------------------------------------------------------------------------------------------------------------- function newsdesk_get_products_name($newsdesk_id, $language_id = 0) { // ------------------------------------------------------------------------------------------------------------------------------------------------------------- global $languages_id; if ($language_id == 0) $language_id = $languages_id; $product_query = tep_db_query( "select newsdesk_article_name from " . TABLE_NEWSDESK_DESCRIPTION . " where newsdesk_id = '" . $newsdesk_id . "' and language_id = '" . $language_id . "'" ); $product = tep_db_fetch_array($product_query); return $product['newsdesk_article_name']; } // ------------------------------------------------------------------------------------------------------------------------------------------------------------- // ------------------------------------------------------------------------------------------------------------------------------------------------------------- // Output a form textarea field function newsdesk_draw_textarea_field($name, $wrap, $width, $height, $text = '', $parameters = '', $reinsert_value = true) { $field = ' '"')) . '" wrap="' . newsdesk_parse_input_field_data($wrap, array('"' => '"')) . '" cols="' . newsdesk_parse_input_field_data($width, array('"' => '"')) . '" rows="' . newsdesk_parse_input_field_data($height, array('"' => '"')) . '" '; if (newsdesk_not_null($parameters)) $field .= ' ' . $parameters; // $field .= 'class="post" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);"'; // $field .= 'onSelect="java script:storeCaret(this);" onClick="java script:storeCaret(this);" onKeyUp="java script:storeCaret(this);" onChange="java script:storeCaret(this);"'; // $field .= 'onSelect="java script:storeCaret(text);" onClick="java script:storeCaret(text);" onKeyUp="java script:storeCaret(text);" onChange="java script:storeCaret(text);"'; $field .= '>'; if ( (isset($GLOBALS[$name])) && ($reinsert_value == true) ) { $field .= $GLOBALS[$name]; } elseif (newsdesk_not_null($text)) { $field .= $text; } $field .= ''; return $field; } // ------------------------------------------------------------------------------------------------------------------------------------------------------------- // ------------------------------------------------------------------------------------------------------------------------------------------------------------- // Parse the data used in the html tags to ensure the tags will not break function newsdesk_parse_input_field_data($data, $parse) { return strtr(trim($data), $parse); } // ------------------------------------------------------------------------------------------------------------------------------------------------------------- // ------------------------------------------------------------------------------------------------------------------------------------------------------------- function newsdesk_not_null($value) { if (is_array($value)) { if (sizeof($value) > 0) { return true; } else { return false; } } else { if (($value != '') && ($value != 'NULL') && (strlen(trim($value)) > 0)) { return true; } else { return false; } } } // ------------------------------------------------------------------------------------------------------------------------------------------------------------- // ------------------------------------------------------------------------------------------------------------------------------------------------------------- function newsdesk_set_categories_status($categories_id, $status) { if ($status == '1') { return tep_db_query("update " . TABLE_NEWSDESK_CATEGORIES . " set catagory_status = '1' where categories_id = '" . $categories_id . "'"); } elseif ($status == '0') { return tep_db_query("update " . TABLE_NEWSDESK_CATEGORIES . " set catagory_status = '0' where categories_id = '" . $categories_id . "'"); } else { return -1; } } // ------------------------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------------- function newsdesk_get_newsdesk_image_text($product_id, $language_id = 0) { // ------------------------------------------------------------------------------------------------------------------------------------------------------------- global $languages_id; if ($language_id == 0) $language_id = $languages_id; $product_query = tep_db_query("select newsdesk_image_text from " . TABLE_NEWSDESK_DESCRIPTION . " where newsdesk_id = '" . $product_id . "' and language_id = '" . $language_id . "'"); $product = tep_db_fetch_array($product_query); return $product['newsdesk_image_text']; } // ----------------------------------------------------------------------- function newsdesk_get_newsdesk_image_text_two($product_id, $language_id = 0) { // ------------------------------------------------------------------------------------------------------------------------------------------------------------- global $languages_id; if ($language_id == 0) $language_id = $languages_id; $product_query = tep_db_query("select newsdesk_image_text_two from " . TABLE_NEWSDESK_DESCRIPTION . " where newsdesk_id = '" . $product_id . "' and language_id = '" . $language_id . "'"); $product = tep_db_fetch_array($product_query); return $product['newsdesk_image_text_two']; } // ----------------------------------------------------------------------- function newsdesk_get_newsdesk_image_text_three($product_id, $language_id = 0) { // ------------------------------------------------------------------------------------------------------------------------------------------------------------- global $languages_id; if ($language_id == 0) $language_id = $languages_id; $product_query = tep_db_query("select newsdesk_image_text_three from " . TABLE_NEWSDESK_DESCRIPTION . " where newsdesk_id = '" . $product_id . "' and language_id = '" . $language_id . "'"); $product = tep_db_fetch_array($product_query); return $product['newsdesk_image_text_three']; } // ----------------------------------------------------------------------- // Sets the sticky of a product // ----------------------------------------------------------------------- function newsdesk_set_product_sticky($newsdesk_id, $sticky) { if ($sticky == '1') { return tep_db_query("update " . TABLE_NEWSDESK . " set newsdesk_sticky = '1', newsdesk_last_modified = now() where newsdesk_id = '" . $newsdesk_id . "'"); } elseif ($sticky == '0') { return tep_db_query("update " . TABLE_NEWSDESK . " set newsdesk_sticky = '0', newsdesk_last_modified = now() where newsdesk_id = '" . $newsdesk_id . "'"); } else { return -1; } } // ----------------------------------------------------------------------- // nl2br >> br2nl ... stripbreaks code found on php.net forum // ----------------------------------------------------------------------- function stripbr($str) { $str=eregi_replace('',"",$str); return $str; } // ----------------------------------------------------------------------- // ----------------------------------------------------------------------- // upload file function // ----------------------------------------------------------------------- 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; } // ----------------------------------------------------------------------- // ----------------------------------------------------------------------- // 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; } // ----------------------------------------------------------------------- // ----------------------------------------------------------------------- // 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); chmod($target, 0777); } // ----------------------------------------------------------------------- /* osCommerce, Open Source E-Commerce Solutions ---- http://www.oscommerce.com Copyright © 2002 osCommerce Released under the GNU General Public License IMPORTANT NOTE: This script is not part of the official osC distribution but an add-on contributed to the osC community. Please read the NOTE and INSTALL documents that are provided with this file for further information and installation notes. script name: NewsDesk version: 1.48.2 date: 22-06-2004 (dd/mm/yyyy) original author: Carsten aka moyashi web site: www..com modified code by: Wolfen aka 241 */ ?>

 

========

 

The above test displays above the "article management" page.

 

The article management page still displays fully below the above mention text, but dosent work

 

I have reloaded several times, but still get this same error.

 

Any suggestions/help would be appreciated

 

Regards,

Jack

Share this post


Link to post
Share on other sites

Hello Forum

 

long time no see

 

I have one question

 

How can I delete many news items just one click or is there any other easy way?

 

I have over 1000 news items and admin is working very slowly I want to delete over 400

 

thanks

Share this post


Link to post
Share on other sites
Hello Forum

 

long time no see

 

I have one question

 

How can I delete many news items just one click or is there any other easy way?

 

I have over 1000 news items and admin is working very slowly I want to delete over 400

 

thanks

 

Delete them direct from your database using phpMyAdmin

 

Andrew

Share this post


Link to post
Share on other sites

Thanks will do it, but do not know how :) just give a hint

 

also I have one question

 

I use mySQL4, can I update my newsdesk version to up to date?

 

and how can I change the color of newsdesk categories box, which is in the left please see website firs in left-column www.gbn.ge

 

I try from cSS byt it changes all color of the newsdesk and I need just newsdesk categories background to be changed

thanks

Edited by fxtrader777

Share this post


Link to post
Share on other sites

So I need to change bgcolor of news categories box, only this one

 

I know how to change all bgcolor for all boxes, but I need especially this newsdesk box,

 

I changed td bgcolor in newsdesk box but it did not help see the web http://gbn.ge/index.php

Edited by fxtrader777

Share this post


Link to post
Share on other sites

in catalog>includes>boxes>newsdesk.php

find

infoBoxHeading

 

and change to

newinfoBoxHeading

 

And find

infoBox

 

and change to

newinfoBox

save and upload

 

in catalog>stylesheet.css

 

add

TD.newinfoBoxHeading {

font-family: Arial, Times New Roman, Sans;

font-size: 14px;

font-weight: bold;

background: #6F4419;

color: #FFFFFF;

padding:4px;

}

 

TD.newinfoBox {

font-family: Arial, Times New Roman, Sans;

font-size: 11px;

}

 

change and add you new box style

 

enjoy

Share this post


Link to post
Share on other sites

Hey There!!

 

First: Great contribution and I am happy that I am having it...!!

 

Here comes my question:

 

1. Is it somehow possible to limit the displayed news items on the start site in such a way, that when for example more than 5 newsitems "new sites" would be generated for them??

 

--> The visitor would see five newsitems, when he scrolls down to the last one, there would be something like..... page 1, 2, 3,.., 55>

 

2. how is it possible to display the newsitems on the front page in two rows in a way, that news item 2 is next to the newsitem 1 and one row further down newsitem 3 and 4 would be presented.....?

 

I appreciate any help very much and I do hope you guys understand what I am trying to say :)

 

Andreas

Share this post


Link to post
Share on other sites

hi,

 

I want to save the images to images/news/(category id or date for example)/image.jpg or images/news/(new file name based on newsdesk_id plus sequential number).

 

Does anyone know how to do this?

 

I know how to do it for products, which is what this contribution is based on but it means changing categories.php which i think, which will obviously change the destination folder for products as well.

 

Thanks


Scott

Share this post


Link to post
Share on other sites

I was thinking of adding this contrib but wanted to see it live on someones site. Can anyone give me some links so i can look at it?

Share this post


Link to post
Share on other sites

I got this installed 1.49 and everything works but when i click on article management i get a blank page. Ive been searching for the fix but havent found it. Can anyone help?

Share this post


Link to post
Share on other sites
hi,

 

I want to save the images to images/news/(category id or date for example)/image.jpg or images/news/(new file name based on newsdesk_id plus sequential number).

 

Does anyone know how to do this?

 

I know how to do it for products, which is what this contribution is based on but it means changing categories.php which i think, which will obviously change the destination folder for products as well.

 

Thanks

 

Has anyone tried to do this???


Scott

Share this post


Link to post
Share on other sites

I know this was from a while back but i see no ones has posted a solution

 

in redirect.php add:

 

	case 'newsurl':
if (isset($HTTP_GET_VARS['goto']) && tep_not_null($HTTP_GET_VARS['goto'])) {
  $check_query = tep_db_query("select newsdesk_article_url from " . TABLE_NEWSDESK_DESCRIPTION . " where newsdesk_article_url = '" . tep_db_input($HTTP_GET_VARS['goto']) . "' limit 1");
  if (tep_db_num_rows($check_query)) {
tep_redirect('http://' . $HTTP_GET_VARS['goto']);
 }
}
  break;

 

just after:

 

	case 'url':
if (isset($HTTP_GET_VARS['goto']) && tep_not_null($HTTP_GET_VARS['goto'])) {
  $check_query = tep_db_query("select products_url from " . TABLE_PRODUCTS_DESCRIPTION . " where products_url = '" . tep_db_input($HTTP_GET_VARS['goto']) . "' limit 1");
  if (tep_db_num_rows($check_query)) {
tep_redirect('http://' . $HTTP_GET_VARS['goto']);
 }
}
  break;

 

and then in newsdesk_info.php find the line that will look something like:

 

<?php echo sprintf(TEXT_NEWSDESK_LINK . '<a href="%s" target="_blank"><u>' . $product_info_values['newsdesk_article_url_name'] . '</u></a>.', tep_href_link(FILENAME_REDIRECT, 'action=url&goto=' . urlencode($product_info_values['newsdesk_article_url']), 'NONSSL', true, false)); ?>

 

and change it to:

 

<?php echo sprintf(TEXT_NEWSDESK_LINK . '<a href="%s" target="_blank"><u>' . $product_info_values['newsdesk_article_url_name'] . '</u></a>.', tep_href_link(FILENAME_REDIRECT, 'action=newsurl&goto=' . urlencode($product_info_values['newsdesk_article_url']), 'NONSSL', true, false)); ?>

Share this post


Link to post
Share on other sites
Has anyone tried to do this???

 

even just being able to change the upload directory from images/ to images/gallery/ or even better images/gallery/category_id/ would be good. I'm really worried about images with the same file name being uploaded and overwriting each other. I'd really appreciate someones help on this.

 

Thanks

Edited by ProdigyMotorsport

Scott

Share this post


Link to post
Share on other sites

Ok I have most of the bugs worked out but im stuck here.

 

 

Fatal error: Call to undefined function mws_header_main() in /home/xxxxxxxx/public_html/newsdesk_info.php on line 123

 

any ideas. Im lost

Share this post


Link to post
Share on other sites
Ok I have most of the bugs worked out but im stuck here.

 

 

Fatal error: Call to undefined function mws_header_main() in /home/xxxxxxxx/public_html/newsdesk_info.php on line 123

 

any ideas. Im lost

 

 

I have the same problem. Please let me know, if you find a way to fix it...:-)

Share this post


Link to post
Share on other sites
I have the same problem. Please let me know, if you find a way to fix it...:-)

same here works in the admin section, but on the index and clicking in the right column I get those same errors

Share this post


Link to post
Share on other sites
same here works in the admin section, but on the index and clicking in the right column I get those same errors

 

 

Ok I got it figured out, the newest version was the problem for me so I used the earlier and did the updates manually

 

works great now!

Share this post


Link to post
Share on other sites

Does anyone have a working newsdesk.php file that actually works? The file that came down with V1.48 seems to be full of T_Class errors unless of course I am missing something obvious.

 

Any clues folks?

 

Once I have this working correctly in RC2.2 I'll endeavour to upload a package to the contrib that might make life a little easier.

 

Cheers!


Ausmaniac (AKA John)

"A man's' ambition must be small, to write his name on a toilet wall"

Share this post


Link to post
Share on other sites

Cancel my last post. I grabbed an earlier version of the same file V1.48.3 and that seemed to work just fine. More tweaking to be done!


Ausmaniac (AKA John)

"A man's' ambition must be small, to write his name on a toilet wall"

Share this post


Link to post
Share on other sites

Hello everybody,

does anyone use the contrib with 2 languages ? I cannot get my second language files saved except the title information.

When I create or edit an article and write the texts in English an German language and click on preview, the English texts are shown completely and from the German only the title is shown and as I checked the table - the fields for description and short are empty in the German record.

Any sugestions as this is a really nice but complex script that I'd love to install..

 

I've tried the latest 1.49 mod as well as the 1.48.3 - same result on both

 

Thankx,

Anton

Share this post


Link to post
Share on other sites

heay, i just installed latest (NewsDesk (FullPackage) bug fix) and everything in admin seems to work soo faar, but my frontpage got screwed up and ends with this error

 

Fatal error: Call to undefined function tep_hejri3() in /var/www/web252/web/shop/includes/modules/newsdesk_sticky.php on line 114

 

the word "hejri3" i can not find anywhere in my shop except from files:

modules/newsdes.php

modules/newsdesk_sticky.php

wich have this:

$insert_date = '- <i>' . tep_hejri3($newsdesk_var['newsdesk_date_added']) . '</i>';

 

Have i missed anything in the installation, or any files or something ?

grateful for any help i can get

Share this post


Link to post
Share on other sites
heay, i just installed latest (NewsDesk (FullPackage) bug fix) and everything in admin seems to work soo faar, but my frontpage got screwed up and ends with this error

 

Fatal error: Call to undefined function tep_hejri3() in /var/www/web252/web/shop/includes/modules/newsdesk_sticky.php on line 114

 

the word "hejri3" i can not find anywhere in my shop except from files:

modules/newsdes.php

modules/newsdesk_sticky.php

wich have this:

$insert_date = '- <i>' . tep_hejri3($newsdesk_var['newsdesk_date_added']) . '</i>';

 

Have i missed anything in the installation, or any files or something ?

grateful for any help i can get

 

 

I don't know if this is the "official" answer, but ripping it out altogether worked for me. In both instances where you see:

$insert_date = '- <i>' . tep_hejri3($newsdesk_var['newsdesk_date_added']) . '</i>';

 

change it to:

 

$insert_date = '- <i>' . $newsdesk_var['newsdesk_date_added'] . '</i>';

 

 

If that breaks something, please let me know, but it's workin' great for me!

 

Thanks for a great contrib!

AT

(long time reader, first time poster)

Share this post


Link to post
Share on other sites

Hi,

 

I am thinking of installing newsdesk contribution but could someone show me a live demo of it in english. So far the only one Ive found is in persian...cant read persian unfortunately.

 

Also for most newsdesk users which release is the most stable at this point?

 

Thank you

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×