saltedm8
08-12-2009, 10:00 PM
This is based off of this http://www.axllent.org/projects/mytwit
it basically calls your twitter feed
to install
upload the attached file to your sites server
Create a new plugin and use these details
Hook Location = global_start
Title = twitter call
execution order = 5
Plugin PHP Code =
ob_start();
include(DIR . '/twittercall.php');
$twitter = new myTwit();
$twitter->user = 'your twitter name';
$twitter->cacheFile = 'twitcache.txt';
$twitter->postLimit = 5;
$twitter->initMyTwit();
print $twitter->myTwitData;
$latest_twit = ob_get_contents();
ob_end_clean(); where it says your twitter name in the bit of code above, you need to place in the name you use, for example, ours is webprocafe
then place this in your css
/* ***** twitter sidebar ***** */
ul.twitbox {
list-style: none;
margin: 0;
padding: 0;
}
ul.twitbox li{
border-bottom:1px dashed #D2DADA;
padding: 10px;
font-size: 14px;
font-family: 'Lucida Grande',sans-serif;
color: #333333;
}
ul.twitbox li.mytwitHead {
height: 60px;
}
ul.twitbox li.mytwitHead a {
font-size: 22px;
font-weight: bold;
}
ul.twitbox li.mytwitHead img{
float: left;
padding-right: 10px;
}
ul.twitbox li a {
color: #0084B4;
text-decoration: none;
}
ul.twitbox li a:hover { text-decoration: underline; }
ul.twitbox span.twhen {
color: #999999;
font-family: georgia;
font-size: 10px;
font-style: italic;
padding-top: 5px;
}
that can be adjusted to however you like
then all you have to do is place
$latest_twit
wherever you want this displayed on the homepage by editing the forumhome template ( sorry, I cant give a specific place yet )
and you should be done
for a demo, please go here http://webprocafe.com/
Anyone who requires help, must have this marked as installed
thank you
there is no need to update if you are having no issues once installed
update: added $twitter->cacheFile = 'twitcache.txt'; to make sure it points to the cashe.. a couple of people had issues.. please make sure twittercall.php is set to chmod 777.
it basically calls your twitter feed
to install
upload the attached file to your sites server
Create a new plugin and use these details
Hook Location = global_start
Title = twitter call
execution order = 5
Plugin PHP Code =
ob_start();
include(DIR . '/twittercall.php');
$twitter = new myTwit();
$twitter->user = 'your twitter name';
$twitter->cacheFile = 'twitcache.txt';
$twitter->postLimit = 5;
$twitter->initMyTwit();
print $twitter->myTwitData;
$latest_twit = ob_get_contents();
ob_end_clean(); where it says your twitter name in the bit of code above, you need to place in the name you use, for example, ours is webprocafe
then place this in your css
/* ***** twitter sidebar ***** */
ul.twitbox {
list-style: none;
margin: 0;
padding: 0;
}
ul.twitbox li{
border-bottom:1px dashed #D2DADA;
padding: 10px;
font-size: 14px;
font-family: 'Lucida Grande',sans-serif;
color: #333333;
}
ul.twitbox li.mytwitHead {
height: 60px;
}
ul.twitbox li.mytwitHead a {
font-size: 22px;
font-weight: bold;
}
ul.twitbox li.mytwitHead img{
float: left;
padding-right: 10px;
}
ul.twitbox li a {
color: #0084B4;
text-decoration: none;
}
ul.twitbox li a:hover { text-decoration: underline; }
ul.twitbox span.twhen {
color: #999999;
font-family: georgia;
font-size: 10px;
font-style: italic;
padding-top: 5px;
}
that can be adjusted to however you like
then all you have to do is place
$latest_twit
wherever you want this displayed on the homepage by editing the forumhome template ( sorry, I cant give a specific place yet )
and you should be done
for a demo, please go here http://webprocafe.com/
Anyone who requires help, must have this marked as installed
thank you
there is no need to update if you are having no issues once installed
update: added $twitter->cacheFile = 'twitcache.txt'; to make sure it points to the cashe.. a couple of people had issues.. please make sure twittercall.php is set to chmod 777.