Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Article Manager v1.0


RobAnderson

Recommended Posts

Jack, you are precious.  Thanking in advance for both the soon to update new versions of Header Tags SEO & this Article Manager.

 

Problem 4:

X-sell Articles > Add/Remove will show selected products, but when try to uncheck some products or check more products > save, > Click here to sort the products associated with this article > Showed zero products, thus have to redo adding check boxes all over again.  Cannot update but can add or remove only.

 

Good to Have:

Shop front > All Blog Articles/All Articles.  If I have 20, the Article module box will show all 20 & if increased to 30, will show 30.  Resulted in longer & longer Article box as time passes.  Good to control this in Article Manager > Configuration > Maximum Display of All Blogs Menu + Maximum Display of All Articles Menu.

Thks & Regards,

Zaccoco

Link to comment
Share on other sites

  • 2 months later...

There isn't a BS version though it will work with code changes. I have been working on the update but it is very slow-going due to lack of time. 

Edited by burt
Remove site selling osCommerce addons and services

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

  • 3 weeks later...

Hello everybody!

Article Manager - it's a great module that I use for more than 12 years in his old shop. This module does a great job of promoting your products, if you have exclusive content in your articles.

I almost did not use various SEO modules. My great site indexed in the different search engines through articles.
 
Who do I upgrade my very old shop, and try to upgrade it to 2.3.4 BS. I'm not a programmer.
 
I ran into a lot of trouble for this module.
If this module is necessary and important for others, maybe we can repair it jointly?

Support forum for osCommerce in russian language - from Ashkelon. Support since 2002.

Best regards,

Fredi

Link to comment
Share on other sites

There isn't a BS version though it will work with code changes. I have been working on the update but it is very slow-going due to lack of time. You can see a blog example on this page.

 

Blog looks good. I think it is possible to modify the article in blogs. It is also an option. + Feedback.

Jack, you have a module for testing?

Support forum for osCommerce in russian language - from Ashkelon. Support since 2002.

Best regards,

Fredi

Link to comment
Share on other sites

I will try to get an updated version uploaded this weekend. It won't be complete with instructions but I don't know when I will be able to do more than that so getting it uploaded will help a little. Please check back here for the announcement that it has been uploaded.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Thank you Jack!

I'll wait for the download and try it on your store.

Support forum for osCommerce in russian language - from Ashkelon. Support since 2002.

Best regards,

Fredi

Link to comment
Share on other sites

A new version has been uploaded with the following changes.

  • Added missing tell-a-friend definitions to admin/includes/languages/english.php
  • Added social bookmark code to article pages. Requires Header Tags SEO v 3.2.7 or greater. 3.3.1 should be used since it has OG tags.
  • Changed quite a bit of the code in the tell-a-friend file so it now works correctly.
  • Changed mysql code in the infoboxes to work correctly.
  • Changed mysql call to mysqli in cross sell for 2.3.4 shops.
  • Changed code to use css instead of tables (bs only).
  • Corrected many html mistakes.
  • Fixed IE coding issues due to css code
  • Fixed problem in admin where the article image would be deleted on updates.
  • Moved the css classes to the stylesheet file.
  • Removed the application_top files for MS2 shops.
  • Replaced mysql file with php file for better control in future changes
  • Rewrote the database update file so it is now safe to use at any time and will leave existing settings as they were.

Please note:

1 - The majority of changes have to do with getting this to work with a BS shop. Some, but not all, changes that were made were applied to the other included versions.

 

2 - Very little testing was done with this due to time constraints though it did work fine with the testing I was able to do.

 

3 - The instructions, especially for the BS version, are not complete. But all changes are marked so they can be easily seen by a compare program.

 

4 - As with all previous versions of this addon that I have uploaded, Header Tags SEO is required.

 

5 - One of the changes to this addon was to automatically create pseudo pages in Header Tags SEO. But the code in Header Tags SEO will sometimes corrupt the includes/header_tags.php file when adding the first article page. That problem has been fixed in the latest Header Tags SEO but has not been released and is not part of this package. So you should create a backup of that file before testing anything because if it becomes corrupted, your shop will not function.

 

6 - Given that I didn't have time to do a lot of testing, I suggest this be installed into a test shop first or, in the least, be sure the live shop is backed up.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Thank You Jack.
I set up a script on your site and it will be tested. I'll let you know the results.

Support forum for osCommerce in russian language - from Ashkelon. Support since 2002.

Best regards,

Fredi

Link to comment
Share on other sites

  • 2 weeks later...

Thanks Jack!

I am testing it on a BS Gold (PHP 5.6.16), and in some pages I receive error messages like this:

 

Warning: Illegal string offset 'type' in C:\wamp64\www\[Catalog]\includes\functions\html_output.php on line 404

 

They all corresponds to section: // Output a jQuery UI Button. It seems as it was a problem with the PHP version. 

 

Following what Mr.Phil (Posted 31 December 2015 - 16:43) indicated in http://www.oscommerce.com/forums/topic/408805-warning-illegal-string-offset/ regarding  tep_draw_button, it seems to work properly

 

Hope it could be useful.

Shopowner, not coder, experienced copypaster  :D

Link to comment
Share on other sites

Thanks for letting me know. But the Illegal string offset warnings are fairly common in the newer php versions since they have strict error reporting set. It means, the majority of the time, that something is used before it is declared. While that is the correct way to do it, it involves a lot of extra work to do that, especially on an old addon like this one. So it is unlikely they will be fixed. You can lower the error reporting level use the following right after that statement in application_top to prevent them from showing. You should do this anyway for a live shop, whether this addon is installed or not.

ini_set('display_errors','0'); 

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Thanks Jack !

I'm just testing this module. I have not had any problems.

I tried a little to modify the file - includes/modules/article_listing.php which would add to the list of articles images. It has turned out, but I think that's something I do not quite correct. It should look like a cute...
 
<?php
/*
  $Id: article_listing.php, v1.0 2003/12/04 12:00:00 ra Exp $

  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com[attachment=4682:2016-07-20_213809.jpg]

  Copyright (c) 2003 osCommerce
  Released under the GNU General Public License
*/

$listing_split = new splitPageResults($listing_sql, MAX_ARTICLES_PER_PAGE);
  if ($listing_split->number_of_rows > 0) {
    $articles_listing_query = tep_db_query($listing_split->sql_query);
?>
        <div class="productHolder h4"><?php echo TEXT_ARTICLES; ?></div>
<?php
    while ($articles_listing = tep_db_fetch_array($articles_listing_query)) {
?>

           <div valign="productHolder" class="main" width="75%" style="padding-bottom:10px">
<?php echo '<a href="' . tep_href_link(FILENAME_ARTICLE_INFO, 'articles_id=' . $articles_listing['articles_id']); ?>"><div class="IMG.iL"> <img src="/images/FFR-<?php echo $articles_listing['articles_id']; ?>.jpg" alt="<?php echo $articles_listing['articles_name']; ?>"> </a></div><br />
 <?php   echo '<a class="main" href="' . tep_href_link(FILENAME_ARTICLE_INFO, 'articles_id=' . $articles_listing['articles_id']) . '"><b>' . $articles_listing['articles_name'] . '</b></a> ';
if (DISPLAY_AUTHOR_ARTICLE_LISTING == 'true' && tep_not_null($articles_listing['authors_name'])) {
   echo TEXT_BY . ' ' . '<a href="' . tep_href_link(FILENAME_ARTICLES, 'authors_id=' . $articles_listing['authors_id']) . '"> ' . $articles_listing['authors_name'] . '</a>';
  }
?>
            </div>
<?php
      if (DISPLAY_TOPIC_ARTICLE_LISTING == 'true' && tep_not_null($articles_listing['topics_name'])) {
?>
            <div valign="top" class="main" width="25%" nowrap><?php echo TEXT_TOPIC . ' <a href="' . tep_href_link(FILENAME_ARTICLES, 'tPath=' . $articles_listing['topics_id']) . '">' . $articles_listing['topics_name'] . '</a>'; ?></div>
<?php
      }
?>
       
<?php
      if (DISPLAY_ABSTRACT_ARTICLE_LISTING == 'true') {
?>


            <div class="main" style="padding-left:15px"><?php echo clean_html_comments(substr($articles_listing['articles_head_desc_tag'],0, MAX_ARTICLE_ABSTRACT_LENGTH)) . ((strlen($articles_listing['articles_head_desc_tag']) >= MAX_ARTICLE_ABSTRACT_LENGTH) ? '...' : ''); ?></div>



<?php
      }
      if (DISPLAY_DATE_ADDED_ARTICLE_LISTING == 'true') {
?>
            <div class="smallText" style="padding-left:15px"><?php echo TEXT_DATE_ADDED . ' ' . tep_date_long($articles_listing['articles_date_added']); ?></div><br /><br /><br />
<?php
      }
    } // End of listing loop
  } else {
?>
            <div class="main">
            <?php 
             if ($listing_no_article<>'') {
                  echo $listing_no_article;
             } elseif ($topic_depth == 'articles') {
                  echo TEXT_NO_ARTICLES;
             } elseif (isset($_GET['authors_id'])) {
                  echo TEXT_NO_ARTICLES2;
             } else {
                  echo TEXT_NO_ARTICLES_BLOG;
             }
           ?>
           </div>
<?php
  }
?>
<?php
  if (($listing_split->number_of_rows > 0) && ((ARTICLE_PREV_NEXT_BAR_LOCATION == 'bottom') || (ARTICLE_PREV_NEXT_BAR_LOCATION == 'both'))) {
?>
   <div class="row">
     <div class="col-sm-6 pagenumber hidden-xs">
       <?php echo $listing_split->display_count(TEXT_DISPLAY_NUMBER_OF_ARTICLES); ?>
     </div>
     <div class="col-sm-6">
       <div class="pull-right pagenav"><ul class="pagination"><?php echo $listing_split->display_links(MAX_DISPLAY_PAGE_LINKS, tep_get_all_get_params(array('page', 'info', 'x', 'y'))); ?></ul></div>
       <span class="pull-right"><?php echo TEXT_RESULT_PAGE; ?></span>
     </div>
   </div>            
<?php
  }

 

post-148-0-86047000-1469040525_thumb.jpg

Support forum for osCommerce in russian language - from Ashkelon. Support since 2002.

Best regards,

Fredi

Link to comment
Share on other sites

I'm sorry but I don't have the time to look at personalized changes. But I'm not sure what you are trying to do since the code already has the ability to show images.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

This I had done on the old site and I moved to a new. The image corresponds to the number of the article. The image file for the title of the article is formed from the prefix (my prefix FFR) and ID of the article.

To me it is convenient to work with. Additional images for articles as needed.

I'm thinking how to make a unified design for the content of articles. It is important for my site, because there are more than 100 articles. Now it needs to be done in the format of BS. Format Articles should be compatible with Responsive budstrap flexible format that would be available on mobile devices, and that would be the format of all articles on the site has been unified.

Support forum for osCommerce in russian language - from Ashkelon. Support since 2002.

Best regards,

Fredi

Link to comment
Share on other sites

  • 1 month later...

Hi everybody, I am using Oscommerce 2.3. in combination with SEO URLS 5 (no Header Tags) and I am really wondering which version of Article Manager would work as I have tried several already. Would really appreciate any suggestions. Thanks in advance  and have a great day ! Zoltan.

Link to comment
Share on other sites

@@Zoltan Versions 1.57 and above require Header Tags SEO to be installed. Versions prior to that do not have that requirement but are only for pre-2.3 shops. You can probably get the pre-1.57 versions to work but they are full of problems so I wouldn't recommend it. As I recall, the requirements for Header Tags SEO are fairly small and I think I posted in this thread, somewhere, how to remove those. It will mean some parts won't work, like the title and tags for the article pages.

 

But to be clear, when you say "SEO URLS 5 (no Header Tags)", that is not clear. SEO URLS 5 is a url rewriter and has nothing to do with this addon. And I don't know what Header Tags refers to. But if you do not have an addon installed that handles the titles and tags of your shop, that should be your priority since it is very important for SEO.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Hi Jack, thank you very much for your suggestions. While we have changed the main parts of our business to Magento, for the shop we are speaking about, www.holistikum.com, we completely reinstalled osc 2.3. about one year ago. On the version we are using, for SEO, there is "Ultimate SEO URLs 5" and"Kiss Meta Tags" added. We would like very much to use Article Manager (we have installed the latest version, we already tried to implement wordpress and blogger with no swift success) and would like to manually remove the parts. Can you tell me, where to find the solution for this ? Thanks again. Robin

Link to comment
Share on other sites

Unfortunately I don't have any idea where it would in the thread, if it is even there, so you would have to look through it. To help with where to start, it would have been after I uploaded the first 1.57 version so you get that date from the addon section and then start looking after that date in this thread. Good luck.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Thanks Jack!

 

I am testing it on a BS Gold (PHP 5.6.16), and in some pages I receive error messages like this:

 

Warning: Illegal string offset 'type' in C:\wamp64\www\[Catalog]\includes\functions\html_output.php on line 404

 

They all corresponds to section: // Output a jQuery UI Button. It seems as it was a problem with the PHP version. 

 

Following what Mr.Phil (Posted 31 December 2015 - 16:43) indicated in http://www.oscommerce.com/forums/topic/408805-warning-illegal-string-offset/ regarding  tep_draw_button, it seems to work properly

 

Hope it could be useful.

Hello TITO4,

I spent a lot of time searching for this error.
I found where the error occurred.

 

File \includes\modules\boxes\bm_articles.php

 

        /********************* ADD A SEARCH FUNCTION ********************/
        if (ARTICLE_BOX_DISPLAY_SEARCH_ARTICLES_SECTION == 'true') {
            $articlesArray['search']['sort_order'] = ARTICLE_BOX_DISPLAY_SEARCH_ARTICLES_SECTION_SORT_ORDER;
             $articlesArray['search']['string'] = '<div class="articleSearch">' . TEXT_ARTICLE_SEARCH  .
                                                  tep_draw_form('article_search', tep_href_link('article_manager_search_result.php', '', 'NONSSL', false), 'get') .
                                                  '<input type="text" name="article_keywords" value="' . TEXT_ARTICLE_SEARCH_STRING . '" onFocus="form.article_keywords.value=\'\';" style="width: 90%" maxlength="35" ><br />'.
                                                  tep_hide_session_id() . tep_draw_button(IMAGE_BUTTON_SEARCH, 'fa fa-search', '', '','submit') .
                                                  '</form></div>';
        }

        /********************* ADD BLOG TOPICS ********************/

How to fix the error, I do not know.
On your site I blocked this code and disabled the search.
Articles module started working and there are no more mistakes!

Support forum for osCommerce in russian language - from Ashkelon. Support since 2002.

Best regards,

Fredi

Link to comment
Share on other sites

Unfortunately I don't have any idea where it would in the thread, if it is even there, so you would have to look through it. To help with where to start, it would have been after I uploaded the first 1.57 version so you get that date from the addon section and then start looking after that date in this thread. Good luck.

 

Thank you very much again, Jack, I found solutions to use Article Manager. Zoltan.

Link to comment
Share on other sites

Hi Everybody, I would like to adjust the  design, especially font sizes, within the output of article_info.php, articles.php, article_manager_search_result.php etc. A direct change in the html of those scripts does not lead to success. I would appreciate ideas hoe to manage. Thanks in advance. Zoltan.

Link to comment
Share on other sites

The text itself is controlled by the same classes as the other pages in the shop so the appearance will be the same. If you want the text on the article pages to be different than what the rest of your pages look like, then you will need to manually edit the code. This is not recommended for two reasons: 1 - the next version may replace your changes and 2 - it gives a bad impression to the customer.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

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