From 8920977261fb6c0fb5ad3e9be0bc07ff35b337cf Mon Sep 17 00:00:00 2001 From: Starla Insigna Date: Fri, 19 Dec 2008 23:01:55 -0500 Subject: Added [thumb] BBCode The [thumb] bbcode takes the content and creates a thumbnail of it. The thumbnail fits perfectly inside the post bubble and is wrapped with a link to the original image. --- .hgignore | 1 + includes/bbcode.php | 1 + thumb.php | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 .hgignore diff --git a/.hgignore b/.hgignore new file mode 100644 index 0000000..9747ba0 --- /dev/null +++ b/.hgignore @@ -0,0 +1 @@ +^images diff --git a/includes/bbcode.php b/includes/bbcode.php index 3cae84c..4dbb933 100755 --- a/includes/bbcode.php +++ b/includes/bbcode.php @@ -51,6 +51,7 @@ class BBCode $this->bbcodes2['bquote'] = '

{CONTENT}
{PARAM}
'; $this->bbcodes2['abbr'] = '{CONTENT}'; $this->bbcodes['hidden'] = '{CONTENT}'; + $this->bbcodes['thumb'] = ''; $this->init = true; } diff --git a/thumb.php b/thumb.php index ba9c645..efd1f8f 100755 --- a/thumb.php +++ b/thumb.php @@ -133,7 +133,7 @@ switch ($_GET['mode']) } default: $string = 'An error was encountered.'; - $im2 = imagecreatefrompng("images/blue.png"); + $im2 = imagecreatefrompng("theme/images/blue.PNG"); $im = imagecreate(200,30); $b = imagecopyresized($im,$im2,0,0,0,0,400,400,1,1); $orange = imagecolorallocate($im, 220, 210, 60); -- cgit 1.4.1