Home arrow Forum \n\t\t\n\t
  Welcome, Guest. Please login or register.
Did you miss your activation email?
August 30, 2008, 12:15:56 PM
Home New Posts Search Calendar


Login with username, password and session length
+  Joomla Forum
|-+  Joomla Hacks
| |-+  Joomla-SMF Forum Support
| | |-+  Joomla-SMF 2.0.x (Moderators: -Wolverine, kai920)
| | | |-+  \n\t\t\n\t
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: \n\t\t\n\t  (Read 1317 times)
Marco
Joomla Newbie
*

Karma: +0/-2
Offline Offline

Posts: 31


View Profile
\n\t\t\n\t
« on: January 20, 2007, 05:37:21 AM »

Hi,

i see in the left upper corner of my website the string "\n\t\t\n\t " only when i click to insert a new post or a new pm (or i reply...). How can i remove it?

thanks in advance.

my configuration in my signature. my url is http://www.thegunners.it
Logged

Joomla 1.0.12 - SMF 1.1.1 - JSMF 2.0.1 - CB none - PHP 4.4.4 - MySQL 4.0.27.
Livebox
Guest
Re: \n\t\t\n\t
« Reply #1 on: January 20, 2007, 05:54:38 AM »

Search in the javascript-sourcecode for additional smilies.

Post.template.php
Code:
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, \'&quot;\');
smileyPopupWindow.document.write(\'<a href="javascript:void(0);" onclick="window.opener.replaceText(&quot; \' + smileys[row][i][0] + \'&quot;, 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.
http://www.simplemachines.org/community/index.php?topic=84334.0
Logged
Marco
Joomla Newbie
*

Karma: +0/-2
Offline Offline

Posts: 31


View Profile
Re: \n\t\t\n\t
« Reply #2 on: January 20, 2007, 06:55:09 AM »

it works now!! thanks a lot...  Grin
Logged

Joomla 1.0.12 - SMF 1.1.1 - JSMF 2.0.1 - CB none - PHP 4.4.4 - MySQL 4.0.27.
exrace
Joomla Newbie
*

Karma: +5/-3
Offline Offline

Posts: 48


View Profile
Re: \n\t\t\n\t
« Reply #3 on: January 20, 2007, 02:01:44 PM »

Which \n\t bits did you edit out?
Some are necessary.
Logged
exrace
Joomla Newbie
*

Karma: +5/-3
Offline Offline

Posts: 48


View Profile
Re: \n\t\t\n\t
« Reply #4 on: January 20, 2007, 02:42:13 PM »

After reviewing the section of script a bit closer all those bits are doing is making the resulting JS script output more readable.

You only want to edit that function moreSmileys java script code.
I did edit all combinations of \n and \t within that function and it cleaned up the \n\t stray output.  Grin
Logged
-Wolverine
Moderator
Joomla Guru
*****

Karma: +374/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: \n\t\t\n\t
« Reply #5 on: February 06, 2007, 10:06:54 AM »

finally found the root of this problem and it is resolved.  Please find the patch in this topic
Logged

Need help?  Check Here First!
Get the JSMF User Guide
SEARCH this forum.
Pages: [1] Go Up Print 
« previous next »
Jump to:  



Login with username, password and session length

Powered by MySQL Powered by PHP Joomla Forum | Powered by SMF 1.1 RC1.
© 2001-2005, Lewis Media. All Rights Reserved.
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!

Joomla Hacks is a Joomla Components, Joomla Modules, Joomla Templates, & Joomla Mambots resource portal.
None of the text or images in this public website may be copied without the expressed written consent of the authors.
Copyright 2005 by JoomlaHacks.com. Powered by Joomla. All rights reserved.
Terms of Use