This module does exactly what I need, but some things I would like to customize to my needs.

1. I would like to place "watch this post" toggle link wherever I want in my node.tpl.php file
2. The way list of watched posts is sorted doesn't make sense to me (default - "Post Added"), I think it should be sorted as default by "Last Updated" column, it's more intuitive. I actually don't want to display "Post Added", so for me it's a must
3. Text link "You are watching this post, click to stop watching" is to wordy, I need only clickable custom icon, but obviously some will prefer to have icon+text or maybe only text link

I decided to make a patch against 6.x-1.3 version (I can make it for dev if needed) that will for now:

1. add option on watcher config page "I will place "watch this post" toggle link in template file myself."
2. sort watched posts by "Last Updated" by default and add option to hide "Post Added" column

I will try to find good solution for number 3 ass well ;)

I also think that it would be good to use only one image with all icons known as CSS Sprite Technique to decrease number of requests and make website load faster.
I'm happy to make necessary changes :)

Tell me guys what do you think? @solipsist is there any chance to include it?

CommentFileSizeAuthor
#1 watcher_addons_1.patch3.49 KBPlazmus

Comments

Plazmus’s picture

StatusFileSize
new3.49 KB
rahim123’s picture

Hi there, could you possibly give me some simple instructions to place the Watcher link at the bottom of the page on advanced_forum near the post editor?

Thanks a lot!

logik’s picture

sb56637: I don't think it's the prettiest way, but I generated the watcher link in my template like this:

 $tstrings = array();
 $tstrings['watch_toggle_enabled'] = t('You are watching this post, click to stop watching');
 $tstrings['watch_toggle_enabled_title'] = t('This post is being watched. You can track and change email notification setting for this post in your watched posts list (see your user profile)');
 $tstrings['watch_toggle_disabled'] = t('You are not watching this post, click to start watching');
 $tstrings['watch_toggle_disabled_title'] = t('Watch posts to be notified when other users comment on them or the posts are changed');
 // Build link to the user's list of watched posts
 $tstrings['watch_watched_posts_link'] = l(t('Go to your list of watched posts'), 'user/'. $user->uid .'/watcher', array('attributes' => array('class' => 'watcher_node_help_link_to_binder')));
  
 $watcherlink = theme('watcher_node_toggle_watching_link', $user->uid, $node->nid, drupal_get_destination(), _watcher_user_is_watching_node($user, $node->nid), $tstrings);
Plazmus’s picture

Code needed to display link (it is in patch if you look closely):
global $watcherlink; print $watcherlink;

Donaldd’s picture

Hi,

Can I also use this patch to place the watch-link in panels?
I really need this module but I'm not able to display the link within panels and I already tried almost everything.

Any suggestions for this noob? :p

Many thanks,
D

edmonkey’s picture

Very useful patch. +1

If the strings should be editable via module settings that would be great

Toxid’s picture

I have overridden watcher strings with the string override module.