Hi for all.
I am just finish installation TinyPortal on my SMF 2 RC3 forum and everything is ok accept HTML & Javascript block.When i copy code from feedburner site into html or php block (<p style="My FEED burner code" Grab this Headline Animator</a></p>) i have error:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'haHowto', 'width=520,height=600,toolbar=no,address=no,resizable=yes,scrollbars')' at line 1
File: /home/--/public_html/Sources/TPortalAdmin.php
Line: 2362
This is not only an error also happens to me a similar error when pasting the AdSense code into HTML or PHP block.
Sorry for my bad english
Someone else mentioned this error. I'm not sure what's going on, but I can tell you that I see HTML code and BBC code together. That's a no no.
Can I see the EXACT code your trying to use? So I can try to debug?
My feedburner code is:
<p style="margin-top:10px; margin-bottom:0; padding-bottom:0; text-align:center; line-height:0"><a target="_blank" href="http://feeds.feedburner.com/~r/Newsapp/~6/1"><img src="http://feeds.feedburner.com/Newsapp.1.gif" alt="Newsapp 2" style="border:0"></a></p><p style="margin-top:5px; padding-top:0; font-size:x-small; text-align:center"><a href="http://feedburner.google.com/fb/a/headlineanimator/install?id=ngvjidf4qigvrtumeg05dajik0&w=1" onclick="window.open(this.href, 'haHowto', 'width=520,height=600,toolbar=no,address=no,resizable=yes,scrollbars'); return false" target="_blank">↑ Grab this Headline Animator</a></p>
or this code:
<form style="border:1px solid #ccc;padding:3px;text-align:center;" action="http://feedburner.google.com/fb/a/mailverify" method="post" target="popupwindow" onsubmit="window.open('http://feedburner.google.com/fb/a/mailverify?uri=Newsapp', 'popupwindow', 'scrollbars=yes,width=550,height=520');return true"><p>Enter your email address:</p><p><input type="text" style="width:140px" name="email"/></p><input type="hidden" value="Newsapp" name="uri"/><input type="hidden" name="loc" value="en_US"/><input type="submit" value="Subscribe" /><p></form>
Temporarly i am put this code over ad managment mod
and also after I put horizontal adsense code in Top block I cant see it on front page (i see only empty block).
Thanks for quick reply
Confirmed issue...
My first time using tiny portal I installed on a test site and was having the same issue, but after messing around quite a bit I figured out it was the single quotes in the scripts causing the problem. I back slashed all the single quotes and everything worked!! It is also causing a problem with moving blocks if the name has a single quote in it.
Hi Looneysam, welcome to TinyPortal.
Thanks for reporting your findings. :up: