TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 325
  • Total: 326
  • @rjen

Editing HTML/BBC blocks goes to blank page & "HTML + Javascript" is buggy

Started by Hamster, February 21, 2009, 08:25:10 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Hamster

URL: http://www.playground4u.info
TP: 1.07 beta3

I updated to this beta from 1.06 beta2.
I have 2 HTML/BBC blocks on my site. They show the gameserver status via javascript.
Whenever I try to edit them, I get a blank page. Also, whenever I try to add a new block, it gets me a blank page, since it goes into HTML/BBC editing mode by default. It still creates the new block though and in the "Panels and Blocks" settings, i can make it another kind of block and then edit.

The HTML + javascript blocktype seems not to be working with the Splatterladder serverstatus script:
<script language='JavaScript' src='http://et.splatterladder.com/export/servermon.js.php?ip=78.46.102.199:27960'></script>
When I click on the "<>" button, insert the code, and save, nothing gets saved. When I click the button, insert code, click hide html, click <> again, then save, the code gets saved correctly. If I however click on <> again, it doesn't display my original code anymore but instead, i think, the info it got from the javascript. And since it's a status script, it wouldn't be accurate anymore.

G6Cad



Ken.

Quote from: Hamster on February 21, 2009, 10:44:20 AM
Which editor and where? :)

Check here:
Admin>TinyPortal>Articles and Categories>Settings>Use the WYSIWYG editor?>Yes/No
" If everything seems under control, you're not going fast enough." - Mario Andretti
Yesterday When I was Young.

Hamster

Nice. The HTML + Javascript blocks now show my original code correctly.

But HTML/BBC blocks still give a blank page when I try to edit them.

G6Cad

Must be your code you use, check it and test again, test the code in a scriptblock and see if it shows up correctly.

Hamster

If you mean the code of the HTML/BBC blocks, then there is none. It gives me a blank even if I create a new block (new blocks are automatically HTML/BBC blocks), I get a blank page since creating a new block automatically takes me into editing mode.

Edit:// this guy here seems to have the same problem: http://www.tinyportal.net/index.php/topic,28475.0.html "Major problem"

G6Cad

Must be something that went wrong when you installed TP, we dont have this here on this site, nor our own sites.
Can you take your time and confirm your install of TP and make sure it got installed correctly.

Offcourse with no other theme then Default Core theme.

How do I manually install TinyPortal

Modification Instructions

Renegd98

When using the WYSIWYG editor, if you use the <> button on top right end of the menu it will switch between code and user view.

Hamster

I finally figured out the problem.
I figured to check the apache/php errorlog. (I should have done that in the first place, stupid me.)
What I found:
[Sat Feb 21 15:11:19 2009] [error] [client ###.###.###.###] PHP Fatal error:  Allowed memory size of 8388608 bytes exhausted (tried to allocate 9 bytes) in /#####/Sources/Subs-Post.php on line 1406, referer: http://www.playground4u.info/index.php?action=tpadmin;sa=blocks
Allowed memory size of 8388608 bytes exhausted (tried to allocate 20914 bytes)

Interesting is that this was the first time something wanted more memory.
Yea, 8MB isn't much but shouldn't something as simple as the editor handle with less than that? :)

Thanks everybody for helping.

This website is proudly hosted on Crocweb Cloud Website Hosting.