php forum
php mysql forum
php mysql smarty
 
Topic Options
#285482 - 06/05/05 10:15 PM I need some help with my postlist.tmpl file
donJulio Offline
Code Monkey

Registered: 06/17/02
Posts: 682
Loc: CA, USA

   I need some help with my postlist.tmpl file to Del.icio.us Add to del.icio.us
  Digg I need some help with my postlist.tmpl file Digg it
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:<br />http://www.laondalatina.com/foros/postlist.php/Cat/0/Board/telenovelas<br />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 <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" />


Attachments
128195-postlist.tmpl (51 downloads)

_________________________
Too many men. There's too many people making too many problems, and not much love to go around. Can't you see this is the Land of Confusion? <img src="http://www.ubbdev.com/forum/images/graemlins/confused.gif" alt="" />

Top
#285483 - 06/06/05 04:04 AM Re: I need some help with my postlist.tmpl file [Re: luan]
Anno Offline
Code Monkey

Registered: 05/23/01
Posts: 562
Loc: Austria
>it brings up the showflat mode when it should bring up the post in flat when it should be threaded. <br /><br />Hmm....<br />So what exactly do you want? Do you want it to display threaded in this case?<br />The code for this is in likely in postlist.php.

Top
#285484 - 06/06/05 09:41 PM Re: I need some help with my postlist.tmpl file [Re: domain123]
donJulio Offline
Code Monkey

Registered: 06/17/02
Posts: 682
Loc: CA, USA
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.
_________________________
Too many men. There's too many people making too many problems, and not much love to go around. Can't you see this is the Land of Confusion? <img src="http://www.ubbdev.com/forum/images/graemlins/confused.gif" alt="" />

Top
#285485 - 06/07/05 04:14 AM Re: I need some help with my postlist.tmpl file [Re: luan]
Anno Offline
Code Monkey

Registered: 05/23/01
Posts: 562
Loc: Austria
By design it is supposed to do so, correct.<br />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?

Top
#285486 - 06/07/05 07:48 PM Re: I need some help with my postlist.tmpl file [Re: domain123]
donJulio Offline
Code Monkey

Registered: 06/17/02
Posts: 682
Loc: CA, USA
I'm on version 6.5.1.
_________________________
Too many men. There's too many people making too many problems, and not much love to go around. Can't you see this is the Land of Confusion? <img src="http://www.ubbdev.com/forum/images/graemlins/confused.gif" alt="" />

Top
#285487 - 06/08/05 03:47 AM Re: I need some help with my postlist.tmpl file [Re: luan]
Anno Offline
Code Monkey

Registered: 05/23/01
Posts: 562
Loc: Austria
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.<br /><br />I found a bug though:<br /><br />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.<br />It doesn't do that though, since the syntax is wrong in postlist.php<br /><br />Fix:<br /><br />in postlist.php <br />search for:<br />$postrow[$z]['goto'] = "#$PNumber";<br /><br />Replace with:<br />$postrow[$z]['goto'] = "#Post$PNumber";<br /><br />Search for:<br />$postrow[$z]['goto'] = "#$Number";<br /><br />Replace with:<br />$postrow[$z]['goto'] = "#Post$Number";

Top
#285488 - 06/08/05 03:55 AM Re: I need some help with my postlist.tmpl file [Re: luan]
Anno Offline
Code Monkey

Registered: 05/23/01
Posts: 562
Loc: Austria
OK, to your problem:<br />If you want the links to be threaded regardles of the board setting or the user preference, then:<br /><br />in postlist.php<br /><br />search for:<br />if (!$debug) {<br /><br />insert before:<br /><br />if($view == "expanded"){ <br />$mode = "showthreaded";<br />}

Top


Top Posters Last 30 Days
AllenAyres 13
Gizmo 10
willing 2
S7ARBVCK 2
MattUK 1
Kevin H 1
tackaberry 1
Who's Online
1 Registered (Gizmo), 31 Guests and 10 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Noob - need help, or a reality check!
by Gizmo
Yesterday at 03:21 AM
Here I am! Rock me like a Hurricane!
by AllenAyres
09/02/08 03:05 PM
[7.x] Generic Page Outside of forum directory
by Gizmo
08/30/08 05:43 PM
Team UBBDev Rides Again!
by Gizmo
08/28/08 11:45 PM
Multiple Identity Detector
by MattUK
08/28/08 04:10 PM
[7.3.x] ubb.links
by AllenAyres
08/26/08 09:57 AM
Installing FlashChat with 7.3
by Gizmo
08/23/08 05:36 AM
New Mods
Installing FlashChat with 7.3
by Paug
08/23/08 12:14 AM
[7.3.x] ubb.links
by AllenAyres
06/20/08 11:50 PM
[7.2.1] - Naked shoutbox
by sirdude
08/17/07 10:36 PM
[7.x] Generic Page Outside of forum directory
by
01/14/07 10:58 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
Newest Members
veedubb8, twentyseven, Claus1, welcomeback1, Paug
13327 Registered Users

 

 

 
fusionbb message board php hacks