Seite 1 von 1
					
				[3.2] BBCode gelöscht
				Verfasst: 11.04.2017 01:34
				von Wolkenbruch
				Hallo,
ich habe aus versehen einen BBcode gelöscht. Weiß jemand wo ich den in einer Sicherheitskopie finde?
Danke
			 
			
					
				Re: [3.2] BBCode gelöscht
				Verfasst: 11.04.2017 06:14
				von Mahony
				Hallo
Wolkenbruch hat geschrieben:ich habe aus versehen einen BBcode gelöscht. Weiß jemand wo ich den in einer Sicherheitskopie finde?
In dr Datenbank-Tabelle 
phpbb_bbcodes
Grüße: Mahony
 
			
					
				Re: [3.2] BBCode gelöscht
				Verfasst: 11.04.2017 15:06
				von Wolkenbruch
				Vielen Dank. Einen  Schritt bin ich nun weiter. Wie gesagt es geht mir um einen BBCode. Wenn ich die Kopie der Datenbank z.B. mit Notepad+ öffne, dann finde ich den BBCode, nur wird er anders dargestellt als in der Standard-HTML-Ersetzung. Ich möchte nur den einen BBcode aus der Kopie auslesen und dann wieder neu im Forum eingeben. Wie stelle ich das an?
			 
			
					
				Re: [3.2] BBCode gelöscht
				Verfasst: 11.04.2017 15:14
				von tas2580
				Poste doch einfach mal den BB-Code aus deiner DB hier. Den kann man doch sicher "übersetzen" so, dass du ihn ganz normal über das ACP wieder einfügen kannst.
Gruß Tobi
			 
			
					
				Re: [3.2] BBCode gelöscht
				Verfasst: 11.04.2017 16:42
				von Wolkenbruch
				Danke für die schnelle Antwort. Nachfolgend der Code.
Code: Alles auswählen
<div style=\"padding:1px; background:url(images/spoiler_bg.jpg) repeat-x; border:1px solid #3674b3;\"><div style=\"font-size:12px; color:#ffffff;\"><span onClick=\"if (this.parentNode.parentNode.getElementsByTagName(\'div\')[1].getElementsByTagName(\'div\')[0].style.display != \'\') {  this.parentNode.parentNode.getElementsByTagName(\'div\')[1].getElementsByTagName(\'div\')[0].style.display = \'\'; this.innerHTML = \'<a href=\\\'#\\\' onClick=\\\'return false;\\\'><img src=\\\'images/minus.png\\\' width=\\\'10\\\' height=\\\'10\\\' border=\\\'0\\\' style=\\\'margin:0px 10px 0px 10px;\\\'></a>\'; } else { this.parentNode.parentNode.getElementsByTagName(\'div\')[1].getElementsByTagName(\'div\')[0].style.display = \'none\'; this.innerHTML = \'<a href=\\\'#\\\' onClick=\\\'return false;\\\'><img src=\\\'images/plus.png\\\' width=\\\'10\\\' height=\\\'10\\\' border=\\\'0\\\' style=\\\'margin:0px 10px 0px 10px;\\\'></a></a>\'; }\" ><a href=\"#\" onClick=\"return false;\"><img src=\"images/plus.png\" width=\"10\" height=\"10\" style=\"margin:0px 10px 0px 10px;\"></a></span><b>Spoiler:</b>  {INTTEXT}</div><div style=\"background-color:#ffffff; padding:0px 10px 0px 10px;\" class=\"quotecontent\"><div style=\"display: none;\"><br>{TEXT}<br><br></div></div></div>','!\\[spoiler\\=([\\p{L}\\p{N}\\-+,_. ]+)\\](.*?)\\[/spoiler\\]!iues','\'[spoiler=${1}:$uid]\'.str_replace(array(\"\\r\\n\", \'\\\"\', \'\\\'\', \'(\', \')\'), array(\"\\n\", \'\"\', \''\', \'(\', \')\'), trim(\'${2}\')).\'[/spoiler:$uid]\'','!\\[spoiler\\=([\\p{L}\\p{N}\\-+,_. ]+):$uid\\](.*?)\\[/spoiler:$uid\\]!su','<div style=\"padding:1px; background:url(images/spoiler_bg.jpg) repeat-x; border:1px solid #3674b3;\"><div style=\"font-size:12px; color:#ffffff;\"><span onClick=\"if (this.parentNode.parentNode.getElementsByTagName(\'div\')[1].getElementsByTagName(\'div\')[0].style.display != \'\') {  this.parentNode.parentNode.getElementsByTagName(\'div\')[1].getElementsByTagName(\'div\')[0].style.display = \'\'; this.innerHTML = \'<a href=\\\'#\\\' onClick=\\\'return false;\\\'><img src=\\\'images/minus.png\\\' width=\\\'10\\\' height=\\\'10\\\' border=\\\'0\\\' style=\\\'margin:0px 10px 0px 10px;\\\'></a>\'; } else { this.parentNode.parentNode.getElementsByTagName(\'div\')[1].getElementsByTagName(\'div\')[0].style.display = \'none\'; this.innerHTML = \'<a href=\\\'#\\\' onClick=\\\'return false;\\\'><img src=\\\'images/plus.png\\\' width=\\\'10\\\' height=\\\'10\\\' border=\\\'0\\\' style=\\\'margin:0px 10px 0px 10px;\\\'></a></a>\'; }\" ><a href=\"#\" onClick=\"return false;\"><img src=\"images/plus.png\" width=\"10\" height=\"10\" style=\"margin:0px 10px 0px 10px;\"></a></span><b>Spoiler:</b>  ${1}</div><div style=\"background-color:#ffffff; padding:0px 10px 0px 10px;\" class=\"quotecontent\"><div style=\"display: none;\"><br>${2}<br><br></div></div></div>');
[spoiler={INTTEXT}]{TEXT}[/spoiler] 
			
					
				Re: [3.2] BBCode gelöscht
				Verfasst: 11.04.2017 17:09
				von mad-manne
				Ich habe jetzt mal stumpf alle \ entfernt ... bin mir aber nicht sicher, ob es damit schon gegessen ist ... einer Versuch ist es ja aber wert  
 
  Code: Alles auswählen
<div style="padding:1px; background:url(images/spoiler_bg.jpg) repeat-x; border:1px solid #3674b3;"><div style="font-size:12px; color:#ffffff;"><span onClick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') {  this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerHTML = '<a href='#' onClick='return false;'><img src='images/minus.png' width='10' height='10' border='0' style='margin:0px 10px 0px 10px;'></a>'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerHTML = '<a href='#' onClick='return false;'><img src='images/plus.png' width='10' height='10' border='0' style='margin:0px 10px 0px 10px;'></a></a>'; }" ><a href="#" onClick="return false;"><img src="images/plus.png" width="10" height="10" style="margin:0px 10px 0px 10px;"></a></span><b>Spoiler:</b>  {INTTEXT}</div><div style="background-color:#ffffff; padding:0px 10px 0px 10px;" class="quotecontent"><div style="display: none;"><br>{TEXT}<br><br></div></div></div>','![spoiler=([p{L}p{N}-+,_. ]+)](.*?)[/spoiler]!iues',''[spoiler=${1}:$uid]'.str_replace(array("rn", '"', ''', '(', ')'), array("n", '"', ''', '(', ')'), trim('${2}')).'[/spoiler:$uid]'','![spoiler=([p{L}p{N}-+,_. ]+):$uid](.*?)[/spoiler:$uid]!su','<div style="padding:1px; background:url(images/spoiler_bg.jpg) repeat-x; border:1px solid #3674b3;"><div style="font-size:12px; color:#ffffff;"><span onClick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') {  this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerHTML = '<a href='#' onClick='return false;'><img src='images/minus.png' width='10' height='10' border='0' style='margin:0px 10px 0px 10px;'></a>'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerHTML = '<a href='#' onClick='return false;'><img src='images/plus.png' width='10' height='10' border='0' style='margin:0px 10px 0px 10px;'></a></a>'; }" ><a href="#" onClick="return false;"><img src="images/plus.png" width="10" height="10" style="margin:0px 10px 0px 10px;"></a></span><b>Spoiler:</b>  ${1}</div><div style="background-color:#ffffff; padding:0px 10px 0px 10px;" class="quotecontent"><div style="display: none;"><br>${2}<br><br></div></div></div>');
Viel Erfolg,
Manne.
 
			
					
				Re: [3.2] BBCode gelöscht
				Verfasst: 11.04.2017 17:23
				von tas2580
				Ich habe das mal in meinen Editor kopiert und da nochmal schön gemacht. Irgendwie war das HTML/JS doppelt drin:
Code: Alles auswählen
<div style="padding:1px; background:url(images/spoiler_bg.jpg) repeat-x; border:1px solid #3674b3;">
	<div style="font-size:12px; color:#ffffff;">
		<span onClick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') 
			{  
				this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; 
				this.innerHTML = '<a href='#' onClick='return false;'><img src='images/minus.png' width='10' height='10' border='0' style='margin:0px 10px 0px 10px;'></a>'; 
			} else { 
				this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; 
				this.innerHTML = '<a href='#' onClick='return false;'><img src='images/plus.png' width='10' height='10' border='0' style='margin:0px 10px 0px 10px;'></a></a>'; 
			}" >
			<a href="#" onClick="return false;">
				<img src="images/plus.png" width="10" height="10" style="margin:0px 10px 0px 10px;">
			</a>
		</span>
		<b>Spoiler:</b>  {INTTEXT}
	</div>
	<div style="background-color:#ffffff; padding:0px 10px 0px 10px;" class="quotecontent">
		<div style="display: none;"><br>{TEXT}<br><br></div>
	</div>
</div>
Gruß Tobi
 
			
					
				[gelöst] [3.2] BBCode gelöscht
				Verfasst: 11.04.2017 18:03
				von Wolkenbruch
				1000 Dank euch dreien. Funktioniert wieder.