Home Help Search Register
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Join the BIGACE Team
Pages: [1]
  Print  
Author Topic: Twitter Portlet  (Read 4478 times)
0 Members and 1 Guest are viewing this topic.
Andy
Member
**
Posts: 10



« on: July 03, 2009, 12:28:45 AM »

Just spent a few minutes following the portlets guide and created a Twitter Portlet which I thought some of you might be interested in.

What does it do?
It displays the latest updates from your/a Twitter account.
View the image attached for an example.

Settings:
Just set the Twitter account username you want to display the updates from, such as your own or a celebrity/company/friend etc.
Set the amount of updates to show.
And thats it!

How to use:
1. Download the attachment "TwitterPortlet.php"
2. Upload it to: /system/classes/portlets/
3. Go to your Portlets Administration
4. Choose Twitter, set the settings, add and save.
5. View it!

This was made really quick so it can be improved quite alot to add translation support/css/title change etc. but since I'm going on holiday over the next two days I wont have the time till next week so anyone can feel free to update it as they wish - makes my life easier!

Let me know if you have any problems!

* TwitterPortlet.php (1.08 KB - downloaded 128 times.)

* twitterportlet.jpg (59.57 KB, 849x514 - viewed 239 times.)
Logged
Kevin
Global Moderator
BIGACE Guru
*****
Posts: 2601



WWW
« Reply #1 on: July 03, 2009, 01:02:46 AM »

Andy, if you don't stop posting and contributing, you have to join the team Wink

I will give it a try, but I am currently working on another project... so you'll get my feedback later. Do you cache these request or do you rely on Twitter?
Logged

BIGACE needs you. Join the Team! | BIGACE Plugins | Using BIGACE for your business? Like the support? Think about a donation!
Andy
Member
**
Posts: 10



« Reply #2 on: July 06, 2009, 07:09:04 PM »

Andy, if you don't stop posting and contributing, you have to join the team Wink

Damn, I'll stop then!  Tongue

I will give it a try, but I am currently working on another project... so you'll get my feedback later. Do you cache these request or do you rely on Twitter?

What other project are you working on? (You don't really have to tell me) Thanks for any feedback you/anyone can give me but this is probably the simplest bit of code you've ever seen since twitter does all the work.. it was just made as a test for myself in creating a portlet instead of the Hello World example you gave hehe but thought others might find it useful so I decided to share it.
« Last Edit: July 06, 2009, 07:14:19 PM by Andy » Logged
Kevin
Global Moderator
BIGACE Guru
*****
Posts: 2601



WWW
« Reply #3 on: July 11, 2009, 01:21:53 AM »

No please, don't stop!!!
Nice contribution Cheesy

The code is really simple but effective. Now we need one that can search for a hashtag instead of a users updates Wink

What is the shoutbox in the screenshot?
Logged

BIGACE needs you. Join the Team! | BIGACE Plugins | Using BIGACE for your business? Like the support? Think about a donation!
Dragonslayer
Team
CMS Expert
*****
Posts: 336


WWW
« Reply #4 on: November 24, 2009, 09:16:11 AM »

i Just found this nice Portlet...
And now leaving some Feedback Smiley

This is a Great Portlet.. and i wanna use it more than once on a page... but that dont work Sad
i want my http://iXtreme.se page to follow two Twitters (me DragonSlayer_SE and TeamJungle)
it Would be nice if the Portlet "header" was the twitter-username instead of just "twitter"
Logged

Kevin
Global Moderator
BIGACE Guru
*****
Posts: 2601



WWW
« Reply #5 on: November 30, 2009, 02:21:52 PM »

Its possible with the attached version.

Extract twitter.zip. Copy blogger.js to your /addon/ folder and TwitterPortlet.php to system/classes/portlets/

Enjoy Wink

* twitter.zip (1.65 KB - downloaded 85 times.)
Logged

BIGACE needs you. Join the Team! | BIGACE Plugins | Using BIGACE for your business? Like the support? Think about a donation!
Dragonslayer
Team
CMS Expert
*****
Posts: 336


WWW
« Reply #6 on: November 30, 2009, 04:45:13 PM »

something went wrong!
now i dont get any results!
(not even when only one followed)
Logged

Kevin
Global Moderator
BIGACE Guru
*****
Posts: 2601



WWW
« Reply #7 on: November 30, 2009, 05:03:28 PM »

Log Error, Javascript Error? Tested it with 2.7 and 2 accounts, worked fine...
Logged

BIGACE needs you. Join the Team! | BIGACE Plugins | Using BIGACE for your business? Like the support? Think about a donation!
Kevin
Global Moderator
BIGACE Guru
*****
Posts: 2601



WWW
« Reply #8 on: November 30, 2009, 05:10:36 PM »

Okay, checked it on your site, I see the problem but do not know here it comes from.
Everything worked fine here with Blix template... I guess its related to how you load Portlets.
It seems to me as if you load them twice, but thats wrong internally. I check your template source.
Logged

BIGACE needs you. Join the Team! | BIGACE Plugins | Using BIGACE for your business? Like the support? Think about a donation!
Kevin
Global Moderator
BIGACE Guru
*****
Posts: 2601



WWW
« Reply #9 on: November 30, 2009, 05:16:40 PM »

Yep, you initalize the portlets twice in CrystalX, which produces the problem.
First: remove every occurence of
Code:
{portlets assign="CrystalXPortlets"}
and then replace every occurence of
Code:
{include file="CrystalX-Header.tpl"}
with
Code:
{portlets assign="CrystalXPortlets"}{include file="CrystalX-Header.tpl"}
Logged

BIGACE needs you. Join the Team! | BIGACE Plugins | Using BIGACE for your business? Like the support? Think about a donation!
Dragonslayer
Team
CMS Expert
*****
Posts: 336


WWW
« Reply #10 on: November 30, 2009, 08:08:07 PM »

That worked EXELENT Smiley
(i dont have time to update CVS right now)
Logged

Kevin
Global Moderator
BIGACE Guru
*****
Posts: 2601



WWW
« Reply #11 on: November 30, 2009, 08:10:05 PM »

I will add some kind of caching to the portlets tag, so this error cannot be produced any longer.
Logged

BIGACE needs you. Join the Team! | BIGACE Plugins | Using BIGACE for your business? Like the support? Think about a donation!
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF | Simple Machines LLC