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.


[REQUEST] Random Member Block

Login / Search

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

Community saint

Thought this was the best spot for this even tho it could fit in Deployment I think.

What I would like to suggest for a coder is a 'Random Member Block'.
I guess it would random select a member from the membersgroup database area.

This Block would have the members avatar with membername underneath centered.
Then below that aligned left would be statistics (primary usergroup, post count, point count, location, …)

Eric DeMars . com
My electronic portfolio and personal site. Uses ocPortal!
Back to the top
 
Posted
Rating:
#72944
Avatar

Community saint

Just thought I would bump this up if there's a coder willing to give this a shot.

Updating an "RPG" site and the admin wants to showcase members on the front page in a block.

Eric DeMars . com
My electronic portfolio and personal site. Uses ocPortal!
Back to the top
 
Posted
Rating:
#72946
Avatar

main_content block


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

Community saint

 :thumbs: - Didn't realize that… gonna tweak it a bit. Thanks!

Eric DeMars . com
My electronic portfolio and personal site. Uses ocPortal!
Back to the top
 
Posted
Rating:
#75645
Avatar

Community saint

Trying to find where to tweak it still I guess…

Here's the main_content block with random member chosen:



What the site owner is looking for is that info with their avatar or just their avatar with a link to their profile:


Eric DeMars . com
My electronic portfolio and personal site. Uses ocPortal!
Back to the top
 
Posted
Rating:
#75663
Avatar

Community saint

You can use {$OCF_MEMBER_HTML,member_id} to display this:



Just replace member_id with the id of member who's info you want to display.

Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
Back to the top
 
Posted
Rating:
#75676
Avatar

Community saint

Can it be randomized?

Eric DeMars . com
My electronic portfolio and personal site. Uses ocPortal!
Back to the top
 
Posted
Rating:
#75678
Avatar

Community saint

So I found the documentation…. love SEARCH options.  :$

Anyway, for the time being, I took a look at:
ocPortal Tutorial: Tempcode programming - ocPortal

In there I saw:

{$AVATAR,2}
The member's avatar (optionally takes a member ID, else assumes current user)


So I plugged {$AVATAR,2} in where I had temp's {$OCF_MEMBER_HTML,member_id} suggestion and it's giving me the address to the member's avatar and not showing the image.

Any suggestions?

Eric DeMars . com
My electronic portfolio and personal site. Uses ocPortal!
Back to the top
 
Posted
Rating:
#75682
Avatar

Community saint

Just use a standard image tag like so:

Code

<img src="{$AVATAR,2}">

Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: