I think that the easiest way would be to add a field to the user's profile where they could insert their twitter username. Then, you could open bookmarking_post.php and insert a code that displays a link if the user has set their twitter name in their profile.
I would do it like this:
In plugins -> users -> templates -> users_edit_profile.php, right above where it says "add your own profile [something] stuff here:
PHP Code:
$profile['twitter'] = $h->cage->post->testAlnumLines('twitter');
Then, a little further down that page, right after this:
PHP Code:
<textarea rows=5 name='bio'><?php echo $profile['bio']; ?></textarea>
Insert this:
HTML Code:
<tr><td>Twitter Username: </td><td><input type="text" name="twitter" value="<?php echo $profile['twitter']; ?>"><br />Display a link to your Twitter account on your posts</td></tr>
Then open bookmarking_post.php in plugins->bookmarking->templates-> bookmarking_post.php, and just after this:
PHP Code:
<?php echo ($h->post->content) ?>
You could do something like this:
PHP Code:
<?php
$profile = $h->getProfileSettingsData('user_profile', $h->post->author);
if (isset($h->vars['twitter']) && !empty($profile['twitter'])) {
$h->vars['twitter'] = $profile['twitter'];
?>
<a href="http://twitter.com/#/<?php echo $h->vars['twitter']; ?>/">Follow Me on Twitter</a> <?php } ?>
I haven't tested that yet, but I think it will work.
Bookmarks