PEAK XOOPS - HTML in TinyD in englishin japanese

HTML in TinyD

  • You cannot open a new topic into this forum
  • Guests cannot post into this forum

question HTML in TinyD

msg# 1
Previous post - Next post | Parent - Children.1 | Posted on 2004/12/4 5:17
rich  ÆóÅùʼ   Posts: 10
Hi Guys

How much HTML does TinyD understand. What i am trying to do is to use TinyD as a small photo gallery! I've uploaded some html but it doesn't recognise it! I am trying to put six small thumbnails into a module and then when you click on one it loads up a larger photo.

Here's the html:-
<table border=0 cellspacing=0 cellpadding=0 width=278>
<tr valign=top>
<td colspan=4></td>
<td height=16></td>
</tr>
<tr valign=top>
<td></td>
<td><noscript><a href="http://www.cregy.net/modules/tinycontent0/images/muffinandcoco.html" target="_blank"><img src="http://www.cregy.net/modules/tinycontent0/images/muffinandcoco02.jpeg" border=0 width=108 height=80 alt="Muffin and Coco"></a></noscript><script language="javascript" type="text/javascript"><!--
document.write('<a href=\'muffinandcoco.html\' onMouseOver="window.status=\'muffinandcoco.html\';return true" onMouseOut="window.status=\'\'" onClick=";window.open(\'muffinandcoco.html\',\'window\',\'width=480,height=359,toolbar=no,location=no,scrollbars=no,resizable=no\');return false"><img src="Resources/muffinandcoco02.jpeg" border=0 width=108 height=80 alt=""></a>');

//-->
</script></td>

What do you think? Should it work? I have shorten the html to the first image only.

Thanks

Rich
Votes:0 Average:0.00
Previous post - Next post | Parent - No child | Posted on 2004/12/9 16:23
GIJOE  ÀèǤ·³Áâ   Posts: 4110
It's an issue of module.textsanitizer.php.

But it is natural to allow "javascript" for TinyD's content.

edit line 55 of tinycontent*/class/tinyd.textsanitizer.php
	function displayTarea( $text, $html = 0, $smiley = 1, $xcode = 1, $image = 1, $br = 1 , $nbsp = 0 )
	{
		// save "javascript:"
		$text = preg_replace( "/javascript:/si" , "jjaavvaassccrriipptt::" , $text ) ;

		$this->nbsp = $nbsp ;
		$text = parent::displayTarea( $text , $html , $smiley , $xcode , $image , $br ) ;
		// restore "javascript:"
		$text = preg_replace( "/jjaavvaassccrriipptt::/" , "javascript:" , $text ) ;
		return $this->tinyDCodeDecode( $text , $nbsp ) ;

If you want to paste above codes, eliminate a space between "java" and "script".
Votes:4 Average:10.00

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!