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

NC for Hire

Hello everyone,

Following up from a few comments about sign up / sign in boxes being absent from Ning 3.0, I thought I'd put together a simple boilerplate example for you to use and adapt.

Here's a screencap:

Here it is in action: here, here, and here.

As you can see, I have included five social buttons that at present link to the Sign Up page. You will be able to change these in the html below.

Instructions:

  1. Open Social Site Manager and create an HTML box in Site & Pages and put it in the column that you want, eg

    Click to Enlarge
  2. Insert the following html (also attached below) and change the highlighted red wording to your own and the green urls to an appropriate domain. Update and Save.

    <div class="SP_sign_up">
    <h4>Welcome to Network Name</h4>
    <div class="SP_sign_up_button"><a href="http://networkname.ning.com/main/authorization/signUp?">Sign Up</a></div>
    <div class="SP_sign_up_in">
    <p>Already a member? <a href="http://networkname.ning.com/main/authorization/signIn">Log in</a></p>
    </div>
    <div class="SP_sign_up_external">
    <p>You can also use these:</p>
    <ul>
    <li><a target="_self" href="http://networkname.ning.com/main/authorization/signUp?"><img src="https://storage.ning.com/topology/rest/1.0/file/get/11491680?profile=original" width="128" /></a></li>
    <li><a target="_self" href="http://networkname.ning.com/main/authorization/signUp?"><img src="https://storage.ning.com/topology/rest/1.0/file/get/11491704?profile=original" width="128" /></a></li>
    <li><a target="_self" href="http://networkname.ning.com/main/authorization/signUp?"><img src="https://storage.ning.com/topology/rest/1.0/file/get/11491685?profile=original" width="128" /></a></li>
    <li><a target="_self" href="http://networkname.ning.com/main/authorization/signUp?"><img src="https://storage.ning.com/topology/rest/1.0/file/get/11491689?profile=original" width="128" /></a></li>
    <li><a target="_self" href="http://networkname.ning.com/main/authorization/signUp?"><img src="https://storage.ning.com/topology/rest/1.0/file/get/11491694?profile=original" width="128" /></a></li>
    </ul>
    </div>
    </div>
  3. Insert the following css (also attached below) into your Custom CSS section in the Design Studio (you CSS gurus out there can amend to your heart's content, i've kept it simple for now). Press Publish:

    .SP_sign_up{
    text-align:center;
    background:#fff;
    border-radius:3px;
    -webkit-border-radius:3px;
    -moz-border-radius:3px;
    padding:10px 0;
    }

    .SP_sign_up h4{
    font-weight:bold;
    }

    .SP_sign_up_button{
    padding:7% 10%;
    }

    .SP_sign_up_button a{
    color:#333;
    font-size:16px;
    border-radius:3px;
    -webkit-border-radius:3px;
    -moz-border-radius:3px;
    padding:5% 15%;
    background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #F8F7F7), color-stop(1, #ECEBEB));
    background:-moz-linear-gradient(top, #F8F7F7 5%, #ECEBEB 100%);
    background:-webkit-linear-gradient(top, #F8F7F7 5%, #ECEBEB 100%);
    background:-o-linear-gradient(top, #F8F7F7 5%, #ECEBEB 100%);
    background:-ms-linear-gradient(top, #F8F7F7 5%, #ECEBEB 100%);
    background:linear-gradient(to bottom, #F8F7F7 5%, #ECEBEB 100%);
    filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#F8F7F7', endColorstr='#ECEBEB',GradientType=0);
    background-color:#F8F7F7;
    border:solid 1px #c9c9c9;
    }

    .SP_sign_up_in p{
    font-size:12px;
    }

    .SP_sign_up_external{
    text-align:center;
    }
    .SP_sign_up_external ul{
    padding: 0;
    margin:0;
    }

    .SP_sign_up_external img{
    max-width: 15%;
    }

    .SP_sign_up_external li{
    display: inline;
    list-style: none;
    padding: 2px;
    }

    .SP_sign_up_external > p {
    font-size: 10px;
    }
  4. If you want to hide this from logged in members then include this script (also attached below) in the 'End of Page Code' in Custom Code in Social Site Manager.

    <script type="text/javascript">
    if (ning.CurrentProfile != null)
    x$('.grid-frame.sheet.section-html:has(.SP_sign_up)').hide();
    </script>
  5. Repeat Steps 1 and 2 for any pages that you want the Sign Up box to appear on.


I have designed this to be responsive. The social sign in icons will be larger in a one column layout on mobile, for example.

I have kept the social sign in links to the the generic sign up box at present but if you know your social sign in urls then I see no reason why you can't amend the html above.

I have added five icons. Please delete those that you don't use (the pink code <li> </li> is an icon item). If you want to add other icons then I have used the icon set here.

Enjoy!

SP

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

  • Great signup/signin box SP.  Many have been looking for this in 3.0 and they'll love the ability to tweak the wording.  Thank you for sharing.

  • This is really nice! I especially like the large icons, it was one of my peeves with the ones on our 2.0.

    I don't plan to use native sign-up/sign-in, so how would that code of yours look without it?

    • NC for Hire
      You could easily remove the native sign up button and just retain the social icons, although you'd need to know the urls or each social sign in. I'm off on holiday for a week but can take a look when I return if you need me to.
      SP
  • NC for Hire

    Nice work SP

  • This reply was deleted.
  • This reply was deleted.
  • Awesome

  • Awesome SweetPotato!

    You solved a problem for me! I had a banner up top that was covering my sign up in nav bar!

    Now before I add this I have one question! (of course!)

    Anyway am I reading this right?-is that pink code the yahoo sign in code? That is one sign in I do not have... so just wanted to make sure... That is all I wish to remove...

    Thanks, Suzie

  • Wow.. very nice. Works perfectly! :)

  • Great TIP, SweetPotato.

    Here is mine implemented, across all my Job Boards. http://mobile.ning.com/communities

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

Alex - Rosas † Negras replied to Suave's discussion
I AM LOOKING FOR DEVELOPER ASSISTANCE WITH ADDING AUTOMATIC MUSIC TO MY HOME PAGE
"if you need I'm here, if you look in my discussions you will also find the playstil"
yesterday
Alex - Rosas † Negras replied to ⚡JFarrow⌁'s discussion
What is going on with Ning? What Do We have to Look Forward To?
"Bizz ⚡JFarrow⌁ 
I'm sorry that many like us have worked so hard and given up, but at least I'm…"
yesterday
⚡JFarrow⌁ posted a discussion
Back in the day, this community was jumping with activity.   But since the Ukraine war broke out we…
yesterday
⚡JFarrow⌁ and Truebook are now friends
yesterday
Alex - Rosas † Negras replied to Alex - Rosas † Negras's discussion
I want to thank JOHN BIZLEY ( BIZZ) for his invaluable help, active icons on the Ning bar,CODES ADDED
"A thousand thanks"
Tuesday
Alex - Rosas † Negras replied to Pam Givens's discussion
Landing Page
"Pam Givens this is an example i created of an old 3.0 site"
Tuesday
Alex - Rosas † Negras replied to Pam Givens's discussion
Landing Page
""
Tuesday
Alex - Rosas † Negras replied to Alex - Rosas † Negras's discussion
Sorry for my absence
"Pam Givens hi my friend, yes everything is ok a big hug"
Monday
Alex - Rosas † Negras replied to ⚡JFarrow⌁'s discussion
Ning Creators Sound Off: Share Your Network
"⚡JFarrow⌁  hi my bro! the situation is sad, Biz and all the programmers are missing, once we all…"
Monday
Alex - Rosas † Negras and Truebook are now friends
Monday
Melissa V updated their profile
May 7
conversor de letras updated their profile
May 7
More…

Meanwhile, you can check our social media channels