Can anyone tell me how I could go about adding a link below every story, so that a user can easily click a "bookmark this story" link on every item?

I really need the functionality of this module, however the block is unusable as on a busy news site where many items are bookmarked by users, the block would grow a mile long and only add to clutter.

Any advice would be greatly appriciated. This one little thing is preventing the launch of my site. :)

Thanks

slidenby@gmail.com

Comments

slidenby@techtainment.net’s picture

Alternatively, a solution for me would also be to understand what code to remove from the block so that a users bookmark list is not displayed there, only the links to add and manage.

I have attempted to remove the code for this - however I am very new to PHP and every attempt as resulted in an error.

Many thanks in advance to anyone who can suggest a solution.

ixis.dylan’s picture

Sorry for the late reply, but I've only just got around to playing with this module.

Here's a simple hook for this module, if anybody is still maintaining it.

/**
 * Implementation of hook_link().
 */
function bookmarks_link($type, $node = 0, $main = 0) {
global $user;
  $links = array();

  if ($type == 'node' && (!$main)) {

    if (user_access('access bookmarks')) {
     $links = l(t('bookmark this node'), "bookmarks/$user->uid/add/quick", array('title' => t('Bookmark the current page.')), 'title='. urlencode(drupal_get_title()));
    }
  }

  return $links;
}
Steve Simms’s picture

Category: support » feature
Priority: Critical » Normal

I just took over maintaining this module.

Should the display of that link be configurable?

Also, can this be integrated with the ajax support request (issue #32499)? I don't think that would be hard to add.

Cromicon’s picture

Hi, Where does that code fit in the module?

Steve Simms’s picture

I haven't tested the code, but just looking at it, you should be able to just drop it in at the end of the file (before the closing "?>"), and it should work.

Cromicon’s picture

Thanks. I'm testing it at the minute and it seems to work great so far.

Cromicon’s picture

array_merge() [function.array-merge]: Argument #1 is not an array in /home/walkerst/public_html/includes/menu.inc on line 351.
That was reported in watchdog after adding a bookmark...

Anonymous’s picture

Assigned: slidenby@techtainment.net » Unassigned
Status: Active » Closed (fixed)

Issue is more than a year old. Please resubmit if you still want this feature and I'll consider it.