Jump to content
RobAnderson

Article Manager v1.0

Recommended Posts

Well, I just uninstalled my last articles contrib and used this one instead. WOW, what a differance. This one is much more professional looking, and the extra features are great!

 

One thing, I love the cross sell feature. I am just wondering about one thing. Has anyone figured out a way to show links to Articles in the product description? This way it would work both ways. If someones looking at a product, they could read the article, and vice versa.

 

I have seen it done before, but cant recall where, so maybe one of you can figure that out.

Share this post


Link to post
Share on other sites
Guest

You could always put a link to the article in the product description.

 

Just a thought.

Share this post


Link to post
Share on other sites
One thing, I love the cross sell feature. I am just wondering about one thing. Has anyone figured out a way to show links to Articles in the product description? This way it would work both ways. If someones looking at a product, they could read the article, and vice versa.

I've modified the product listing adding another column showing an info image pointing to the article, haven't had time to upload this yet. Here's a short summary of changes to make.

 

MAKE SURE TO BACKUP BEFOREHAND, THESE INSTRUCTIONS HAVE NOT BEEN TESTED !

 

PRODUCT_LIST_FEATURED needs to be added to your configuration table.

TABLE_HEADING_FEATURED needs to be declared in your language files

 

In includes/modules/product_listing.php

Find the BUY_NOW code and add the FEATURED case

      case 'PRODUCT_LIST_BUY_NOW':
       $lc_text = TABLE_HEADING_BUY_NOW;
       $lc_align = 'center';
       break;
     case 'PRODUCT_LIST_FEATURED':
       $lc_text = TABLE_HEADING_FEATURED;
       $lc_align = 'center';
       break;
   }

 

Find the BUY_NOW code and add the FEATURED case

          case 'PRODUCT_LIST_BUY_NOW':
           $lc_align = 'center';
           $lc_text = '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id']) . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a> ';
           break;
         
         //see if any articles are xreferencing to these products
         case 'PRODUCT_LIST_FEATURED':
           $lc_align = 'center';
           if ($listing['articles_id']) {
             $lc_text = '<a href="' . tep_href_link(FILENAME_ARTICLE_INFO, 'articles_id=' . $listing['articles_id']) . '">' . '<img src="images/table_background_specials.gif" width="30" height="30">' . '</a> ';
           } else {
             $lc_text = ' ';
           }
           break;

       }

 

 

In index.php make the following replacement for each occurance

Find

TABLE_SPECIALS . " s on p.products_id = s.products_id  where

 

Replace with

TABLE_SPECIALS . " s on p.products_id = s.products_id left join " . TABLE_ARTICLES_XSELL . " ax on p.products_id = ax.xsell_id where

 

HTH

Carine


KEEP CALM AND CARRY ON

I do not use the responsive bootstrap version since i coded my responsive version earlier, but i have bought every 28d of code package to support burts effort and keep this forum alive (albeit more like on life support).

So if you are still here ? What are you waiting for ?!

 

Find the most frequent unique errors to fix:

grep "PHP" php_error_log.txt | sed "s/^.* PHP/PHP/g" |grep "line" |sort | uniq -c | sort -r > counterrors.txt

Share this post


Link to post
Share on other sites
Guest
I wanted to create articles that didn't show up in the article manager (additional product info, links from elsewhere, hidden pages accessible only from affiliate schemes etc...). Now I can! Create them at the root level, and you can link to it, but it doesn't show up anywhere else.

 

Hey, Devink!

I did the same thing a couple of months ago with some PRODUCTS to make them hidden.

I never thought of doing it with "hidden articles" too. Great idea!

 

:D

 

 

 

 

And, bruyndoncx....

 

YOUR idea will be very cool too. :D

Have u tested it yet?

Share this post


Link to post
Share on other sites

Thanks for the tip about the products, MikeyJ. This will allow me to create special offers only accessible from my newsletter. I'm sure there are other uses too.

 

I realise that the search facility will find them, but I can live with that.


Many Thanks,

 

Steve

Share this post


Link to post
Share on other sites
I wanted to create articles that didn't show up in the article manager (additional product info, links from elsewhere, hidden pages accessible only from affiliate schemes etc...). Now I can! Create them at the root level, and you can link to it, but it doesn't show up anywhere else.

FYI, if you want to have a topic that doesn't show in the article list; put the parent_id to eg '-1' , the article listing traverses through the topics recursively starting with all items having parent_id set to 0.

I used this for about us info pages.

 

And, bruyndoncx....

 

YOUR idea will be very cool too.  :D

Have u tested it yet?

I have this on my live site. See www link


KEEP CALM AND CARRY ON

I do not use the responsive bootstrap version since i coded my responsive version earlier, but i have bought every 28d of code package to support burts effort and keep this forum alive (albeit more like on life support).

So if you are still here ? What are you waiting for ?!

 

Find the most frequent unique errors to fix:

grep "PHP" php_error_log.txt | sed "s/^.* PHP/PHP/g" |grep "line" |sort | uniq -c | sort -r > counterrors.txt

Share this post


Link to post
Share on other sites

HI all

 

has anybody been able to add the search articles funtion to this contribution?

 

Salvo

Share this post


Link to post
Share on other sites

I am needing to have a cookbook for my oscommerce site. I have a cgi cookbook that I currently use on the old site. I am looking for some sort of program that could let the user enter the recipes and then have it categorized and be able to sort through them.

 

I looked at the articles mod and that was about the closest thing i could find. But is there a way for the webuser to add new recipes or "topics". Without a fair amount of programing which I am a newbie at.

 

One thing that looks really cool about this script is that it can relate a product with the topic. Which would be good for this because if a recipe has ingredients that we sell we could put that with it.

 

any suggestions on how to make this work or any suggestions on what type of other application could be easily changed to be used as a cookbook let me know.

 

The other option I have is use my current perl script notebook and put it in an iframe, but that is last resort.

 

 

thanks,

 

scott

Edited by slave3

Share this post


Link to post
Share on other sites

Hi

 

It shouldn't be too difficult to do it and let users to add recipes..

 

to add them, use the idea of SUBMIT LINKS FILE from Links Manager. very good.

Share this post


Link to post
Share on other sites
HI all

 

has anybody been able to add the search articles funtion to this contribution?

 

Salvo

Just what I was looking for. Where is it and I'll take a look.

Share this post


Link to post
Share on other sites

Anyone want to sort out this search feature??

 

Ideally I'd like to have just the one search box on the site, so ... this is what I think would work ... a search box, with link to 'advance search', 2 radio buttons titled "search items for sale" and "search articles".

 

Anyone interested??

Share this post


Link to post
Share on other sites

BUG??

 

I've downloaded the latest osc, and the latest Article Manager, but it seems to break the html.

 

Why is this not happening to anyone elses install?

 

www.botteronet.net/ecom/catalog

 

Make sure you clear your cache to insure you see what I see.

 

Other than Article Manager, I've made no other mods...

Share this post


Link to post
Share on other sites

If you view the page source you can see this;

 

</table>
</td>
 </tr>
</            </td>
         </tr>
<!-- topics_eof //-->
<!-- right_navigation_eof //-->

 

My guess is that the unwanted </ has something to do with it. Check the template as well as the article info boxes.

Share this post


Link to post
Share on other sites
If you view the page source you can see this;

 

</table>
</td>
 </tr>
</            </td>
         </tr>
<!-- topics_eof //-->
<!-- right_navigation_eof //-->

 

My guess is that the unwanted </ has something to do with it. Check the template as well as the article info boxes.

Yes, exactly.

 

However, the templates are fine, AND if I rearrange the box order, or mix and match, i.e. take a few out, change the order, the problem persists.

 

Interestingly, reloading, either in IE or Mozillz (Firefox), problem goes away. And, it only crops up when I add the Article Manager.

 

I've re-downloaded and installed both fresh OSC and the Article Manager 6 or 7 times.

Edited by Jake_Bottero

Share this post


Link to post
Share on other sites

the spurious '</' code is being formed in the /includes/boxes/articles.php file, I think.

Share this post


Link to post
Share on other sites
the spurious '</' code is being formed in the /includes/boxes/articles.php file, I think.

Well, just for discussion, because I am wondering WHY *I* would have this problem, and no one else seems to, would it make any difference how I upload the file, i.e. ascii v.s. bin? I've been using FTP (WS_FTP), but I suppose I could upload the zipped file to my server, unpack it there, and use the SSH console to mover the files around...

Share this post


Link to post
Share on other sites
the spurious '</' code is being formed in the /includes/boxes/articles.php file, I think.

Well, just for discussion, because I am wondering WHY *I* would have this problem, and no one else seems to, would it make any difference how I upload the file, i.e. ascii v.s. bin? I've been using FTP (WS_FTP), but I suppose I could upload the zipped file to my server, unpack it there, and use the SSH console to mover the files around...

don't know, but the FTP and un-zip process wouldn't effect it.

Share this post


Link to post
Share on other sites

Hello! I faced a problem with installation in the latest CVS version. I was wondering if you could help please. In the /include/box/articles.php I get errors (which I'll be placing the code below). The Articles box in the main page wouldn't work, unless I commented out the lines that I have commented out in this code below ( I think it's a counter problem). Could you help me fix it?

// display topic name
   $topics_string .= $tree[$counter]['name'];

   if (isset($tPath_array) && in_array($counter, $tPath_array)) {
     $topics_string .= '</b>';
   }

//    if (tep_has_topic_subtopics($counter)) {
//     $topics_string .= ' ->';
//   }

   $topics_string .= '</a>';

//   if (SHOW_ARTICLE_COUNTS == 'true') {
//     $articles_in_topic = tep_count_articles_in_topic($counter);
//     if ($articles_in_topic > 0) {
//       $topics_string .= ' (' . $articles_in_topic . ')';
//     }
   }

   $topics_string .= '<br>';

   if ($tree[$counter]['next_id'] != false) {
     tep_show_topic($tree[$counter]['next_id']);
   }
// }

 

 

I'd appreciate it.

 

I have a second problem with a blank page coming up when wanting to write a review and when one is not logged in!!! should it be like that?

 

please let me know. thanks.

Share this post


Link to post
Share on other sites

Hello! I would greatly appreciate it if someone could comment on my previous comment written above. I don't think it's a big problem... but I don't know how to solve it.

 

thanks

Share this post


Link to post
Share on other sites

Hi thanks for suggestion, but I never had 'footer problem' as the link suggests that those individuals had trouble aligning their footer. Plus their comments dates back to jan, september 2003 or so. I used the latest cvs version dating in mid july 2004 without a footer problem!

 

could this be the lines that I commented out were meant to be for the earlier versions of oscommerce? and by commenting I've actually fixed them??

 

I mean what am I missing out by having commented such lines to make the program work?

 

would appreciate your response.

 

thanks

 

Ali

Share this post


Link to post
Share on other sites
Guest

Hi can someone here help?

 

I have STS installed and just installed article manager - it is functioning fine but I am getting this error on my pages:

 

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/xxxx/public_html/shop/includes/filenames.php:2) in /home/xxxx/public_html/shop/includes/functions/sessions.php on line 67

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/xxxx/public_html/shop/includes/filenames.php:2) in /home/xxxx/public_html/shop/includes/functions/sessions.php on line 67

 

Help .. anyone? :unsure:

 

Gina

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

×