Customization Of MBoard

Is message board greying out your hair (at least what's left of it)? Let us help you here
Locked
Bama
Posts: 1
Joined: Sat Aug 05, 2006 6:36 pm

Customization Of MBoard

Post by Bama »

I have the script up and running just fine but my design only allows for a maximum width of 420 for the entire script and it all looks great but when a post receives many replies, it will eventually break my design so I am forced to customize the output to prevent that.

Here is a screenshot of what the script does - and what I want it to do:



Image

I have tried unsuccessfully to modify the li tags and to even add a line in the output and for the life of me, I can't get the script to recognize a <br> tag when I do

I've tried to adjust
$threads[$i] = "<!--o $orig_id--> ($number_of_replies)\n";
$threads[$i] .= "<!--z $count-->\n";
$threads[$i] .= "<!--s $count--><ul><li><a href=\"$count.$settings[extension]\">$subject</a> - <b>$name</b> <i>$date</i>\n";
$threads[$i] .= "<!--o $count--> (0)\n";
$threads[$i] .= "</li></ul><!--k $count-->\n";
to
$threads[$i] = "<!--o $orig_id--> ($number_of_replies)\n";
$threads[$i] .= "<!--z $count-->\n";
$threads[$i] .= "<!--s $count--><ul><li><a href=\"$count.$settings[extension]\">$subject</a> - <b>$name</b> <i>$date</i>\n";
$threads[$i] .= "<!--o $count--> (0)</li></ul>\n"; <-- tried removing the li's and adding a <br> here too
$threads[$i] .= "<!--k $count-->\n";

I've tried removing some of the <li> tags and adding
$addline .= "<!--o $count--> (0)\n";
$addline .= "<br>\n";
$addline .= "</li><!--k $count-->\n";
with no success - so I find myself here looking for help


What I want is the script to output like this:

<ul><li>Original Post Stuff</li></ul><br>
<ul>
<li>1st Reply</li>
<li>2nd Reply</li>
<li>3rd Reply</li>
</ul>

I just can't seem to get it there! Can you folks help?
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

You can try removing <ul> and </ul> code from the addNewReply function.

Note that whatever changes you made to mboard.php will only be visible to NEW posts and not existing ones!
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Locked