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 (54 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


Who's Online
0 Registered (), 22 Guests and 8 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Team UBBDev Rides Again!
by AllenAyres
Yesterday at 01:36 PM
Blogs, love em or hate em?
by AllenAyres
10/07/08 02:05 PM
What do you use to edit the files
by Ian_W
10/05/08 03:33 PM
BeyondCompare v3.00
by Ian_W
10/05/08 03:32 PM
Glossy Black Theme with Image Reflection
by Gizmo
10/05/08 02:17 PM
ShareThis
by Gizmo
09/28/08 05:06 AM
[7.3] Viewing MySQL logfiles made easier
by AllenAyres
09/27/08 09:57 PM
New Mods
[7.3] Viewing MySQL logfiles made easier
by blaaskaak
09/24/08 05:39 PM
[7.3.1] add search to showmembers page
by blaaskaak
09/07/08 04:50 AM
Newest Members
Kevs, pisa666, ghengis317, NitroX, Dogan
13346 Registered Users
Top Posters Last 30 Days
AllenAyres 11
blaaskaak 6
Chris Bale 4
Gizmo 4
FREAK1 4
Ian_W 4
tackaberry 4

 

 

 
fusionbb message board php hacks