Jump to content

Featured Member Block(32)


Nuclear General

Recommended Posts

%7Boption%7D



File Name: Featured Member Block(32)

File Submitter: Nuclear General

File Submitted: 28 Aug 2011

File Category: User and Social Engagement



A fairly Simple Block that pulls from ACP settings(a member type-ahead field and a "reason" WYSIWYG) to display the members Avatar, group formatted display name, title, join date, Total Posts, Last Post and Last active Time.
If Filled, The admin-defined reason, Website URL, About me, and Interests will also be displayed.
Also allows for other custom profile field additions with simple block code additions.
THIS USES 3.2 Functions/styles to generate correct formatting/data... You are WARNED, 3.2 ONLY.



here to download this file

Link to comment
Share on other sites


hello, I down loaded and I am having problems with it not parsing the member's avatar correctly. You can see it on my home page www.brotherhoodofvalor.com.



could i get a pm with access to investigate locally? its supposed to be generating the ipsPhoto size 'large' with 3.2 functions.... have you tested to see whether its a badly rebuilt 3.1.4 photo?
does this occur with other members? cause it IS generating the correct picture... heres the output of the img tag...


<img width="0" height="0" class="ipsUserPhoto " src="http://www.brotherhoodofvalor.com/uploads/av-172.jpg">


the width and height of 0 is whats doing that... but it shouldn't be doing that>.<

Link to comment
Share on other sites

Hey ya... I like this block, in which I have a good use for this... But had a question..

In the image below here, The circled part, is there a way I can have it "centered" but also lined up together.. I tried a few different things, in which none of them worked... I wanted to have all the info there thats centered but lined up together.

Heres what I have:

post-122595-0-52414600-1315314525_thumb.

How can I get that circled part aligned up together

Link to comment
Share on other sites

  • 2 weeks later...

Hey ya... I like this block, in which I have a good use for this... But had a question..



In the image below here, The circled part, is there a way I can have it "centered" but also lined up together.. I tried a few different things, in which none of them worked... I wanted to have all the info there thats centered but lined up together.



Heres what I have:



post-122595-0-52414600-1315314525_thumb.

How can I get that circled part aligned up together



you would need to modify the block template(it was designed as a 2-column), post what you have or link and id be happy to take a look.
Link to comment
Share on other sites


Its whatever the original block had... after I tried a few edits, I just reverted back to its original state...So it would be setup as you originally made it :D



ah, ok... yeah, your likely going to want it more like this:


<php>

$member = IPSMember::load( $this->settings['mt_featured_member'], 'all', 'displayname' );

</php>

<div class='maintitle'>{$title}</div>

<div class='ipsBox'>

<div class='ipsBox_container ipsPad'>

<a href='{parse url="showuser={$member['member_id']}" template="showuser" seotitle="{$member['members_seo_name']}" base="public"}' class='ipsUserPhotoLink'>

{IPSMember::buildProfilePhoto( $member['member_id'], 'full')}

</a>

<br />

{IPSMember::makeNameFormatted( $member['members_display_name'], $member['member_group_id'] )}<br />

{$member['title']}

<ul class='hfeed'>

{parse striping="feed_striping" classes="row1,row2 altrow"}

<if test="$this->settings['mt_featured_member_desc']">

<li class='hentry {parse striping="feed_striping"} ipsPad_half'>

{IPSText::getTextClass('bbcode')->preDisplayParse($this->settings['mt_featured_member_desc'])}

</li>

</if>

<li class='hentry {parse striping="feed_striping"} ipsPad_half'>

Joined: {parse date="$member['joined']" format="joined"}

</li>

<li class='hentry {parse striping="feed_striping"} ipsPad_half'>

Total Posts: {parse format_number="$member['posts']"}

</li>

<li class='hentry {parse striping="feed_striping"} ipsPad_half'>

Last Post: {parse date="$member['last_post']" format="long"}

</li>

<li class='hentry {parse striping="feed_striping"} ipsPad_half'>

Last Active:

	 {parse date="$member['last_activity']" format="long"}</li>

<if test="$member['pp_about_me']">

<li class='hentry {parse striping="feed_striping"} ipsPad_half'>About Me:

<br>

{IPSText::getTextClass('bbcode')->preDisplayParse($member['pp_about_me'])}

</li>

</if>

<if test="$member['field_3']">

<li class='hentry {parse striping="feed_striping"} ipsPad_half'>Website URL:

<br>

{IPSText::getTextClass('bbcode')->preDisplayParse($member['field_3'])}

</li>

</if>

<if test="$member['field_7']">

<li class='hentry {parse striping="feed_striping"} ipsPad_half'>Interests:

<br>

{IPSText::getTextClass('bbcode')->preDisplayParse($member['field_7'])}

</li>

</if>

</ul>


</div>

</div>

Link to comment
Share on other sites

  • 2 weeks later...
  • 1 month later...

Is it possible to place this block on the portal sidebar without modifying the template?



...in frank honesty, ive looked at the hook points available in portal.
and no.
the only remotely possible place to hook into is the site navigation block, in a div, in a ul....
using the code right above you could make it fit in the sidebar
but there is no good hook point in that applications sidebar.
youd have to add the block to the portal template manually.
Link to comment
Share on other sites


Is it possible to place this block on the portal sidebar without modifying the template?



PS: Can it be extended so that the Super moderators can select the featured member instead admins from the admin panel. Will be really useful for member of the month type of recognitions.



hrmmm.....
maybe?
id have to add a setting to be checked to SHOW an edit option....then actually show a form allowing the setting to be edited to the groups with allowed frontend edit.... I'll look at it.
Link to comment
Share on other sites


youd have to add the block to the portal template manually.


Alright, I have done that. Thanks for this block and any future enhancements. So is there a hook available for putting it in the forum sidebar? I cannot figure out where to place that parse code for it to appear on the forum.
Link to comment
Share on other sites


Alright, I have done that. Thanks for this block and any future enhancements. So is there a hook available for putting it in the forum sidebar? I cannot figure out where to place that parse code for it to appear on the forum.



I usually just use this for the official apps sidebars... hated being limited to one block and template edits to add them. :P
http://community.inv...ment-blockhook/
Link to comment
Share on other sites

  • 4 months later...
  • 3 weeks later...

Okay is there a way I can make the Featured Member block smaller in size?

Its going the whole way across, and I just want it in a "block" I tried adding a table around it, and setting the width, but it had no effect on it...

What would be the easiest way to do that? I tried both on the page and in the block template.

Link to comment
Share on other sites


Okay is there a way I can make the Featured Member block smaller in size?



Its going the whole way across, and I just want it in a "block" I tried adding a table around it, and setting the width, but it had no effect on it...



What would be the easiest way to do that? I tried both on the page and in the block template.



it will fill the space it is placed in... so placing it in an ipsLayout, say, in the sidebar would achieve the desired effect... ergo, define the width of an element surrounding it and it will resize itself to fit inside it.
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...