Previous Thread
Next Thread
Print Thread
Hop To
No post displayed in threaded mode
#247060 11/27/2011 8:36 PM
Joined: Oct 2006
Posts: 67
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?
https://www.ubbcentral.com/forums/ubbthreads.php/posts/3287

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


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

[Linked Image from trosfrihed.dk]

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)


Link Copied to Clipboard
ShoutChat Box
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Ubb 7.7.4 Gallery problems
by jjjjj - 05/25/2020 2:35 PM
7.7.4 error after php upgrade to php 7.0
by Ruben - 05/25/2020 1:10 PM
7.7.4 move group all, fails with a error
by Ruben - 05/24/2020 3:07 PM
Grid lines in forum topics list
by Steve C - 05/23/2020 12:09 PM
Who's Online Now
4 members (Gizmo, Ruben, jjjjj, 1 invisible), 94 guests, and 55 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
3D Creations
3D Creations
by JAISP, December 30
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