Jump to content

bbcode quote class...


runnerjp

Recommended Posts

currently im using

 

"[quote]" => "<p style=\"background: #E2E2E2; border: 1px solid #99b3b4; padding: 6px;\"><span style=\"font: bold 10px Courier New;\"></span>", "[/quote]" => "</p>" 

 

to display my quotes... but a few things have come about...

 

1. to show the user who posted it i have to show my outcome like this

<?php if(isset($_POST['quote'])) {
                        $quote= $_POST['quote'];
					   $query = "SELECT * FROM forumtutorial_posts where postid=$quote"; 
if ($result = mysql_query($query)){
    if (mysql_num_rows($result)) {
        $array = mysql_fetch_assoc($result);}
      
?> quote by:<?php echo $array['author'];?>
<br>[quote]<?
echo $array['post']; }}?> [/quote]

 

which is very messy and would look alot nice if the grabbing the aurther was in the quote class... also if you quote a quote or any other bbcode it does not show...

 

does any 1 know how to make this work better?

Link to comment
https://forums.phpfreaks.com/topic/129752-bbcode-quote-class/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.