Social Web Directory :: Social Network Directory :: Ning Tips and Ning Support
I always push my members to change their default profile photos. Because my site is a social netwrok to share things and make friends. I don't think they can make new friends with the default profile photos and no any other contents. I don't ask them to upload a real face photo since I'm not the dating service. Just any image they like to replace the default one.
Base on the discussion in Creators: HIGHLIGHT COOL FEATURES TO YOUR USERS. I decide to put a very big image banner into the member's profile page who still use the default photo. Yes, that big image banner promotes member to change the default photo. And it won't show in the profile pages that already upload profile photos.
I use this image banner. The Chinese characters say: Don't be shy. Click your default photo to replace it with a new one.
And I put it in the bottom of right column. Since the right column of profile page in my site is quite empty. Here is the screen snap. Click here for the real action.
If you want do the same thing. You need a promote image or text and my Javascript. Actually the image don't need to be so big. It totally depends on your site.
Here are the install steps:
1. Make sure you know the filename of the default photo image. Because the script need it to check if members still use the default one. If you don't know the filename. You can upload a new default photo image in site control panel. And before you upload it, rename it to default_photo_filename.jpg or default_photo_filename.png. So that you don't need to modify the script for this.
2. Prepare your promote image and upload it with the File Manager or to anywhere in your site ( I upload it to the Photo ). Copy the image url.
3. Right click to download this Javascript file: ningAskChangeProfilePhoto.js
Open it with any text editor (don't use Word). There are two places with the pink highlight you need to modify. Here is the content of the .js file:
( Click the image to view the full size. )
4. When you finished, save it. And then upload the .js file with the File Manager or to anywhere in your site ( I create a private Page and upload all files I need in that page as a file manager page). Copy the url of the .js file.
5. Go to the Custom Code, add this line for YUI 3 if you don't have yet:
<script src="http://yui.yahooapis.com/3.3.0/build/yui/yui-min.js" charset="utf-8"></script>
note: YUI 3 is a Javascript framework writing by Yahoo!. Just like jQuery is another Javascript framework.
6. Still in Custom Code, add this line for the Javascript file you just uploaded.
<script src="http://api.ning.com/files/............/ningAskChangeProfilePhoto.js" charset="utf-8"></script>
Now save and check the profile pages with the default photo. Also check the profile pages without the default photo.
Sorry for those complicated steps. I put the Javascript code in a separate file, don't put it directly in the Custom Code for better performance and maintenance reasons. The browsers will auto-cache the .js file for faster downloading and bandwidth saving.
If you get some trouble when installing it. Check the .js and image file path, default_photo_filename and the HTML code in .js file. Any mistake in HTML code is not allowed. And please add Help, Support Discussions or Suggestions to the Support Group.
This tips is tested with Design Studio.
This tips also can be used with old themes. You just need to change .xj_sidebar_content to . xj_classic_sidebar in the Javascript file. That's all.
This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported.... Permissions beyond the scope of this license, pertaining to the examples of code included within this work are available at iYouMe.net.
Tags:
if you manage to make ad banner moved when member ad there photo you will open a new area for us
we could do better
we can make VIP membership as they won't bother with comercial ads all over the place if they sign up with a VIP account
tagged and HI5 do that
Now I changed the banner to a google AD and have text link above: Upload your profile photo to remove AD. The google AD also display in every other pages except the profile pages which member already changed the default photo. And the text link above only display in profile pages with AD.
Here is the snap:
Whoa! Wow! Alex you are really getting to be a top-notch js coder. I have to give you a huge Cheers and BRAVO!
Thanks you for sharing with us.
Best Regards,
Jen
Welcome to
JenSocial: Social Web Directory and Ning Tips
Posted by JenSocial on May 7, 2018 at 8:35pm 9 Comments 1 Favorite
Posted by JenSocial on January 6, 2017 at 4:00pm 10 Comments 1 Favorite
Posted by JenSocial on October 22, 2016 at 1:05am 0 Comments 0 Favorites
Posted by JenSocial on September 17, 2016 at 12:00am 26 Comments 1 Favorite
Posted by JenSocial on August 31, 2016 at 3:30pm 13 Comments 0 Favorites
Ning 3.0 Tip - Add Buttons/Links Below Status Update (Quick Links to Add Photos, Posts, Discussions)
Started by Themes - Rosas Negras Mar 20, 2021. 0 Replies 0 Favorites
Started by JenSocial. Last reply by Kos Dec 6, 2016. 64 Replies 4 Favorites
Started by JenSocial. Last reply by JenSocial Jul 26, 2016. 41 Replies 1 Favorite
© 2024 Created by JenSocial. Powered by
© Copyright JenSocial.