[2.0.10] View new topics since last visit

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

Rating:

Excellent!
3
75%
Very Good
1
25%
Good
0
No votes
Fair
0
No votes
Poor
0
No votes
 
Total votes: 4

Extensions Robot
Extensions Robot
Extensions Robot
Posts: 28022
Joined: Sat Aug 16, 2003 7:36 am

[2.0.10] View new topics since last visit

Post by Extensions Robot » Tue Aug 31, 2004 10:34 pm

MOD Name: View new topics since last visit
Author: fredol
MOD Description: Pretty much as last posts since last visit, but only with new topics! ;)

MOD Version: 1.0.2

Download File: View new topics since last visit v1.0.2.mod
mods overview page: View
File Size: 4104 Bytes

Security Score:
Last edited by Extensions Robot on Mon Apr 30, 2007 12:28 am, edited 1 time in total.
(this is a non-active account manager for the phpBB Extension Customisations Team)

wGEric
Former Team Member
Posts: 8805
Joined: Sun Oct 13, 2002 3:01 am
Location: Friday
Name: Eric Faerber
Contact:

Post by wGEric » Sun Sep 05, 2004 11:18 pm

MOD Validated/Released

Notes:
Adds a link that lets you view the new topics since your last visit. It goes along with the link that lets you view the new posts since your last visit.

Manipe
Former Team Member
Posts: 1146
Joined: Thu Jul 22, 2004 6:30 pm
Location: Éire
Contact:

Post by Manipe » Sun Oct 03, 2004 11:25 am

Great MOD.

Well done.
I've put it on my forum at http://forum.manipef1.com.

It works perfectly.
My MODs: [ Topics a user has started ] , [ Profile views ] , [ Colour on poll results ] , [ Topic posters ] , [ Add number to PM ] , [ Default avatar ] , [ View category name ] , [ Null vote ] , [ Forum description in viewforum ] , [ Resync forum ids ] , [ View PM while replying ] , [ Quick poll insert ] , [ Limit login attempts ] , [ Track PMs ]

www.ManipeF1.com

padyn
Registered User
Posts: 3
Joined: Wed Oct 20, 2004 12:24 am

Post by padyn » Wed Oct 20, 2004 12:29 am

Having a bit of trouble in the search.php . I looked at the install instructions but it's a bit confusing to me. Can anyone lend some assistance?

site is www.aao-sawclan.com/forums

Padyn

fredol
Registered User
Posts: 188
Joined: Mon May 31, 2004 7:02 pm
Contact:

Post by fredol » Wed Oct 20, 2004 1:57 am

Hi,
padyn wrote: Having a bit of trouble in the search.php . I looked at the install instructions but it's a bit confusing to me. Can anyone lend some assistance?

If you could describe what problem/error you get that might help ;) What's not working?

PS: for your site, without a test (or demo) account to log in, can't see nothing!

Bye,
fredol

NightriderXP
Registered User
Posts: 1418
Joined: Sat Oct 09, 2004 8:17 am
Location: Florida, US
Contact:

Post by NightriderXP » Wed Oct 20, 2004 7:31 pm

I installed this MOD and it is working great. I have a member who doesn't frequent my board as often as most who uses the "Mark all forums read" function to catch up. He was asking whether that cleared the new topics since last visit count and I couldn't tell him. This doesn't bother me at all, but I could see how it might to someone else...

My question is, does the "New Topics Since Last Visit" count reset when the "Mark all forums read" function is used? If not, would it be difficult to add that functionality to this MOD???


:?:

fredol
Registered User
Posts: 188
Joined: Mon May 31, 2004 7:02 pm
Contact:

Post by fredol » Wed Oct 20, 2004 9:42 pm

Hi,
NightriderXP wrote: My question is, does the "New Topics Since Last Visit" count reset when the "Mark all forums read" function is used?

It kinda does... but it depends on what you want. It will work just like the "New posts since last visit", aka it will still list all the topics since last visit, they're just all gonna be shown as read.

But it searches (as for new posts since LV) for topics made after the user's last visit. If you want it to then report no new topics, that wouldn't be new topics since LV no more.. maybe new unread topics since LV then...

But this should probably be another MOD, turning New posts since LV into New unread posts since LV (then using it for new topics too should be easy..)

Bye,
fredol

padyn
Registered User
Posts: 3
Joined: Wed Oct 20, 2004 12:24 am

Post by padyn » Thu Oct 21, 2004 12:47 am

When I click on any link "view post since last visit" "view topic since last visit" I get a page with a bunch of text.

############################################################## ## MOD Title: View new topics since last visit ## MOD Author: fredol < fredol@lovewithsmg.com > (fredol) http://phpbb.lovewithsmg.com/ ## MOD Description: Pretty much as last posts since last visit, but only with new topics! ;) ## MOD Version: 1.0.2 ## ## Installation Level: Easy ## Installation Time: 1 Minute ## Files To Edit: search.php ## include/page_header.php ## language/lang_english/lang_main.php ## templates/subSilver/index_body.tpl ## Included Files: n/a ############################################################## ## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the ## latest version of this MOD. Downloading this MOD from other sites could cause malicious code ## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered ## in our MOD-Database, located at: http://www.phpbb.com/mods/ ############################################################## ## Author Notes: ## I'm new to phpBB, so I'd like to thanks & send all my ## congratulations to all of you who did an amazing great job!! ## ## this is my first MOD, hope it's usefull to some of you ;) ## ############################################################## ## MOD History: ## ## 2004-09-01 - Version 1.0.2 ## - Some minor changes to the MOD ## ## 2004-07-02 - Version 1.0.1 ## - Some little corrections to the MOD ## ## 2004-06-30 - Version 1.0.0 ## - Submitted to the MOD-DB (no changes were made) ## ## 2004-05-31 - Version 0.0.1 ## - Original version ## ############################################################## ## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD ############################################################## # #-----[ OPEN ]----- # search.php # #-----[ FIND ]----- # #Note: full line is longer if ( $search_id == 'newposts' || $search_id == 'egosearch' # #-----[ IN-LINE FIND ]----- # ) # #-----[ IN-LINE BEFORE, ADD ]----- # || $search_id == 'newtopics' # #-----[ FIND ]----- # if ( $search_id == 'newposts' || $search_id == 'egosearch' # #-----[ IN-LINE FIND ]----- # ( $search_author != # #-----[ IN-LINE BEFORE, ADD ]----- # $search_id == 'newtopics' || # #-----[ FIND ]----- # else if ( $search_id == 'egosearch' ) # #-----[ BEFORE, ADD ]----- # else if ( $search_id == 'newtopics' ) { if ( $userdata['session_logged_in'] ) { $sql = "SELECT p.post_id FROM " . POSTS_TABLE . " p, " . TOPICS_TABLE . " t WHERE p.post_id = t.topic_first_post_id AND t.topic_time >= " . $userdata['user_lastvisit']; } else { redirect(append_sid("login.$phpEx?redirect=search.$phpEx&search_id=newtopics", true)); } $show_results = 'topics'; $sort_by = 0; $sort_dir = 'DESC'; } # #-----[ OPEN ]----- # includes/page_header.php # #-----[ FIND ]----- # 'L_SEARCH_NEW' => $lang['Search_new'], # #-----[ AFTER, ADD ]----- # 'L_SEARCH_NEW_TOPICS' => $lang['Search_new_topics'], # #-----[ FIND ]----- # 'U_SEARCH_NEW' => append_sid('search.'.$phpEx.'?search_id=newposts'), # #-----[ AFTER, ADD ]----- # 'U_SEARCH_NEW_TOPICS' => append_sid('search.'.$phpEx.'?search_id=newtopics'), # #-----[ OPEN ]----- # language/lang_english/lang_main.php # #-----[ FIND ]----- # $lang['Search_new'] = 'View posts since last visit'; # #-----[ AFTER, ADD ]----- # $lang['Search_new_topics'] = 'View topics since last visit'; # #-----[ OPEN ]----- # templates/subSilver/index_body.tpl # #-----[ FIND ]----- # #Note: full line longer {L_SEARCH_NEW_TOPICS}
# #-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ # # EoM


I know I have messed up in the search.php area, just not sure exactly what it is that I modified incorrectly. I have since uploaded the initial search.php without any mods to it.

Padyn

Shof515
Registered User
Posts: 1169
Joined: Wed Mar 19, 2003 4:36 am

Post by Shof515 » Thu Oct 21, 2004 10:43 am

click on the download link,then select all,and paste it in wordpad
Whos missing up my sig?

fredol
Registered User
Posts: 188
Joined: Mon May 31, 2004 7:02 pm
Contact:

Post by fredol » Thu Oct 21, 2004 4:32 pm

padyn wrote: I know I have messed up in the search.php area, just not sure exactly what it is that I modified incorrectly. I have since uploaded the initial search.php without any mods to it.

If you follow the instruction it should work fine, what errors/message did you get? If you want you could try using EasyMOD, it should install it fine 8)

fredol

User avatar
Robert Tetenman
Registered User
Posts: 414
Joined: Mon Apr 26, 2004 6:49 pm
Location: Huntington Station, NY

Post by Robert Tetenman » Mon Jan 24, 2005 10:59 am

The MOD works fine but is there a way to see the number of new topics? I have a mod for Posts that shows me the number of new posts sine last visit and would like this to do the same.

Zanowin
Registered User
Posts: 19
Joined: Tue Feb 22, 2005 3:17 pm

Post by Zanowin » Thu Feb 24, 2005 7:01 pm

I tried to install this mod, it would be perfect for what I am looking for... but I guess the instructions are alil trickier.. it doesn’t work for me :(

is there a set of simpler instructions... maybe with the whole code listed (not matter how long it is?)


~Kat

Zanowin
Registered User
Posts: 19
Joined: Tue Feb 22, 2005 3:17 pm

Post by Zanowin » Fri Feb 25, 2005 1:49 pm

This is the error I am getting (it seems to happen everytime I do this mod :( )

Code: Select all

Warning: Cannot modify header information - headers already sent by (output started at /home/sgisuppo/public_html/phpBB2/language/lang_english/lang_main.php:1028) in /home/sgisuppo/public_html/phpBB2/includes/page_header.php on line 466

Warning: Cannot modify header information - headers already sent by (output started at /home/sgisuppo/public_html/phpBB2/language/lang_english/lang_main.php:1028) in /home/sgisuppo/public_html/phpBB2/includes/page_header.php on line 468

Warning: Cannot modify header information - headers already sent by (output started at /home/sgisuppo/public_html/phpBB2/language/lang_english/lang_main.php:1028) in /home/sgisuppo/public_html/phpBB2/includes/page_header.php on line 469


-----edit------

also this part of the mod:

Code: Select all

#-----[ FIND ]----- 
# 
#Note: full line is longer
	if ( $search_id == 'newposts' || $search_id == 'egosearch'
# 
#-----[ IN-LINE FIND ]----- 
# 
)
# 
#-----[ IN-LINE BEFORE, ADD ]----- 
# 
|| $search_id == 'newtopics'
# 
#-----[ FIND ]----- 
# 
		if ( $search_id == 'newposts' || $search_id == 'egosearch'
# 
#-----[ IN-LINE FIND ]----- 
# 
( $search_author !=
# 
#-----[ IN-LINE BEFORE, ADD ]----- 
# 
$search_id == 'newtopics' ||
for the add-ins do I do that to both lines each? or the first add-in to the first occurance of the [find] and the second add-in to the second occurance of the [find] (which is the same thing)
i r kool irl

fredol
Registered User
Posts: 188
Joined: Mon May 31, 2004 7:02 pm
Contact:

Post by fredol » Fri Feb 25, 2005 7:58 pm

Zanowin wrote: also this part of the mod:

Code: Select all

#-----[ FIND ]----- 
# 
#Note: full line is longer
	if ( $search_id == 'newposts' || $search_id == 'egosearch'
# 
#-----[ IN-LINE FIND ]----- 
# 
)
# 
#-----[ IN-LINE BEFORE, ADD ]----- 
# 
|| $search_id == 'newtopics'
# 
#-----[ FIND ]----- 
# 
		if ( $search_id == 'newposts' || $search_id == 'egosearch'
# 
#-----[ IN-LINE FIND ]----- 
# 
( $search_author !=
# 
#-----[ IN-LINE BEFORE, ADD ]----- 
# 
$search_id == 'newtopics' ||
for the add-ins do I do that to both lines each? or the first add-in to the first occurance of the [find] and the second add-in to the second occurance of the [find] (which is the same thing)

No once you've done a FIND, you can forget about previous line ; so each ADD has to be made only referring to the last FIND made - that how it works for each & every MODs

Kinsman
Registered User
Posts: 207
Joined: Sun Jan 02, 2005 6:04 am
Contact:

Post by Kinsman » Wed Mar 30, 2005 3:46 am

would it be possible to adapt this mod to display the nuber of new topics like this (3) ?

i noticed there is a similar mod for posts! :D

Post Reply

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