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,973
  • Latest: NonStop
Stats
  • Total Posts: 196,231
  • Total Topics: 21,353
  • Online today: 606
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 433
  • Total: 433

PHP Articles and PHP blocks problem

Started by saks, October 27, 2010, 10:42:49 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ZarPrime

OK, I didn't know if that was the code he had in the php block or the output from it.  Sorry :-[

ZP

saks

P.S. If this information helps business:
Table and DB collation - utf8_general_ci

IchBin

Thanks for the info saks. I don't know what it is yet.. But I'm hoping to bug some people that might have a clue. I'll go bug some SMF friends about this and see if they have any suggestions. If not, I'll bug Bloc. But I'm trying not to do that. :)

saks

Thank you very much! This error strongly complicates use TP. I will be very glad if she manages to be solved. I think that it can be connected that function which sends the data in a database twice will recode the sent text, and from for it such result turns out.

Sorry for my English!

IchBin

Ok saks, I racked my brain on this one for quite a while. Even asking friends at SMF they didn't get me where I needed. I ended up even going as far as to re-write the query using SMF's $smcFunc['db_query'] to see if TP's tp_query() was a problem. lol

In the end, it was simply removing a call to htmlentities() that fixed it for me... I swear I did that when I first started, but apparently I must not have. Anyway, go to Themes/default/TPortalAdmin.template.php and find this on about line #2863.

<textarea style="width: 94%;" name="tp_block_body" id="tp_block_body" rows="15" cols="40" wrap="auto">' , htmlentities($context['TPortal']['blockedit']['body']), '</textarea>

Change to this:
<textarea style="width: 94%;" name="tp_block_body" id="tp_block_body" rows="15" cols="40" wrap="auto">' , $context['TPortal']['blockedit']['body'], '</textarea>

saks

Wow! IchBin thank you very match! It's work! It's an excellent gift before new year! I congratulate you with coming new year!

ZarPrime


This website is proudly hosted on Crocweb Cloud Website Hosting.