Jalapeno
Full Member
  
Posts: 158

Peno, Jala Peno...
|
 |
Re:[Code] Background image in post
« Reply #6 on: May 05, 2002, 10:17:08 AM » |
|
It's a great idea, but it doesn't work for me. All it does is show the URL of the BG image I specified. It doesn'T show the image and it doesn't show the text between the bg-tags. Here's my subs.php after I made the changes you suggested. I was a little confused because you didn't post the whole code but just ..., so I think I didn't get it right. Where have I gone wrong?
$codefromcache = array( '/([a-z_-][a-z0-9\._-]*@[a-z0-9_-]+(\.[a-z0-9_-]+)+)/is', '/\[url\](.+?)\[\/url\]/is', '/\[url=http://(.+?)\](.+?)\[\/url\]/is', '/\[iurl\](.+?)\[\/iurl\]/is', '/\[iurl=(.+?)\](.+?)\[\/iurl\]/is', '/\[b\](.+?)\[\/b\]/is', '/\[i\](.+?)\[\/i\]/is', '/\[u\](.+?)\[\/u\]/is', '/\[s\](.+?)\[\/s\]/is', '/\[move\](.+?)\[\/move\]/is', '/\n?\[quote author=(.+?) link=(.+?) date=(.+?)\]\n*/ei', '/\[\/quote\]/i', '/\n?\[quote\]\n*/i', '/\[me=([^\]]+)\](.+?)\[\/me\]/is', '/\[img\](.+?)\[\/img\]/i', '/\[img width=([0-9]+) height=([0-9]+)\s*\](.+?)\[\/img\]/i', '/\[img height=([0-9]+) width=([0-9]+)\s*\](.+?)\[\/img\]/i', '/\[color=([\w#]+)\](.*?)\[\/color\]/is', '/\[black\](.+?)\[\/black\]/is', '/\[white\](.+?)\[\/white\]/is', '/\[red\](.+?)\[\/red\]/is', '/\[green\](.+?)\[\/green\]/is', '/\[blue\](.+?)\[\/blue\]/is', '/\[font=(.+?)\](.+?)\[\/font\]/is', '/\[size=(.+?)\](.+?)\[\/size\]/is', '/\[pre\](.+?)\[\/pre\]/is', '/\[left\](.+?)\[\/left\]/is', '/\[right\](.+?)\[\/right\]/is', '/\[center\](.+?)\[\/center\]/is', '/\[sub\](.+?)\[\/sub\]/is', '/\[sup\](.+?)\[\/sup\]/is', '/\[tt\](.+?)\[\/tt\]/is', '/\[table\](.+?)\[\/table\]/is', '/\[tr\](.*?)\[\/tr\]/is', '/\[td\](.*?)\[\/td\]/is', '/\[ftp\](.+?)\[\/ftp\]/is', '/\[ftp=(.+?)\](.+?)\[\/ftp\]/is', '/\[glow=(.+?),(.+?),(.+?)\](.+?)\[\/glow\]/eis', '/\[shadow=(.+?),(.+?),(.+?)\](.+?)\[\/shadow\]/is', '/\[email\](.+?)\[\/email\]/is', '/\[hr\]/i', '/\[flash=(\S+?),(\S+?)\](\S+?)\[\/flash\]/is', '/\[list\]/', '/\[\/list\]/', '/(<\/?table>|<\/?tr>|<\/td>)<br>/', '/\[bg=(.+?)\](.+?)\[\/bg\]/is' );
$codetocache = array( '[url=mailto:\1]\1[/url]', "<a href=\"\\1\" target=_blank>\\1</a>", "<a href=\"\\1\" target=_blank>\\2</a>", "<a href=\"\\1\">\\1</a>", "<a href=\"\\1\">\\2</a>", "<b>\\1</b>", "<i>\\1</i>", "<u>\\1</u>", "<s>\\1</s>", "<marquee>\\1</marquee>", "'<br><font size=1><b><a href=\"$scripturl?action=display;\\2\">Quote from: \\1 on '.timeformat('\\3').'</a> </b></font><table border=0 cellspacing=1 cellpadding=2 width=\"100%\"><tr><td class=quote>'", "</td></tr></table>", "<br><font size=1><b>Quote:</b></font><table border=0 cellspacing=1 cellpadding=2 width=\"100%\"><tr><td class=quote>", "<font class=meaction>* \\1 \\2</font>", "<img src=\"\\1\" alt=\"\" border=\"0\">", "<img src=\"\\3\" alt=\"\" border=\"0\" width=\"\\1\" height=\"\\2\">", "<img src=\"\\3\" alt=\"\" border=\"0\" width=\"\\2\" height=\"\\1\">", "<font color=\"\\1\">\\2</font>", "<font color=\"#000000\">\\1</font>", "<font color=\"#FFFFFF\">\\1</font>", "<font color=\"#FF0000\">\\1</font>", "<font color=\"#00FF00\">\\1</font>", "<font color=\"#0000FF\">\\1</font>", "<font face=\"\\1\">\\2</font>", "<font size=\\1>\\2</font>", "<pre>\\1</pre>", "<div align=\"left\">\\1</div>", "<div align=\"right\">\\1</div>", "<div align=\"center\">\\1</div>", "<sub>\\1</sub>", "<sup>\\1</sup>", "<tt>\\1</tt>", "<table>\\1</table>", "<tr>\\1</tr>", "<td>\\1</td>", "<a href=\"\\1\" target=_blank>\\1</a>", "<a href=\"\\1\" target=_blank>\\2</a>", "'<table style=\"Filter: Glow(Color=\\1, Strength='.(('\\2'<400)?'\\2':400).')\" width='.(('\\3'<400)?'\\3':400).'\>\\4</table>'", "<span style=\"Filter: Shadow(Color=\\1, Direction=\\2); width: \\3 px; \">\\4</span>", "\\1", "<hr>", "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\\1 height=\\2><param name=movie value=\\3><param name=play value=true><param name=loop value=true><param name=quality value=high><embed src=\\3 width=\\1 height=\\2 play=true loop=true quality=high></embed></object>", "<ul>", "</ul>", "<table cellspacing=0 cellpadding=10 background=\"\\1\"><td>\\2</td></table>", "\\1" ); [/quote]
|