runnerjp Posted October 23, 2008 Share Posted October 23, 2008 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.