Spoiler

Update for 3.1? - Spoiler

Update for 3.1?

by masterronnow » Sat Jan 30, 2016 4:00 pm

Hi,

I want to use this BBcode in my Forum. But when I use this a second time in the same post it doesnt work.

Can someone help here? What should I change here?

Thanks a lot.
Best regards,
Kevin
User avatar
masterronnow
Registered User
Posts: 24
Joined: Thu Jul 05, 2012 11:37 pm
Location: Berlin
Name: Kevin
Contact:

Re: Update for 3.1?

by paulvill76 » Wed Mar 16, 2016 2:59 pm

Hi all , when I try to Add this BBcode to my forum I have the following error :

Code: Select all

Error General
SQL ERROR [ mysqli ]

Incorrect string value: '\xE2\x88\x92]')...' for column 'bbcode_tpl' at row 1 [1366]

SQL

UPDATE phpbb_bbcodes SET bbcode_tag = 'spoiler=', bbcode_match = '[spoiler=&quot;{INTTEXT}&quot;]{TEXT}[/spoiler]', bbcode_tpl = '<dl class=\"codebox\"><dt><a href=\"javascript:void(0);\" onclick=\"var el = this.parentNode.parentNode.getElementsByTagName(\'dd\')[0]; var v = el.style.display != \'none\'; el.style.display = v ? \'none\' : \'block\'; this.innerHTML = (v ? \'[+]\' : \'[−]\') + \' {INTTEXT}\'; \">[+] {INTTEXT}</a></dt><dd style=\"display: none;\">{TEXT}</dd></dl>', display_on_posting = 1, bbcode_helpline = 'Hidden text: [spoiler=&quot;Title&quot;]Hidden text[/spoiler]', first_pass_match = '!\\[spoiler\\=&quot;([\\p{L}\\p{N}\\-+,_. ]+)&quot;\\](.*?)\\[/spoiler\\]!iues', first_pass_replace = '\'[spoiler=&quot;${1}&quot;:$uid]\'.str_replace(array(\"\\r\\n\", \'\\\"\', \'\\\'\', \'(\', \')\'), array(\"\\n\", \'\"\', \'&#39;\', \'&#40;\', \'&#41;\'), trim(\'${2}\')).\'[/spoiler:$uid]\'', second_pass_match = '!\\[spoiler\\=&quot;([\\p{L}\\p{N}\\-+,_. ]+)&quot;:$uid\\](.*?)\\[/spoiler:$uid\\]!su', second_pass_replace = '<dl class=\"codebox\"><dt><a href=\"javascript:void(0);\" onclick=\"var el = this.parentNode.parentNode.getElementsByTagName(\'dd\')[0]; var v = el.style.display != \'none\'; el.style.display = v ? \'none\' : \'block\'; this.innerHTML = (v ? \'[+]\' : \'[−]\') + \' ${1}\'; \">[+] ${1}</a></dt><dd style=\"display: none;\">${2}</dd></dl>' WHERE bbcode_id = 25

BACKTRACE

FILE: (not given by php)
LINE: (not given by php)
CALL: msg_handler()

FILE: [ROOT]/phpbb/db/driver/driver.php
LINE: 852
CALL: trigger_error()

FILE: [ROOT]/phpbb/db/driver/mysqli.php
LINE: 193
CALL: phpbb\db\driver\driver->sql_error()

FILE: [ROOT]/phpbb/db/driver/factory.php
LINE: 329
CALL: phpbb\db\driver\mysqli->sql_query()

FILE: [ROOT]/includes/acp/acp_bbcodes.php
LINE: 287
CALL: phpbb\db\driver\factory->sql_query()

FILE: [ROOT]/includes/functions_module.php
LINE: 674
CALL: acp_bbcodes->main()

FILE: [ROOT]/adm/index.php
LINE: 81
CALL: p_master->load_active()
User avatar
paulvill76
Registered User
Posts: 78
Joined: Tue Dec 06, 2011 2:51 am
Location: Brno , Czech Republic
Name: Pablo Villaronga
Contact: