danke für eure antworten
@miriam welche fehlerbeschreibung=??ich habe keine fehlerbeschreibung gegeben..
ich hab nur gesagt das ich die install.xml datei wenn ichs öffne nur in ner schlange sehe.
EDIT:also ich habe jetzt in der install xml das gefunden:
Code: Alles auswählen
<action type="after-add"><![CDATA[<script type="text/javascript" src="js/jquery.js"></script>
ist eigentlich genau das was ich suchen sollte nur das, das hier
<action type="after-add"> davor steht.
ich habe jetzt schon alle zwei vorschläge probiert aber jetzt zeigt er mir die install nur zur hälfte an.
hier mal die ganze install wie ich sie sehe:
Code: Alles auswählen
http://opensource.org/licenses/gpl-license.php GNU General Public License v2 Real Upload Progress Bar This is a real Upload Progress Bar with additional connection information for a user who uploads a file to your forum. admin@serva1.net ServA1 2.0.1 easy 300 3.0.7 2009-08-15 1.0.0 Initial Release. 2009-08-16 1.0.1 Changed $GET requests to use the request_var function according to PhpBB coding guidelines. Updated the install.xml file to better fit PhpBB mod coding standards. 2010-03-27 2.0.0 Updated mod to use the latest jQuery Progress Bar plugin, from version 1.1.0 to version 2.0 Added filesize and uploaded amount to progress bar display Numerous small bugfixes 2010-04-02 2.0.1 Added Chrome and Safari browsers graceful degradation 2011-12-01 2.0.2 Removed html from Progress Bar image alt and title attributes. Now displays correctly even without Progress Bar images uploaded. Install is now AutoMod compatible, fixed SubSilver installation errors. Better DIY instructions. Updated the included jquery.js to version 1.7.1 Cleaned jquery.progressbar.js and added better documentation for easier user customization. Install instructions function posting_gen_attachment_entry($attachment_data, &$filename_data, $show_attach_box = true) { global $template, $config, $phpbb_root_path, $phpEx, $user, $auth; $uuid = uniqid(); $template->assign_vars(array( 'S_SHOW_ATTACH_BOX' => $show_attach_box, 'S_HAS_ATTACHMENTS' => sizeof($attachment_data), 'FILESIZE' => $config['max_filesize'], 'FILE_COMMENT' => (isset($filename_data['filecomment'])) ? $filename_data['filecomment'] : '', )); $template->assign_vars(array( 'S_SHOW_ATTACH_BOX' => $show_attach_box, 'S_HAS_ATTACHMENTS' => sizeof($attachment_data), 'FILESIZE' => $config['max_filesize'], 'FILE_COMMENT' => (isset($filename_data['filecomment'])) ? $filename_data['filecomment'] : '', 'S_UP_ID' => $uuid, )); <!-- INCLUDE overall_header.html --> <script type="text/javascript" src="js/jquery.js"></script> <script type="text/javascript" src="js/jquery.progressbar.js"></script> <script type="text/javascript"> var progress_key ='{S_UP_ID}'; $(document).ready(function() {$("#uploadprogressbar").progressBar();}); function beginUpload() { $("#uploadprogressbar").fadeIn(); var i = setInterval(function() { $.getJSON("upload_progress.php?id=" + progress_key, function(data) { if (data == null) { clearInterval(i); return false; } var percentage = Math.floor(100 * parseInt(data.bytes_uploaded) / parseInt(data.bytes_total)); var uspeed = parseInt(data.speed_last); var totalsize = parseInt(data.bytes_total); var avuspeed = parseInt(data.speed_average); var timeleft = (totalsize/avuspeed); var eta=timeleft-(parseInt(data.time_last)-parseInt(data.time_start)); var uploaded = parseInt(data.bytes_uploaded); var filename = data.filename; var filecount = parseInt(data.files_uploaded); var is_chrome = navigator.userAgent.toLowerCase().indexOf('chrome') > -1; var is_safari = navigator.userAgent.toLowerCase().indexOf('safari') > -1; if (is_chrome == true || is_safari == true) { return false; } $("#uploadprogressbar").progressBar(percentage,uspeed,totalsize,avuspeed,eta,uploaded,filename,filecount);});}, 1500); return true; } </script> <noscript>Enable JavaScript in your browser for the Upload Progress meter and other useful functions to work.</noscript> <form id="postform" method="post" action="{S_POST_ACTION}"{S_FORM_ENCTYPE}> <form id="postform" onsubmit="beginUpload();" enctype="multipart/form-data" method="post" action="{S_POST_ACTION}"{S_FORM_ENCTYPE}> <input id="progress_key" name="UPLOAD_IDENTIFIER" type="hidden" value="{S_UP_ID}" /> <fieldset class="fields2"> <dl> <dt></dt> <dd><span class="progressbar" id="uploadprogressbar"></span></dd> </dl> .clear { display: block; clear: both; font-size: 1px; line-height: 1px; background: transparent; } #uploadprogressbar { display: none; } <script type="text/javascript"> /** * Show upload progress bar */ function popup_progress_bar() { close_waitscreen = 0; // no scrollbars popup('{UA_PROGRESS_BAR}', 400, 200, '_upload'); } </script> <!-- IF S_CLOSE_PROGRESS_WINDOW --> <script type="text/javascript"> close_waitscreen = 1; </script> <!-- ENDIF --> <script type="text/javascript" src="js/jquery.js"></script> <script type="text/javascript" src="js/jquery.progressbar.js"></script> <script type="text/javascript"> var progress_key ='{S_UP_ID}'; $(document).ready(function() {$("#uploadprogressbar").progressBar();}); function beginUpload() { $("#uploadprogressbar").fadeIn(); var i = setInterval(function() { $.getJSON("upload_progress.php?id=" + progress_key, function(data) { if (data == null) { clearInterval(i); return false; } var percentage = Math.floor(100 * parseInt(data.bytes_uploaded) / parseInt(data.bytes_total)); var uspeed = parseInt(data.speed_last); var totalsize = parseInt(data.bytes_total); var avuspeed = parseInt(data.speed_average); var timeleft = (totalsize/avuspeed); var eta=timeleft-(parseInt(data.time_last)-parseInt(data.time_start)); var uploaded = parseInt(data.bytes_uploaded); var filename = data.filename; var filecount = parseInt(data.files_uploaded); var is_chrome = navigator.userAgent.toLowerCase().indexOf('chrome') > -1; var is_safari = navigator.userAgent.toLowerCase().indexOf('safari') > -1; if (is_chrome == true || is_safari == true) { return false; } $("#uploadprogressbar").progressBar(percentage,uspeed,totalsize,avuspeed,eta,uploaded,filename,filecount);});}, 1500); return true; } </script> <noscript>Enable JavaScript in your browser for the Upload Progress meter and other useful functions to work.</noscript> <td class="row3" colspan="2"><span class="gensmall">{L_ADD_ATTACHMENT_EXPLAIN}</span></td> </tr> <tr> <td class="row1"></td> <td class="row2"><span class="progressbar" id="uploadprogressbar"></span></td> </tr> <form action="{S_POST_ACTION}" method="post" name="postform"{S_FORM_ENCTYPE}> <form id="postform" onsubmit="beginUpload();" enctype="multipart/form-data" method="post" action="{S_POST_ACTION}"{S_FORM_ENCTYPE}> <input id="progress_key" name="UPLOAD_IDENTIFIER" type="hidden" value="{S_UP_ID}" /> .username-coloured { font-weight: bold; } #uploadprogressbar { display: none; } This mod requires JSON and the PHP UPLOADPROGRESS PACKAGE to be installed on your server. Check your phpinfo file for these. The latest UploadProgress build can be found here - http://pecl.php.net/package/uploadprogress Once the uploadprogress package is installed open your servers php.ini file and at the very end add - extension=uploadprogress.so Now reboot the server and remember to purge your forums cache and refresh the theme and template cache after installing. Delete from your posting_layout.html (ProSilver) or posting_attach_body.html (SubSilver) template if you are already calling this file somewhere when an attachment is being uploaded. If you want to change the colour of the progress bar, take a look in the /contrib/images/ folder and see if there is something that you like there. Now edit /js/jquery.progressbar.js, at around line 33 to 37 - barImage : { 0: 'images/progressbg_red.gif', 30: 'images/progressbg_orange.gif', 70: 'images/progressbg_green.gif' }, In the above example (default settings) the progress bar starts as a red color from 0% to 30%. Once 30% has been reached the bar color changes to orange, then at 70% it changes to green. You can change these numbers (precentages) to whatever you like along with different bar color combinations. If you only want one color then delete all the lines except for the first. The last line has to end without a comma so be sure you remove that as well, like so - barImage : { 0: 'images/progressbg_green.gif' }, If you would like this mod installed for you and/or uploadprogress.so with all it's dependencies email me through the contact form at ServA1.net - http://www.serva1.net/contact/
egal mit welchen editor oder explorer ich sie öffne..