Wbb Installation mit php7? |
|
Es gab mal einen hack wo man neue Profilfelder erstellen konnte (einzeln auslesbar) und die Icons sollen die User selbst erstellen und den link dann einfügen können. Ich brauch also quasi ein bis zwei Profilfelder die einen Link in ein Bild umwandeln. Am besten wäre auch noch wenn man so was wie das Hompageprofilfeld ein zwei mal hat wo dann aber der Titel und nicht der Link an sich erscheint (ich hoffe man versteht was ich meine)
|
|
28.12.2016 10:55 |
|
|
|
@ haumi: wieso ist das ein problem, ist das nicht vorgesehen? (klar, dass es nur ein ava gibt und da es ein hack wäre ist es ursprünglich nicht vorgesehen) aber ist das nicht möglich, dass man das mit nem image tag löst?
@ Listiger_Falke: Nee es geht ja darum, dass diese Icons oder zweiten avatare halt zb auch in der Themenansicht zb unter dem avatar angezeigt werden, also quasi ein zweites avatar.
Ich weiß es gibt nen hack wo man neue profilfelder einbauen konnte (ja ich weiß man kann auch profolfelder im adminbereich erstellen, aber das ist nicht das was ich möchte, denn ich will sie einzelnd auslesen lassen und nicht alle anzeigen, so dass man auch überschriften etc hinzufügen kann) Das problem dabei ist, dadurch, dass jetzt das board ja auch php7 läuft habe ich bei all den "alten" hacks die ich gespeichert hab angst was kaputt zu machen, wenn ich sie versuche ein zu bauen
|
|
28.12.2016 21:55 |
|
|
|
Ähm ... sorry aber wie lege ich die auf den Server? *duck*
|
|
31.12.2016 00:12 |
|
|
|
folgende zeile find ich in meiner class parse nicht
$this->search_replace['/\[list=("|[\'"]?)([^"\']+)\1](.+)\[\/list((=\1[^"\'
]+\1])|(\]))/siU'] = function($matches) { return $this->formatlist($matches[3],$matches[2]);};
$this->search_replace['/\[list](.+)\[\/list\]/siU'] = function($matches) { return $this->formatlist($matches[1]);};
$this->search_replace['/\[url=("|[\'"]?)([^"\']+)\1](.+)\[\/url\]/siU'] = function($matches) { return $this->formaturl($matches[2],$matches[3]);};
$this->search_replace['/\[url]([^"\[]+)\[\/url\]/iU'] = function($matches) { return $this->formaturl($matches[1]);};
|
|
14.05.2019 11:56 |
|
|
|
hast du nich noch irgendwo die geänderten datein
|
|
14.05.2019 15:29 |
|
|
haumi
Boardbetreiber
[meine Galerie]
Dabei seit: 06.06.2009
Beiträge: 3.442
Herkunft: NRW
Postid: 17025
|
|
Hier ist die komplette Funktion, wie sie hier unter php7 läuft.
Das muss aber nicht überall funktionieren - schau einfach mal!
Zitat: |
function getbbcode() {
global $db, $n, $style, $lang;
$this->search_replace['/\[list=("|[\'"]?)([^"\']+)\1](.+)\[\/list((=\1[^"
\']+\1])|(\]))/siU'] = function($matches) { return $this->formatlist($matches[3],$matches[2]);};
$this->search_replace['/\(.+)\[\/list\]/siU'] = function($matches) { return $this->formatlist($matches[1]);};
$this->search_replace['/\[url=("|[\'"]?)([^"\']+)\1](.+)\[\/url\]/siU'] = function($matches) { return $this->formaturl($matches[2],$matches[3]);};
$this->search_replace['/\[url]([^"\[]+)\[\/url\]/iU'] = function($matches) { return $this->formaturl($matches[1]);};
$this->search[] = "/java script:/i";
$this->replace[] = "java script:";
$this->search[] = "/vb script:/i";
$this->replace[] = "vb script:";
$this->search[] = "/about :/i";
$this->replace[] = "about :";
// avoid wrapping
$this->search_replace2['/\[list=("|[\'"]?)([^"\']+)\1](.+)\[\/list((
=\1[^"\']+\1])|(\]))/siU'] = function($matches) { return $this->breakChar.''.$this->breakChar.$this->stripSlashes($matches[3]).$this->breakChar.' '.$this->breakChar;};
$this->search_replace2['/\[list](.+)\[\/list\]/siU'] = function($matches) { return $this->breakChar.'[list]'.$this->breakChar.$this->stripSlashes($matches[1])
.$this->breakChar.' '.$this->breakChar;};
$this->search_replace2['/\[url=("|[\'"]?)([^"\']+)\1](.+)\[\/url\]/siU
'] = function($matches) { return $this->breakChar.''.$this->breakChar.$this->stripSlashes($matches[3]).$this->breakChar.''.$this->breakChar;};
$this->search_replace2['/\[url]([^"\[]+)\[\/url\]/iU'] = function($matches) { return $this->breakChar.'[url]'.$this->breakChar.$this->insertBreakChar($matches[1
]).$this->breakChar.'[/url]'.$this->breakChar;};
$this->replace2[] = "\\0";
$this->replace2[] = "\\0";
$this->replace2[] = "\\0";
$this->getHilight(true);
$threeparams = "/\[%s=("|['\"]?)(%s),(%s)\\1](%s)\[\/%s\]/siU";
$twoparams = "/\[%s=("|['\"]?)(%s)\\1](%s)\[\/%s\]/siU";
$oneparam = "/\[%s](%s)\[\/%s\]/siU";
$result = $db->unbuffered_query("SELECT bbcodetag, bbcodereplacement, params, multiuse, pattern1, pattern2, pattern3, eval_replacement FROM bb".$n."_bbcodes ORDER BY params ASC");
while ($row = $db->fetch_array($result)) {
if ($row['params'] == 1) {
if (!$row['pattern1']) $row['pattern1'] = ".*";
$search = sprintf($oneparam, $row['bbcodetag'], $row['pattern1'], $row['bbcodetag']);
$replace2 = "$this->breakChar[".$row['bbcodetag']."]$this->breakChar\\1$this->breakChar
[/".$row['bbcodetag']."]$this->breakChar";
}
if ($row['params'] == 2) {
if (!$row['pattern1']) $row['pattern1'] = "[^\"']+";
if (!$row['pattern2']) $row['pattern2'] = ".*";
$search = sprintf($twoparams, $row['bbcodetag'], $row['pattern1'], $row['pattern2'], $row['bbcodetag']);
$replace2 = "$this->breakChar[".$row['bbcodetag']."=\\1$this->breakChar\\2$this->breakC
har\\1]$this->breakChar\\3$this->breakChar[/".$row['bbcodetag']."]$this->br
eakChar";
}
if ($row['params'] == 3) {
if (!$row['pattern1']) $row['pattern1'] = "[^\"']+";
if (!$row['pattern2']) $row['pattern2'] = "[^\"']+";
if (!$row['pattern3']) $row['pattern3'] = ".*";
$search = sprintf($threeparams, $row['bbcodetag'], $row['pattern1'], $row['pattern2'], $row['pattern3'], $row['bbcodetag']);
$replace2 = "$this->breakChar[".$row['bbcodetag']."=\\1$this->breakChar\\2$this->breakC
har,$this->breakChar\\3$this->breakChar\\1]$this->breakChar\\4$this->breakC
har[/".$row['bbcodetag']."]$this->breakChar";
}
if ($row['eval_replacement'] == 1) {
eval("\$row['bbcodereplacement'] = \"".addcslashes($row['bbcodereplacement'], "\"\\")."\";");
}
for ($i = 0; $i < $row['multiuse']; $i++) {
$this->search[] = $search;
$this->replace[] = $row['bbcodereplacement'];
$this->replace2[] = $replace2;
}
}
$this->done['bbcode'] = 1;
} |
|
LG
haumi
__________________
Gelassen das hinnehmen, was nicht zu ändern ist,
engagiert angehen was man gestalten kann.
|
|
14.05.2019 19:13 |
|
|
|
wat nu put hsbe slle änderungen gemacht
garten-plauderforum.de kann diese Anfrage momentan nicht verarbeiten.
HTTP ERROR 500
|
|
14.05.2019 21:18 |
|
|
|
Warning: mysql_tablename() expects parameter 1 to be resource, object given in /home/www/web275.s193.goserver.host/acp/setup.php on line 520
Warning: Cannot modify header information - headers already sent by (output started at /home/www/web275.s193.goserver.host/acp/setup.php:520) in /home/www/web275.s193.goserver.host/acp/setup.php on line 531
was bedeutet der fehler
|
|
18.05.2019 13:11 |
|
|
|
nun hab ich fehler Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ConvertSize has a deprecated constructor in /home/www/web275.s193.goserver.host/acp/setup.php on line 153
|
|
18.05.2019 14:27 |
|
|
|
mach in ruhe genisse das schöne wetter
|
|
18.05.2019 14:52 |
|
|
|
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ConvertSize has a deprecated constructor in /home/www/web275.s193.goserver.host/acp/setup.php on line 153
Warning: Cannot modify header information - headers already sent by (output started at /home/www/web275.s193.goserver.host/acp/setup.php:153) in /home/www/web275.s193.goserver.host/acp/setup.php on line 383
nach der änderung
|
|
18.05.2019 15:45 |
|
|
|
Zitat: |
Original von torty
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ConvertSize has a deprecated constructor in /home/www/web275.s193.goserver.host/acp/setup.php on line. 153
Warning: Cannot modify header information - headers already sent by (output started at /home/www/web275.s193.goserver.host/acp/setup.php:153) in /home/www/web275.s193.goserver.host/acp/setup.php on line 383
nach der änderung |
|
Hallo Torty,
habe dir doch im hopfenschlodel geschrieben, das du den Einbau der setup.php kontrollieren sollst.
Einen Link habe ich dir auch eingefügt, wie man das auf php7.x ändert.
|
|
21.05.2019 13:41 |
|
|
|