Display Last 5 Phorum Posts -script
Posted by dagon
June 15, 2004 04:52PM |
Registered: 18 years ago Posts: 666 |
June 15, 2004 04:58PM |
Registered: 19 years ago Posts: 793 |
June 15, 2004 05:09PM |
Registered: 18 years ago Posts: 666 |
No, it's okay, adding $row[body] displays the messages, but I don't know how to properly truncate it without getting an error message instead. I had tried using something from the original mod, but I got a message saying 'unexpected $', and when I tried to take out a part, it said 'bad arguments'. Heh, still fiddling.
June 15, 2004 05:14PM |
Registered: 19 years ago Posts: 793 |
June 15, 2004 05:23PM |
Registered: 18 years ago Posts: 666 |
Ah, sweet! One more question. If I wanted to remove the break tags that show up from when a person has gone down a few lines in their posts, so that it's one block of text (with the spaces still in), would
if ($PHORUM[mods][bbcode] ==1){
$row[body] = preg_replace( "|</*[a-z][^>]*>|i", "", $row[body]);
$row[body] = preg_replace( "|[/*[a-z][^\]]*\]|i", "", $row[body]);
}
be what I need to modify? Or no? I didn't know if altering the bbcode thing in the mod may do anything.
if ($PHORUM[mods][bbcode] ==1){
$row[body] = preg_replace( "|</*[a-z][^>]*>|i", "", $row[body]);
$row[body] = preg_replace( "|[/*[a-z][^\]]*\]|i", "", $row[body]);
}
be what I need to modify? Or no? I didn't know if altering the bbcode thing in the mod may do anything.
June 15, 2004 05:28PM |
Registered: 19 years ago Posts: 793 |
Re: Display Last 5 Phorum Posts -script June 15, 2004 05:29PM |
Registered: 18 years ago Posts: 13 |
June 15, 2004 05:48PM |
Registered: 19 years ago Posts: 793 |
Re: Display Last 5 Phorum Posts -script June 15, 2004 05:59PM |
Registered: 18 years ago Posts: 13 |
June 15, 2004 06:19PM |
Registered: 19 years ago Posts: 793 |
Sorry, only registered users may post in this forum.