Page 1 of 14

[2.0.6] Watched Topics List

Posted: Sat May 10, 2003 10:38 am
by AbelaJohnB
MOD Name: Watched Topics List
Author: netclectic
MOD Description: Adds a watched topics list so users can easily manage the topics they are watching.

MOD Version: 1.1.0 (updated: 08/18/03)


Download File: watched_topics_list_1.1.0.zip
File Size: 6448 Bytes

Posted: Sat May 10, 2003 5:49 pm
by AbelaJohnB
MOD Validated/Released :mrgreen:


[edit=netclectic] i'm taking over ;)


Thanks to HansCz for his Danish translation:

Code: Select all

#
#-----[ OPEN ]------------------------------------------
#
language/lang_danish/lang_main.php

#
#-----[ FIND ]------------------------------------------
#
?>

#
#-----[ BEFORE, ADD ]-----------------------------------
#
$lang['Watched_Topics'] = 'Overvågede Emner';
$lang['No_Watched_Topics'] = 'Du overvåger ingen emner';
$lang['Watched_Topics_Started'] = 'Emnet Påbegyndtes';
$lang['Watched_Topics_Stop'] = 'Stop Overvågning';
$lang['Check_All'] = 'Markér Alt';
$lang['UnCheck_All'] = 'Afmarkér Alt'; 

Posted: Sat May 10, 2003 6:05 pm
by Drummer4Life05
Awesome!
I've been waiting for something like this!
Thanks netclectic!! :-)

Posted: Sun May 11, 2003 5:15 am
by beggers
Nice job - simple to install and works perfectly! Thank you!

Bryan

Posted: Sun May 11, 2003 9:27 am
by davidh44
Cool mod! 8) Is there a way to disable topic watch e-mail notifications after installing this mod? Some people have a long list of topics they want to watch on a busy forum, but don't want to get an e-mail every single time a reply is made to one of those topics.

Posted: Sun May 11, 2003 8:39 pm
by netclectic
That's kind of the whole point of it :?

Unless you mean temporarily disable notification while keeping it in the list? It doesn't do that, you'd have to re-subscribe to the topic from the viewtopic page.

Posted: Mon May 12, 2003 4:45 am
by |=A=|SUICIDAL
I installed it, but it doesn't seem to work for me. hmmm.

Going to try again.

Posted: Mon May 12, 2003 5:26 am
by beggers
|=A=|SUICIDAL wrote: I installed it, but it doesn't seem to work for me. hmmm.

Going to try again.


Maybe you made the same mistake I did. When I first installed the mod I checked my Profile page and didn't see anything. I figured I screwed up the installation, but it turns out you don't see anything unless you have at least one watched topic.

Posted: Mon May 12, 2003 5:27 am
by AbelaJohnB
|=A=|SUICIDAL wrote: Going to try again.



Good idea ;)

Posted: Mon May 12, 2003 7:08 pm
by Silvertongue
This is an excellent mod! I had a couple of users complain that they couldn't see the Watched Topics list. So, I added a bit of extra functionality, to let everyone see if they were or weren't watching topics, just in case they forgot. ;)

Code: Select all

# 
#-----[ OPEN ]------------------------------------------ 
# 
mods/netclectic/watched_topics_list/watched_topics_list.php

# 
#-----[ FIND ]------------------------------------------ 
# 
        }

    	$template->assign_var_from_handle('WATCHED_TOPICS_OUTPUT', 'watched_topics_body');
    }

# 
#-----[ AFTER, ADD ]------------------------------------
# 
    else
    {
		global $theme;
		
		$template->set_filenames(array(
		    'watched_topics_body' => 'watched_topics_body.tpl')
		);

		$template->assign_vars(array(
			'L_WATCHED_TOPICS' => $lang['Watched_Topics'],
			'L_NO_WATCHED_TOPICS' => $lang['No_Watched_Topics'],
			'L_NO_WATCHED_TOPICS_CUSTOM' => $lang['No_Watched_Topics_Custom']
			)
		);
	
		$template->assign_block_vars('switch_no_watched_topics_block', array());
		$template->assign_var_from_handle('WATCHED_TOPICS_OUTPUT', 'watched_topics_body');
	}

# 
#-----[ OPEN ]------------------------------------------ 
# 
language/lang_english/lang_main.php

# 
#-----[ FIND ]------------------------------------------ 
# 
$lang['Watched_Topics'] = 'Watched Topics';
$lang['Watched_Topics_Started'] = 'Topic Started';

# 
#-----[ AFTER, ADD ]------------------------------------
#
$lang['Watched_Topics_Custom'] = 'Watched Topics Information';
$lang['No_Watched_Topics_Custom'] = 'Watched Topics Information:';
$lang['No_Watched_Topics'] = 'You are not watching any topics.';

# 
#-----[ OPEN ]------------------------------------------ 
# 
templates/subSilver/watched_topics_body.tpl

# 
#-----[ FIND ]------------------------------------------ 
# 
</form>
<!-- END switch_watched_topics_block -->

# 
#-----[ AFTER, ADD ]-----------------------------------
# 
<!-- BEGIN switch_no_watched_topics_block -->
<tr>
	<td width="50%" class="{topic_watch_row.ROW_CLASS}" align="left"><span class="gentbl">{L_NO_WATCHED_TOPICS_CUSTOM}</span></td>
	<td width="50%" colspan="5" class="{topic_watch_row.ROW_CLASS}" align="center"><span class="gentblmed">{L_NO_WATCHED_TOPICS}</span></td>
</tr>
<!-- END switch_no_watched_topics_block -->

# 
#-----[ SAVE/CLOSE ALL FILES ]--------------------------
# 
# EoM

Posted: Mon May 12, 2003 7:40 pm
by beggers
In my humble opinion, I think this mod should be on its own page, not in the Profile.

Posted: Mon May 12, 2003 7:44 pm
by Silvertongue
That could be easily done as well. I think it's more up to the individual webmaster on where they want it. Netclectic has it at the bottom of the profile page, but I moved mine up to the top. So really, it wouldn't be hard to move it out to it's own page at all.

Posted: Tue May 13, 2003 12:43 am
by |=A=|SUICIDAL
I appreciate your helping me. I tried to set it up a second time and it still didn't get it to work. But then I read your last reply, I think I'm going to give it another try.

I'm a tiny bit confused about what "watched topics" means. Does it mean that if you click on a users profile link, that you'll be brought to their profile page, and at the bottom you would see a new list of what topics they have viewed and what topics they are currently viewing? Does it find which thread user is in? Whatever it does, I'm sure it would be a cool addition to the forum.

Posted: Tue May 13, 2003 2:15 am
by |=A=|SUICIDAL
Tried to again but nothing worked.

This is what I did. I downloaded the zip file, I unzipped it to my desktop keeping the file structure. I am trying to add this to my own template, not subSilver, so I applied all the changes to my own template. First, I grabbed the
usercp_register.php file from my includes folder,
the profile_add_body.tpl from "MyCustomTemplate" folder(not subSilver), and lang_main.php file from my language folder.

I applied the first change to the usercp_register.php file
the second change to my profile_add_body.tpl
and the third cahnge to the lang_main.php

Then I uploaded all three of these files to the same folders they came from. Then I uploaded the mod folder and stuck it in the phpBB2 folder.

Then I wnet into my forum, I went into a post, and where a users message was, I clicked on their profile button to view their profile page, but everything seems just the same, as if no mod was installed at all. So I tried to install it from scratch again. Still nothing. Then I applied the extra directions found in this thread, but still nothing. I'm still sorta new to this stuff, but I did manage to succefully add the flash mod and the mod that shows ranks on the profile page. Those directions were tougher.

The only thing I felt unsure about, was the when the directions say:

#
#-----[ OPEN ]------------------------------------------
#
includes/usercp_register.php

Code: Select all

# 
#-----[ FIND ]------------------------------------------ 
# 
$template->assign_block_vars('switch_edit_profile', array());

# 
#-----[ AFTER, ADD ]------------------------------------
# 
include_once( $phpbb_root_path . "mods/netclectic/watched_topics_list/watched_topics_list.$phpEx" );
Did I add it properly? I made the change to look like this...

Code: Select all

{
$template->assign_block_vars('switch_edit_profile', array());
include_once( $phpbb_root_path . "mods/netclectic/watched_topics_list/watched_topics_list.$phpEx" );
}
is this correct?
Does "add after" mean "add it right below it" ?
Is it possible that my custom template doesn't want to let the mod work?
Or will this mod work with any template I have installed?

Posted: Tue May 13, 2003 2:52 am
by |=A=|SUICIDAL
I'm so sorry guys. I accidentally just found the "watch topic" button on the bottom of my forum when I was browsing around. It was hard to spot and I never originally looked there for it. When I clicked it, It started to watch the topoc, and Like the dummy I am, instead of clicking the "profile" button on top of the page, I was clicking the "profile" button that was in each users message box of there replys. I thought it was going to show me a list for the other users. lol. Ok so I found it in my own profile edit page, it looks nice. I can definitely use this, it will come in handy. Thanks for all your help. Sorry I didn't spot it sooner. lol.

Just rated the mod excellent. nice work.