1
phppp
How to find a certain post by knowing its post_id
  • 2004/5/5 13:19

  • phppp

  • XOOPS Contributor

  • Posts: 2857

  • Since: 2004/1/25


for the current XOOPS community forum:
Any easy way to find a certain post by post_id inside a topic with, for say, 80 replies?

2
Mithrandir
Re: How to find a certain post by knowing its post_id

if you have the id, I would say that you could get it with a
$thispost = new ForumPosts($post_id);


(I am looking at the CVS, though, so it may be an updated version lying there)

3
phppp
Re: How to find a certain post by knowing its post_id
  • 2004/5/5 13:49

  • phppp

  • XOOPS Contributor

  • Posts: 2857

  • Since: 2004/1/25


no, not about programming.
I mean how to find and read a certain post inside a topic with many replies.
sorry for the confusing desc


4
phppp
Re: How to find a certain post by knowing its post_id
  • 2004/5/5 14:01

  • phppp

  • XOOPS Contributor

  • Posts: 2857

  • Since: 2004/1/25


depends on the reply amount
1 for this post
Mithrandir Re: XOOPS Dev Team: Would it be hard to propagate module name..., the topic has 47 replies and it works by the url.

2 for the samuels Re:Mydownloads module modified, the topic has 113 replies and the url does not work for the #81302 post

5
phppp
Re: How to find a certain post by knowing its post_id
  • 2004/5/5 14:13

  • phppp

  • XOOPS Contributor

  • Posts: 2857

  • Since: 2004/1/25


got it.

in the current newbb/viewtopic.php

if ($total_posts > [b][color=CC0000]50[/color][/b]) {
    
$viewmode ="[b][color=CC0000]flat[/color][/b]";
         ...

Login

Who's Online

389 user(s) are online (311 user(s) are browsing Support Forums)


Members: 0


Guests: 389


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits