Folgende Warnungen sind aufgetreten:
Warning [2] Undefined array key "dateline" - Line: 1000 - File: inc/functions_post.php PHP 8.2.18 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/functions_post.php 1000 errorHandler->error_callback
/inc/functions_post.php 834 get_post_attachments
/showthread.php 913 build_postbit
Warning [2] Undefined array key "dateline" - Line: 1000 - File: inc/functions_post.php PHP 8.2.18 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/functions_post.php 1000 errorHandler->error_callback
/inc/functions_post.php 834 get_post_attachments
/showthread.php 913 build_postbit




Multiedit für WBBlite
#1
Da ich auf muell.de.hm leider sehr mit Spam zu kämpfen habe gibt es nun den Multiedit Hack auch für das WBBlite.

Von den Funktionen kann er das selbe wie auch schon der für das WBB1 (http://netboard.sunsonic.de/wbboard/thre...eadid=5881)

Voraussetzung: Aktiviertes JavaScript da ich recht viel mit JavaScript und Ajax gemacht habe. Eine extra Version für alle JavaScript Verweigerer gibt es nicht ;-) Die markierten Beiträge gelten nur für eine Seite.


Zum Einbau:
1.) Lade alle Dateien wie sie im Anhang zu finden sind in der selben Ordnung auf deinen Webserver

2.) .php Dateien ändern:
######### board.php ##########
Suche:
Code:
WHERE bb".$n."_threads.threadid IN (0$announceids$threadids)
ORDER BY important DESC, $sortfield $sortorder");

Füge darunter ein:
include("multiedit.php");

Suche
Code:
eval ("\$threadbit .= \"".$tpl->get("board_threadbit")."\";");

und ersetze es mit:
Code:
if(isset($multiedit)){
eval ("\$threadbit .= \"".$tpl->get("board_threadbit_admin")."\";");
}else{
eval ("\$threadbit .= \"".$tpl->get("board_threadbit")."\";");
}

3.) Templates ändern:
########## board.tpl ##########

Suche:
Code:
<script language="Javascript">
<!--
function who(threadid) {
window.open("misc.php?action=whoposted&threadid="+threadid+"&sid=$session[hash]", "moo", "toolbar=no,scrollbars=yes,resizable=yes,width=250,height=300");
}
//-->
</script>

füge darunter ein:
<script src="ajax.js"></script>


Suche:
$subboards

Füge darunter ein:
$multiedit_warning
<form action="board.php?boardid=$_GET[boardid]" name="multiform" method="post">

Suche:
<td align="center" colspan=3><smallfont color="{fontcolorsecond}"><b>Thema</b></font></td>

Ersetze es durch:
<td align="center" colspan=$multiedit_col><smallfont color="{fontcolorsecond}"><b>Thema</b></font></td>

Suche:
Code:
<option value="1000" $d_select[1000]>von Anfang an</option>
</select>
<input src="{imagefolder}/go.gif" type="image" border=0></font></td>

füge dahinter ein: $fehlendes_td

Suche:
$threadbit

Füge darunter ein:
</form>

Suche:
<td align="right" valign="bottom">$newthread</td>

Füge davor ein:
Code:
<td align="left" valign="bottom">
<table border=0><tr><td>$markall</td><td>
<div id="multidiv">
</div>
</td></tr></table>
</td>

Demo und Screenshots hier: http://netboard.sunsonic.de/wbboard/thre...eadid=5881
Viel Spaß, bin sehr froh über Rückmeldungen Smile

Gruß Pattex

Zusätzlich im Anhang: Eine multiedit.php mit allen gemachten Änderungen und register_globals=off kompatibel. Einfach die alte ersetzen.


Angehängte Dateien
.zip   multiedit_fuer_wbblite.zip (Größe: 3,53 KB / Downloads: 563)
.zip   multiedit.php.zip (Größe: 1,42 KB / Downloads: 547)
  Zitieren


Nachrichten in diesem Thema
Multiedit für WBBlite - von pattex - 22.05.2007, 17:55
[Kein Betreff] - von pattex - 24.06.2007, 19:00
[Kein Betreff] - von pattex - 24.06.2007, 20:23
[Kein Betreff] - von pattex - 24.06.2007, 20:43
[Kein Betreff] - von cHAp - 24.06.2007, 22:00
[Kein Betreff] - von pattex - 24.06.2007, 22:02
[Kein Betreff] - von cHAp - 25.06.2007, 01:54
[Kein Betreff] - von Konoko90 - 17.04.2009, 17:35
[Kein Betreff] - von pattex - 18.04.2009, 10:45

Gehe zu:


Benutzer, die gerade dieses Thema anschauen: 1 Gast/Gäste