TinyPortal

Development => Support => Topic started by: Kimmen on July 24, 2011, 06:21:06 PM

Title: Bug in TP Block
Post by: Kimmen on July 24, 2011, 06:21:06 PM
I guess something is wrong here lol. I run TP V.1.104 and smf2 2.0 final
Title: Re: Bug in TP Block
Post by: ZarPrime on July 24, 2011, 06:33:51 PM
Kimmen,

Hmmm, it looks like you are trying to use html in a BBC code block.  Try changing your block type to HTML & Javascript code, then save and see if that works better.

ZarPrime
Title: Re: Bug in TP Block
Post by: IchBin on July 24, 2011, 07:07:27 PM
The problem is the editor stretching. There's been a couple of fixes posted for that. I don't have time to search for it as I'm headed out the door. Please post back if you don't find it searching here and I'll check this topic later.
Title: Re: Bug in TP Block
Post by: ZarPrime on July 25, 2011, 06:46:18 AM
Kimmen,

Try the fixes in these 2 posts.

textarea bug using bbcode editor ...
For DL Manager --> http://www.tinyportal.net/index.php?topic=34179.msg273318#msg273318
For Articles --> http://www.tinyportal.net/index.php?topic=34179.msg273320#msg273320

Those should be fixed for the next version of TinyPortal.  LMK if they work for you.

ZarPrime
Title: Re: Bug in TP Block
Post by: Kimmen on July 25, 2011, 12:50:35 PM
They work for me, but not on the image i sent you. That is BBC in a block. Not article or dl manager.
Title: Re: Bug in TP Block
Post by: WillyP on July 25, 2011, 01:20:49 PM
That is not BBC, that is HTML. BBC is a set of tags enclosed in these: [ ]. You have HTML tags, enclosed in these: < >.

What do you mean:
Quote from: Kimmen on July 25, 2011, 12:50:35 PM
They work for me, but not on the image i sent you.
You included an image that shows two problems, editor stretching, and HTML in a BBC block. If the fix worked for you why do you say not on the image?
Title: Re: Bug in TP Block
Post by: Kimmen on July 25, 2011, 01:42:33 PM
If i click into a article, and want to write with BBC, then editor now works. Same with dl manager. When i create a block, a BBC block, then editor is still stretched out.
Title: Re: Bug in TP Block
Post by: ZarPrime on July 25, 2011, 04:22:41 PM
Kimmen,

OK, my fault.  I think I misunderstood.  Let's try one more thing.  Backup the SMF2/Themes/default/tp-style.css first and let's make one more edit to it.  Add the following to the bottom of the file ...


.editor {
height: 100px;
width: 635px;
max-width: 100%;
min-width: 100%;
margin: 0.25em 0 1em 0;
}


Hopefully that will fix the bbc editor in the bbc block edit screen as well.  LMK.

ZarPrime
Title: Re: Bug in TP Block
Post by: Kimmen on July 25, 2011, 04:32:05 PM
Hehe ZarPrime, that did the trick lol..  ;D

When would there be a update of the Tinyportal for the final 2.0 ? Is there one in the making?
Title: Re: Bug in TP Block
Post by: ZarPrime on July 25, 2011, 04:38:39 PM
Ah, good.  Yes, a new version of TinyPortal with all of these fixes (1.0 RC3) is being tested right now though I can't tell you yet when we might release it publicly.  Hopefully, it will be soon.

ZarPrime
Title: Re: Bug in TP Block
Post by: ZarPrime on July 25, 2011, 05:52:58 PM
Kimmen,

One more thing if you want to test something for me.  These first 2 additions below don't look like they are needed.  The first one is for using the editor in the TP downloads and the second one was added for using the editor in articles ...


div#dl_adminbox textarea
{
height: 100px;
width: 635px;
max-width: 100%;
min-width: 100%;
margin: 0.25em 0 1em 0;
}


and this one ...


#tp_article_body
{
   height: 100px;
   width: 635px;
   max-width: 100%;
   min-width: 100%;
   margin: 0.25em 0 1em 0;
}


However, the 2 above don't look like they are needed and we have actually removed both of them from the SMF2/Themes/default/tp-style.css file in our latest version of TP now in testing.  As long as the one below is still in there, the bbc editor should work fine with any area that uses it, TP Download, TP Articles, and bbc code blocks ...


.editor {
height: 100px;
width: 635px;
max-width: 100%;
min-width: 100%;
margin: 0.25em 0 1em 0;
}


So, the test, it you would like to do it is this.  Backup the tp-style.css as before but remove the first 2 blocks of code above and make sure that the third one remains.  Save the file and upload it and then try the bbc editor in the TP Downloads and TP Articles area along with the bbc type block edit screen.  If all is well in all 3 areas, then you will confirm that the third block of code is all that is needed.  Want to help with that?

ZarPrime
Title: Re: Bug in TP Block
Post by: Kimmen on July 25, 2011, 08:52:04 PM
That seems to work just fine. I have removed that code you told me too, and only have the code for editor. No error has come to my log after the change. So it seems you are very much correct sir  :)
Title: Re: Bug in TP Block
Post by: ZarPrime on July 26, 2011, 04:14:59 AM
Excellent. O0 O0 Thank you for testing that for us. ;)

ZarPrime