Previous Thread
Next Thread
Print Thread
Rate Thread
I need some help with my postlist.tmpl file
#285482 06/05/2005 9:15 PM
Joined: Jun 2002
Posts: 670
Code Monkey
OP Offline
Code Monkey
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

Attached Files
128195-postlist.tmpl (0 Bytes, 379 downloads)
Sponsored Links
Re: I need some help with my postlist.tmpl file
luan #285483 06/06/2005 3:04 AM
Joined: May 2001
Posts: 550
Code Monkey
Offline
Code Monkey
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.

Re: I need some help with my postlist.tmpl file
domain123 #285484 06/06/2005 8:41 PM
Joined: Jun 2002
Posts: 670
Code Monkey
OP Offline
Code Monkey
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.

Re: I need some help with my postlist.tmpl file
luan #285485 06/07/2005 3:14 AM
Joined: May 2001
Posts: 550
Code Monkey
Offline
Code Monkey
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?

Re: I need some help with my postlist.tmpl file
domain123 #285486 06/07/2005 6:48 PM
Joined: Jun 2002
Posts: 670
Code Monkey
OP Offline
Code Monkey
Joined: Jun 2002
Posts: 670
I'm on version 6.5.1.

Sponsored Links
Re: I need some help with my postlist.tmpl file
luan #285487 06/08/2005 2:47 AM
Joined: May 2001
Posts: 550
Code Monkey
Offline
Code Monkey
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";

Re: I need some help with my postlist.tmpl file
luan #285488 06/08/2005 2:55 AM
Joined: May 2001
Posts: 550
Code Monkey
Offline
Code Monkey
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
jgeoff
jgeoff
NJ
Posts: 96
Joined: April 2001
Forum Statistics
Forums63
Topics37,529
Posts293,721
Members13,834
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online 130
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 28
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,795
Greg Hard 4,625
Top Posters(30 Days)
isaac 3
Top Likes Received
isaac 33
Gizmo 8
Brett 7
Morgan 2
Top Likes Received (30 Days)
isaac 3
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2020 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Snapshot build 20200228.dev)
Responsive Width:

PHP: 5.4.45 Page Time: 0.036s Queries: 30 (0.011s) Memory: 3.2842 MB (Peak: 3.4498 MB) Data Comp: Zlib Server Time: 2020-02-29 13:22:03 UTC
Valid HTML 5 and Valid CSS