List watched Topics

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in here. No new MODs will be accepted into the MOD Database for phpBB2
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
Extensions Robot
Extensions Robot
Extensions Robot
Posts: 27121
Joined: Sat Aug 16, 2003 7:36 am

List watched Topics

Post by Extensions Robot » Tue Jul 17, 2007 7:27 pm

Modification name: List watched Topics
Author: eviL<3
Modification description: This MOD will allow you to easily see all topics you are watching. It uses search.php for this.
Modification version: 1.0.0
Tested on phpBB version: 2.0.22

Download file: list_watched_topics_1_0_0e.zip
File size: 21539 Bytes

Modification overview page: View


Selected tags:
  1. category
    1. Add-Ons
  2. phpbb
    1. 2.0.22
Support for this modification needs to be asked within this topic. The phpBB Team is not responsible or required to give anyone support for this modification. By installing this MOD, you acknowledge that the phpBB Support Team or phpBB MODifications Team may not be able to provide support.

This MOD has only been tested by the phpBB MOD Team with the phpBB version listed in the topic. It may not work in any other versions of phpBB.
(this is a non-active account manager for the phpBB Extensions Team)

User avatar
Paul
Extension Customisations
Extension Customisations
Posts: 23214
Joined: Sat Dec 04, 2004 3:44 pm
Location: The netherlands.
Name: Paul Sohier
Contact:

List watched Topics

Post by Paul » Tue Jul 17, 2007 7:27 pm

Modification validated/released

Notes:
Knock knock
Race condition
Who's there?

My BlogMy Photosmy phpBB Extensionscustom phpBB work & Development

User avatar
igorw
Former Team Member
Posts: 8025
Joined: Fri Dec 16, 2005 12:23 pm
Location: {postrow.POSTER_FROM}
Name: Igor Wiedler

Re: List watched Topics

Post by igorw » Tue Jul 17, 2007 7:38 pm

Thanks! Reserving post... :ugeek:

Demo:
Index:
Image

List watched topics:
Image
Igor Wiedler | area51 | GitHub | trashbin | Formerly known as evil less than three

User avatar
DizzyDazzle
Registered User
Posts: 39
Joined: Sun Oct 08, 2006 11:50 pm

Re: List watched Topics

Post by DizzyDazzle » Sat Jul 28, 2007 12:56 pm

hi Evil <3, i installed this MOD today (manually) and im now getting a parse error on search.php. i've gone over the code hundreds of times and just can't figure what i did wrong! here is the parse error:

Parse error: parse error, unexpected T_ELSEIF in /home/www/.../forum/search.php on line 251

line 251 is right where the MOD starts, here the code of my search.php around them lines:

Code: Select all

				}
				else
				{
					redirect(append_sid("login.$phpEx?redirect=search.$phpEx&search_id=newposts", true));
				}

				$show_results = 'topics';
				$sort_by = 0;
				$sort_dir = 'DESC';
			}
			else if ( $search_id == 'egosearch' )
			{
				if ( $userdata['session_logged_in'] )
				{
					$sql = "SELECT post_id 
						FROM " . POSTS_TABLE . " 
						WHERE poster_id = " . $userdata['user_id'];
				}
				else
				{
					redirect(append_sid("login.$phpEx?redirect=search.$phpEx&search_id=egosearch", true));
				}

				$show_results = 'topics';
				$sort_by = 0;
				$sort_dir = 'DESC';
//-- mod : List watched Topics ------------------------------------------------------------
//-- add
			elseif ( $watched )                      <--------------- line 251
			{
				if ( $userdata['session_logged_in'] )
				{
					$sql = 'SELECT t.topic_first_post_id as post_id 
						FROM ' . TOPICS_TABLE . ' t, ' . TOPICS_WATCH_TABLE . ' tw
						WHERE t.topic_id = tw.topic_id
						AND tw.user_id = ' . $userdata['user_id'];
				}
				else
				{
					redirect(append_sid("login.$phpEx?redirect=search.$phpEx&search_id=watched", true));
				}

				$show_results = 'topics';
				$sort_by = 0;
				$sort_dir = 'DESC';
			}
//-- fin mod : List watched Topics --------------------------------------------------------
have i put the code in the wrong place or something? thanks if you can help as i really badly want this MOD! :D

User avatar
igorw
Former Team Member
Posts: 8025
Joined: Fri Dec 16, 2005 12:23 pm
Location: {postrow.POSTER_FROM}
Name: Igor Wiedler

Re: List watched Topics

Post by igorw » Sat Jul 28, 2007 1:08 pm

You have to add it after the }:

Code: Select all

#
#-----[ FIND ]------------------------------------------
#
				$sort_by = 0;
				$sort_dir = 'DESC';
			}
;)
Igor Wiedler | area51 | GitHub | trashbin | Formerly known as evil less than three

User avatar
DizzyDazzle
Registered User
Posts: 39
Joined: Sun Oct 08, 2006 11:50 pm

Re: List watched Topics

Post by DizzyDazzle » Sat Jul 28, 2007 1:13 pm

ok thanks for quick response! didnt see that bracket there lol :oops:

-EDIT-

works perfectly now, just a quick thanks for yet ANOTHER great MOD!! this is soooooo usefull! nice one evil<3 you get my thumbs up! :D

User avatar
igorw
Former Team Member
Posts: 8025
Joined: Fri Dec 16, 2005 12:23 pm
Location: {postrow.POSTER_FROM}
Name: Igor Wiedler

Re: List watched Topics

Post by igorw » Sat Jul 28, 2007 2:05 pm

:)
Igor Wiedler | area51 | GitHub | trashbin | Formerly known as evil less than three

EsadhaKephal
Registered User
Posts: 1
Joined: Wed Jun 27, 2007 3:34 pm

Re: List watched Topics

Post by EsadhaKephal » Fri Aug 03, 2007 4:08 pm

Great MOD! I still need to tweak MyQuickReply to set "Watch this topic" to true by default, but that's another story :roll:

Just wanted to note for future MODders, this block of code

Code: Select all

#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/index_body.tpl
#
#-----[ FIND ]------------------------------------------
#
		<a href="{U_SEARCH_NEW}"
#
#-----[ AFTER, ADD ]------------------------------------------
#
		<a href="{U_SEARCH_WATCHED}" class="gensmall">{L_SEARCH_WATCHED}</a><br />
appears in at least one template I have in overall_header.tpl instead of index_body.tpl :) No biggie, just took me a minute to realize where the code was. :D

User avatar
Sultani
Registered User
Posts: 125
Joined: Wed Dec 13, 2006 8:42 pm
Location: California, Orange County
Contact:

Re: List watched Topics

Post by Sultani » Tue Oct 02, 2007 8:52 pm

Hi, i already try to install this mod 2 times, and i cant make it work.

This is the worst instructions i haver seen.

Is this right ?

Code: Select all

#
#-----[ FIND ]------------------------------------------
#
					message_die(GENERAL_MESSAGE, $lang['No_search_match']);
#
#-----[ FIND ]------------------------------------------
#
			message_die(GENERAL_MESSAGE, $lang['No_search_match']);
#
#-----[ BEFORE, ADD ]------------------------------------------
#
//-- mod : List watched Topics ------------------------------------------------------------
//-- add
			$msg = ( !$watched ) ? $lang['No_search_match'] : $lang['No_watched_topics'];
//-- fin mod : List watched Topics --------------------------------------------------------
#
#-----[ IN-LINE FIND ]------------------------------------------
#
$lang['No_search_match']
#
#-----[ IN-LINE REPLACE WITH ]------------------------------------------
#
$msg

And this, what is the final result?

Code: Select all

#
#-----[ FIND ]------------------------------------------
#
$page_title = $lang['Search'];
#
#-----[ IN-LINE FIND ]------------------------------------------
#
$lang['Search']
#
#-----[ IN-LINE BEFORE, ADD ]------------------------------------------
#
 ( !$watched ) ? 
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
 : $lang['Search_watched_topics']
I think there is something kinda wierd with that code, at then end i get this error:

Parse error: syntax error, unexpected ':' in /home/desinibi/public_html/forum/search.php on line 864

Any ideas?
Thanks
Scraablee - Free Flash Games!

Sorry for my bad english ( Im american ) :D

User avatar
igorw
Former Team Member
Posts: 8025
Joined: Fri Dec 16, 2005 12:23 pm
Location: {postrow.POSTER_FROM}
Name: Igor Wiedler

Re: List watched Topics

Post by igorw » Wed Oct 03, 2007 8:12 am

Thanks :)

First, find:

Code: Select all

               message_die(GENERAL_MESSAGE, $lang['No_search_match']);
Then find this (which is basicly the same with less spaces):

Code: Select all

         message_die(GENERAL_MESSAGE, $lang['No_search_match']);
Before it, add:

Code: Select all

//-- mod : List watched Topics ------------------------------------------------------------
//-- add
         $msg = ( !$watched ) ? $lang['No_search_match'] : $lang['No_watched_topics'];
//-- fin mod : List watched Topics --------------------------------------------------------
Then replace $lang['No_search_match'] from the second find with $msg.

As for the second, it results in:

Code: Select all

$page_title =  ( !$watched ) ? $lang['Search'] : $lang['Search_watched_topics'];
Hope that helps...

Edit: I do agree it's a bit complicated ;)
Igor Wiedler | area51 | GitHub | trashbin | Formerly known as evil less than three

User avatar
Sultani
Registered User
Posts: 125
Joined: Wed Dec 13, 2006 8:42 pm
Location: California, Orange County
Contact:

Re: List watched Topics

Post by Sultani » Wed Oct 03, 2007 11:45 am

Thanks evil, now i have this working cheers :)

Im a litlle bit lame too :oops:

Thanks again for your time, all the best. :D
Scraablee - Free Flash Games!

Sorry for my bad english ( Im american ) :D

User avatar
Sultani
Registered User
Posts: 125
Joined: Wed Dec 13, 2006 8:42 pm
Location: California, Orange County
Contact:

Re: List watched Topics

Post by Sultani » Wed Oct 03, 2007 11:53 am

Opps i found a tiny issue, with the Mak and Unmark All function. on the watched topics template, this function dont work in firefox, but it work well on msie!

Is there any fix for this , or its just me who have this problem?
Scraablee - Free Flash Games!

Sorry for my bad english ( Im american ) :D

ebnx
Registered User
Posts: 20
Joined: Tue Feb 28, 2006 1:04 am

Re: List watched Topics

Post by ebnx » Thu Oct 18, 2007 2:57 am

Hi Evil:

Will this mod work for phpbb 2.0.19? I've tried to install it using easymod, but i get the following error:
Critical Error

FIND FAILED: In file [search.php] could not find:

if (intval($row['last_search_time']) > 0 && ($current_time - intval($row['last_search_time'])) < intval($board_config['search_flood_interval']))
Any thoughts on what might be going on? Thanks for your help, and thanks for developing this great mod!

User avatar
igorw
Former Team Member
Posts: 8025
Joined: Fri Dec 16, 2005 12:23 pm
Location: {postrow.POSTER_FROM}
Name: Igor Wiedler

Re: List watched Topics

Post by igorw » Thu Oct 18, 2007 8:40 am

You should upgrade to phpBB 2.0.22. New versions are released for a reason: security. Outdated boards are vurnable ;)
Igor Wiedler | area51 | GitHub | trashbin | Formerly known as evil less than three

ebnx
Registered User
Posts: 20
Joined: Tue Feb 28, 2006 1:04 am

Re: List watched Topics

Post by ebnx » Thu Oct 18, 2007 10:13 pm

Yeah I'd sure like to upgrade, but unfortunately there are so many mods now running on my site that upgrading would be extremely costly...

Post Reply

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

Who is online

Users browsing this forum: No registered users and 1 guest

cron