Previous Thread
Next Thread
Print Thread
Hop To
Joined: Oct 2006
Posts: 67
journeyman
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
Joined: Oct 2006
Posts: 67
journeyman
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
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
PHP 8 bug in membermanage.tmpl
by phoenix011235 - 09/08/2026 7:47 PM
Are any of these legitmate?
by Baldeagle - 09/06/2026 1:37 PM
After server reboot
by Morgan - 09/02/2026 8:27 AM
Email Settings
by Outdoorking - 05/13/2026 2:44 AM
Who's Online Now
0 members (), 171 guests, and 128 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Ride safe!
Ride safe!
by Morgan, December 7
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260527)