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

NC for Hire

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

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

Join Ning Creators Social Network

Votes: 0
Email me when people reply –

Replies

  • quick question. SP

    If we want to Add same  IMage to TWO group then what will be the code here

    "contains("Legal Recruiter")').length > 0) { "

     

    Comma or Any thing?

    • NC for Hire

      pretty much, think this should do it

      if (x$('.module_about_user dl dd:contains("Legal Recruiter"), .module_about_user dl dd:contains("Another Option")').length > 0) {

      SP

      • Thanks SP,

        i want to change location of this image and want to adjust it below Member Name,City Country.

        Code ?

        • NC for Hire

          you have a unique style of asking, don't you, imail? :-)

          there are about a thousand different variants of what could be done with this code. if you wanted to, you could make the search box pink if a member answered a certain question in a certain way.

          what you're asking for is probably something like this:

          <script type="text/javascript">
          x$(document).ready(function() {  
              if (x$('.module_about_user dl dd:contains("Legal Recruiter")').length > 0) {
                  x$('.xg_widget_profiles_profile_show dl.last-child dt.fn span ul.member_detail').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>

          I'll let NCs get creative with this by themselves with the variations from now on. Enjoy....

          SP

  • This code you shared would be very interesting to my network if I could change it to verify the quantity of groups a user has joined, do you know if this parameter is possible to be read?

    Thanks.

  • Could you add multiple different codes? Or is it only going to show one at a time?

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

Kos posted a discussion
In November we began to notice Chat "freezing up" and when we would refresh the page, it would…
Dec 27, 2024
Eva Libre posted a discussion
UpdateMerry ChristmasToday I woke up totally frustrated and determined to do something.At the end…
Dec 26, 2024
Eva Libre liked Eva Libre's discussion Ning 3.0 is antisocial!
Dec 25, 2024
Eva Libre updated their profile
Dec 25, 2024
Eva Libre replied to Eva Libre's discussion
Ning 3.0 is antisocial!
"Update
Merry Christmas
Today I woke up totally frustrated and determined to do something.
At the…"
Dec 25, 2024
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…"
Dec 12, 2024
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…
Dec 12, 2024
Luxury Residences updated their profile
Dec 6, 2024
Asumi Carol updated their profile
Dec 2, 2024
Shada Hotel updated their profile
Nov 29, 2024
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, 2024
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, 2024
More…

Meanwhile, you can check our social media channels