Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

2 Newsdesk Questions


Recommended Posts

So, two questions about newsdesk 1.49

 

 

First, is it possible to have articles show up on a page sorted by category? Newsdesk will let me make categories, but I am not sure how I get articles fromt he categories to appear on different pages (id, News, sales, press....)

 

 

Second, any idea what this error is?

 

Parse error: parse error, unexpected '{' in /homepages/9/d180096301/htdocs/07/admin/newsdesk.php on line 16

 

 

 

thanks in advance.

Link to comment
Share on other sites

  • 2 weeks later...

i was also asking about categories in other topic but i received no answer. I would also need these categories .. and in addition, a code to display different categories on different places on site ...

Link to comment
Share on other sites

So, two questions about newsdesk 1.49

First, is it possible to have articles show up on a page sorted by category? Newsdesk will let me make categories, but I am not sure how I get articles fromt he categories to appear on different pages (id, News, sales, press....)

Second, any idea what this error is?

 

Parse error: parse error, unexpected '{' in /homepages/9/d180096301/htdocs/07/admin/newsdesk.php on line 16

thanks in advance.

 

I'm having the same problem.. anyone have an answer?

 

thanks

 

D

Link to comment
Share on other sites

Just to answer my own question....

 

 

the line 16 parse error seems to happen if your server is still running PHP4. The try/catch loop that starts on line 16 needs PHP5.

 

To make it work on PHP4, delete these lines from admin/newsdesk.php :

 

 try 
{
	if (file_exists($filename)) unlink($filename);
}
catch(Exception $e)
{
	$filename='';
}

 

Works fine after that.

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