• Rejestracja
vBHELP.pl - polskie wsparcie vBulletin
Strona 5 z 5 PierwszyPierwszy ... 345
  1. #41
    Awatar g0rn
    g0rn jest nieaktywny Stały bywalec
    Dołączył
    May 2009
    Posty
    188
    Przydatne posty
    5

    Domyślnie

    Cytat Zamieszczone przez hash_ Zobacz posta
    Hm, to nic nie dalo, dalej biala strona.

    Moze to wina mojego .htacces?
    Mam tak:
    Kod:
    RewriteEngine On
    
    RewriteRule ^/?(af|sq|ar|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|de|el|iw|hi|hu|is|id|ga|it|ja|ko|lv|lt|mk|ms|mt|no|fa|pl|pt|ro|ru|sr|sk|sl|es|sw|sv|zh-TW|th|tr|uk|vi|sq|ca|et|tl|gl|hi|id|lv|lt|mt|sl|uk|vi|cy|yi)/$ vbenterprisetranslator_seo.php?vbet_lang=$1&redirected=/index.php [L,QSA]
    RewriteRule ^/?(af|sq|ar|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|de|el|iw|hi|hu|is|id|ga|it|ja|ko|lv|lt|mk|ms|mt|no|fa|pl|pt|ro|ru|sr|sk|sl|es|sw|sv|zh-TW|th|tr|uk|vi|sq|ca|et|tl|gl|hi|id|lv|lt|mt|sl|uk|vi|cy|yi)/(.*)?$ vbenterprisetranslator_seo.php?vbet_lang=$1&redirected=/$2 [L,QSA]
    
    RewriteCond %{REQUEST_URI} !(admincp/|modcp/|vbseo_sitemap/|cron)
    RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbenterprisetranslator_seo.php [L,QSA]
    
    RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
    
    RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron)
    RewriteRule ^((archive/)?(.*\.php(/.*)?)?)$ vbseo.php [L,QSA]
    
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !^(admincp|modcp|clientscript|cpstyles|images)/
    RewriteRule ^(.+)$ vbseo.php [L,QSA]
    Daj tu do wglądu twój php W nim tkwi problem Pewnie złe odwołanie masz Przed momentem sprawdzałem i bezproblemowo poszło



  2. #42
    hash_ jest nieaktywny Stały bywalec
    Dołączył
    Jun 2009
    Posty
    152

    Domyślnie

    moj test.php a portokalli tonazwa szablonu

    Kod:
      <?php
    // ####################### SET PHP ENVIRONMENT ###########################
    error_reporting(E_ALL & ~E_NOTICE);
    // #################### DEFINE IMPORTANT CONSTANTS #######################
    define('THIS_SCRIPT', 'test'); // change this depending on your filename
    // ################### PRE-CACHE TEMPLATES AND DATA ######################
    // get special phrase groups
    $phrasegroups = array();
    // get special data templates from the datastore
    $specialtemplates = array();
    // pre-cache templates used by all actions
    $globaltemplates = array('Portokalli');
    // pre-cache templates used by specific actions
    $actiontemplates = array();
    // ######################### REQUIRE BACK-END ############################
    require_once('./global.php');
    // #######################################################################
    // ######################## START MAIN SCRIPT ############################
    // #######################################################################
    $navbits = array();
    $navbits[$parent] = 'Testowa Strona';
    $navbits = construct_navbits($navbits);
    eval('$navbar = "' . fetch_template('navbar') . '";');
    eval('print_output("' . fetch_template('Portokalli') . '");');
    ?>


  3. #43
    hash_ jest nieaktywny Stały bywalec
    Dołączył
    Jun 2009
    Posty
    152

    Domyślnie

    hehe jest juz ok, zle robilem, a raczej zle zrozumialem, to co mialem wyedytowac i zamiast TEST wstawic tam nazwe szablonuy ktory tworze, a ja tam wpisywalem ogolnie nazwe mojego skina :P juz dziala dzieki


    ---------

    Ale mam teraz pytanie chce sobie tam w nowa ta strone wstawic klienta IRC dokladnie taki kod zamiast tego "Tekst wyswietlany na stronie" wstawiam kod
    Kod:
    <?php
    
    
    {
    global $context, $scripturl, $boardurl, $modSettings ;
    
    if (isset($modSettings['ircWidth'])) {
        $width = $modSettings['ircWidth'];
    } else {
        $width = '600';
    }
    
    if (isset($modSettings['ircHeight'])) {
        $height = $modSettings['ircHeight'];
    } else {
        $height = '450';
    }
    
    if (isset($modSettings['ircServer'])) {
        $server = $modSettings['ircServer'];
    } else {
        $server = 'irc.rizon.net';
    }
    
    if (isset($modSettings['ircChannels'])) {
        $channels = $modSettings['ircChannels'];
    } else {
        $channels = '#mójkanał';
    }
    
    if (isset($modSettings['ircPost'])) {
        $suffix = $modSettings['ircPost'];
    } else {
        $suffix = 'Twój nick';
    }
    
    if ($user_info['is_guest']) {
        $userchatname = 'MibbitUser' . rand(1,10000);
    } else {
        $userchatname = $context['user']['name'] . $suffix;
    }
    
    $channels = str_replace("#","%23",$channels);
    $userchatname = str_replace(" ","_",$userchatname);
    $userchatname = str_replace(".","_",$userchatname);
    
    echo' <div style="margin:0 auto;text-align:center">';
    
    echo"
    <iframe width=$width height=$height scrolling='no' frameborder='0'
     src='http://embed.mibbit.com/?server=" . $server . "&channel=" . $channels . "&nick=" . $userchatname . "&noServerTab=false'>
    </iframe></div>";
    
    }
    
    ?>
    Lecz to nie dziala wchodzac na strone
    Kod:
    Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/admin/domains/xxxxxxxxxxxxxx.pl/public_html/test.php(42) : eval()'d code on line 24
    Wiec rozumiem ze php nie moge wstawiac w takie "nowe strony" ?

    PS:
    przy save and reloaded jak zapisuje nowa strone to wywala mi tez to:
    Kod:
    The following error occurred when attempting to evaluate this template:
    
    Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/admin/domains/xxxxxxxxxxxx.pl/public_html/includes/adminfunctions_template.php(3950) : eval()'d code on line 7
    
    This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
    Ostatnio edytowane przez hash_ ; 14.10.2010 o 09:16


  4. #44
    devilman jest nieaktywny Użytkownik
    Dołączył
    Aug 2010
    Posty
    93
    Przydatne posty
    1

    Domyślnie

    Witam mam pytanie odnośnie tego artykułu jak dodać ten wygenerowany już adres do stopki żeby się pokazało w stopce


    <if condition="$show['modcplink']"><a href="$modcpdir/index.php$session[sessionurl_q]">$vbphrase[mod]</a> -</if>
    kod wygląda tak ale nie wiem jak go stworzyć dla artykułu który utworzyłem


  5. #45
    devilman jest nieaktywny Użytkownik
    Dołączył
    Aug 2010
    Posty
    93
    Przydatne posty
    1

    Domyślnie

    Proszę o podpowiedź, czy mam zastosować zwyły odsyłacz czy potrzebny jest jakiś kod?


  6. #46
    Awatar g0rn
    g0rn jest nieaktywny Stały bywalec
    Dołączył
    May 2009
    Posty
    188
    Przydatne posty
    5

    Domyślnie

    Cytat Zamieszczone przez devilman Zobacz posta
    Witam mam pytanie odnośnie tego artykułu jak dodać ten wygenerowany już adres do stopki żeby się pokazało w stopce

    <if condition="$show['modcplink']"><a href="$modcpdir/index.php$session[sessionurl_q]">$vbphrase[mod]</a> -</if>


    kod wygląda tak ale nie wiem jak go stworzyć dla artykułu który utworzyłem
    w utworzonym template wstaw
    Kod html:
    <if condition="$show['modcplink']"><a href="$modcpdir/index.php$session[sessionurl_q]">$vbphrase[mod]</a> -</if>
    przed
    Kod html:
    $footer



  7. #47
    dyzio jest nieaktywny Użytkownik
    Dołączył
    Mar 2010
    Posty
    63

    Domyślnie

    Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: navbar in [path]/includes/functions.php on line 4055

    Parse error: syntax error, unexpected T_STRING in /home/busydays/domains/4fragers.com/public_html/test.php(42) : eval()'d code on line 1

    Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: 4fragers.com vb 4.1.0 in [path]/includes/functions.php on line 4055


    U mnie taki blad, co moze byc przyczyna?


  8. #48
    Awatar Wayne
    Wayne jest nieaktywny Stały bywalec
    Dołączył
    Oct 2009
    Posty
    157
    Przydatne posty
    26

    Domyślnie

    Cytat Zamieszczone przez dyzio Zobacz posta
    Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: navbar in [path]/includes/functions.php on line 4055

    Parse error: syntax error, unexpected T_STRING in /home/busydays/domains/4fragers.com/public_html/test.php(42) : eval()'d code on line 1

    Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: 4fragers.com vb 4.1.0 in [path]/includes/functions.php on line 4055


    U mnie taki blad, co moze byc przyczyna?
    To działa na vB3.
    Natomiast jeżeli chcesz na vB4, zapraszam -> http://vbhelp.pl/artykuly-faq-22/wla...etin-4-a-5595/


Strona 5 z 5 PierwszyPierwszy ... 345

Podobne wątki

  1. Propozycja co do strony głownej forum
    By adekkwiek* in forum Sugestie i problemy
    Odpowiedzi: 2
    Ostatni post / autor: 16.02.2010, 08:41
  2. Wygląd strony głównej forum
    By Chajtek in forum Pytania i problemy
    Odpowiedzi: 4
    Ostatni post / autor: 24.11.2009, 16:49
  3. Nowa odsłona strony vBulletin.com
    By Max in forum Oficjalne ogłoszenia vBulletin
    Odpowiedzi: 0
    Ostatni post / autor: 14.10.2009, 22:51
  4. Reklama w kolumnie z prawej strony forum
    By jarcow in forum Pytania i problemy
    Odpowiedzi: 6
    Ostatni post / autor: 10.10.2009, 15:09
  5. Tytuł strony głownej forum
    By Syhro in forum Pytania i problemy
    Odpowiedzi: 8
    Ostatni post / autor: 13.05.2008, 18:21
Chmurka.pl

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67