Forums / All Other Contributions/Addons / News & Article Management [Support]

News & Article Management [Support]

Views: 135,504

Results 81 to 100 of 451
16 Jan 2007, 10:21 PM
#81
intellicents avatar

intellicents

New Zenner

Join Date:
Dec 2005
Location:
Bentonville, Arkansas
Posts:
24
Plugin Contributions:
0

News & Article Management [Support]

titangen:

Hi,

Is this contrib compatible with zen 1.3.7 ??

Thanks in advance

:lookaroun

I'm wondering the same thing myself.

http://www.concreterollers.com
http://www.jimmyharmon.com

Deleting code may not be the best way to resolve problems.

16 Jan 2007, 11:05 PM
#82
namsingh avatar

namsingh

Zen Follower

Join Date:
Sep 2006
Location:
Leeds, UK
Posts:
165
Plugin Contributions:
0

Re: News & Article Management [Support]

Yes it is, i'm running it under latest version no problems.

17 Jan 2007, 3:13 AM
#83
intellicents avatar

intellicents

New Zenner

Join Date:
Dec 2005
Location:
Bentonville, Arkansas
Posts:
24
Plugin Contributions:
0

Re: News & Article Management [Support]

For some reason, I can't get anything at all to show up. I don't see where it could be added. I see everything in the admin area. I even created a story as a test, but nothing shows up.

Layout Boxes, maybe? I'm using a custom template, so maybe this has something to do with it.

Any ideas?

http://www.concreterollers.com
http://www.jimmyharmon.com

Deleting code may not be the best way to resolve problems.

23 Jan 2007, 11:23 PM
#84
no1im avatar

no1im

New Zenner

Join Date:
Feb 2006
Location:
Washington State
Posts:
44
Plugin Contributions:
0

Re: News & Article Management [Support]

In firefox, "Recent Zen Cart News" heading is on top of the date/rss stamp. Anyone know a solution?

23 Jan 2007, 11:24 PM
#85
no1im avatar

no1im

New Zenner

Join Date:
Feb 2006
Location:
Washington State
Posts:
44
Plugin Contributions:
0

Re: News & Article Management [Support]

Ok, I'm running the latest version of ZC. I installed the mod and "Recent Zen Cart News" shows on the main page. The problem begins when I try to click to read the full article or the archive page. As soon as I do, I get a...

Not Found
The requested URL /Something-com/products/index.php was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

It gets better. Prior to installing the "news and Article Management" mod, I installed the "ultimate seo urls" mod. I thought I would try and remove my .htaccess and see what happens. it gave me the same "Not Found" page as mentioned above with the requested url as products/news/XYZ.html

Help? Thanks in avancio

3 Feb 2007, 4:45 AM
#86
steeeeve avatar

steeeeve

New Zenner

Join Date:
Jan 2007
Posts:
16
Plugin Contributions:
0

Re: News & Article Management [Support]

I have a question about where the Recent Zen Cart News heading color is changed. I've tried looking in a few of the css but no luck.

I changed the heading to "Latest SFF Store News" on my website if you don't know what I am talking about: http://store.sffclub.com/

17 Feb 2007, 11:44 PM
#87
jewelrylady avatar

jewelrylady

Totally Zenned

Join Date:
Sep 2005
Location:
ny
Posts:
434
Plugin Contributions:
0

Re: News & Article Management [Support]

i am having the same trouble. when I put on this mod. the news goes into the main page area and jumps out of the sidebox area! ::ohmy:

20 Feb 2007, 4:21 PM
#88
jewelrylady avatar

jewelrylady

Totally Zenned

Join Date:
Sep 2005
Location:
ny
Posts:
434
Plugin Contributions:
0

Re: News & Article Management [Support]

anyone please???????????????????????

15 Mar 2007, 7:24 AM
#89
buysz avatar

buysz

New Zenner

Join Date:
Sep 2006
Posts:
15
Plugin Contributions:
0

Re: News & Article Management [Support]

please, help me
can i using fckeditor in news & article Managements?
if i can, please guide help me
thanks

hkih

15 Mar 2007, 7:30 AM
#90
kimsonvu avatar

kimsonvu

Zen Follower

Join Date:
Aug 2006
Location:
HCMC
Posts:
263
Plugin Contributions:
0

Re: News & Article Management [Support]

BuysZ:

please, help me
can i using fckeditor in news & article Managements?
if i can, please guide help me
thanks

I think we can not.I use macromedia to edit and copy into news :D:wacko:

From Hochiminh City - Vietnam !
Call me when you travel here : +840983038939
KIMSON

18 Mar 2007, 1:34 AM
#92
sameer564 avatar

sameer564

New Zenner

Join Date:
Mar 2007
Posts:
1
Plugin Contributions:
0

Re: News & Article Management [Support]

Hi! I just installed the news & article management. Good stuff, thank you! I have two questions.

The bit that says Recent Zen Cart News is rather huge, and it gets overlapped by the date bar. Can you tell me what I need to edit in the stylesheet to fix that?

Also, how do I change 'Recent Zen Cart News' to something more appropriate for my site?

Thanks!

27 Mar 2007, 5:05 AM
#93
amopro avatar

amopro

New Zenner

Join Date:
Jan 2007
Posts:
35
Plugin Contributions:
0

Re: News & Article Management [Support]

I have no idea why?
my zc is 1.3.7

10 May 2007, 3:59 PM
#94
rikreations avatar

rikreations

New Zenner

Join Date:
Oct 2005
Location:
Vila Nova de Gaia, Portugal
Posts:
14
Plugin Contributions:
0

Re: News & Article Management [Support]

Hi everyone,

I was having the same problem with FCKeditor as many of you so i took a look at the code. This is for zen 1.3.7, i don't know if it's retro compatible.

You need to change the file /admin/news.php

Find (around line 205):

// HTML Editors support
if (HTML_EDITOR_PREFERENCE == 'FCKEDITOR') {
	require(DIR_WS_INCLUDES . 'fckeditor.php');
} elseif (HTML_EDITOR_PREFERENCE == 'HTMLAREA') {
	require(DIR_WS_INCLUDES . 'htmlarea.php');
}

and replace with:

// HTML Editors support
if ($_SESSION['html_editor_preference_status']== "FCKEDITOR") {
	require(DIR_WS_INCLUDES . 'fckeditor.php');
} elseif ($_SESSION['html_editor_preference_status']== "HTMLAREA") {
	require(DIR_WS_INCLUDES . 'htmlarea.php');
}

Find (around line 366):

if (HTML_EDITOR_PREFERENCE == 'FCKEDITOR') {
	echo '<td class="dataTableContent" align="left" colspan="4">';
	$oFCKeditor = new FCKeditor;
	$oFCKeditor->Value = (($news_article_shorttext[$lang['id']]) ? stripslashes($news_article_shorttext[$lang['id']]) : news_get_news_article_shorttext($nInfo->article_id, $lang['id']));
	$oFCKeditor->CreateFCKeditor('news_article_shorttext[' . $lang['id'] . ']', '100%', '130') ;  //instanceName, width, height (px or %)
	echo '</td>';
} elseif (HTML_EDITOR_PREFERENCE == 'HTMLAREA') {

and replace with:

if ($_SESSION['html_editor_preference_status']=='FCKEDITOR') {
	echo '<td class="dataTableContent" align="left" colspan="4">';
                $oFCKeditor = new FCKeditor('news_article_shorttext[' . $lang['id']  . ']') ;
	$oFCKeditor->Value = (($news_article_shorttext[$lang['id']]) ? stripslashes($news_article_shorttext[$lang['id']]) : news_get_news_article_shorttext($nInfo->article_id, $lang['id']));
	$oFCKeditor->Width  = '97%' ;
                $oFCKeditor->Height = '150' ;
	$output = $oFCKeditor->CreateHtml() ;
	echo '<br />' . $output . '</td>';
} elseif ($_SESSION['html_editor_preference_status']=='HTMLAREA') {

Find (around line 386)

if (HTML_EDITOR_PREFERENCE == 'FCKEDITOR') {
	echo '<td class="dataTableContent" align="left" colspan="4">';
	$oFCKeditor = new FCKeditor;
	$oFCKeditor->Value = (($news_article_text[$lang['id']]) ? stripslashes($news_article_text[$lang['id']]) : news_get_news_article_text($nInfo->article_id, $lang['id']));
	$oFCKeditor->CreateFCKeditor('news_article_text[' . $lang['id'] . ']', '100%', '250') ;  //instanceName, width, height (px or %)
	echo '</td>';
} elseif (HTML_EDITOR_PREFERENCE == 'HTMLAREA') {

and replace with:

if ($_SESSION['html_editor_preference_status']=='FCKEDITOR') {
	echo '<td class="dataTableContent" align="left" colspan="4">';
                $oFCKeditor = new FCKeditor('news_article_text[' . $lang['id']  . ']') ;
	$oFCKeditor->Value = (($news_article_text[$lang['id']]) ? stripslashes($news_article_text[$lang['id']]) : news_get_news_article_text($nInfo->article_id, $lang['id']));
	$oFCKeditor->Width  = '97%' ;
                $oFCKeditor->Height = '400' ;
	$output = $oFCKeditor->CreateHtml() ;
	echo '<br />' . $outtut . '</td>';
} elseif ($_SESSION['html_editor_preference_status']=='HTMLAREA') {

That should do it!
Best regards to the zen community!

10 May 2007, 4:55 PM
#95
blessisaacola avatar

blessisaacola

Totally Zenned

Join Date:
Feb 2004
Location:
Georgia, USA
Posts:
1,875
Plugin Contributions:
1

Re: News & Article Management [Support]

rikreations:

Hi everyone,

I was having the same problem with FCKeditor as many of you so i took a look at the code. This is for zen 1.3.7, i don't know if it's retro compatible.

You need to change the file /admin/news.php

Find (around line 205):

// HTML Editors support
if (HTML_EDITOR_PREFERENCE == 'FCKEDITOR') {
require(DIR_WS_INCLUDES . 'fckeditor.php');
} elseif (HTML_EDITOR_PREFERENCE == 'HTMLAREA') {
require(DIR_WS_INCLUDES . 'htmlarea.php');
}

> 
> and replace with:
> 
> ```
// HTML Editors support
if ($_SESSION['html_editor_preference_status']== "FCKEDITOR") {
	require(DIR_WS_INCLUDES . 'fckeditor.php');
} elseif ($_SESSION['html_editor_preference_status']== "HTMLAREA") {
	require(DIR_WS_INCLUDES . 'htmlarea.php');
}

Find (around line 366):

if (HTML_EDITOR_PREFERENCE == 'FCKEDITOR') {
echo '<td class="dataTableContent" align="left" colspan="4">';
$oFCKeditor = new FCKeditor;
$oFCKeditor->Value = (($news_article_shorttext[$lang['id']]) ? stripslashes($news_article_shorttext[$lang['id']]) : news_get_news_article_shorttext($nInfo->article_id, $lang['id']));
$oFCKeditor->CreateFCKeditor('news_article_shorttext[' . $lang['id'] . ']', '100%', '130') ; //instanceName, width, height (px or %)
echo '</td>';
} elseif (HTML_EDITOR_PREFERENCE == 'HTMLAREA') {

> 
> and replace with:
> 
> ```
if ($_SESSION['html_editor_preference_status']=='FCKEDITOR') {
	echo '<td class="dataTableContent" align="left" colspan="4">';
                $oFCKeditor = new FCKeditor('news_article_shorttext[' . $lang['id']  . ']') ;
	$oFCKeditor->Value = (($news_article_shorttext[$lang['id']]) ? stripslashes($news_article_shorttext[$lang['id']]) : news_get_news_article_shorttext($nInfo->article_id, $lang['id']));
	$oFCKeditor->Width  = '97%' ;
                $oFCKeditor->Height = '150' ;
	$output = $oFCKeditor->CreateHtml() ;
	echo '<br />' . $output . '</td>';
} elseif ($_SESSION['html_editor_preference_status']=='HTMLAREA') {

Find (around line 386)

if (HTML_EDITOR_PREFERENCE == 'FCKEDITOR') {
echo '<td class="dataTableContent" align="left" colspan="4">';
$oFCKeditor = new FCKeditor;
$oFCKeditor->Value = (($news_article_text[$lang['id']]) ? stripslashes($news_article_text[$lang['id']]) : news_get_news_article_text($nInfo->article_id, $lang['id']));
$oFCKeditor->CreateFCKeditor('news_article_text[' . $lang['id'] . ']', '100%', '250') ; //instanceName, width, height (px or %)
echo '</td>';
} elseif (HTML_EDITOR_PREFERENCE == 'HTMLAREA') {

> 
> and replace with:
> 
> ```
if ($_SESSION['html_editor_preference_status']=='FCKEDITOR') {
	echo '<td class="dataTableContent" align="left" colspan="4">';
                $oFCKeditor = new FCKeditor('news_article_text[' . $lang['id']  . ']') ;
	$oFCKeditor->Value = (($news_article_text[$lang['id']]) ? stripslashes($news_article_text[$lang['id']]) : news_get_news_article_text($nInfo->article_id, $lang['id']));
	$oFCKeditor->Width  = '97%' ;
                $oFCKeditor->Height = '400' ;
	$output = $oFCKeditor->CreateHtml() ;
	echo '<br />' . $outtut . '</td>';
} elseif ($_SESSION['html_editor_preference_status']=='HTMLAREA') {

That should do it!
Best regards to the zen community!

Thank you for posting the fix. Would you be so kind to please attached the changed news.php file to this thread?

10 May 2007, 5:49 PM
#96
rikreations avatar

rikreations

New Zenner

Join Date:
Oct 2005
Location:
Vila Nova de Gaia, Portugal
Posts:
14
Plugin Contributions:
0

Re: News & Article Management [Support]

I found another error that was making my news edit page take almost 5 minutes to show.

Everytime you want to insert or edit an article, the "Store product link" gets all the products from the database. I have 12 languages in my store (s) and almost 600 products.

The problem is that the 1st language was getting 600 produtcs, the 2nd language 1200, the 3rd 1800 products and so on... when the page finished loading i had 46800 product links in dropdown menus on a single page.

A big problem with an easy solution

Find:

$dropdown_products = $db->Execute("select p.products_id, pd.products_name from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where pd.products_id = p.products_id and pd.language_id = '" . (int)$lang['id'] . "' order by pd.products_name");
$dropdown_products_array[] = array(
	'id' => '', 
	'text' => TEXT_PLEASE_SELECT,
	);
while (!$dropdown_products->EOF) {
	$dropdown_products_array[] = array(
		'id' => $dropdown_products->fields['products_id'],
		'text' => $dropdown_products->fields['products_name'],
		);
	$dropdown_products->MoveNext();
	}

and move it before:

foreach ($languages as $i => $lang) {

This way it's outside the loop!

I'm attaching the file "news.php" in zip format.

Regards

10 May 2007, 6:42 PM
#97
chuckl avatar

chuckl

Totally Zenned

Join Date:
Nov 2006
Location:
Papworth, Cambridgeshire, UK
Posts:
717
Plugin Contributions:
0

Re: News & Article Management [Support]

If you wish to use FCKeditor for newsletters, there is a one line fix here:

http://www.zen-cart.com/forum/showthread.php?t=58779

10 May 2007, 11:16 PM
#98
meadwench avatar

meadwench

New Zenner

Join Date:
Feb 2005
Location:
Youngsville, NC
Posts:
29
Plugin Contributions:
0

Re: News & Article Management [Support]

I've had this installed for a while now, and working fine, until I upgraded to 1.3.7.

Now, it looks like this: http://play2winbilliards.com/index.php?main_page=news

My right column is pushed way to the bottom, and I can't for the life of me figure out where this is falling apart.........

Any ideas?

11 May 2007, 6:26 AM
#99
a_berezin avatar

a_berezin

Deceased

Join Date:
Aug 2004
Location:
Saint Petersburg, Russia
Posts:
1,782
Plugin Contributions:
5

Re: News & Article Management [Support]

rikreations:

You need to change the file /admin/news.php

Find (around line 205):

// HTML Editors support
if (HTML_EDITOR_PREFERENCE == 'FCKEDITOR') {
require(DIR_WS_INCLUDES . 'fckeditor.php');
} elseif (HTML_EDITOR_PREFERENCE == 'HTMLAREA') {
require(DIR_WS_INCLUDES . 'htmlarea.php');
}

> 
> and replace with:

if ($editor_handler != '') include ($editor_handler);

NOTE: We are sorry that Andrew is no longer with us.
We are grateful for all his contributions to the Zen Cart community.