Chuckster Posted July 22, 2010 Posted July 22, 2010 A update for shops so when you are actually in the shop, looking at the items in the shop, you could see the shop description at the top? Also BB code enabled for it would be good! Quote
sniko Posted July 22, 2010 Posted July 22, 2010 Thats easily done, follow these steps. Go to shops.php and find (around line 46) echo "<table width='90%' cellspacing='1' cellpadding='1'> Replace with echo bbCode($shopdata['shopDESCRIPTION']) "<table width='90%' cellspacing='1' cellpadding='1'> Now use the following bbCode function, and put it in global_func.php function bbCode($string) { $bbCode = array("[b]" => '[b]', "[/b]" => '[/b]', "[u]" => '<u>', "[/u]" => '</u>', "[s]" => '<s>', "[/s]" => '</s>' ); return strtr($string, $bb); } Quote
Danny696 Posted July 22, 2010 Posted July 22, 2010 echo bbCode($shopdata['shopDESCRIPTION']) "<table width='90%' cellspacing='1' cellpadding='1'> You sure ;) Should be echo bbCode($shopdata['shopDESCRIPTION'])."<table width='90%' cellspacing='1' cellpadding='1'> Quote
Chuckster Posted July 22, 2010 Author Posted July 22, 2010 What u told me to do, i dont seem to have that line in my shops.php ?( Im using the default MCCodes's V.2 shops.php too ?( Quote
sniko Posted July 22, 2010 Posted July 22, 2010 So am i, Look at the code, find out where it has the code to display when you are in the shop Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.