|
[SOLVED] Need a bit PHP help
|
|
03-19-2012, 01:11 PM
(This post was last modified: 03-19-2012 02:25 PM by mattias.)
Post: #1
|
|||
|
|||
|
[SOLVED] Need a bit PHP help
Hi,
Can someone tell me the correct if condition if at least one reply has been posted in a thread? I tried if($thread['replies'] > 0), but it didn't work :( I want to show "no replies" in the last reply column if a thread has no replies. Thanks. |
|||
|
03-19-2012, 01:45 PM
Post: #2
|
|||
|
|||
|
RE: Need a bit PHP help
Open ./forumdisplay.php and find;
PHP Code: $thread['replies'] = my_number_format($thread['replies']); PHP Code: if ($thread['replies'] != "0")![]() MyPortfolio | Latest Stuff: PremiumThemes | MyBlog |
|||
|
03-19-2012, 02:02 PM
Post: #3
|
|||
|
|||
|
RE: Need a bit PHP help
Thanks for your help, but that is not exactly that what I'm looking for.
Your code puts a "No Replies" in the replies column and not in the last reply column: ![]() Correct it should look like this: ![]() Thanks again for your help :) |
|||
|
03-19-2012, 02:12 PM
Post: #4
|
|||
|
|||
|
RE: Need a bit PHP help
OK, then remove the edited part and add the following code just below $thread['replies'] = my_number_format($thread['replies']);
Code: if ($thread['replies'] != "0")Now add {$replied} in "forumdisplay_thread" template below "{$lastposterlink}" or where you want text to appear
![]() MyPortfolio | Latest Stuff: PremiumThemes | MyBlog |
|||
|
03-19-2012, 02:23 PM
Post: #5
|
|||
|
|||
|
RE: Need a bit PHP help
Thanks a bunch! It worked.
Greatly appreciated your help
|
|||
|
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)
Search
Member List
Calendar
Help





![[Image: 1.png]](http://yaldaram.com/1.png)

![[Image: 28snoo64.png]](http://s14.directupload.net/images/120319/28snoo64.png)
![[Image: gankjohl.png]](http://s7.directupload.net/images/120319/gankjohl.png)