Previous Thread
Next Thread
Print Thread
Hop To
No post displayed in threaded mode #247060 11/27/2011 7:36 PM
Joined: Oct 2006
Posts: 67
arentzen Offline OP
journeyman
OP Offline
journeyman
Joined: Oct 2006
Posts: 67
Hej

I got a request from one of my users today. No post is displayed when switching from flat to threaded mode when you're not logged in and are not at the first page in topic display and there is more than 10 posts in the thread.

It seems to be the same issue here at ubbcentral when using default settings: 25 topics per page and 10 posts per page. Take a look at these threads and switch from flat to threaded mode as a anonymos user.

Is it a bug or do i miss something in the Control panel?
http://www.ubbcentral.com/forums/ubbthreads.php/posts/3287

http://www.ubbcentral.com/forums/ubbthreads.php/posts/169695


trosfrihed.dk
Custom Ubb 7.5.2
Re: No post displayed in threaded mode [Re: arentzen] #247085 11/30/2011 10:38 AM
Joined: Oct 2006
Posts: 67
arentzen Offline OP
journeyman
OP Offline
journeyman
Joined: Oct 2006
Posts: 67
Here's a screendump from ubbcentral to show what I mean.

[Linked Image]

It seems to be a small bug in /scripts/showflat.inc.php

Find 1/3 down the page this codesnippet in /scripts/showflat.inc.php
PHP Code
if (!$page) { $page = 1; }
		
	if ($gonew && !$nt) {
		$nt = $page;
	}
  


Edit code to:
PHP Code
if (!$page || $mode == "showthreaded") { $page = 1; }
	//if (!$page) { $page = 1; }
	
	if ($gonew && !$nt) {
		$nt = $page;
	}
  


All topics might be displayed in threaded mode (if enabled in CP)


Forum Search
ShoutChat Box
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Followed List v7.7.2 Question
by Ruben - 11/12/2019 12:22 PM
UBB Dev
by JAISP - 11/03/2019 11:01 AM
Exceeded Number of attachments
by rbrtgrmn - 11/02/2019 9:57 PM
Forum New User Registration
by kf6zpl - 10/25/2019 10:45 AM
Having issue with redirects to UBB classic URLs
by amciotola - 10/16/2019 12:11 AM
Who's Online Now
1 registered members (JAISP), 70 guests, and 458 spiders.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Amusing Terain Scenics
Amusing Terain Scenics
by isaac, August 19
Sky places
Sky places
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Snapshot build 20191023)