Webhilfe.info/board

Normale Version: Update auf Mybb 1.1
Du siehst gerade eine vereinfachte Darstellung unserer Inhalte. Normale Ansicht mit richtiger Formatierung.
Seiten: 1 2 3
So, habe gerade auf die Mybb Version 1.1 upgedatet.
Sollten irgendwelche Fehler auftreten bitte hier melden ^^

Zitat:Changes and Fixed Bugs

* #5089 Images in quotes
* #5194 Bug Birthday - Day-1
* #5224 Image resizing.
* #5233 Email Options, Bug in the Memberlist
* #5236 two bugs
* #5257 Help Documents can't be added
* #5572 Missing subject in post preview
* #5619 Remember my login details for future visits
* #5624 dophpcode()
* #5675 Forum permissions
* #5712 Guests and polls
* #5736 Sort search results
* #5797 Smilies don't line up with text
* #5803 mySQL error: 1054
* #6001 Printable version bug
* #6006 subject in reply
* #6116 Sort
* #6226 change email without validation
* #6315 Poll error
* #6317 Last poster profile link incorrect.
* #6347 No cache header
* #6523 Notification about reported posts
* #6537 Similar Threads problem
* #6668 PHP tag bug
* #6765 Linear/Threaded default mode
* #6795 Marking reports as read
* #7089 Who's online and thumbnails
* Various outstanding security issues
* Search engine optimisations.

Chris Boulton
Und wieder sieht der PHP Code Mistig aus. Mach da mal ein nl2br rein. Die Funktion findest du in der functions_post.php. Due Funktion heißt "dophpcode".
Wenn du mir sagst wie ich das ändern soll Wink

PHP-Code:
function dophpcode($str)
{
        global 
$lang;

        
$str str_replace('<''<'$str);
        
$str str_replace('>''>'$str);
        
$str str_replace('&amp;''&'$str);
        
$str str_replace("\n"''$str);
        
$original $str;

        if(
preg_match("/\A[\s]*\<\?/"$str) === 0)
        {
                
$str "<?php\n".$str;
        }

        if(
preg_match("/\A[\s]*\>\?/"strrev($str)) === 0)
        {
                
$str $str."\n?>";
        }

        if(
substr(phpversion(), 01) >= 4)
        {
                
ob_start();
                @
highlight_string($str);
                
$code ob_get_contents();
                
ob_end_clean();
        }
        else
        {
                
$code $str;
        }

        if(
preg_match("/\A[\s]*\<\?/"$original) === 0)
    {
        
$code substr_replace($code""strpos($code"<?php"), strlen("<?php"));
        
$code str_replace('<br />'''$code);
    }

    if(
preg_match("/\A[\s]*\>\?/"strrev($original)) === 0)
    {
        
$code strrev(substr_replace(strrev($code), ""strpos(strrev($code), strrev("?>")), strlen("?>")));
    }

        
// Get rid of other useless code and linebreaks
        
$code str_replace("<code><font color=\"#000000\">\n"''$code);
        
$code str_replace('<font color="#0000CC"></font>'''$code);
        
$code str_replace("</font>\n</code>"''$code);

        
// Send back the code all nice and pretty
        
return "<p><div class=\"code_header\">$lang->php_code</div><div class=\"code_body\">".$code."</div></p>";

Was ich gerade sehe, der vermurkst nur den alten php code vorm update. Wenn man dann einmal auf editieren geht und speichert isses wieder "ordendlicher"
So, hab erstmal ne Scrollleitste eingebaut damit das Design nicht zerschossen wird ^^
Schreib mal statt:
PHP-Code:
return "<p><div class=\"code_header\">$lang->php_code</div><div class=\"code_body\">".$code."</div></p>"
das hier:
PHP-Code:
return "<p><div class=\"code_header\">$lang->php_code</div><div class=\"code_body\">".nl2br($code)."</div></p>"

Vielleicht ist das von Anfang an alles vernünftig.

PS: Schön der Scrollbalken. Nützt nur nichts. Biggrin
Hats kurz drinne, hat nichts genützt.

Wieso nützt die Scrollleiste nichts?
Jo habs gesehen.

Warum die Scrollleiste nichts nützt? Weil das immer noch das Design sprengt.
hmm, bei mir nicht. welchen browser benutzt du denn?
IE
Seiten: 1 2 3
Referenz-URLs