[2.0.6] Watched Topics List

The cleanup is complete. This forum is now read only.
Post Reply

Rating:

Excellent!
45
64%
Very Good
13
19%
Good
10
14%
Fair
0
No votes
Poor
2
3%
 
Total votes: 70

AbelaJohnB
Former Team Member
Posts: 5674
Joined: Fri Jul 06, 2001 11:56 pm

[2.0.6] Watched Topics List

Post 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
Last edited by AbelaJohnB on Mon Apr 30, 2007 12:28 am, edited 3 times in total.
AbelaJohnB
Former Team Member
Posts: 5674
Joined: Fri Jul 06, 2001 11:56 pm

Post 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'; 
Drummer4Life05
Registered User
Posts: 545
Joined: Sun Jul 28, 2002 1:52 am
Location: \\phpbb\forum

Post by Drummer4Life05 »

Awesome!
I've been waiting for something like this!
Thanks netclectic!! :-)
User avatar
beggers
Registered User
Posts: 1257
Joined: Fri Nov 23, 2001 8:19 pm
Location: Las Vegas
Contact:

Post by beggers »

Nice job - simple to install and works perfectly! Thank you!

Bryan
davidh44
Registered User
Posts: 386
Joined: Sat Mar 09, 2002 5:56 am

Post 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.
netclectic
Former Team Member
Posts: 4439
Joined: Wed Mar 13, 2002 3:08 pm
Location: Omnipresent
Contact:

Post 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.
Defend the game:
Image
|=A=|SUICIDAL
Registered User
Posts: 5
Joined: Wed May 07, 2003 4:06 pm
Location: NYC
Contact:

Post by |=A=|SUICIDAL »

I installed it, but it doesn't seem to work for me. hmmm.

Going to try again.
User avatar
beggers
Registered User
Posts: 1257
Joined: Fri Nov 23, 2001 8:19 pm
Location: Las Vegas
Contact:

Post 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.
AbelaJohnB
Former Team Member
Posts: 5674
Joined: Fri Jul 06, 2001 11:56 pm

Post by AbelaJohnB »

|=A=|SUICIDAL wrote: Going to try again.



Good idea ;)
Silvertongue
Registered User
Posts: 116
Joined: Tue Aug 20, 2002 4:31 am
Contact:

Post 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
User avatar
beggers
Registered User
Posts: 1257
Joined: Fri Nov 23, 2001 8:19 pm
Location: Las Vegas
Contact:

Post by beggers »

In my humble opinion, I think this mod should be on its own page, not in the Profile.
Silvertongue
Registered User
Posts: 116
Joined: Tue Aug 20, 2002 4:31 am
Contact:

Post 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.
|=A=|SUICIDAL
Registered User
Posts: 5
Joined: Wed May 07, 2003 4:06 pm
Location: NYC
Contact:

Post 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.
Last edited by |=A=|SUICIDAL on Tue May 13, 2003 2:29 am, edited 2 times in total.
|=A=|SUICIDAL
Registered User
Posts: 5
Joined: Wed May 07, 2003 4:06 pm
Location: NYC
Contact:

Post 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?
|=A=|SUICIDAL
Registered User
Posts: 5
Joined: Wed May 07, 2003 4:06 pm
Location: NYC
Contact:

Post 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.
Post Reply

Return to “[2.0.x] MOD Database Cleanup”