[REQUEST] Random Member Block
|
Posted
#53983
(In Topic #11741)
|
|
|---|---|
|
Community saint |
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, …) |
|
Posted
|
|
|
Community saint |
Updating an "RPG" site and the admin wants to showcase members on the front page in a block. |
|
Posted
|
|
|
ocStaff (admin) |
If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource. |
|
Posted
|
|
|
Community saint |
|
|
Posted
|
|
|
Community saint |
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: |
|
Posted
|
|
|
Community saint |
Just replace member_id with the id of member who's info you want to display.
Visit Last Gamer because its made with ocPortal.
Stay for the content - Video game retrospectives, reviews, galleries and discussions. Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio . |
|
Posted
|
|
|
Community saint |
|
|
Posted
|
|
|
Community saint |
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? |
|
Posted
|
|
|
Community saint |
Code
<img src="{$AVATAR,2}">
Visit Last Gamer because its made with ocPortal.
Stay for the content - Video game retrospectives, reviews, galleries and discussions. Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio . |
1 guests and 0 members have just viewed this: None
Control functions:







