Previous Thread
Next Thread
Print Thread
Rating: 5
Joined: Dec 2000
Posts: 1,471
Addict
Addict
Offline
Joined: Dec 2000
Posts: 1,471
Mod Name / Version: Mark all read for single forum 1.0.1

Description: Mark all posts in a single forum as read.

Working Under: UBB.Threads 6.2-6.3

Mod Status: Finished

Any pre-requisites: none

Author(s): Astaran

Date: 08/08/03

Credits: JustDave, who created the first MarkAllRead hack

Files Altered: ubbthreads.php,markallread.php, domarkallread.php,templates/ubbthreads.tmpl, templates/markallread.tmpl

New Files: none

Database Altered: no

Info/Instructions: HISTORY:
2003-08-08 Astaran - 1.0.1 Bugfix: changed replace pattern for cookie string
2003-03-20 Astaran - 1.0.0 Release of the hack

Disclaimer: Please backup every file that you intend to modify.
If the modification modifies the database, it's a good idea to backup your database before doing so.

Note: If you modify your UBB.Threads code, you may be giving up your right for "official" support from Infopop.If you need official support, you'll need to restore unmodified files.


Attachments
91211-marksingleforum_1_0_1.txt (0 Bytes, 111 downloads)

Sponsored Links
Joined: Dec 2000
Posts: 1,471
Addict
Addict
Offline
Joined: Dec 2000
Posts: 1,471
Screenshot where you have to click to mark a forum as read
Attachments
91213-screen.jpg (0 Bytes, 52 downloads)

Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
Nice mod tahnsk.


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Joined: Aug 2000
Posts: 1,609
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,609
Yeah. Tahnsk a lot Astaran!

Joined: Aug 2000
Posts: 1,609
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,609
That posts up there ^ put me at 911 posts....so I just had to post this to change that.

Sponsored Links
Joined: Dec 2000
Posts: 1,471
Addict
Addict
Offline
Joined: Dec 2000
Posts: 1,471
This mod should also work with 6.3.x.
If anyone is interested in that hack, I'll update the instructions.

Joined: Jun 2003
Posts: 131
Journeyman
Journeyman
Offline
Joined: Jun 2003
Posts: 131
DL Web...Looks to me like your number of posts is 1042!!! Why is that? Tony (love that graemlin)

Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
It works fine for 6.3 Astaran

Joined: Jan 2002
Posts: 266
Kel Offline
Member
Member
Offline
Joined: Jan 2002
Posts: 266
Does this work for 6.4? Anyone try it yet? My members are screaming for this!!

Joined: Dec 2000
Posts: 1,471
Addict
Addict
Offline
Joined: Dec 2000
Posts: 1,471
It should work with 6.4, but I haven't testet yet.
You might want to replace the call of the "setcookie" function with "ubbt_setcookie" if you use domain wide cookies on your board.

Sponsored Links
Joined: Jan 2002
Posts: 266
Kel Offline
Member
Member
Offline
Joined: Jan 2002
Posts: 266
I wonder if I did something wrong with this.

Everything went fine. I can click on the forum icon and it "clears" all of the unread threads in that forum. GOOD!!

But if I have visited that forum and read only one thread in it, I CAN'T go out of the forum and click on the forum icon to mark all of the unread ones as read. The icon is NOT clickable until there is a new unread post made. Kind of defeats the purpose, I think. I read the threads that I want to read and "clear" the rest. But I can't do this if I've read a thread in that forum. Am I making sense?

Did I do something wrong?

Joined: Jan 2002
Posts: 266
Kel Offline
Member
Member
Offline
Joined: Jan 2002
Posts: 266
The members of my board are really wanting this modification. But as it works right now, it isn't any good for us. You can only mark a forum read if you haven't read any of the threads in it. That just doesn't even seem logical. Is there any way to fix this? Please?

Joined: Dec 2000
Posts: 1,471
Addict
Addict
Offline
Joined: Dec 2000
Posts: 1,471
Untested but you might wanna try:
Change this:
Code
 <br />      // -------------------------- <br />      // Which folder do we display <br />         $boardfolder = "nonewposts.gif"; <br />	 $markallstart = ""; <br />	 $markallend = ""; <br />	 $marktitle = ""; <br />         if ( ($checker < $Last) ){ <br />            $boardfolder = "newposts.gif"; <br />	    if ($Username) { <br />		$markallstart = "<a href=\"{$config['phpurl']}/markallread.php?Cat=$Cat&amp;singleforum=$Keyword\">"; <br />		$markallend = "</a>"; <br />		$marktitle = "title=\"". $ubbt_lang['MARK_TEXT'] . "\""; <br />	     } <br />         } <br />


to this:
Code
 <br />      // -------------------------- <br />      // Which folder do we display <br />         $boardfolder = "nonewposts.gif"; <br />	 $markallstart = ""; <br />	 $markallend = ""; <br />	 $marktitle = ""; <br />         if ( ($checker < $Last) ){ <br />            $boardfolder = "newposts.gif"; <br />         } <br />	    if ($Username) { <br />		$markallstart = "<a href=\"{$config['phpurl']}/markallread.php?Cat=$Cat&amp;singleforum=$Keyword\">"; <br />		$markallend = "</a>"; <br />		$marktitle = "title=\"". $ubbt_lang['MARK_TEXT'] . "\""; <br />	     } <br />

Joined: Jan 2002
Posts: 266
Kel Offline
Member
Member
Offline
Joined: Jan 2002
Posts: 266
Thank you... ... I will test it out tonight and let you know how it works. I appreciate the help...

Joined: Jan 2002
Posts: 266
Kel Offline
Member
Member
Offline
Joined: Jan 2002
Posts: 266
That did it! Thanks much!

Joined: Jul 2001
Posts: 808
Coder
Coder
Joined: Jul 2001
Posts: 808
can anyone post updated instructions for V6.4.1 ? This would be nice.

Joined: Apr 2002
Posts: 474
Enthusiast
Enthusiast
Offline
Joined: Apr 2002
Posts: 474
Has anyone tried this w/ 6.4 I set it up but it marks ALL forums read.

Plus my users are asking for a way to while looking at a forum to be able to execute the forum as read.

Joined: May 2003
Posts: 1,068
Junior Member
Junior Member
Offline
Joined: May 2003
Posts: 1,068
I am using it with 6.4 and it works per forum, did you make the change that Astaran added a couple of posts above? When I installed it I just added that before even trying it.

Joined: Apr 2002
Posts: 474
Enthusiast
Enthusiast
Offline
Joined: Apr 2002
Posts: 474
I did and I just tried it again when I click on it ALL forums get marked as read. Not sure where I went wrong.

Joined: Apr 2002
Posts: 474
Enthusiast
Enthusiast
Offline
Joined: Apr 2002
Posts: 474
Any one update this for 6.5?

Joined: Apr 2002
Posts: 474
Enthusiast
Enthusiast
Offline
Joined: Apr 2002
Posts: 474
I applied it but I think it needs some tweaking it marks ALL post read not just the ones in the chosen forum...

Joined: Apr 2002
Posts: 474
Enthusiast
Enthusiast
Offline
Joined: Apr 2002
Posts: 474
any one update this for 6.5?

Joined: Dec 2000
Posts: 1,471
Addict
Addict
Offline
Joined: Dec 2000
Posts: 1,471
It doesn't work with 6.5. The new post tracking has been rewritten. I don't think that this one will be updated before 6.5 goes final. There are still some bugs in the new post tracking that should be resolved first.


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
hatter
hatter
USA
Posts: 69
Joined: January 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)