Page 10 of 46 FirstFirst ... 8910111220 ... LastLast
Results 91 to 100 of 451
  1. #91
    Join Date
    Sep 2006
    Posts
    15
    Plugin Contributions
    0

    Default Re: News & Article Management

    but i see image in Catalog Area Screenshots, they used editor in new articles management success.
    i want made same this
    http://www.dream-scape.com/pub/zenca...s/Admin009.jpg
    hkih

  2. #92
    Join Date
    Mar 2007
    Posts
    1
    Plugin Contributions
    0

    Default Re: News & Article Management

    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!

  3. #93
    Join Date
    Jan 2007
    Posts
    35
    Plugin Contributions
    0

    Default problem with 1.3.7

    I have no idea why?
    my zc is 1.3.7
    Attached Images Attached Images  

  4. #94
    Join Date
    Oct 2005
    Location
    Vila Nova de Gaia, Portugal
    Posts
    14
    Plugin Contributions
    0

    application error FCKeditor problem solved

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

    Code:
    // 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:

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

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

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

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

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

  5. #95
    Join Date
    Feb 2004
    Location
    Georgia, USA
    Posts
    1,948
    Plugin Contributions
    0

    Default Re: FCKeditor problem solved

    Quote Originally Posted by rikreations View Post
    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):

    Code:
    // 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:

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

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

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

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

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

  6. #96
    Join Date
    Oct 2005
    Location
    Vila Nova de Gaia, Portugal
    Posts
    14
    Plugin Contributions
    0

    application error "Languages" and "Store Product Link" Loop

    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:

    Code:
    $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:

    Code:
    foreach ($languages as $i => $lang) {
    This way it's outside the loop!

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

    Regards
    Attached Files Attached Files

  7. #97
    Join Date
    Nov 2006
    Location
    Papworth, Cambridgeshire, UK
    Posts
    731
    Plugin Contributions
    3

    Default Re: "Languages" and "Store Product Link" Loop

    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

  8. #98
    Join Date
    Feb 2005
    Location
    Youngsville, NC
    Posts
    36
    Plugin Contributions
    0

    Default Re: News & Article Management

    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?

  9. #99
    Join Date
    Aug 2004
    Location
    Saint Petersburg, Russia
    Posts
    1,786
    Plugin Contributions
    13

    Default Re: FCKeditor problem solved

    Quote Originally Posted by rikreations View Post
    You need to change the file /admin/news.php

    Find (around line 205):

    Code:
    // 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:
    Code:
    if ($editor_handler != '') include ($editor_handler);

  10. #100
    Join Date
    Oct 2005
    Location
    Vila Nova de Gaia, Portugal
    Posts
    14
    Plugin Contributions
    0

    Default Re: News & Article Management

    Thanks a_berezin, that's what i was looking for!
    The method i used was for the "old days"... :)

 

 
Page 10 of 46 FirstFirst ... 8910111220 ... LastLast

Similar Threads

  1. News & Article Management
    By akumi in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 13 May 2008, 03:27 PM
  2. Regarding News & Article Management
    By akumi in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 12 May 2008, 05:27 PM
  3. News & Article Management- couple small problems
    By chufty bill in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 26 Oct 2006, 09:53 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR