Jump to content
Sign in to follow this  
dropmachine.com

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
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

Share this post


Link to post
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.

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
Sign in to follow this  

×