Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Jun 2002
Posts: 670
Code Monkey
Code Monkey
Offline
Joined: Jun 2002
Posts: 670
When I click on the button to expand the topics, and I click on a specific post, it brings up the showflat mode when it should bring up the post in flat when it should be threaded. Example here:
http://www.laondalatina.com/foros/postlist.php/Cat/0/Board/telenovelas
Click on the + to expand the topics and click on a message and it brings up showflat. I'm attaching the postlist.tmpl file to look at, though I'm not sure if this is a problem with postlist.tmpl or postlist.php. Any help would be appreciated
Attachments
128195-postlist.tmpl (0 Bytes, 379 downloads)

Sponsored Links
Joined: May 2001
Posts: 550
Code Monkey
Code Monkey
Offline
Joined: May 2001
Posts: 550
>it brings up the showflat mode when it should bring up the post in flat when it should be threaded.

Hmm....
So what exactly do you want? Do you want it to display threaded in this case?
The code for this is in likely in postlist.php.

Joined: Jun 2002
Posts: 670
Code Monkey
Code Monkey
Offline
Joined: Jun 2002
Posts: 670
It just seems odd to me that when in expanded view you get showflat when clicking on a message. I thought it was supposed to bring up the threaded mode. I changed my preference to Expanded in my profile and it still did it. In fact, it does it here at ThreadsDev as well, so maybe it's supposed to do that. Doesn't make sense to me at least.

Joined: May 2001
Posts: 550
Code Monkey
Code Monkey
Offline
Joined: May 2001
Posts: 550
By design it is supposed to do so, correct.
If you want it to go to the showthreaded, you will have to change the postlist.php file a bit. Which version are we talking about?

Joined: Jun 2002
Posts: 670
Code Monkey
Code Monkey
Offline
Joined: Jun 2002
Posts: 670
I'm on version 6.5.1.

Sponsored Links
Joined: May 2001
Posts: 550
Code Monkey
Code Monkey
Offline
Joined: May 2001
Posts: 550
Well, here at threadsdev, when you have threaded mode selected, and you choose expand, then the links to the individual posts are in threaded mode.

I found a bug though:

The desired behavior is that when you click on a link in the expanded list when displaying posts in flat mode, it takes you directly to the post.
It doesn't do that though, since the syntax is wrong in postlist.php

Fix:

in postlist.php
search for:
$postrow[$z]['goto'] = "#$PNumber";

Replace with:
$postrow[$z]['goto'] = "#Post$PNumber";

Search for:
$postrow[$z]['goto'] = "#$Number";

Replace with:
$postrow[$z]['goto'] = "#Post$Number";

Joined: May 2001
Posts: 550
Code Monkey
Code Monkey
Offline
Joined: May 2001
Posts: 550
OK, to your problem:
If you want the links to be threaded regardles of the board setting or the user preference, then:

in postlist.php

search for:
if (!$debug) {

insert before:

if($view == "expanded"){
$mode = "showthreaded";
}


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
Posts: 70
Joined: January 2007
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
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)