HTML Logo by World Wide Web Consortium ( Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS. ocPortal 9 is superseded by Composr 10.

Head over to for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.

code to add forum events to my sidebar

Login / Search

 [ Join | More ]
 Add topic 
#79468 (In Topic #16178)

Fan in action

i have already searched this on your forum but cabt find a simple answer, I might have searched wrongly maybe.

I would like to show the recent activity that has been happening in my forum, and I would like to show that activity in my side bar on the welcome page i have looked at my side bar and it has these..

I would like the side bar to show latest forum posts and for it to be inbetween gallery and users.
would it be side_latest_posts or something else.

Back to the top

Non-joined user

Hi, I am just a Newbie here but I think what you might want is Forum News display (side_forum_news)
If you can add it as a block you can choose what forums you want it to show from by control/click multiple options, and I am sure you can select how many posts you want it to show.
Like I said I am only a Newbie, hope I am on the right track for you?
Back to the top

Community saint

downunder nailed it.

This is what I am using as my 'code' …


[block="5" forum="15" member_based="0" date_key="lasttime" title="Last 5 Comments"]side_forum_news[/block]
… and this is what it appears like:————————————>
Side Panel Comments Block

brief explanation:
  • block="5" ::: means the number of comments to display
  • forum="15" ::: the ID of the 'Comments' forum
  • title="Last 5 Comments" ::: is the title I've arbitrarily given my block

Hope that helps.


Last edit: by Fletch

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: