The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Tuesday Tip: Add a Twitter feed to your portal

+7
Champagne Doll
milance2009
WhitePoint
Codyy
Jalokim
Kyouri
Shadow
11 posters

Go down

Twitter - Tuesday Tip: Add a Twitter feed to your portal Empty Tuesday Tip: Add a Twitter feed to your portal

Post by Shadow November 24th 2009, 11:15 am

Twitter Feed on your portal
Twitter - Tuesday Tip: Add a Twitter feed to your portal 29osx12 Add a twitter feed/ticker on your site.
No template editing , or skill required!
This is a global code, can be used in the portal, forum widget , homepage message , html page

The result:

Twitter - Tuesday Tip: Add a Twitter feed to your portal 2gt69mb


Tools you may need:


A small twitter icon if you wish to edit the default 1 I prepared
An active portal (I chose the portal because the feed looks the best in the portal)
Motivation and 15 minutes


Twitter - Tuesday Tip: Add a Twitter feed to your portal Jpkje8 Preparing the portal


I suggest posting this feed in the center column, or in the top or bottom modules. The feed looks really good if it is found in those sections.
Go to Admin panel-> Modules -> Portal management -> structure
Scroll down and click create a new widget.


Twitter - Tuesday Tip: Add a Twitter feed to your portal 2pt8jo1Adding the code


After you clicked create a new widget, into the
name type in "twitter feed" for quick refrence
select "yes" to use standard tables (unless you want to customize the block yourself)
No need for a title, unless you want one.

Into the box you paste this code:

Code:
<div class="twitterfeed"><div id="twitter_div" style="margin-left: 35px; padding-top: 3px;"><ul id="twitter_update_list" style=" list-style-image : url(http://hitskin.com/themes/13/34/38/i_icon_minipost_participate.png); font-size: 12px; line-height: 15px;"><li style="padding-top: 3px; padding-left 20px;"> </li></ul></div><p align="right" style="margin-top: 2px; font-size: 11px;">recently twittered on <a href="http://twitter.com/forumotion">Forumotion</a></div><script type="text/javascript" src="http://twitter.com/javascripts/blogger.js"></script><script type="text/javascript" src="http://twitter.com/statuses/user_timeline/forumotion.json?callback=twitterCallback2&count=1"></script>


I'm explaining now:
<div class="twitterfeed"> - this is a special additional class I added to keep your feed aligned. If you want to modify the twitter feed you'll do it to this class.

<div id="twitter_div ...> - this is the base defined code for the javascript, do not modify. the only items you can change in this div is the style="";

<ul id="twitter ...> - this is an unorganized list that is needed for the javascript. The only thing you can modify is the image url. This is the mini icon (the blue box in my example) its a bullet point. You can change the point if you wish.

The rest of the insides you must leave alone... but when you see this part:
recently twittered on <a href="twitter.com/forumotion">Forumotion</a> - make sure to change forumotion to your forums name.

The last and most important part is the actual feed.

Code:
<script type="text/javascript" src="http://twitter.com/javascripts/blogger.js"></script><script type="text/javascript" src="http://twitter.com/statuses/user_timeline/forumotion.json?callback=twitterCallback2&count=1">


There are 2 things you have to edit here.
1) - statuses/user_timeline/your twitter account name.json?
* - change the twitter account from forumotion to your twitter account

2) - twitterCallback2&count=1
* - my code only displays your last tweet. if you want the last 2 or 3 you have to change the "count" to your desired number of tweets. (don't go over 5 it doesn't look nice)


once you are done editing - save and add your new widget to your portal (recommended in the center/top/bottom column )

Twitter - Tuesday Tip: Add a Twitter feed to your portal 9jondsCSS additions


It be fun to leave it like this ... but you have to add a few CSS classes.
Go to Admin panel -> display -> colors -> CSS tab

All you have to do is paste these classes

Code:
#twitter_div a:link{
color: #fff;

}
#twitter_div a:hover{
color: #03a5b4;
}
#twitter_div{
color: #006383;
}.twitterfeed{
margin: 0 auto;
width: 700px;
height: 40px;
background-image: url(http://i33.tinypic.com/14kblfo.png); /* desired twitter image */
background-repeat: no-repeat;

}
To modify the twitter block you use the #twitterfeed class.
you can modify its width , height and the icon.
The #twitter_div a:link and a:hover are the colors of twitter links and the recently twittered on links
modify the color depending on your forums background.


Tutorial Written by Jalokim , special thanks to the original author of blogger.js
Shadow
Shadow
Manager
Manager

Male Posts : 16217
Reputation : 1831
Language : French, English

Back to top Go down

Twitter - Tuesday Tip: Add a Twitter feed to your portal Empty Re: Tuesday Tip: Add a Twitter feed to your portal

Post by Kyouri November 24th 2009, 1:04 pm

Nice job! Smile
Kyouri
Kyouri
Forumember

Female Posts : 165
Reputation : 0
Language : English

http://anime-dohyou.phpbb9.com

Back to top Go down

Twitter - Tuesday Tip: Add a Twitter feed to your portal Empty Re: Tuesday Tip: Add a Twitter feed to your portal

Post by Jalokim November 24th 2009, 2:02 pm

You rock typlo where do you find these awesome tutorials? Razz

thanks for the tuesday tuts... awesome stuff Razz
Jalokim
Jalokim
Energetic

Male Posts : 6113
Reputation : 223
Language : English,Polish,CSS,HTML
Location : Poland

Back to top Go down

Twitter - Tuesday Tip: Add a Twitter feed to your portal Empty Re: Tuesday Tip: Add a Twitter feed to your portal

Post by Codyy November 24th 2009, 2:13 pm

I used this the DAY Jalokim released the code. xD
Im ahead of ya typlo!
Codyy
Codyy
Active Poster

Male Posts : 1032
Reputation : 16
Language : English
Location : Florida

http://leprym.com

Back to top Go down

Twitter - Tuesday Tip: Add a Twitter feed to your portal Empty Re: Tuesday Tip: Add a Twitter feed to your portal

Post by WhitePoint November 24th 2009, 2:34 pm

thanks for the tuesday tutorials !
WhitePoint
WhitePoint
Active Poster

Male Posts : 1206
Reputation : 11
Language : Romanian, Spanish, English, Catalan and a little French
Location : Tarragona, Spain

http://www.our-time.biz/forum.htm

Back to top Go down

Twitter - Tuesday Tip: Add a Twitter feed to your portal Empty Re: Tuesday Tip: Add a Twitter feed to your portal

Post by milance2009 November 24th 2009, 5:09 pm

Wow.. tnx Smile
milance2009
milance2009
New Member

Male Posts : 13
Reputation : 0
Language : English, Germany, Franch, Ruski, php, css, html, js, ....
Location : On my world in internet and forumotion xD

http://www.forumoforumima.net

Back to top Go down

Twitter - Tuesday Tip: Add a Twitter feed to your portal Empty Re: Tuesday Tip: Add a Twitter feed to your portal

Post by Champagne Doll November 25th 2009, 2:56 am

I'd love to add twitter and the forumotion shop. I have a portal and that's where I'll put it. Thanks a mil!!
Champagne Doll
Champagne Doll
New Member

Female Posts : 14
Reputation : 0
Language : English

Back to top Go down

Twitter - Tuesday Tip: Add a Twitter feed to your portal Empty Re: Tuesday Tip: Add a Twitter feed to your portal

Post by Rehua November 25th 2009, 8:05 pm

I'd love to not see that text centered and bold. Twitter - Tuesday Tip: Add a Twitter feed to your portal Redface
Rehua
Rehua
Forumember

Male Posts : 669
Reputation : 1
Language : Dutch, English, German, French
Location : On Forumotion.

http://vocatrem.findtalk.biz/forum.htm

Back to top Go down

Twitter - Tuesday Tip: Add a Twitter feed to your portal Empty Re: Tuesday Tip: Add a Twitter feed to your portal

Post by Codyy November 26th 2009, 3:02 am

Niels wrote:I'd love to not see that text centered and bold. Twitter - Tuesday Tip: Add a Twitter feed to your portal Redface
lmao. So true. So true.
Codyy
Codyy
Active Poster

Male Posts : 1032
Reputation : 16
Language : English
Location : Florida

http://leprym.com

Back to top Go down

Twitter - Tuesday Tip: Add a Twitter feed to your portal Empty Re: Tuesday Tip: Add a Twitter feed to your portal

Post by dotDavid November 26th 2009, 7:14 am

Niels wrote:I'd love to not see that text centered and bold. Twitter - Tuesday Tip: Add a Twitter feed to your portal Redface

Why?



Nice work Jalo.
dotDavid
dotDavid
Hyperactive

Male Posts : 2404
Reputation : 0
Language : English

https://help.forumotion.com/

Back to top Go down

Twitter - Tuesday Tip: Add a Twitter feed to your portal Empty Re: Tuesday Tip: Add a Twitter feed to your portal

Post by Mod 4 U December 1st 2009, 1:13 am

Thanks I will put this on my new fresh portal for MegaCity.
Mod 4 U
Mod 4 U
Forumember

Male Posts : 46
Reputation : 0
Language : English, Learning Spanish
Location : New York, United States of America

http://atmosphir.forum-motion.net/forum.htm

Back to top Go down

Twitter - Tuesday Tip: Add a Twitter feed to your portal Empty Re: Tuesday Tip: Add a Twitter feed to your portal

Post by Demo-user December 5th 2009, 9:57 pm

Cool cyclops
avatar
Demo-user
Forumember

Posts : 59
Reputation : 0
Language : English

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum