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
spam issues
by ECNet - 03/19/2024 11:45 PM
Looking for a forum
by azr - 03/15/2024 11:26 PM
Editing Links in Post
by Outdoorking - 03/15/2024 9:31 AM
Question on barkrowler and the like
by Mors - 02/29/2024 6:51 PM
Member Permissions Help
by domspeak - 02/27/2024 6:31 PM
Who's Online Now
0 members (), 396 guests, and 110 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)