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.


Users online - Main Block

Login / Search

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

Community saint

I noticed on this site a Main Block on the front page with Users online

My question is that I have looked all over and I don't see a main_users_online block, I tried using the side_users_online block but it shows up as a small side style block. My guess is that this is a modified version of the side block. Is this block available for us to use or does anyone have any idea how to modify the side block to look like the one on this site?

Thanks in advance,
 

Rick Henson

OCP 4.3.2 & 5.0.1
PHP 5.2.5
MySQL 5.0.51a
FireFox 3.6.8
Back to the top
 
Posted
Rating:
#38100
Avatar

Hi,

The side/main thing is just a naming convention that suggests how the blocks are to be used. You can fully control their appearance by editing the template named after the block. In this case, BLOCK_SIDE_USERS_ONLINE. Just change where it says 'panel' to say 'classic' (or 'med' or 'light' or 'curved').


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:
#38101
Avatar

Community saint

Thanks Chris,

Something else to learn and go play with, the more I use this system the more I am impressed. So much to learn, so little time ;-)

Have said before that I think this is the most amazing portal system ever, well if I have let me say it again. Thanks!!!
 

Rick Henson

OCP 4.3.2 & 5.0.1
PHP 5.2.5
MySQL 5.0.51a
FireFox 3.6.8
Back to the top
 
Posted
Rating:
#38512
Avatar

Community saint

Well I finally got some time to play with this and I have tried all of the options that you gave (classic, med, light, and curved) and they all still look like a side panel. I thought maybe it was something that was stuck in the cache so I went to the cleanup tools and selected the Template cache and the Block cache but still no good, any thoughts?

Rick Henson

OCP 4.3.2 & 5.0.1
PHP 5.2.5
MySQL 5.0.51a
FireFox 3.6.8
Back to the top
 
Posted
Rating:
#38513
Avatar

Hi,

It's best to use the inbuilt template editor to make the edit, as it'll ensure you edit the right file, and will empty caches for you.

One possible explanation here is if you edited the themes/default/templates/ version of this file but had previously overridden with a customised version (even if with no actual changes), which could still be active overidding as a file in themes/<theme>/templates_custom/.


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:
#38516
Avatar

Community saint

Chris,

Thanks for the suggestions, it is getting closer but not quite there. I have a feeling that there are some other peramiters that I can't find/don't know. Here is what mine looks like:

189 views (12 Kb)

and this is the content of my template:

Code

{+START,BOX,{!USERS_ONLINE},23.3em,light,tray_closed}
 <div class="block_normal_size">
 {CONTENT} {!NUM_GUESTS,{GUESTS*}}

 {NEWEST}
 </div>
{+END}
 I guess my question is, is there any chance you could provide the template code that your site is using so that I can see some of the parameters that you are using?

Thanks in advance,

Rick Henson

OCP 4.3.2 & 5.0.1
PHP 5.2.5
MySQL 5.0.51a
FireFox 3.6.8
Back to the top
 
Posted
Rating:
#38517
Avatar

Ah, of course, sorry I missed one thing - remove that 23.3em (and tray_closed is no longer needed either)…

Code

{+START,BOX,{!USERS_ONLINE},,light}
 <div class="block_normal_size">
 {CONTENT} {!NUM_GUESTS,{GUESTS*}}

 {NEWEST}
 </div>
{+END}


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:
#38518
Avatar

Community saint

Thanks Chris, that did the trick, you are about the most awesome guy I know. :rockon:

Rick Henson

OCP 4.3.2 & 5.0.1
PHP 5.2.5
MySQL 5.0.51a
FireFox 3.6.8
Back to the top
 
Posted
Rating:
#42680
Avatar

Community saint

Tried to do this in 4.0-RC4 but it does not work.

What I have at the moment is:

Code

{+START,BOX,{!USERS_ONLINE},{$PANEL_WIDTH},classic,tray_closed} <div class="block_normal_size"> {CONTENT} {!NUM_GUESTS,{GUESTS*}} {NEWEST} {+START,IF_NON_EMPTY,{BIRTHDAYS}}<div>{BIRTHDAYS}</div>{+END} </div> {+END}

Which is close but not quit there. Any thoughts…

Rick Henson

OCP 4.3.2 & 5.0.1
PHP 5.2.5
MySQL 5.0.51a
FireFox 3.6.8
Back to the top
 
Posted
Rating:
#42689
Avatar

Try stripping out {$PANEL_WIDTH} from there (just blank it out, leaving everything around it the same).


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:
#42696
Avatar

Community saint

That did it, thanks as always!!!

Rick Henson

OCP 4.3.2 & 5.0.1
PHP 5.2.5
MySQL 5.0.51a
FireFox 3.6.8
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: