Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Article Manager v1.0


RobAnderson

Recommended Posts

Anyone with experience...

 

With Article Man, can I select which Articles are for public viewing and what are only viewable by those that register with the site?

Link to comment
Share on other sites

Hello!

 

I got a problem  :huh:

 

Everything works fine, except the articles are not showing. I can create them in admin and they get stored in the database, however they just aint showing up.

 

I get "There are currently no articles listed." and "No new articles have been added in the last 30 days."

 

What could possible be wrong? I have double checked the installment several times and everything seems to be corrects.

 

 

This same thing happened to me. Ends up I was entering in the article under the TOPIC DESCRIPTION...rather than entering the topic and description and THEN clicking on ADD ARTICLE. Figured I'd mention it in case you're doing the same thing I did.

 

Lauren

Link to comment
Share on other sites

This same thing happened to me.  Ends up I was entering in the article under the TOPIC DESCRIPTION...rather than entering the topic and description and THEN clicking on ADD ARTICLE.  Figured I'd mention it in case you're doing the same thing I did. 

 

Lauren

 

Yep that worked.. Or the case was that entering an article under a topic didnt really sort it under the topic, so I had to move it. Didnt think of that until you mentioned it.

 

thanks

Edited by prinsviktor
Link to comment
Share on other sites

Great contribution! I am not sure who is supporting this but figured I'd post the issues I had with installation in case those more experienced with PHP can check and/or add them to the contribs (I"m too afraid too!) :blush:

 

Anyhow...I installed v1.2b from 5/24. I added the contrib "bug fix" from Bedo on 4/16 (which is a bug fix for the Articles on Top Level contrib addition) and a breadcrumb fix I found in the forums (sorry forgot to jot down name).

 

So here are the issues I had; some tiny, some notso;

 

1) I don't know enough to know if it makes a difference but the database script was this: article_manager_sql.txt and I had never imported a file like that so I changed it to: article_manager_sql.sql (which is how the install instructions refers to it)

 

2) Install instructions call you add definitions to a file;

includes/languages/english/english.php it should be (obvious to most, I know)

includes/languages/english.php

 

3) breadcrumb fix is (again forgot person's name who wrote this);

in file; includes/appication_top.php

 

FIND CODE: (around line 524)

$breadcrumb->add(NAVBAR_TITLE_DEFAULT, tep_href_link(FILENAME_ARTICLES));

 

DIRECTLY ABOVE IT, ADD:

       $breadcrumb->add($topics['topics_name'], tep_href_link(FILENAME_ARTICLES, 'tPath=' . implode('_', array_slice($tPath_array, 0, ($i+1)))));

 

4) The manual step by step "Tell a Friend" instructions - first I was getting errors. I made the following changes and the errors were fixed.

In catalog/tell_a)friend.php;

 

Around line 16, find the code;

 

 $navigation->set_snapshot();

 

I replaced it with;

 $navigation->set_snapshot;

 

Then around line 116,

find code;

}elseif (tep_session_is_registered('customer_id')) {

 

I replaced it with;

elseif (tep_session_is_registered('customer_id')) {

 

All the errors diappeared. BUT it still isn't working right. I overwrote the file with a backup copy. Here's what this is doing;

 

1) email is sent with no subject line

2) personal note you fill out does not appear in email

3) landing page after submitting email says "success - email has been sent) at top but you land on a page that says "product not found"

4) the link in the email sent sends you to this "product not found" page.

 

Again, I am NOT a coder (but I can decipher and read errors well). Do not make the tell_a_friend changes unless you know what you are doing...just putting it out there in case there are obvious PHP errors that someone can pick up. I'm going to play around with this file when I have time and see if I can't get things working better.

 

But any more experienced willing to support this fab contrib are welcome at it!

Lauren

Link to comment
Share on other sites

Hi

 

I installed 1.2b with spanish. I wanted to be able to have my articles in spanish when that language option is selected. I just installed the Header Tags Controller and now all of my headers and product names are in spanish.

 

Is there a conflict or did I install the wrong package?

Thanks!

Clesha

Link to comment
Share on other sites

Sorry for double posting. I was suppose to post my question here but must have clicked the wrong button. Anyway....

 

I've installed Article Manager v1.2 and made modifications under the "allow articles in top level" contrib.

 

I've turned off the show new articles and all articles links at my Article Box. So basically what I am shooting for is a list of articles in the Article Box.

So I followed what was suggested which was to have my article name and topic name the same. This is great!

Unfortunately, the number of letters allowed is limited for "topic".

 

So instead of having the following showing in my Article Box:

 

1. Teaching children through stories

 

I have this showing instead:

 

1. Teaching children through sto

 

Question: How do I increase the number of letters allowed for "topic" so the entire sentence can be seen in my Article Box?

 

Please help.

Link to comment
Share on other sites

Question: How do I increase the number of letters allowed for "topic" so the entire sentence can be seen in my Article Box?

 

 

Can no one help me with the question above? You can go to my website www.valuebookshop.com and have a look at the article box on the right column to see what I am talking about.

 

Please help.

:'(

Link to comment
Share on other sites

Can no one help me with the question above? You can go to my website www.valuebookshop.com and have a look at the article box on the right column to see what I am talking about.

 

Please help.

:'(

 

Hi Lian,

 

You will have to increase the length for the topic name in you database.

 

The topic name is currently set to 32 characters, enter the code below into your database to increase it to 64 characters.

 

The easiest method would be to manually change the topics name varchar from 32 to 64 by accessing the table via phpMyAdmin.

 

If your not to familiar with making changes to the database yourself, then run this on your MySQL database (through phpMyAdmin etc.):

 

DROP TABLE IF EXISTS `topics_description`;

CREATE TABLE `topics_description` (

`topics_id` int(11) NOT NULL default '0',

`language_id` int(11) NOT NULL default '1',

`topics_name` varchar(64) NOT NULL default '',

`topics_heading_title` varchar(64) default NULL,

`topics_description` text,

PRIMARY KEY (`topics_id`,`language_id`),

KEY `idx_topics_name` (`topics_name`)

) TYPE=MyISAM;

 

Basically this will reset (empty) all the values in the topics description and update the topic name to 64 characters.

 

If you have already added information to these fields they will be lost, and you will have to re-enter them again.

 

Note: BACKUP - BACKUP - BACKUP before making any changes to your database.

 

Hope this helps...

 

Gazza.....

There is no justice ...... Just Us!

Link to comment
Share on other sites

Hi Lian,

 

I've just taken a look at your website....

 

Your right hand side column if off-screen, looks like the code on your index.php needs sorting.

 

....................

 

Gazza........

 

 

Thank you very very much Gazza. I knew I had to change something in PhpAdmin, just wasn't looking at the right place. Thanks for pointing me in the right direction.

 

Regarding the above problem, may I know what browser you are using?

:thumbsup:

Link to comment
Share on other sites

Thank you very very much Gazza. I knew I had to change something in PhpAdmin, just wasn't looking at the right place. Thanks for pointing me in the right direction.

 

Regarding the above problem, may I know what browser you are using?

:thumbsup:

 

Hi Lian,

 

I viewed your web site using Internet Explorer and have taken another look using Firefox and still the same problem with the right column off the page.

 

The rest of your site looks ok, the problem is only with the index.php

 

You will have to make some small adjustments to the table widths etc...

 

This may be a good place to start looking..

 

Try looking around the body text area on your index.php :

 

<tr> 
   <td width="400" align="center" valign="middle"><p><font color="#006600" size="5" face="Arial, Helvetica, sans-serif"><strong>Your 
       premier online <br>

       specialty bookshop for <br>
       parents and children <br>
       in Malaysia and Singapore.</strong></font></p>
     <p> </p></td>
   <td width="400" align="center" valign="middle"><img src="images/collage.jpg" width="253" height="200"></td>
 </tr>

 

Above code taken from your index.php

 

Good luck,

 

Gazza....

There is no justice ...... Just Us!

Link to comment
Share on other sites

Make sure the articles are under one of the categories you have set up. If that doesn't work sorry I have no more ideas on it

 

 

well but if I don't need to have any topics and would like to have all articles in articles page.

 

page - articles.php

 

all artiles

article 1

article 2

article 3

 

 

and not like here

 

topic 1

article 1

article 2

article 3

 

topic 2

article 1

article 2

article 3

 

help

 

thanks

Link to comment
Share on other sites

Hi,

I recently applied the register_globals patch to an OsCommerce site that had the New Attributes v.5 installed. Now when I go to the Attributes Manager page (new_attributes.php) and click the edit button, it just refreshes the page and goes nowhere. Does anyone know if the register_globals patches could have broken the attributes contribution, or is it something else? Thanks in advance!

Link to comment
Share on other sites

Hi Lian,

 

I viewed your web site using Internet Explorer and have taken another look using Firefox and still the same problem with the right column off the page.

 

Hi Gaza,

Changed the table to 100% width. Can you check to see if it's ok now. I can't tell if there is a difference as the comps at my place do not show the problem.

www.valuebookshop.com

 

Thanks.

 

Lian

Link to comment
Share on other sites

<meta name="description" content="NAVBAR_TITLE. Zenas Toys is one of the largest suppliers of rabbit vibrators, adult sex toys, clothes & lingerie, leather & anal toys available in the UK. My adult sex toys are priced to sell fast and are of the finest quality. Compare my adult sex toys with all other sites to see the difference.">

 

 

Can Anyone tell me how to fix NAVBAR_TITLE. in the metatag Desc. This is for the article_info.php pages. This works fine on article.php

 

Please see expamles

 

http://zenastoys.co.uk/g4-rabbit-a-132.html Not working

 

http://zenastoys.co.uk/articles.php

 

Mnay Thanks

 

Julian

Link to comment
Share on other sites

Hi Gaza,

Changed the table to 100% width. Can you check to see if it's ok now. I can't tell if there is a difference as the comps at my place do not show the problem.

www.valuebookshop.com

 

Thanks.

 

Lian

 

Hi Lian,

 

Just had a look at your site again using both IE and Firefox.

 

All displaying correctly now .... :thumbsup:

 

Gazza.....

There is no justice ...... Just Us!

Link to comment
Share on other sites

<meta name="description" content="NAVBAR_TITLE. Zenas Toys is one of the largest suppliers of rabbit vibrators, adult sex toys, clothes & lingerie, leather & anal toys available in the UK. My adult sex toys are priced to sell fast and are of the finest quality. Compare my adult sex toys with all other sites to see the difference.">

Can Anyone tell me how to fix NAVBAR_TITLE.  in the metatag Desc. This is for the article_info.php pages. This works fine on article.php

 

Please see expamles

 

http://zenastoys.co.uk/g4-rabbit-a-132.html Not working

 

http://zenastoys.co.uk/articles.php

 

Mnay Thanks

 

Julian

 

Hi Julian,

 

Your metatag description is displaying the following in the search engines:

 

NAVBAR_TITLE. Zenas Toys is one of the largest suppliers of rabbit vibrators, adult sex toys, clothes & lingerie, leather & anal toys available in the UK. My adult sex toys are priced to sell fast and are of the finest quality. Compare my adult sex toys with all other sites to see the difference.

 

You need to remove NAVBAR_TITLE. from the description to display it like this:

 

Zenas Toys is one of the largest suppliers of rabbit vibrators, adult sex toys, clothes & lingerie, leather & anal toys available in the UK. My adult sex toys are priced to sell fast and are of the finest quality. Compare my adult sex toys with all other sites to see the difference.

 

Other than this, everything seems to be working correctly on your site.

 

Let me know if I've missed something? :'(

 

Gazza....

There is no justice ...... Just Us!

Link to comment
Share on other sites

Hi,

 

This contribution works like charm. I'm having one problem though, not with this contribution, it's related.

 

The HTMLArea module that comes with this contribution, can it be used by other pages? like product desc, email, newsletter? There are a few other HTMLArea contributions, but they all add the htmlarea folder to the admin folder. it would be great if we just need to install one copy of htmlarea and link all the pages to it.

 

any ideas?

Link to comment
Share on other sites

Hi!

I just installed Article Manager v1.2b (25 May 04)

 

I get the following error when I enter the new articles page:

 

1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-10, 10' at line 1

 

select ad.articles_name from articles a left join authors au on (a.authors_id = au.authors_id), articles_description ad where a.articles_status = '1' and a.articles_id = ad.articles_id and ad.language_id = '4' order by a.articles_date_added DESC, ad.articles_name limit -10, 10

 

[TEP STOP]

 

Now I did find someone posting on this matter earlier but I did'nt find a reply. Any help would be greatly appreciated!

 

Best regards,

Dora

Link to comment
Share on other sites

Hi!

I just installed Article Manager v1.2b (25 May 04)

 

I get the following error when I enter the new articles page:

 

1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-10, 10' at line 1

 

select ad.articles_name from articles a left join authors au on (a.authors_id = au.authors_id), articles_description ad where a.articles_status = '1' and a.articles_id = ad.articles_id and ad.language_id = '4' order by a.articles_date_added DESC, ad.articles_name limit -10, 10

 

[TEP STOP]

 

Now I did find someone posting on this matter earlier but I did'nt find a reply.  Any help would be greatly appreciated!

 

Best regards,

Dora

 

OK seems this matter resolved itself as soon as I had added an article. Seems this only happens if there are no articles.

 

Thanks anyway.

Link to comment
Share on other sites

I have installed this contribution, it works great. The only problem I'm having is, any contribution I have installed that does caching I get a safe mode error similar to this one :-

 

Warning: fopen(): SAFE MODE Restriction in effect. The script whose uid is 571 is not allowed to access /home/virtual/site57/fst/var/www/html/sitemapproducts.xml owned by uid 513 in /home/virtual/site23/fst/var/www/html/googlesitemap/sitemap.class.php on line 291

 

Warning: fopen(/home/virtual/site57/fst/var/www/html/sitemapproducts.xml): failed to open stream: Success in /home/virtual/site23/fst/var/www/html/googlesitemap/sitemap.class.php on line 291

ERROR: Google Product Sitemap Generation FAILED!

 

 

Warning: fopen(): SAFE MODE Restriction in effect. The script whose uid is 571 is not allowed to access /home/virtual/site57/fst/var/www/html/sitemapcategories.xml owned by uid 513 in /home/virtual/site23/fst/var/www/html/googlesitemap/sitemap.class.php on line 291

 

Warning: fopen(/home/virtual/site57/fst/var/www/html/sitemapcategories.xml): failed to open stream: Success in /home/virtual/site23/fst/var/www/html/googlesitemap/sitemap.class.php on line 291

ERROR: Google Category Sitemap Generation FAILED!

 

 

Warning: glob(): SAFE MODE Restriction in effect. The script whose uid is 571 is not allowed to access /home/virtual/site57/fst/var/www/html/sitemapcategories.xml owned by uid 513 in /home/virtual/site23/fst/var/www/html/googlesitemap/sitemap.class.php on line 372

 

Warning: Invalid argument supplied for foreach() in /home/virtual/site23/fst/var/www/html/googlesitemap/sitemap.class.php on line 372

 

Warning: fopen(): SAFE MODE Restriction in effect. The script whose uid is 571 is not allowed to access /home/virtual/site57/fst/var/www/html/sitemapindex.xml owned by uid 513 in /home/virtual/site23/fst/var/www/html/googlesitemap/sitemap.class.php on line 291

 

Warning: fopen(/home/virtual/site57/fst/var/www/html/sitemapindex.xml): failed to open stream: Success in /home/virtual/site23/fst/var/www/html/googlesitemap/sitemap.class.php on line 291

ERROR: Google Sitemap Index Generation FAILED!

 

There are other errors for other contributions. I'm sure it is because of this contribution as once it is uninstalled everything works fine

 

I could be wrong as I'm not a programmer, is there any help I could get on this?

 

Jai

Link to comment
Share on other sites

  • 2 weeks later...
Great Contribution...but I'm still not there.

 

I'm using MS2 and STS (Simple Template System) with Header Tags already installed.

 

Admin works fine

Catalog Side bars infoboxes show fine

 

1. If I click an author in the infobox AUTHORS I get the correct page with text but the page is not wrapped by my theme plus the following error:

Fatal error: Call to undefined function: clean_html_comments() in C:\xampp\htdocs\catalog\includes\modules\article_listing.php on line 66

 

2. Clicking "New Articles" I get this error:

Fatal error: Call to undefined function: clean_html_comments() in C:\xampp\htdocs\catalog\includes\article_header_tags.php on line 134

 

3. Clicking "All Articles" I get the same as number 1 above but with this error:

Fatal error: Call to undefined function: clean_html_comments() in C:\xampp\htdocs\catalog\articles.php on line 350

 

4. Clicking my 1 topics "Practice Tips" I get the same type of page as problem 1 and 3 above but with this error:

Fatal error: Call to undefined function: clean_html_comments() in C:\xampp\htdocs\catalog\includes\modules\article_listing.php on line 66

I remember a clean_html_comments() error when I had STS and header tags both trying to clean_html_comments. Does that ring a bell?

 

I've uploaded my site to:

http://sirius.mgs.vic.edu.au/~rag/catalog

 

It's a slow upload to my test server so it may take some time until it can be seen Maybe someone could try it out to see in a few hours?

 

Thanks,

Rob

 

 

Hi everyone.

 

I have just installed version 1.2B and everything works fine in admin. But when i tries to read the article i get the same errors as rag here. But i haven't Header Tags and STS installed.

 

Does anyone now what is wrong here?

 

The contribution looks great :D

 

Thanks

Thomas

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