Jump to content
MakeWebGames

Recommended Posts

Posted

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!

Posted

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);
}
Posted

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'>

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...