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

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

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


Adding forum statistics to the bottom of the main forum page

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#87905 (In Topic #17873)
Avatar

Well-settled

Hi Guys

I have been trying to find out how to add the forum statistics to the bottom of the main forum page, a little like what is on this site.

Could someone point me in the right direction on how to achieve this please

Thanks Mark
Back to the top
 
Posted
Rating:
#87955
Avatar

Community saint

I think that is on by default when you install. But it is only on in the forum index.
Back to the top
 
Posted
Rating:
#87956
Avatar

Well-settled

When I installed it was not on anywhere in the forum not even the index.
Would you know where it is controlled to add this at all Duck
Back to the top
 
Posted
Rating:
#87958
Avatar

Community saint

The template used for that is OCF_STATS.tpl

Steve
Back to the top
 
Posted
Rating:
#87969
Avatar

Well-settled

Forgive me for coming across as such a dumb ass, but how would I then go about adding that stats.tpl to the bottom of the forums, can I just add OCF_STATS.tpl in the editor somewhere.

Sorry I am still very much learning of how to do the simple things on this

Thanks Mark

**Edit**

Am I correct in saying I add some code to the OCF_FORUM.tpl, if so, what?, do I just link it to the OCF_STATS.tpl some how ?, or am I barking up totally the wrong tree :lol:


Last edit: by kenno
Back to the top
 
Posted
Item has a rating of 5 (Liked by kenno)  
Rating:
#87971
Avatar

If the forum zone is not set to wide, these don't show as the expectation is you'll put some blocks in the panel instead.

In v9 these forum bars are going to be blocks you can use normally, but in v8 this isn't the case. There's a hidden option you can use in v8 to force it. Type this into OcCLE:

Code

:set_value('force_forum_bar','1');


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#87972
Avatar

Well-settled

Thanks Chris

Yes that was the case, I did not have the forum set as wide as I wanted a left panel aswell.
I am still not 100% certain of how exactly I am going to show this, so if I wanted to reverse that option, would I be correct in saying I would just add a 0 where there is now a 1 ?

Thanks Mark
Back to the top
 
Posted
Rating:
#87974
Avatar

Community saint

Yes that is correct. 0
Back to the top
 
Posted
Rating:
#88521
Avatar

Community saint

OcLE is a tool in the admin zone, it is basically a command line that allows you to enter various commands that make changes to your site or whathaveyou.

The command that Chris gave you, you simply copy & paste that into OcLE and it would make the different things in the forum be like blocks, so that you could conceivably put a stats block in your forum zone page, despite it not being set to wide.

The "1" indicates that you want that feature on. The "0" indicates that you want it off, in which case you wouldn't even bother pasting this code in OcLE.

So, in your admin zone, just go to Tools > OcLE. In that tool, paste the code Chris gave you.

If I am reading it right, you would then be able to go to edit your forum zone and add in the stats block at the bottom.

Legends of Nor'Ova: A site powered by ocPortal; home of the Legends of Nor'Ova tabletop RPG wiki and community.

Like ocPortal? Want to thank Chris and gang somehow? Then help out in the chat room! It really needs your help! Just open it in a tab everytime you open your web browser, and when you hear a "ding", check it out!

"Those who want help should first be willing to give help."
Back to the top
 
Posted
Rating:
#88527
M

Non-joined user

mythus said

If I am reading it right, you would then be able to go to edit your forum zone and add in the stats block at the bottom.

No need to add it in. The OCCLE code will force it to show automagically.  :thumbs:
Back to the top
 
Posted
Rating:
#88531
Avatar

Community saint

Hmm… I must test this now.

….

That… is…. brilliant!

Legends of Nor'Ova: A site powered by ocPortal; home of the Legends of Nor'Ova tabletop RPG wiki and community.

Like ocPortal? Want to thank Chris and gang somehow? Then help out in the chat room! It really needs your help! Just open it in a tab everytime you open your web browser, and when you hear a "ding", check it out!

"Those who want help should first be willing to give help."
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: