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
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 (46 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 83
Gizmo 29
sirdude 24
Zarzal 22
blaaskaak 13
willing 7
swebs 6
Who's Online
2 Registered (blaaskaak, sirdude), 39 Guests and 7 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Nice Ajax Chat
by sirdude
07/05/08 04:29 PM
[7.x] UBB.Post Templates v0.1
by sirdude
07/05/08 12:48 PM
Team UBBDev Rides Again!
by AllenAyres
07/04/08 10:56 PM
[7.3.x] ubb.links
by AllenAyres
07/03/08 06:15 PM
Changing currency for subscriptions?
by AllenAyres
07/03/08 01:15 PM
Protect users emails
by AllenAyres
07/03/08 11:36 AM
VPS and Newbies
by Gizmo
07/02/08 09:08 PM
New Mods
Protect users emails
by Basil Fawlty
06/29/08 08:44 AM
[7.3.x] Scheduled board close for backup
by blaaskaak
06/26/08 04:01 AM
[7.3+] CustomTag - Audo Embedding
by Gizmo
06/24/08 07:52 PM
[7.3.x] ubb.links
by AllenAyres
06/20/08 11:50 PM
[7.3] Dissallow quotes more then 3 levels deep
by blaaskaak
06/09/08 09:01 AM
Newest Members
ryzilla, M4D, Jer, Kanigo2, Bubba
13302 Registered Users

 

 

 
fusionbb message board php hacks