EzPortal - Portal Software for Forums

EzPortal Forums => Support => Topic started by: kmccann on October 23, 2010, 08:23:34 am

Title: Articles not showing in center block area
Post by: kmccann on October 23, 2010, 08:23:34 am
Hello,

I just installed SMF 1.11, then I installed the latest ezPortal, then SMF Articles. I created two articles, then I created a center block and chose the only option that seemed article-related (SMF Articles ezBlock), but the articles do not get displayed. Instead, I just see an index of the articles I created. Something like this:

------
another article
Comments 0
By: admin
Date Today at 09:08:32 AM

New Season
Comments 0
By: admin
Date Today at 08:24:47 AM
-------

I'd like the articles to be displayed, right under my top HTML center ezBlock, much like what I see on the ezPortal site frontpage. Am I missing something?

Thanks in advance for any help you can offer.

- Kevin
 
Title: Re: Articles not showing in center block area
Post by: kmccann on October 23, 2010, 08:56:04 am
Just to follow up, I realize I can create a center block for messages that belong to a board, but I want articles that are not associated with any particular board. Just articles (with categories), plain and simple, which is why I installed the SMF Articles mod. Maybe I'm mistaken in thinking that I can use ezPortal to display the actual SMF Article articles rather than just a list of them?

- Kevin
Title: Re: Articles not showing in center block area
Post by: EzPortal on October 23, 2010, 05:07:15 pm
Currently the articles block just shows the article title and not the full article yet which is something we may add in the future.
Title: Re: Articles not showing in center block area
Post by: kmccann on October 25, 2010, 04:22:24 am
Thanks for the reply. In the meantime maybe I'll try to set up a PHP block that will handle it.

I really like ezPortal so far, but there are a couple of suggestions, which I am about to add to your Feature Requests board.

Thanks,
Kevin
Title: Re: Articles not showing in center block area
Post by: Mr Baggins on November 14, 2010, 02:09:19 pm
I know this topic is a couple of weeks old, but after a bit of digging I found the solution as I wanted this functionality for my site also.

load up 'Sources/Subs-EzPortalMain2.php' into a text editor.

Find this block of code in the file - 'function EzBlockSMFArticlesEzBlock'

on line 1322 add these 2 lines

Code: [Select]
echo $row['description'].'<br />';
echo '<a href="' , $scripturl , '?action=articles;sa=view;article=', $row['ID_ARTICLE'], '">More...</a><br />';

The summary entered above the main article is then displayed in the EzBlock, with a More... link underneath to take you directly to the article.

For me this works on EzPortal 0.4.3 and Articles 1.3.2.

This is SMF2 RC4, not sure how similar it is on SMF 1.11.

Now ... back to that css file to sort the formatting out.
Title: Re: Articles not showing in center block area
Post by: ivalang on November 18, 2010, 07:12:52 pm
I havent even figure it out yet how to do a post... Some help?