Hallo, Gast! (Registrieren)

Wir wünschen allen Besuchern frohe Ostern!

Letzte Ankündigung: MyBB 1.8.37 veröffentlicht (04.11.23)


Benutzer, die gerade dieses Thema anschauen: 1 Gast/Gäste
Erfolgreiches Upgrade und ein paar offene Fragen
#1
Servus Allemiteinand

Ich habe also mein Forum erfolgreich auf die nächste Dimension gehieft und jetzt sind halt noch ein paar Kleinigkeiten die ich gerne ändern möchte.

Ein Punkt ist das der Monitor auf Fullscreen aufgeht, ich würde ihn gerne auf eine bestimmte Größe einstellen.

   

Bitte sagt mir doch wo ich bei welcher Datei das suchen muss.

Dankeschön !!

Mfg.
Walter
Zitieren
#2
Vielleicht hilft Dir das:
https://www.mybb.de/forum/thread-33837.h...eite+forum
viele Grüße
Jockl
übersetzte und eigene Plugins
Zitieren
#3
(09.05.2018, 16:48)Jockl schrieb: Vielleicht hilft Dir das:
https://www.mybb.de/forum/thread-33837.h...eite+forum

Danke dir aber ich habe inzwischen das alte Theme gelöscht und kann sozusagen nur mehr das nehmen was momentan vorhanden ist.

Danke !!!
Zitieren
#4
Kann also als "erledigt" markiert werden?
viele Grüße
Jockl
übersetzte und eigene Plugins
Zitieren
#5
(09.05.2018, 21:12)Jockl schrieb: Kann also als "erledigt" markiert werden?

Nicht ganz  Cool

Ich hatte früher ein pulldown menü und das zerschießt mir den Header komplett ich hätte es aber gerne wieder eingebaut , vielleicht fällt euch noch dazu etwas ein ?

Code:
<a href="#" id="quicklinks">Nützliche Links <img src="{$theme['imgdir']}/arrow_down.gif"/></a>
<script type="text/javascript">
document.write("<div id=\"quicklinks_popup\" class=\"popup_menu\" style=\"display: none;\"><div class=\"thead\" style=\"padding:2px;\"><strong>Nützliche Links<\/strong><\/div><div class=\"popup_item_container\"><a href=\"online.php\" class=\"popup_item\">Wer ist Online<\/a><\/div><div class=\"popup_item_container\"><a href=\"stats.php?\"class=\"popup_item\">Komplettstatistik<\/a><\/div><div class=\"popup_item_container\"><a href=\"misc.php?action=markread&amp;portal=1\" class=\"popup_item\">Markiere Forum als gelesen<\/a><\/div><div class=\"popup_item_container\"><a href=\"#\" onclick=\"MyBB.popupWindow('misc.php?action=buddypopup', 'buddyList', 300, 350);\" class=\"popup_item\">Öffne Buddy Liste<\/a><\/div><div class=\"popup_item_container\"><a href=\"online.php?action=today\" class=\"popup_item\">Wer war heute Online<\/a><\/div><div class=\"thead\" style=\"padding:2px;\"><a href=\"usercp.php\"><strong>Benutzer CP<\/strong><\/a><\/div><div class=\"popup_item_container\"><a href=\"usercp.php?action=editsig\" class=\"popup_item\">Ändere deine Signatur<\/a><\/div><div class=\"popup_item_container\"><a href=\"usercp.php?action=profile\" class=\"popup_item\">Bearbeite dein Profil<\/a><\/div><div class=\"popup_item_container\"><a href=\"usercp.php?action=options\" class=\"popup_item\">Bearbeite deine Optionen<\/a><\/div><div class=\"thead\" style=\"padding:2px;\"><strong>Verschiedene Optionen<\/strong><\/div><div class=\"popup_item_container\"><a href=\"usercp.php?action=subscriptions\" class=\"popup_item\">Deine abonnierte Themen<\/a><\/div><div class=\"popup_item_container\"><a href=\"usercp.php?action=forumsubscriptions\"class=\"popup_item\">Abonierte Foren<\/a><\/div><div class=\"popup_item_container\"><a href=\"usercp.php?action=editlists\" class=\"popup_item\">Buddy/Ignore List<\/a><\/div><div class=\"popup_item_container\"><a href=\"member.php?action=profile&uid={$mybb->user['uid']}\" class=\"popup_item\">Zeige dein Profil<\/a><\/div><\/div>");
new PopupMenu("quicklinks");
</script>

Danke schon mal für eure Antworten !

L.G.
Walter
Zitieren
#6
Ersetze mal
new PopupMenu("quicklinks");
durch
$("#quicklinks").popupMenu();
Zitieren
#7
(09.05.2018, 21:58)doylecc schrieb: Ersetze mal
new PopupMenu("quicklinks");
durch
$("#quicklinks").popupMenu();

Vielen Dank für deine Mitarbeit, die Codeänderung war leider nicht erfolgreich!
Sonst noch einen Vorschlag ?

Dankeschön 
mfg.
Zitieren
#8
Bei mir funktioniert das, wenn ich doyleccs Vorschlag in Deinen Code einsetze....
viele Grüße
Jockl
übersetzte und eigene Plugins
Zitieren
#9
(09.05.2018, 22:47)Jockl schrieb: Bei mir funktioniert das, wenn ich doyleccs Vorschlag in Deinen Code einsetze....

Ja vielen Dank euch beiden, ihr habt ja recht jetzt funktioniert es wieder.

Dankeschön !

Was dann noch auf mich zukommt ist die Aktulisierung einer Mod die seinerzeit Stefan für mich geskriptet hat.
Weil das Forum recht Bildlastig war haben wir beide ein Modifikation entwickelt, die sich Multiattachment nennt. 
Diese machte es möglich Insgesamt 10 Bilder in einem Rutsch auf den Server zu stellen und meines Wissens war es das einzige Skript das auch klaglos bis zum Update der Php Version funktionierte.

Ich werde heute Vormittag das Skript zur Begutachtung einstellen.
Und natürlich jeder der daran Interesse hat kann sich das krallen. Cool
L.G.
Walter
Zitieren
#10
Servus Allemiteinand

Wie bereits oben beschrieben hier also die Mod "Multiattachment"

Esfolgen 3 Scripts zur Veränderung der Templates "post_attachments" "post_attachments_new" und "post_attachments_add" wobei die angeführten Texte das ganze Template beinhaltet !!!

post attachments


Code:
<br />
<div id="attachment_table">
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead" colspan="3"><strong>{$lang->attachments} / -- Ihr könnt pro Beitrag bis zu 12 Bilder oder andere Attachments abspeichern ---</strong></td>
</tr>
<tr>
       <!--<td class="tcat smalltext" colspan="3">{$lang->attach_quota} <a href="usercp.php?action=attachments">{$lang->view_attachments}</a></td>-->
</tr>
{$newattach}
{$attachments}
</table>
</div>


post_attachments_new

Code:
<tr>
[/size][/color]
<td class="trow1" width="1" height="27"></td>

<td class="trow1"align="center"><strong style="color:#ff0000">Du benötigst Hilfe beim Raufladen der Dateien ?</strong>

<input type="button" value="Hilfe !" onclick="window.open('{$mybb->settings['bburl']}/showthread.php?tid=24')" /><td class="trow1" style="white-space: nowrap"><script type="text/javascript">

function attachments() {

 Attachments = window.open("upload.php?posthash={$posthash}&my_post_key={$mybb->post_code}&fid={$fid}&pid={$post['pid']}&tid={$thread['tid']}", "attachments", "width=600,height=500,left=100,top=200");

 Attachments.focus();

}

</script>

<div style="float: right;"><strong>Du willst mehrere Attachments speichern ?</strong>&nbsp;<button onclick="attachments(); return false;">Uploadmanager</button></tr></div>

<tr></tr>

<tr>

<td class="trow1" width="1" height="42"><img src="{$theme['imgdir']}/paperclip.gif" alt="" /></td>

<td class="trow1"align="center">

<strong>{$lang->new_attachment}</strong><input type="file" name="attachment" size="30" class="fileupload" /><td class="trow1"align="left">

&nbsp;<input type="submit" class="button" name="newattachment" value="{$lang->add_attachment}"  tabindex="13" />

</td>
[color=#333333][size=small]</tr>


post_attachments_add

Code:
<html>
[/size][/color]
<head>

<title>Mehrere Attachments hinzufügen</title>

{$headerinclude}

</head>

<form method="post" enctype="multipart/form-data" action="upload.php">

<input type="hidden" name="posthash" value="{$mybb->input['posthash']}" />

<input type="hidden" name="my_post_key" value="{$mybb->post_code}" />

<input type="hidden" name="fid" value="{$fid}" />

<input type="hidden" name="pid" value="{$mybb->input['pid']}" />

<input type="hidden" name="tid" value="{$mybb->input['tid']}" />

<body style="margin:0; padding: 4px; top: 0; left: 0;">

<table width="100%" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" border="0" align="center" class="tborder">

<tr><td class="thead" colspan="2"><strong>Uploadmanager</strong></td></tr>

<tr><td class="trow1">1.</td><td class="trow1"><input type="file" name="attachment1" size="50" class="fileupload" /><br /><font color="#FF0000">{$error1}</font></td></tr>

<tr><td class="trow2">2.</td><td class="trow2"><input type="file" name="attachment2" size="50" class="fileupload" /><br /><font color="#FF0000">{$error2}</font></td></tr>

<tr><td class="trow1">3.</td><td class="trow1"><input type="file" name="attachment3" size="50" class="fileupload" /><br /><font color="#FF0000">{$error3}</font></td></tr>

<tr><td class="trow2">4.</td><td class="trow2"><input type="file" name="attachment4" size="50" class="fileupload" /><br /><font color="#FF0000">{$error4}</font></td></tr>

<tr><td class="trow1">5.</td><td class="trow1"><input type="file" name="attachment5" size="50" class="fileupload" /><br /><font color="#FF0000">{$error5}</font></td></tr>

<tr><td class="trow2">6.</td><td class="trow2"><input type="file" name="attachment6" size="50" class="fileupload" /><br /><font color="#FF0000">{$error6}</font></td></tr>

<tr><td class="trow1">7.</td><td class="trow1"><input type="file" name="attachment7" size="50" class="fileupload" /><br /><font color="#FF0000">{$error7}</font></td></tr>

<tr><td class="trow2">8.</td><td class="trow2"><input type="file" name="attachment8" size="50" class="fileupload" /><br /><font color="#FF0000">{$error8}</font></td></tr>

<tr><td class="trow1">9.</td><td class="trow1"><input type="file" name="attachment9" size="50" class="fileupload" /><br /><font color="#FF0000">{$error9}</font></td></tr>

<tr><td class="trow2">10.</td><td class="trow2"><input type="file" name="attachment10" size="50" class="fileupload" /><br /><font color="#FF0000">{$error10}</font></td></tr>

</table>

</br>

<div style="display: none;" id="submit"><img src="{$theme['imgdir']}/spinner.gif" alt="" style="vertical-align: middle;" /> Bitte warten...Dateien werden geladen</div><input type="submit" value="Alle speichern !" onclick="document.getElementById('submit').style.display='block'; this.style.display='none';" style="display: inline;" />

</form>

<br />

<br />

<br />

<br />

<br />

<table width="100%" border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">

   <thead>

   <tr>

       <td class="thead" colspan="8"><strong>Folgende Dateitypen sind möglich</strong></td>

   </tr>

   </thead>

   <tbody style="text-align: center;">

   <tr>

       <td class="trow1"><img src="{$theme['imgdir']}/attachtypes/rar.gif" alt="rar" title="rar" /><strong>.rar max.500 Kb</strong></td>

       <td class="trow2"><img src="{$theme['imgdir']}/attachtypes/zip.gif" alt="zip" title="zip" /><strong>.zip max 500 Kb</strong></td>

       <td class="trow1"><img src="{$theme['imgdir']}/attachtypes/dxf.gif" alt="dxf" title="dxf" /><strong>.dxf max 500 Kb</strong></td>

       <td class="trow2"><img src="{$theme['imgdir']}/attachtypes/xls.gif" alt="xls" title="xls" /><strong>.xls max 150 Kb</strong></td>

   </tr>

   <tr>

       <td class="trow1"><img src="{$theme['imgdir']}/attachtypes/image.gif" alt="jpg" title="jpg" /><strong>.jpg max.150 Kb</strong></td>

       <td class="trow2"><img src="{$theme['imgdir']}/attachtypes/image.gif" alt="jpg" title="jpg" /><strong>.gif max 150 Kb</strong></td>

       <td class="trow1"><img src="{$theme['imgdir']}/attachtypes/pdf.gif" alt="pdf" title="pdf" /><strong>.pdf max.1 Mb</strong></td>

       <td class="trow2"><img src="{$theme['imgdir']}/attachtypes/doc.gif" alt="doc" title="doc" /><strong>.doc max.150 Kb</strong></td>

  </tr>

</tbody>

</table>

{$update}

</body>
[color=#333333][size=small]</html>


Zum Schluss gibt es noch eine Php Datei die in den Root Ordner reingeschoben wird.

PHP-Code:
<?php
[/size][/color]


define("IN_MYBB"1);

define('NO_ONLINE'1);

define('THIS_SCRIPT''upload.php');



require_once 
"./global.php";



// Load global language phrases

$lang->load("newreply");



$fid $mybb->input['fid'];

$pid intval($mybb->input['pid']);

$tid intval($mybb->input['tid']);

$thread get_thread($tid);



// Get forum info

$forum get_forum($fid);

if(!
$forum)

{

error($lang->error_invalidforum);

}



$forumpermissions forum_permissions($fid);

if(
$forum['open'] == || $forum['type'] != "f")

{

error($lang->error_closedinvalidforum);

}

if(
$forumpermissions['canview'] == || ($forumpermissions['canpostreplys'] == && $pid) || $mybb->user['suspendposting'] == 1)

{

error_no_permission();

}



if(
$forumpermissions['canonlyviewthreads'] == && $thread['uid'] != $mybb->user['uid'])

{

error_no_permission();

}



// Check if this forum is password protected and we have a valid password

check_forum_password($forum['fid']);



// Check to see if the thread is closed, and if the user is a mod.

if(!is_moderator($fid"caneditposts"))

{

if(
$thread['closed'] == 1)

{

error($lang->redirect_threadclosed);

}

}



if(
$pid != 0)

{

$attachwhere "pid=".$pid;

}

else

{

$attachwhere "posthash='".$db->escape_string($mybb->input['posthash'])."'";

}



$query $db->simple_select("attachments""COUNT(aid) as numattachs"$attachwhere);

$attachcount $db->fetch_field($query"numattachs");



$is_error false;



foreach(
$_FILES as $key => $file)

{

if(
$file['size'] == 0)

{

continue;

}

$i str_replace('attachment'''$key);

// If there's an attachment, check it and upload it

if($file['size'] > && $forumpermissions['canpostattachments'] != && ($mybb->settings['maxattachments'] == || $attachcount $mybb->settings['maxattachments']))

{

require_once 
MYBB_ROOT."inc/functions_upload.php";

$attachedfile upload_attachment($filefalse);

}



if(
$attachedfile['error'])

{

$error 'error'.$i;

if(
$file['name'])

{

$attachedfile['error'] = $file['name'].': '.$attachedfile['error'];

}

$
$error '<br />'.$attachedfile['error'];

$is_error true;

}

else

{

$attachcount++;

}

}



if(
$forumpermissions['canpostattachments'] != && $mybb->input['action'] == 'list')

// Get a listing of the current attachments, if there are any

$attachcount 0;

if(
$mybb->input['action'] == "editdraft" || ($mybb->input['tid'] && $mybb->input['pid']))

{

$attachwhere "pid=".$pid;

}

else

{

$attachwhere "posthash='".$db->escape_string($mybb->input['posthash'])."'";

}

$query $db->simple_select("attachments""*"$attachwhere);

$attachments '';

while(
$attachment $db->fetch_array($query))

{

$attachment['size'] = get_friendly_size($attachment['filesize']);

$attachment['icon'] = get_attachment_icon(get_extension($attachment['filename']));

if(
$mybb->settings['bbcodeinserter'] != && $forum['allowmycode'] != && (!$mybb->user['uid'] || $mybb->user['showcodebuttons'] != 0))

{

eval(
"\$postinsert = \"".$templates->get("post_attachments_attachment_postinsert")."\";");

}

$attach_mod_options '';

if(
$attachment['visible'] != 1)

{

eval(
"\$attachments .= \"".$templates->get("post_attachments_attachment_unapproved")."\";");

}

else

{

eval(
"\$attachments .= \"".$templates->get("post_attachments_attachment")."\";");

}

$attachcount++;

}

$query $db->simple_select("attachments""SUM(filesize) AS ausage""uid='".$mybb->user['uid']."'");

$usage $db->fetch_array($query);

if(
$usage['ausage'] > ($mybb->usergroup['attachquota']*1024) && $mybb->usergroup['attachquota'] != 0)

{

$noshowattach 1;

}

if(
$mybb->usergroup['attachquota'] == 0)

{

$friendlyquota $lang->unlimited;

}

else

{

$friendlyquota get_friendly_size($mybb->usergroup['attachquota']*1024);

}

$friendlyusage get_friendly_size($usage['ausage']);

$lang->attach_quota $lang->sprintf($lang->attach_quota$friendlyusage$friendlyquota);

if(
$mybb->settings['maxattachments'] == || ($mybb->settings['maxattachments'] != && $attachcount $mybb->settings['maxattachments']) && !$noshowattach)

{

eval(
"\$newattach = \"".$templates->get("post_attachments_new")."\";");

}

eval(
"\$attachbox = \"".$templates->get("post_attachments")."\";");

output_page($attachbox);

}

else

{

if(
$mybb->request_method == 'post')

{

$add '';

if(!
$is_error)

{

$add ' window.close();';

}

$update "<script type=\"text/javascript\">

new Ajax.Request('upload.php?posthash=
{$mybb->input['posthash']}&my_post_key={$mybb->post_code}&fid={$fid}&pid={$mybb->input['pid']}&action=list', {method: 'get', onComplete: function(request) { opener.document.getElementById('attachment_table').innerHTML = request.responseText;{$add} }});

</script>"
;

}

eval(
"\$add = \"".$templates->get("post_attachments_add")."\";");

output_page($add);

}

?>
[color=#333333][size=small] 


Zu guter letzt hänge ich die ganze Modifikation noch als Zip an.

Zum Problem, die Mod lässt sich inzwischen ganz gut ohne Errormeldunge installieren, auch geht der Editor auf wie er sollte und auch die einzelnen Zeilen lassen sich mit den Adresszeilen der Bilder füllen. 
Auch das abspeichern der bilder funktioniert noch !

Was dann nimmer funktioniert ist das aufrufen der zusätzlichen Seite wo dann die Attachments aufgelistet sind und wenn ich das richtig begriffen habe ladet einfach die Seite nicht neu um die Liste der Attatchents anzuzeigen.

Könnte sich das wer mal anschauen .....bitte ....bitte !

Dankeschön !!
L.G.
Walter


Angehängte Dateien
.rar   Multiattachment.rar (Größe: 4,1 KB / Downloads: 3)
Zitieren


Möglicherweise verwandte Themen…
Thema Verfasser Antworten Ansichten Letzter Beitrag
Question Ein paar Fragen. Simae10 3 1.407 03.04.2015, 01:24
Letzter Beitrag: skrilaxrev