Here is what I have modified with profile twitter plugin:
1. On plugin activation, in member_profile template I have added {$twitter_widget}
find_replace_templatesets('member_profile','#{\$memprofile\[\'msn\'\]\}</a></td>#',
'{$memprofile[\'msn\']}</a></td>
</tr>
<tr>
<td class="trow2"><strong>Twitter:</strong></td>
<td class="trow2">{$twitter_widget}</td>
</tr>');
2. On member_profile_start hook I set {$twitter_widget} with twitter api script (to show user twitter profile).
$plugins->add_hook("member_profile_start", "profiletwitter_check");
function profiletwitter_check(){
global $mybb, $db, $twitter_widget;
$query = $db->query('SELECT twitter FROM ' . TABLE_PREFIX . 'users WHERE uid='.$mybb->input['uid']);
$row = $db->fetch_array($query);
if(!empty($row['twitter'])){
$twitter_widget = "<script charset=\"utf-8\" src=\"http://widgets.twimg.com/j/2/widget.js\"></script>
<script>
new TWTR.Widget({
version: 2,
type: 'profile',
rpp: 4,
interval: 30000,
width: 320,
height: 150,
theme: {
shell: {
background: '#696b8a',
color: '#ffffff'
},
tweets: {
background: '#ffffff',
color: '#474247',
links: '#2207eb'
}
},
features: {
scrollbar: false,
loop: false,
live: false,
behavior: 'all'
}
}).render().setUser('".$row['twitter']."').start();</script>";
}
else{
$twitter_widget = "N/A";
}
See twitter.png for the final results. Hope this will be helpful for you