For real? You bet! Blogger introduced Dynamic Views quite some time ago. It looks awesome and all, but the inability to add gadgets has been a deal breaker for many. If losing your followers gadget was stopping you from trying the Dynamic Views, you better be finding a new excuse now - because I'm about to show you how you can add Followers gadget in Dynamic Views. Let's cut to the chase, shall we?
Step 1:
First, we need to get the code for our followers gadget. Go to Google Friend Connect site and sign-in with your Google account. On your left, click on your blog's title. If your blog isn't listed there, click on 'Add a Site'.
Next, click on 'Add the members gadget' and customise your gadget based on how you want it to appear.
First, we need to get the code for our followers gadget. Go to Google Friend Connect site and sign-in with your Google account. On your left, click on your blog's title. If your blog isn't listed there, click on 'Add a Site'.
Next, click on 'Add the members gadget' and customise your gadget based on how you want it to appear.
Step 3:
Since Dynamic Views templates do not have sidebars to add gadgets, we're gonna place our Followers gadget in one of our pages. For that purpose, let's create a page. Go to Dashboard - Pages - New Page - Blank Page - HTML. Paste the code that you've copied from Step 2 in your post editor.
This is the code that I've gotten:
Since Dynamic Views templates do not have sidebars to add gadgets, we're gonna place our Followers gadget in one of our pages. For that purpose, let's create a page. Go to Dashboard - Pages - New Page - Blank Page - HTML. Paste the code that you've copied from Step 2 in your post editor.
This is the code that I've gotten:
<!-- Include the Google Friend Connect javascript library. -->
<script type="text/javascript" src="http://www.google.com/friendconnect/script/friendconnect.js"></script>
<!-- Define the div tag where the gadget will be inserted. -->
<div id="div-6634439943315425095" style="width:276px;border:1px solid #cccccc;"></div>
<!-- Render the gadget into a div. -->
<script type="text/javascript">
var skin = {};
skin['BORDER_COLOR'] = '#cccccc';
skin['ENDCAP_BG_COLOR'] = '#e0ecff';
skin['ENDCAP_TEXT_COLOR'] = '#333333';
skin['ENDCAP_LINK_COLOR'] = '#0000cc';
skin['ALTERNATE_BG_COLOR'] = '#ffffff';
skin['CONTENT_BG_COLOR'] = '#ffffff';
skin['CONTENT_LINK_COLOR'] = '#0000cc';
skin['CONTENT_TEXT_COLOR'] = '#333333';
skin['CONTENT_SECONDARY_LINK_COLOR'] = '#7777cc';
skin['CONTENT_SECONDARY_TEXT_COLOR'] = '#666666';
skin['CONTENT_HEADLINE_COLOR'] = '#333333';
skin['NUMBER_ROWS'] = '4';
google.friendconnect.container.setParentUrl('/' /* location of rpc_relay.html and canvas.html */);
google.friendconnect.container.renderMembersGadget(
{ id: 'div-6634439943315425095',
site: '08128118462321429088' },
skin);
</script>
Step 4:
Not quite done yet. See the two lines that I've highlighted in Step 3? We need to replace those lines.
Replace Line 4 with the following line (delete the existing line, and paste the following line)
Not quite done yet. See the two lines that I've highlighted in Step 3? We need to replace those lines.
Replace Line 4 with the following line (delete the existing line, and paste the following line)
<div id="ssfollowers1" style="text-align: center !important; width: auto !important; border:1px solid #cccccc;"></div>Similarly, replace Line 22 with the following line:
{ id: 'ssfollowers1',
This is how your code should look like now (more or less)Step 5:
You're good to go! Publish the post, and under 'Show page as', make sure it says 'Top Tabs'.
Sometimes, you might not see the gadget when you click on your pages link. If clicking once doesn't work, click again. And again, and again. It is common for scripts in DV not to get loaded the first time. You might want to add a line in your page that says "If you're not seeing the followers gadget, try reloading this page 2-3 times", or something to that effect. Enjoy your Followers gadget!
You're good to go! Publish the post, and under 'Show page as', make sure it says 'Top Tabs'.
Sometimes, you might not see the gadget when you click on your pages link. If clicking once doesn't work, click again. And again, and again. It is common for scripts in DV not to get loaded the first time. You might want to add a line in your page that says "If you're not seeing the followers gadget, try reloading this page 2-3 times", or something to that effect. Enjoy your Followers gadget!





Thank you so much :)
ReplyDeleteMost welcome :)
DeleteThanks!!
ReplyDeleteNo problem!
DeleteExperiencing a problem. Once I enter my blog, and click on the Follower tab, i notice the Follower Widget does not load.
ReplyDeleteBut strangely, after visiting another page on the blog, then going back to the Follower page, it loads fine now. And will continue to be fine as long as i stay on the site.
Site URL is below.
http://sanguoshaenglish.blogspot.com/
Love your blog! I have put in many of your tutorials to get my blog to where it is. Great work!
Well, not exactly a problem. I'm surprised scripts are even loading now. It is common for scripts to get choked to load each time in Dynamic Views, as there are many scripts running in DV at any given time. Just click on the link once, and if it doesn't work, click on it again. You can add a small line in your page telling your readers to kindly click on the link again if they're not seeing the gadget, or something to that effect.
DeleteSoooo cute...=)
ReplyDeleteThe left one is me, the right one is you :) XoXo
Deletefunny. =>
DeleteDynamic Views now have a followers gadget floating on the side :D
ReplyDeleteYeah.. They decided to make my post obsolete..
DeleteOn the new gadgets thing though... do you have any idea how to change the background colour on it? That grey is so annoying...
ReplyDeleteYou're the second person asking the same. I'm still working on it. I'll probably publish a tutorial on it next weekend, if I happen to find a way.
DeleteCheers mate. Hope you find something. If you are successful, would that be both background colours you can change? (hoping it is) coz the white/light grey is as bad as the dark...
ReplyDeleteYou'd think Google would let us customise things like that...
Yeah, I was trying to change both background colors (the white and the black/darkgrey). My browser choked the last time I tried and I'm yet to give it another go.
DeleteGoogle? Nah.. The Blogger team is busy with some else at the moment :)
Will this work to apply any kind of code like for example a flash gadget there? or javascript gadget like for pics and stuff?
ReplyDeleteGood day!
The GFC code is Javascript based. If it can work, theoretically, other HTML and Javascript codes should work. Give it a go :)
DeleteIt works xD thanks!
Delete:)
DeleteI can't seem to access the GFC site.
ReplyDeleteI copied the same code as yours, but I still need to find my site ID. I can't get the site ID from Google Friend Connect.
It redirects me to this page instead:
http://support.google.com/friendconnect/bin/answer.py?hl=en&answer=2440229
or show me this error:
We're sorry...
We were unable to handle your request. Please try again or return a bit later.
Here is my blog: movien00bs.blogspot.com
I'd appreciate any help you can provide & thanks for all your tutorials!
The site ID is a uniquely generated code by GFC. Thus you need to access your GFC before you can get can. Anyways, you probably won't need it anymore since Dynamic Views allows you to add Followers gadget now.
DeleteWell, I wanted a dedicated page to the gadget. Anyway, if you do find out how I can do that, please do let me know.
DeleteThanks mate.
Any ideas why you aren't able to access your GFC site? If you can sort that out, you'll be able to lay your hands on the dedicated code that you desire.
Delete