Poprzedni temat «» Następny temat
Autor Wiadomość
BBCode Manager Final
qbs 


Posty: 598
Piwa: 353/29
Skąd: wroc?aw
Wysłany: Sro 26 Lip, 2006   BBCode Manager Final
   Adres forum: n/a


tu mozna dyskutowac na temat modyfikacji BBCode Manager
_________________
ixdude.com
i have been waiting, all of my life, for you to come along and make everything all right. my body shaking, right through the bones, so take my by the hand, please don't leave me here alone. and i wonder if you know just how i feel, i feel... yeah... and i wonder how i know it is... it's real... it's real. coz' i want you to save me, just please save me, save me... coz' i need you to save me, just please save me, save me...
Postaw piwo autorowi tego posta
 
     
m1chu 

Posty: 54
Piwa: 91/7
Wysłany: Sro 26 Lip, 2006   
   Adres forum: http://www.m1chu.easyisp.pl/forum/


Powiem tyle - dobra robota :D
Ale mam pytanie. W znaczniku code mo?na gdzie? zrobi? poprawk?, ?eby w momencie gdy walniemy enter (<br />), na przyk?ad:
Kod
abc
def

skrypt nie bra? jednego <br /> za <br /><br />.
Bo wychodzi z tego:
Kod
abc

def

Poprostu podwaja liczb? enter?w, ?e tak si? wyra?e :]
Postaw piwo autorowi tego posta
 
     
Kica 


Posty: 120
Piwa: 38/51
Skąd: Soko??w P.
Wysłany: Sro 26 Lip, 2006   
   Adres forum: http://www.rabits-hole.net


qbs, chodzi o plik viewtopic.php. Jak kto? ma zainstalowanego Beer Moda, kod jest troche inny (a dok?adniej kod Beer Moda siedzi pomi?dzy tym kt?ry trzeba teraz podmieni?):

PHP Code:
<?php

        if ( $user_sig != '' && $user_sig_bbcode_uid != '' )
        {
            $user_sig = ($board_config['allow_bbcode']) ? bbencode_second_pass($user_sig, $user_sig_bbcode_uid, $userdata['username']) : preg_replace("/\:$user_sig_bbcode_uid/si", '', $user_sig);
        }

        if ( $bbcode_uid != '' )
        {
            $message = ($board_config['allow_bbcode']) ? bbencode_second_pass($message, $bbcode_uid, $userdata['username']) : preg_replace("/\:$bbcode_uid/si", '', $message);

                //beer mod
                if ( strlen($board_config['beermod_unhide_forums']) )
                {
                    $beermod_unhide_forums = @explode(',', $board_config['beermod_unhide_forums']);
                    if ( @in_array($forum_id, $beermod_unhide_forums) )
                    {
                        if ( @in_array($userdata['user_id'], $beerdata['user_ids'][$postrow_post_id]) && $userdata['user_id'] != ANONYMOUS )
                        {
                            $userdata_reply_buffered = true;
                            $valid = true;
                        }
                    }
                }

            if ( strpos($message, "") !== false )
            {
                if ( !$userdata_reply_buffered )
                {
                    $valid = false;
                    if ( $session_logged_in )
                    {
                        $sql = "SELECT poster_id, topic_id
                            FROM " . POSTS_TABLE . "
                            WHERE topic_id = $topic_id
                                AND poster_id = $user_id";

                        $resultat = $db->sql_query($sql);
                        $valid = $db->sql_numrows($resultat) ? true : false;
                    }
                    $userdata_reply_buffered = true;
                }
                $message = bbencode_third_pass($message, $bbcode_uid, $valid);
            }
        }


?>



Jak te obie modyfikacje pogodzi??
_________________
Rabits Hole || Consoles || NES Generation || KHP
Postaw piwo autorowi tego posta
 
 
     
m1chu 

Posty: 54
Piwa: 91/7
Wysłany: Sro 26 Lip, 2006   
   Adres forum: http://www.m1chu.easyisp.pl/forum/


Kica -

--- [ ZNAJDZ ] ---
PHP Code:
<?php

if ( $user_sig != '' && $user_sig_bbcode_uid != '' )
        {
            $user_sig = ($board_config['allow_bbcode']) ? bbencode_second_pass($user_sig, $user_sig_bbcode_uid, $userdata['username']) : preg_replace("/\:$user_sig_bbcode_uid/si", '', $user_sig);
        }

        if ( $bbcode_uid != '' )
        {
            $message = ($board_config['allow_bbcode']) ? bbencode_second_pass($message, $bbcode_uid, $userdata['username']) : preg_replace("/\:$bbcode_uid/si", '', $message);


?>


--- [ ZAMIEN NA ] ---
PHP Code:
<?php

if ( $user_sig != '' && $user_sig_bbcode_uid != '' )
        {
            $user_sig = ($board_config['allow_bbcode']) ? bbencode_second_pass($user_sig, $user_sig_bbcode_uid, $postrow[$i], $topic_id, 1) : preg_replace("/\:$user_sig_bbcode_uid/si", '', $user_sig);
        }


        if ( $bbcode_uid != '' )
        {
            $message = ($board_config['allow_bbcode']) ? bbencode_second_pass($message, $bbcode_uid, $postrow[$i], $topic_id, 0) : preg_replace("/\:$bbcode_uid/si", '', $message);


?>


--- [ ZNAJDZ ] ---
PHP Code:
<?php

if( strpos($message, "") !== false )
            {
                if( !$userdata_reply_buffered )
                {
                    $valid = false;
                    if( $session_logged_in )
                    {
                        $sql = "SELECT poster_id, topic_id
                            FROM " . POSTS_TABLE . "
                            WHERE topic_id = $topic_id
                                AND poster_id = $user_id";

                        $resultat = $db->sql_query($sql);
                        $valid = $db->sql_numrows($resultat) ? true : false;
                    }
                    $userdata_reply_buffered = true;
                }
                $message = bbencode_third_pass($message, $bbcode_uid, $valid);
            }
        }


?>


--- [ ZAMIEN NA ] ---
PHP Code:
<?php

}


?>
Postaw piwo autorowi tego posta
 
     
qbs 


Posty: 598
Piwa: 353/29
Skąd: wroc?aw
Wysłany: Sro 26 Lip, 2006   
   Adres forum: n/a


Kod
a<br />b


[ Dodano: Sro 26 Lip, 2006 ]
PHP Code:
<?php

<br />


?>
_________________
ixdude.com
i have been waiting, all of my life, for you to come along and make everything all right. my body shaking, right through the bones, so take my by the hand, please don't leave me here alone. and i wonder if you know just how i feel, i feel... yeah... and i wonder how i know it is... it's real... it's real. coz' i want you to save me, just please save me, save me... coz' i need you to save me, just please save me, save me...
Ostatnio zmieniony przez qbs Sro 26 Lip, 2006, w całości zmieniany 1 raz  
Postaw piwo autorowi tego posta
 
     
m1chu 

Posty: 54
Piwa: 91/7
Wysłany: Sro 26 Lip, 2006   
   Adres forum: http://www.m1chu.easyisp.pl/forum/


?eby nie by?o, ?e co? mi si? uroi?o, prosz? kod:

A tu wynik:
Postaw piwo autorowi tego posta
 
     
qbs 


Posty: 598
Piwa: 353/29
Skąd: wroc?aw
Wysłany: Sro 26 Lip, 2006   
   Adres forum: n/a


aaaaa, wywal stamtad <pre></pre>
_________________
ixdude.com
i have been waiting, all of my life, for you to come along and make everything all right. my body shaking, right through the bones, so take my by the hand, please don't leave me here alone. and i wonder if you know just how i feel, i feel... yeah... and i wonder how i know it is... it's real... it's real. coz' i want you to save me, just please save me, save me... coz' i need you to save me, just please save me, save me...
Postaw piwo autorowi tego posta
 
     
Więcej szczegółów
Wystawiono 1 piw(a):
m1chu
m1chu 

Posty: 54
Piwa: 91/7
Wysłany: Sro 26 Lip, 2006   
   Adres forum: http://www.m1chu.easyisp.pl/forum/


Piwko dla Ciebie, dzi?ki bardzo :D ;)
Postaw piwo autorowi tego posta
 
     
reynart

Posty: 15
Piwa: 5/8
Wysłany: Sro 26 Lip, 2006   
   Adres forum: localhost


Mam pytanie dotycz?ce instrukcji
Czy u?ycie
Kod
CREATE TABLE `phpbb_bbcode_table` (
(...)
) ENGINE=MyISAM AUTO_INCREMENT=23 ;

A
Kod
CREATE TABLE `phpbb_bbcode_table` (
(...)
) AUTO_INCREMENT=23 ;

Zrobi du?? r??nic??
Postaw piwo autorowi tego posta
 
     
qbs 


Posty: 598
Piwa: 353/29
Skąd: wroc?aw
Wysłany: Sro 26 Lip, 2006   
   Adres forum: n/a


zalezy od mysql'a, jak to powiadaja - sprawdz a sie przekonasz ;)

btw: p??niej
_________________
ixdude.com
i have been waiting, all of my life, for you to come along and make everything all right. my body shaking, right through the bones, so take my by the hand, please don't leave me here alone. and i wonder if you know just how i feel, i feel... yeah... and i wonder how i know it is... it's real... it's real. coz' i want you to save me, just please save me, save me... coz' i need you to save me, just please save me, save me...
Postaw piwo autorowi tego posta
 
     
reynart

Posty: 15
Piwa: 5/8
Wysłany: Sro 26 Lip, 2006   
   Adres forum: localhost


sprawdzi?em.. i wydaje si? ?e wszystko w porz?dku
A mysql jest z krasnala v2.7 ostatnio ci?gle jest problem z tym ENGINE / TYPE
Z tym ?e TYPE wydaje si? bardziej uniwersalny.. dzia?a mi na obu r??nych bazach a ENGINE tylko na tej z hostingu

btw. poprawi?em byka, dzi?ki za zwr?cenie uwagi
Postaw piwo autorowi tego posta
 
     
m1chu 

Posty: 54
Piwa: 91/7
Wysłany: Sro 26 Lip, 2006   
   Adres forum: http://www.m1chu.easyisp.pl/forum/


Taki ma?y bug z tego co zauwa?y?em. Przy tagu [url=] je?li w adresie b?dzie znak ~ to nie tworzy linku tylko:
Kod
[url=adres]Nazwa[/url]
Postaw piwo autorowi tego posta
 
     
#Crash_3d 



Posty: 64
Piwa: 9/6
Skąd: Radom
Wysłany: Sro 26 Lip, 2006   
   Adres forum: 100 przeciez nie podam :)


Linki w podpisie sie nie wyswietlaja ..
Postaw piwo autorowi tego posta
 
     
qbs 


Posty: 598
Piwa: 353/29
Skąd: wroc?aw
Wysłany: Sro 26 Lip, 2006   
   Adres forum: n/a


Crash_3d napisał/a
Linki w podpisie sie nie wyswietlaja ..
od tego sa zezwolenia
_________________
ixdude.com
i have been waiting, all of my life, for you to come along and make everything all right. my body shaking, right through the bones, so take my by the hand, please don't leave me here alone. and i wonder if you know just how i feel, i feel... yeah... and i wonder how i know it is... it's real... it's real. coz' i want you to save me, just please save me, save me... coz' i need you to save me, just please save me, save me...
Postaw piwo autorowi tego posta
 
     
Więcej szczegółów
Wystawiono 1 piw(a):
#Crash_3d
#Crash_3d 



Posty: 64
Piwa: 9/6
Skąd: Radom
Wysłany: Sro 26 Lip, 2006   
   Adres forum: 100 przeciez nie podam :)


Cytat
od tego sa zezwolenia

w takim razie sorrx.. poprostu mialem dobrze, zainstalowalem - zle...wybacz Kubu? :) Dobra robota :*

[ Dodano: Sro 26 Lip, 2006 ]
PHP Code:
<?php

if( $user_sig != '' && $user_sig_bbcode_uid != '' )
        {
            $user_sig = ($board_config['allow_bbcode']) ? bbencode_second_pass($user_sig, $user_sig_bbcode_uid, $postrow[$i], $topic_id, 1) : preg_replace("/\:$user_sig_bbcode_uid/si", '', $user_sig);
        }


        if( $bbcode_uid != '' )
        {
            $message = ($board_config['allow_bbcode']) ? bbencode_second_pass($message, $bbcode_uid, $postrow[$i], $topic_id, 0) : preg_replace("/\:$bbcode_uid/si", '', $message);
 
//beer mod
                if ( strlen($board_config['beermod_unhide_forums']) )
                {
                    $beermod_unhide_forums = @explode(',', $board_config['beermod_unhide_forums']);
                    if ( @in_array($forum_id, $beermod_unhide_forums) )
                    {
                        if ( @in_array($userdata['user_id'], $beerdata['user_ids'][$postrow_post_id]) && $userdata['user_id'] != ANONYMOUS )
                        {
                            $userdata_reply_buffered = true;
                            $valid = true;
                        }
                    }
                }
        }


?>


mam zainstalowanego Beer moda i tego, ale jak da sie piwo to wiadomosc nadal jest ukryta. Nie wiem czy to przez ten fragment kodu...:(
Postaw piwo autorowi tego posta
 
     
Wyświetl posty z ostatnich:   
Odpowiedz do tematu
Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Nie możesz załączać plików na tym forum
Nie możesz ściągać załączników na tym forum
Dodaj temat do Ulubionych
Wersja do druku

Skocz do:  



Za treść postów administracja nie odpowiada. W przypadku naruszenia prawa, wszelkie zgromadzone dane o osobie łamiącej prawo, zostaną przekazane odpowiednim władzom. Kopiowanie elementów graficznych oraz rozwiązań technologicznych zastosowanych na niniejszej witrynie surowo wzbronione.
Strona wygenerowana w 0,77 sekundy. Zapytań do SQL: 51