Support Forums
Mybb MyCode - MyThumb - Printable Version

+- Support Forums (https://www.supportforums.net)
+-- Forum: Categories (https://www.supportforums.net/forumdisplay.php?fid=87)
+--- Forum: Webmaster Support (https://www.supportforums.net/forumdisplay.php?fid=36)
+---- Forum: Forum Software Help (https://www.supportforums.net/forumdisplay.php?fid=49)
+---- Thread: Mybb MyCode - MyThumb (/showthread.php?tid=3793)



Mybb MyCode - MyThumb - RPicard - 12-19-2009

Title: MyThumb
Description: Generates a thumbnail for the url specified in the tags.
Regular Expression:
Code:
\[thumb\](.*?)\[/thumb\]

Replacement:
Code:
<a href="$1" target="_blank"><img src="http://www.iwebtool2.com/img/?r=YOURSITESURL&domain=$1"></a>

Change "YOURSITESURL" to your URL (including "http://").

Syntax:
Code:
[thumb]The full URL of the site[/thumb]

Demo: http://betarelease.net/showthread.php?tid=31&pid=186#pid186


RE: Mybb MyCode - MyThumb - Kirtaner - 12-19-2009

I saw how you tested this, I don't really see the point.


RE: Mybb MyCode - MyThumb - RPicard - 12-19-2009

(12-19-2009, 08:17 PM)Kirtaner Wrote: I saw how you tested this, I don't really see the point.

No specific point. I just think it's really cool and will come in handy at some point.
I edited it to also act as a link. Now it can be used as an alternative to the [url] tag.