Current status of the Ning Platform is always available on the Ning Status Blog.

NC for Hire

Hi all

Ever wanted an easy way to feature a top member in a bit more detail than the usual Ning member module allows?

This tip creates a neat profile box on your network homepage by taking the Profile Information (questions answered on Sign Up) and the member's avatar to create something like this:

Click to enlarge

Here's what to do:

1. Go to the Features Layout section of your dashboard and create a text box in your middle column on the homepage.

2. In the text box header insert whatever title you want - i've used 'Featured Member: Bob Smooth".

3. Switch to html mode of the text box and insert this:

<div class="featmembpic"></div>
<div class="featmembbio"></div>

Press save.

4. Now open your Custom Code section and insert this:

<script type="text/javascript">
x$(document).ready(function() {
x$('.featmembpic').load('/profile/sweetpotato .xg_widget_profiles_profile .xg_1col img.photo');
x$('.featmembbio').load('/profile/sweetpotato .module_about_user');
x$('.featmembpic').after('<div class="featmembview"><a target="_parent" href="/profile/sweetpotato">View Profile Page</a></div>');
});
</script>

You will notice that the bolded urls in the script above point to the member that you want to feature. These three need to be changed each time you want a new member featured.

5. Now let's style it with some css. Add this to your advanced CSS (or change to suit your network):

.featmembpic {
    background: #E0E0E0;
    float: right;
    padding: 5px;
    position: relative;
    right: 10px;
    text-align: center;
    top: 30px;
    width: 135px;
    z-index: 20;
}

.featmembpic img.photo{
width:120px;
}
.featmembbio .module_about_user {
    border: medium none;
    float: left;
    width: 325px;
}

.featmembbio .xg_module_body{
background:#f7f7f7;
padding-right:15px;
border:solid 1px #E0E0E0;
}

.featmembbio .module_about_user .xg_module_head, .featmembbio .module_about_user .xg_handle{
display:none;
}

.featmembview a, .featmembview a:hover {
    background: url("https://storage.ning.com/topology/rest/1.0/file/get/11387375?profile=original") repeat-x scroll 0 0 transparent;
    color: #394B0A;
    float: right;
    font-size: 14px;
    font-weight: bold;
    left: 136px;
    padding: 6px;
    position: relative;
    text-align: center;
    text-shadow: 1px 1px #C4EA60;
    top: 185px;
    width: 134px;
    z-index: 30;
}

.featmembview a:hover {
color:#4E660E!important;
}

This tip was tested in the Design Studio using a three column layout. You will notice that the profile information questions and answers appear on the same line. I've not included this css in the tip but you will find it here.

Enjoy.

Sp

More tips here

You need to be a member of Ning Creators Social Network to add comments!

Join Ning Creators Social Network

Votes: 1
Email me when people reply –

Replies

  • NC for Hire

    SweetPotato 

    I'm working on your css to make it all perfect I want to know if I can publish by referring to your javascript
  • This reply was deleted.
    • NC for Hire

      Grazie mille Eric

    • NC for Hire

      <script type="text/javascript">
      x$(document).ready(function() {
      x$('.featmembpic').load('/profile/RosasNegras .table_img.dy-avatar-full-width') ;
      x$('.featmembbio').load('/profile/RosasNegras .module_about_user');
      x$('.featmembpic').after('<div class="featmembview"><a target="_parent" href ="/profile/RosasNegras">Visualizza pagina profilo</a></div>');
      });
      </script>

  • NC for Hire

    .table_img.dy-avatar-full-width

  • NC for Hire
    this is how it works
  • NC for Hire

    <script type="text/javascript">
    x$(document).ready(function() {
    x$('.featmembpic').load('/profile/RosasNegras .table_img.dy-avatar-full-width');
    x$('.featmembbio').load('/profile/RosasNegras .module_about_user');
    x$('.featmembpic').after('<div class="featmembview"><a target="_parent" href="/profile/RosasNegras">View Profile Page</a></div>');
    });
    </script>

This reply was deleted.
 

Some interesting articles related to community management, digital marketing etc. could be found in our digest. Don't hesitate to leave a feedback so we would know that we should continue :-)

Latest Activity

Pam Givens replied to Pam Givens's discussion
Landing Page
"What I meant to say, if I could spell:
I've attempted to create a landing page and have't had much…"
Thursday
Pam Givens posted a discussion
I've attempted to crate a landing page and have't had much success.  I'd rather have one on my…
Thursday
Luxury Residences updated their profile
Dec 6
Asumi Carol updated their profile
Dec 2
Shada Hotel updated their profile
Nov 29
Howard Sands replied to Mark Thorpe's discussion
NING is broken?
"I am not a techie, I don't understand the first thing about it, but have a HUGE problem with Ning…"
Nov 27
Howard Sands replied to Donna MacShoe's discussion
Ning Support phone number for my 20 yr old site
"I hope this helps
Ning  https://www.ning.com/contact-us/
1-855-233-6436 (USA/Canada Toll Free)…"
Nov 27
Donna MacShoe posted a discussion
I am completely locked out of my NING site that I have had for 20 years.  ladiesofthehat.org.  When…
Nov 27
Joven left a comment on Ning Networks en español
"Zzz..."
Nov 26
Ron updated their profile
Nov 25
Ron updated their profile photo
Nov 24
Mark Thorpe posted a discussion
I've run networks based on this platform in the past and never have I seen it in such dissarray as…
Nov 20
More…

Meanwhile, you can check our social media channels