Home arrow Forum Help with this: \n\t\t\n\t appearing on my forum page
  Welcome, Guest. Please login or register.
Did you miss your activation email?
December 02, 2008, 01:07:47 AM
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)
| | | |-+  Help with this: \n\t\t\n\t appearing on my forum page
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: Help with this: \n\t\t\n\t appearing on my forum page  (Read 2139 times)
classixuk
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 20


View Profile
Help with this: \n\t\t\n\t appearing on my forum page
« on: December 11, 2006, 07:38:35 PM »

Hi Guys,
I have noticed a strange problem since installing the bridge.

In the top left hand corner of my page (directly after the <body> tag in the source) I have this \n\t\t\n\t appear on my page. It's being created dynamically from somewhere but I haven't a clue where.

Do you have any idea what could be causing it? I am running my SMF forum wrapped in Joomla 1.0.11. I have also installed the discussbot and CB plug in.

Thanks for any advice you are able to give.

Chris.

EDIT: It's gone now  Huh
« Last Edit: December 11, 2006, 07:50:11 PM by classixuk » Logged
Livebox
Guest
Re: Help with this: \n\t\t\n\t appearing on my forum page
« Reply #1 on: December 12, 2006, 12:17:03 AM »

Is it realy gone? Think that it is still there. Wink but the \n\t\t\n\t is not showing always. Please monitor it for a few days Wink
Logged
Livebox
Guest
Re: Help with this: \n\t\t\n\t appearing on my forum page
« Reply #2 on: December 12, 2006, 05:09:39 PM »

It is in investigation by the developers.

Do you have this problem when you are loggedin ? or also when not logged in.

Is your Board in Wrapped mode?

Link to your website?
« Last Edit: December 12, 2006, 05:11:27 PM by Livebox » Logged
manicon
Joomla Newbie
*

Karma: +1/-0
Offline Offline

Posts: 21


View Profile
Re: Help with this: \n\t\t\n\t appearing on my forum page
« Reply #3 on: December 13, 2006, 02:32:25 PM »

We had this problem for a couple of months and could not figure out, why it happens.
At least, we found it.
Search in the javascript-sourcecode for additional smilies.
Logged
Livebox
Guest
Re: Help with this: \n\t\t\n\t appearing on my forum page
« Reply #4 on: December 13, 2006, 02:41:28 PM »

And witch javascript do you mean?
Logged
manicon
Joomla Newbie
*

Karma: +1/-0
Offline Offline

Posts: 21


View Profile
Re: Help with this: \n\t\t\n\t appearing on my forum page
« Reply #5 on: December 13, 2006, 04:18:27 PM »

I suppose it was the function moreSmileys in the amber- Post.template.php

That's how we have it:
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();
}

Check if you have the same number of \n and \t
« Last Edit: December 13, 2006, 04:21:27 PM by manicon » Logged
Livebox
Guest
Re: Help with this: \n\t\t\n\t appearing on my forum page
« Reply #6 on: December 14, 2006, 11:42:15 AM »

oke thanks I removed the smily pop up out off this php file.. Hope this will work Wink

many thanks for sharing

Edit:
It seems to work
« Last Edit: December 14, 2006, 12:15:04 PM by Livebox » Logged
-Wolverine
Moderator
Joomla Guru
*****

Karma: +376/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: Help with this: \n\t\t\n\t appearing on my forum page
« Reply #7 on: December 20, 2006, 10:34:46 AM »

If you remove the \n\t's from that script it would work just fine.  I haven't the slightest the purpose of putting those in there to format the html source but to each their own.  And I am not faultless, but I have learned that there is no point in it and it just eats up bandwidth.

I also found this link:

http://www.simplemachines.org/community/index.php?topic=84334.0

Might be of interest to you all.
Logged

Need help?  Check Here First!
Get the JSMF User Guide
SEARCH this forum.
-Wolverine
Moderator
Joomla Guru
*****

Karma: +376/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: Help with this: \n\t\t\n\t appearing on my forum page
« Reply #8 on: December 20, 2006, 10:55:45 AM »

btw, although I have seen this in the past, I have not been able to replicate it.
Logged

Need help?  Check Here First!
Get the JSMF User Guide
SEARCH this forum.
Livebox
Guest
Re: Help with this: \n\t\t\n\t appearing on my forum page
« Reply #9 on: December 20, 2006, 11:26:05 AM »

thanks for the link I will read it tonight Wink
Logged
manicon
Joomla Newbie
*

Karma: +1/-0
Offline Offline

Posts: 21


View Profile
Re: Help with this: \n\t\t\n\t appearing on my forum page
« Reply #10 on: December 21, 2006, 04:52:45 PM »

you won't believe how long it took me to find it out
finally, i noticed, that the \n\t's came up after answering a message in the forum
Logged
-Wolverine
Moderator
Joomla Guru
*****

Karma: +376/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: Help with this: \n\t\t\n\t appearing on my forum page
« Reply #11 on: February 06, 2007, 10:07:56 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
Joomla Hacks



Joomla Hacks
German Lang French Lang Italian Lang Spanish Lang Japanese Lang Chinese Lang
Search Contact About Advertise Blogs Topsites Submit News Register Login