Hi all

This tip is kind of similar to Jen's tip on inserting messages to all members on their profile page.

However, what i wanted to do here was target specific member types, in this case Legal Recruiters, with a 'call-to-action' that applied only to them (I did search but couldn't find anything similar - apologies if it's out there already)

I wanted an icon prompting them to post jobs inserted on profile pages of members that answered my profile question "Type of Member" with the answer "Legal Recruiter".

This code does just that, and goes in your custom code box:

<script type="text/javascript">
x$(document).ready(function() {  
    if (x$('.module_about_user dl dd:contains("Legal Recruiter")').length > 0) {
        x$('.module_user_thumbnail').after('<div style="width:173px;background:transparent;padding-left:6px;"><a target="_blank" href="http://yourURL.com"><img class="align-full" src="http://yourURL.com/image.png" /></a></div>');
    }
});
</script>


What we're doing here is looking for specific content with the Profile Information module (module_about_user dl dd) on each member's profile page. The highlighted blue designates this, in this example Legal Recruiter.
Once we've determined this we're inserting something after the profile avatar picture (.module_user_thumbnail) in this instance some html that styles a div, inserts a picture (http://yourURL.com/image.png) that links to a specific url (http://yourURL.com).

You can see it in action here. And to make sure it works and not displaying elsewhere, not in action here.

This script could be adapted for all sorts of things, including additional categories for members that already have the one category assigned to them using the recently launched Ning category badges.

Hope this is of use

SP

More tips on my page

Tags: Target specific member types

Views: 699

Reply to This

Replies to This Discussion

Done already!

May I ask how you get the rounded corners on your module headers on Defero? And also the member search page? (BTW my site is not for profit).

Ha ha, is that to say you'd never pay for assistance? I'm a 'for profit' myself but I'll dig out the code at some point. :-)
Btw, just realised you're the Harringay Online chap - I live in Crouch End, small world. I had coffee with Adrian from opinion8 recently. Interesting guy.
SP

Not so much that, rather to let you know that I'm not seeking to make money off your brilliance!

Yes, I'm the HoL guy. Bloody small world, eh. Adrian used to be a HoL member and after a couple of years decided to try it himself your side of the tracks.

I helped Richard set up the Bowes & Bounds site on Ning. That's a nice little site. MUch smaller that HoL, but with a great community feel.

If you ever get a chance to dig out the code, it'll go to a good home!

Will do

rounds the module itself:

.xg_theme .xg_module {
    margin-bottom:15px;
border-radius:5px;
-moz-border-radius:5px;
-webkit-border-radius:5px;
}

Makes sure the module head looks rounded as well:

.xg_theme .xg_module_head {
border: none;
margin:0px;
padding-left:5px;
border-radius:4px 4px 0px 0px;
-moz-border-radius:4px 4px 0px 0px;
-webkit-border-radius:4px 4px 0px 0px;
}

SP

Thanks SP.

welcome

This is an incredible tip. Can't believe I missed it. Thanks SP

P.S. Some great bespoke redesign projects as well.

You're welcome, Ed. Hope you find a good use for it.
SP

you're welcome, a not-used-enough-tip if you ask me :-)

RSS

Latest Activity

SM replied to SM's discussion 'Just discovered Disqus commenting on Ning - how do we add more features?'
"* For those who don't understand the SSO issue. Basically it allows you to use your Ning…"
6 minutes ago
SM replied to SM's discussion 'Just discovered Disqus commenting on Ning - how do we add more features?'
"Good to hear. I'd really love to have that option. It's the only thing that's making…"
16 minutes ago
Allison Leahy replied to SM's discussion 'Just discovered Disqus commenting on Ning - how do we add more features?'
"Disqus is enabled on Cultivating Community. For some odd reason it won't open up on the post…"
17 minutes ago
Allison Leahy replied to SM's discussion 'Just discovered Disqus commenting on Ning - how do we add more features?'
"SSO for Disqus is a great idea, and it has been passed along to the product team. While the Ning…"
26 minutes ago
Thiago Santos de Moraes replied to Elshara Silverheart's discussion 'More Feature Requests'
"Ok, I'll wait ;)"
51 minutes ago
Monica Diaz replied to Monica Diaz's discussion 'How are you using member categories in Ning 3.0?'
"Fair point.  In that case, once the Groups feature exists in Ning 3.0, that would likely be…"
51 minutes ago
Kos replied to Gary W Norman's discussion 'Tagline Font Size or Type - can it be changed?'
"yes I have to keep remembering you don't even use Design Editor.  Glad it's resolved."
53 minutes ago
Monica Diaz replied to Monica Diaz's discussion 'How are you using member categories in Ning 3.0?'
"Hi Jeanne,  That's a neat idea.  My thoughts on this, offhand, are that you could do…"
56 minutes ago

© 2013   Created by Ning.

Badges  |  Report an Issue  |  Terms of Service