Home Forum
JSMF 2.0.2.1a (\n\n\t\n fix)
Pages: [1 ]
Author
Topic: JSMF 2.0.2.1a (\n\n\t\n fix) (Read 715 times)
locutus
This is a fix of the \n\n\t\n problem in JSMF. If you don't have this problem, you don't have to upgrade. Just overwrite your existing smf.class.php to apply the patch. Credits: special thanks to Joomlabridge for this fix.
« Last Edit: March 19, 2008, 03:22:27 AM by locutus »
Logged
tadej
Joomla Newbie
Karma: +0/-0
Offline
Posts: 4
Hey. I downloaded and overwrite smf.class.php. Now I am able to post on my forum, and most of code displayed before is hidden now. But still in the first row (on the top) of the site, there is "\n\t\t\n\t" written. Any idea why and if you can help pls? thx & bye
Logged
Superdaantje
Search in the javascript-sourcecode for additional smilies.
Post.template.php function moreSmileys() { var row, i; if (smileyPopupWindow) smileyPopupWindow.close(); smileyPopupWindow = window.open("", "add_smileys", "toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,width=480,height=220,resizable=yes"); smileyPopupWindow.document.write(\'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n<html>\'); smileyPopupWindow.document.write(\'\n\t<head>\n\t\t<title>', $txt['more_smileys_title'], '</title>\n\t\t<link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/style.css" />\n\t</head>\'); smileyPopupWindow.document.write(\'\n\t<body style="margin: 1ex;">\n\t\t<table width="100%" cellpadding="5" cellspacing="0" border="0" class="tborder">\n\t\t\t<tr class="titlebg"><td align="left">', $txt['more_smileys_pick'], '</td></tr>\n\t\t\t<tr class="windowbg"><td align="left">\'); for (row = 0; row < smileys.length; row++) { for (i = 0; i < smileys[row].length; i++) { smileys[row][i][2] = smileys[row][i][2].replace(/"/g, \'"\'); smileyPopupWindow.document.write(\'<a href="javascript:void(0);" onclick="window.opener.replaceText(" \' + smileys[row][i][0] + \'", window.opener.document.forms.', $context['post_form'], '.', $context['post_box_name'], '); window.focus(); return false;"><img src="', $settings['smileys_url'], '/\' + smileys[row][i][1] + \'" alt="\' + smileys[row][i][2] + \'" title="\' + smileys[row][i][2] + \'" style="padding: 4px;" border="0" /></a> \'); } smileyPopupWindow.document.write("<br />"); } smileyPopupWindow.document.write(\'</td></tr>\n\t\t\t<tr><td align="center" class="windowbg"><a href="javascript:window.close();\\">', $txt['more_smileys_close_window'], '</a></td></tr>\n\t\t</table>\n\t</body>\n</html>\'); smileyPopupWindow.document.close();
If you remove the \n\t's from that script it would work just fine.
* Superdaantje off
Logged
JSMF Bridge Support and Downloads can be found on Joomlabridge.org We also provide all kind off Bridge Support for Joomla and Mambo.
Pages: [1 ]