20wicia09
Użytkownik-
Postów
15 -
Dołączył
-
Ostatnia wizyta
Informacje o forum
-
Wersja
IP.Board 3.3.4
Ostatnie wizyty
Osiągnięcia 20wicia09
-
Ile może kosztować takowa przeróbka ?
-
Nie, nie. Szukam po prostu wskazówek. Czy ciężko coś takiego zrobić?
-
Witam! Zassałem z internetu takową aplikację do IPB! Czytałem na tamtym forum, że można w łatwy sposób zmienić, aby działał na wersji 3.3.x , lecz ja osobiście nie wiem jak to zrobić. Tutaj do pobrania aplikacia! Panele.rar
-
ROZWIĄZANY: Dodanie nowego Tab + dodanie kodu PHP
20wicia09 odpowiedział(a) na 20wicia09 temat w Programowanie / tworzenie styli
Okey! Dziękuję bardzo! Do zamknięcia! PROBLEM ROZWIĄZANY! -
ROZWIĄZANY: Dodanie nowego Tab + dodanie kodu PHP
20wicia09 odpowiedział(a) na 20wicia09 temat w Programowanie / tworzenie styli
Okey! Działa Mam jeszcze jedno pytanko. Jak zdobić, aby były wyświetlane polskie znaki? -
ROZWIĄZANY: Dodanie nowego Tab + dodanie kodu PHP
20wicia09 odpowiedział(a) na 20wicia09 temat w Programowanie / tworzenie styli
Zrobiłem tak jak radzisz, ale nadal białe tło. -
ROZWIĄZANY: Dodanie nowego Tab + dodanie kodu PHP
20wicia09 odpowiedział(a) na 20wicia09 temat w Programowanie / tworzenie styli
Mam teraz tak w pliku PHP, ale nadal to samo: $content = $this->registry->getClass('output')->getTemplate('global')->stwPostac(); Coś takiego jest: http://lspd.lss-rp.pl/aaa/index.php?app=core&module=global§ion=page -
ROZWIĄZANY: Dodanie nowego Tab + dodanie kodu PHP
20wicia09 odpowiedział(a) na 20wicia09 temat w Programowanie / tworzenie styli
Okey. Od początku. Teraz tylko o tworzeniu podstrony: Panel --> Style i sablony ---> "Nazwa szablonu" ---> Główne Szablony (skin_global) Tam dodałem nowy bit o nazwie "stwPostac" Kod, który wstawiłem do bitu jest następujący: <h3 class='maintitle'> {$this->lang->words['m_title_postacie']}</h3> <div class='ipsBox'> <div class='ipsBox_container'> {$content} </br> </br> TEKST </br> </br> </br> <h3 class='maintitle'> {$this->lang->words['m_title_logi']}</h3> </div> </ br> ściągnąłem plik, który znajduje się w TYMtemacie: i do niego w $content = napisałem: $content = $this->registry->getClass('output')->getTemplate('global')->stwPostac (); Plik PHP wgrałem na FTP do : admin\applications\core\modules_public\global\page.php CAŁY KOD PHP WYGLĄDA TAK: <?php //----------------------------------------------- // (DP30) Custom Page //----------------------------------------------- //----------------------------------------------- // Application //----------------------------------------------- // Author: DawPi // Site: http://www.ipslink.pl/ // Written on: 04 / 02 / 2010 //----------------------------------------------- // Copyright (C) 2010 DawPi // All Rights Reserved //----------------------------------------------- if ( ! defined( 'IN_IPB' ) ) { print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded all the relevant files."; exit(); } class public_core_global_page extends ipsCommand { /** * Class entry point * * @access public * @param object Registry reference * @return void [Outputs to screen/redirects] */ public function doExecute( ipsRegistry $registry ) { /* Make object */ $this->registry = $registry; $this->DB = $this->registry->DB(); $this->settings =& $this->registry->fetchSettings(); $this->request =& $this->registry->fetchRequest(); $this->lang = $this->registry->getClass('class_localization'); $this->member = $this->registry->member(); $this->memberData =& $this->registry->member()->fetchMemberData(); $this->cache = $this->registry->cache(); $this->caches =& $this->registry->cache()->fetchCaches(); //----------------------------------------- // What to do? //----------------------------------------- switch( $this->request['do'] ) { default: $this->showPage(); } //----------------------------------------- // If we have any HTML to print, do so... //----------------------------------------- $this->output .= "<div id='board_footer'><p id='copyright'>Powered by (DP30) Custom Page © ".date('Y')." <a target='_blank' href='http://www.forum.invisionize.pl/'>DawPi</a></p></div>"; $this->registry->getClass('output')->addContent( $this->output ); $this->registry->getClass('output')->sendOutput( array( 'TITLE' => $this->page_title, 'JS' => 0, 'NAV' => $this->nav ) ); } /** * Show custom page * * @access public * @return string HTML Page */ public function showPage() { /* Set title */ $this->registry->output->setTitle( 'Custom Page by DawPi' ); /* Set navigation */ $this->registry->output->addNavigation( 'Nazwa strony w nawigacji', '' ); /* Add content */ $content = $this->registry->getClass('output')->getTemplate('global')->stwPostac (); } } // End of class I jak wejdę w link: www.mójadres.pl/index.php?app=core&module=global§ion=page jest tylko białe tło. -
ROZWIĄZANY: Dodanie nowego Tab + dodanie kodu PHP
20wicia09 odpowiedział(a) na 20wicia09 temat w Programowanie / tworzenie styli
Kod taki mam w PHP: <?php //----------------------------------------------- // (DP30) Custom Page //----------------------------------------------- //----------------------------------------------- // Application //----------------------------------------------- // Author: DawPi // Site: http://www.ipslink.pl/ // Written on: 04 / 02 / 2010 //----------------------------------------------- // Copyright (C) 2010 DawPi // All Rights Reserved //----------------------------------------------- if ( ! defined( 'IN_IPB' ) ) { print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded all the relevant files."; exit(); } class public_core_global_page extends ipsCommand { /** * Class entry point * * @access public * @param object Registry reference * @return void [Outputs to screen/redirects] */ public function doExecute( ipsRegistry $registry ) { /* Make object */ $this->registry = $registry; $this->DB = $this->registry->DB(); $this->settings =& $this->registry->fetchSettings(); $this->request =& $this->registry->fetchRequest(); $this->lang = $this->registry->getClass('class_localization'); $this->member = $this->registry->member(); $this->memberData =& $this->registry->member()->fetchMemberData(); $this->cache = $this->registry->cache(); $this->caches =& $this->registry->cache()->fetchCaches(); //----------------------------------------- // What to do? //----------------------------------------- switch( $this->request['do'] ) { default: $this->showPage(); } //----------------------------------------- // If we have any HTML to print, do so... //----------------------------------------- $this->output .= "<div id='board_footer'><p id='copyright'>Powered by (DP30) Custom Page © ".date('Y')." <a target='_blank' href='http://www.forum.invisionize.pl/'>DawPi</a></p></div>"; $this->registry->getClass('output')->addContent( $this->output ); $this->registry->getClass('output')->sendOutput( array( 'TITLE' => $this->page_title, 'JS' => 0, 'NAV' => $this->nav ) ); } /** * Show custom page * * @access public * @return string HTML Page */ public function return_html_block( $member=array() ) { $content = $this->registry->getClass('output')->getTemplate('global')->stwPostac (); return $content ? $content : $this->registry->getClass('output')->getTemplate('profile')->tabNoContent( 'err_no_aboutme_to_show' ); } } // End of class -
ROZWIĄZANY: Dodanie nowego Tab + dodanie kodu PHP
20wicia09 odpowiedział(a) na 20wicia09 temat w Programowanie / tworzenie styli
/admin/applications/core/modules_public/global/page.php on line 52 W Linijce 52 w pliku PHP mam: $this->showPage(); -
ROZWIĄZANY: Dodanie nowego Tab + dodanie kodu PHP
20wicia09 odpowiedział(a) na 20wicia09 temat w Programowanie / tworzenie styli
Nic więcej nie zrobiłem, bo kompletnie nie mam pomysłu co dalej. -
ROZWIĄZANY: Dodanie nowego Tab + dodanie kodu PHP
20wicia09 odpowiedział(a) na 20wicia09 temat w Programowanie / tworzenie styli
Jednak mam lekkie problemy ze stworzeniem podstrony z możliwością dodania kodu PHP: Zrobiłem tak: Wszedłem do: Panel --> Style i sablony ---> "Nazwa szablonu" ---> Główne Szablony (skin_global) Tam dodałem nowy bit o nazwie "stwPostac" I wstawiłem tam takie coś: <h3 class='maintitle'> {$this->lang->words['m_title_postacie']}</h3> <div class='ipsBox'> <div class='ipsBox_container'> {$content} </br> </br> Friedrich Klempher </br> </br> </br> <h3 class='maintitle'> {$this->lang->words['m_title_logi']}</h3> </div> </ br> <div class="no_messages"> {$this->lang->words['m_title_kary']}</div> W pliku PHP w miejsce : $content = Dałem: $content = $this->registry->getClass('output')->getTemplate('global')->stwPostac (); -
ROZWIĄZANY: Dodanie nowego Tab + dodanie kodu PHP
20wicia09 odpowiedział(a) na 20wicia09 temat w Programowanie / tworzenie styli
Okey! Udało mi się dodać Tab -
ROZWIĄZANY: Dodanie nowego Tab + dodanie kodu PHP
20wicia09 odpowiedział(a) na 20wicia09 temat w Programowanie / tworzenie styli
Mógłbym prosić o wskazówki co zrobić z tymi dwoma kodami? ?php /** * Plug in name (Default tab name) */ $CONFIG['plugin_name'] = 'My Plugin'; /** * Language string for the tab */ $CONFIG['plugin_lang_bit'] = 'language_key_my_plugin'; /** * Plug in key (must be the same as the main {file}.php name */ $CONFIG['plugin_key'] = 'myplugin'; /** * Show tab? */ $CONFIG['plugin_enabled'] = 1; /** * Order */ $CONFIG['plugin_order'] = 10; <?php class profile_myplugin extends profile_plugin_parent { /** * Feturn HTML block * * @access public * @param array Member information * @return string HTML block */ public function return_html_block( $member=array() ) { $content = ''; return $content ? $content : $this->registry->getClass('output')->getTemplate('profile')->tabNoContent( 'err_no_aboutme_to_show' ); } } -
ROZWIĄZANY: Dodanie nowego Tab + dodanie kodu PHP
20wicia09 opublikował(a) temat w Programowanie / tworzenie styli
Witajcie! Chciałbym dodać nowy Tab w przeglądzie profilu, lecz za bardzo nie wiem gdzie i jak to zrobić.robiłem tak : Panel --> Style i szablony ---> "Nazwa szablonu" ---> Profil użytkownika. Dodałem nowy bit i co dalej? Druga sprawa to dodanie nowego "pustego okna", w którym mogę wpisać kod PHP oraz "podmenu"
