Sign In  |  Cart  |  Join Now

Twitter Block

November 24, 2008
As a simple test for trying out the Block functionality, I created a Twitter block.

It shows the user's avatar, username, and the latest x number of tweets in a users stream.

As a first shot, I'm not sure if it is programmed the 'C5' way, so please let me know what improvements I could make.

It works great so far.

Nov 26, 2008 at 7:44 PM
I just installed it and all my tweets came flooding in. Thanks for this block.
 

ah! the other suggestion

Dec 01, 2008 at 2:58 PM
Timestamps should be optional too...

I'm happy to implement some of these if you're not feeling it! :)
 

Twitter Block v.2

Dec 02, 2008 at 9:08 PM
I've updated the code. It is attached.

Updated is the ability to hide the avatar, change the username to an alternate title, hide the timestamp, and hide repsponses. I'm having some difficulty with pulling the saved information back out of the database for the form. Anyone want to help with that?
 

Thank you for the block :)

Dec 03, 2008 at 1:20 AM
Hey I wanted to thank you for the block and all the effort you have put into it :)I haven't installed it since i don't have a twitter account, but anything to advance c5 as a whole in my mind is greatly appreciated :)
 

suggestions

Dec 01, 2008 at 2:24 PM
Hey hey... This twitter block works pretty great. However I have a few suggestions that might spice it up.

1. Make the avatar and username optional via the add/edit interface.

2. Make responses to other twitters hidden or optionally hidden.

I thought I had one more, but I can't think of it.

Good job!
 

Wow Thanks for this

Dec 07, 2008 at 3:09 PM
I've just downloaded the Twitter Block and going to install it shortly. My Site is still under construction but you will be able to check it out at http://rosspublicrelations.com
 

Options Not working

Dec 09, 2008 at 3:22 PM
I've installed and this is a great tool like I stated, but I can't seem to control the number of post that are showing. I have the option set to 3 but I'm showing 5 tweets. Anyone else had that issue?
 

I'm showing about 10

Dec 09, 2008 at 5:13 PM
Showing at least 10, I don't use the service but I figured I would test it.
 

Updated Twitter Plugin

Dec 10, 2008 at 9:54 AM
I have fixed the bugs with the form not working correctly.
The plugin is available on my site at http://www.sollos.net/services/plugins/...
 

Now that's Service

Dec 10, 2008 at 2:14 PM
Wow thanks A really big help. Downloading now and will report back when tested.

Thanks!
 

Stopped Working

Dec 23, 2008 at 10:44 PM
Hey I'm getting a Warning: Invalid argument supplied for foreach() in /homepages/25/d169524231/htdocs/RPR/blocks/twitter/view.php on line 35

This was after the upgrade. Any ideas?
 

Plugin Fix

Jan 27, 2009 at 9:15 AM
For me, this turned out to be a cURL problem. I modified the plugin controller to use PHP stream functions instead and it seems to be working fine for me. The modified controller.php is attached. This should be placed in blocks/twitter/
 

protected tweet?

Feb 13, 2009 at 8:51 PM
check if your twitter is protected. once i unprotected my tweets it worked with gigamyke's fix.

just wondering if a future version might have areas for sharing protected tweets?
 

Suggestions

Apr 04, 2009 at 2:11 AM
I would love to see a div at the bottom with a graphical element to follow the displayed twitter user. Also, I would like to see a more elegant way to edit the display that editing the actual php.

I used it on my site at http://www.clevyr.com/contact and I am quite happy with it!

:)

Namaste!
 

Warning: Invalid Argument

Apr 21, 2009 at 3:09 PM
I receive this message:

Warning: Invalid argument supplied for foreach() in /homepages/29/d290152409/htdocs/blocks/twitter/view.php on line 35

I've tried all 3 versions supplied by damiro and the fix suggested by gigamyke -- and still receive the same warning -- any ideas? Was I supposed to manually edit any of the php files?
 

how do you customize it?

Feb 03, 2009 at 12:39 PM
it's awesome, thanks so much for putting in the time to do it..

i'm looking to replace my username display to something else (my website name was too long for twitter ...)

also for some weird unexplainable reason, the title function does not work for me (everytime i type in a title it doesn't save it or display it)

thanks!!
 

work with 5.3.1.1

Apr 24, 2009 at 2:38 AM
thanks for the block. I've just needed a similar block today and have found this block. It did not work initially so I've made some minor fixes. It's now working with my Concrete 5.3.1.1.

File attached.
 

Enhancement

May 05, 2009 at 5:58 PM
Hi Damiro,

so far I really like the block you've created and it works very nice!

I think it's a hard one, but is it possible to have twittered url's also made available as links through the block? Currently links are not clickable, do you know how to do this?

Hope to hear from ya,
thank you,

Robert
 

maybe this will serve u better :)

May 10, 2009 at 4:38 AM
http://www.concrete5.org/community/forums/block_requests/another_tw...
 

invalid argument

Jul 02, 2009 at 8:16 AM
I've just moved server and now i'm getting this invalid arguement now too...

Had it all working on another build... Anyone still suffering with this or have another fix?
 

Awesome

Jul 04, 2009 at 10:33 AM
Knew it was only a short matter of time before someone put this together. Great job.
 

Some Fixes

Jul 05, 2009 at 9:17 AM
First, thanks for the block. Excellent. It looks much nicer than just adding a Twitter RSS feed.

I've made some changes to it:

1. CSS formatting based on the parent website more than the block itself.
2. Different CSS spacing, layout, etc.
3. Functionality to automatically hyperlink any URL in a tweet (popping the URL in a new window to boot).
4. A handful of small bug fixes

You can see how the slightly changed version looks here: http://www.pavelle.org/index.php/technology/concrete5_twitter_block...

You can also download the code there, or from the attachment here.

Thanks again for writing this!
 

Sorry, it's not working for me.

Jul 19, 2009 at 12:43 PM
Hi,

I have tried every version of this Twitter block on this page but I just can't get it working.

I get a similar error mentioned above - apart from this time it's from controller.php and not view.php:

"Warning: Invalid argument supplied for foreach() in /actual-path-here/blocks/twitter/controller.php on line 61"

I am running Concrete5 v5.3.1.1

Any ideas how I can get this working?
 

not working for me either

Sep 19, 2009 at 4:41 PM
Tried latest versions of twitter block and keep getting this error message

Parse error: syntax error, unexpected $end in C:\Program Files\BitNami WAMPStack\apache2\htdocs\blocks\twitter\view.php on line 46
 

Getting Error on file

Oct 06, 2009 at 3:19 AM
Hi I'm running 5.3.3 I have just tried to add the twitter block above however get the following error
Fatal error cannot use object of type StdClass as array in home/gothinkd/public_html/blocks/twitter/view.php on line 18 anyideas please?
 
 

Hot Spots...

ForumsPartners | Contact | Blog

Search site