Skocz do zawartości
"Idzie nowe..." - o zmianach i nie tylko ×
Przeniesienie zakupów z IPS Marketplace / Moving bought items from IPS Marketplace ×

sferis

Użytkownik
  • Postów

    136
  • Dołączył

  • Ostatnia wizyta

Odpowiedzi opublikowane przez sferis

  1. Witam,

    przedłużam od 6 lat co pół roku licencję za 25$. Teraz chciałbym to na razie wstrzymać i znowu wrócić do płacenia jak wyjdzie IPB 4.0 Czy jest to możliwe? Czy jeśli teraz przestanę płacić, będę mógł kiedyś wznowić licencję za te 25$ czy będę musiał płacić od początku (175$).

     

    Z góry dzięki za odpowiedź.

  2. Witam,

    do tej pory wszystko miałem OK i działałem na wersji 3.4.4. Zaktualizowałem przed chwilą forum do wersji 3.4.5 i przestały działać wszelkie edytory. Zrobiłem również diffa w moim skinie jak i wyczyściłem cache i przebudowałem templatki.

     

    W konsoli mam następujące błędy: 

    Uncaught SyntaxError: Unexpected token / ckeditor.js:31
    1. Uncaught ReferenceError: CKEDITOR is not defined index.php:621
    1. Uncaught ReferenceError: CKEDITOR is not defined index.php:2077
    1. Uncaught ReferenceError: CKEDITOR is not defined

     

    Bardzo proszę o pomoc.

  3. Witam serdecznie,

    od jakiegoś czasu nie działa wysyłanie ŻADNYCH maili z mojego forum. Po prostu nie przychodzą.

    Uruchomiłem tester e-maili w panelu admina i przy próbie wysłania wiadomości wyświetla się taki oto dużo mówiący komunikat: "Could not send the email" ...

    Z góry dzięki za pomoc.

  4. preDisplayParse should be called with the content that has previously been run through preDbParse. You may optionally then call memberViewImages. This method will unparse images if the user has specified in their user control panel that they do not wish to view member posted images. It is a good idea to call this method to allow the user more control over how content is displayed throughout the site.

    A skoro już nie ma tej funkcji to jej nie używaj - proste. Nie ma jej a jednak wszystko inne działa, a więc nie jest ona ci do niczego potrzebna. A jak uważasz, że jest ci niezbędna to poszukaj jej w poprzednich wersjach lub napisz swoją.

    Jak to nie jest mi potrzebna, jak mi nie parsuje emotikonek? Adres emotikonek wyświetla się w taki sposób: http://localhost/forum/public/style_emoticons/<#EMO_DIR#>/biggrin.gif W takim razie skoro IPS usunął taką funkcję, to jak proponuje parsować uśmieszki?

  5. Witam serdecznie,

    napisałem własną aplikację i chcę sparsować BBCode. Według poradnika na stronie http://community.invisionpower.com/resources/documentation/index.html/_/developer-resources/api-methods/ipstext-r133 należałoby użyć takiego kodu:

    IPSText::getTextClass('bbcode')->parse_html	 = 0;
     IPSText::getTextClass('bbcode')->parse_nl2br    = 1;
     IPSText::getTextClass('bbcode')->parse_bbcode    = 1;
     IPSText::getTextClass('bbcode')->parse_smilies    = 1;
     IPSText::getTextClass('bbcode')->parsing_section   = 'myapp_comment';
     IPSText::getTextClass( 'bbcode' )->parsing_mgroup   = $row['member_group_id'];
     IPSText::getTextClass( 'bbcode' )->parsing_mgroup_others = $row['mgroup_others'];
    
     $content = IPSText::getTextClass('bbcode')->preDisplayParse( $row['comment'] );
     $content  = IPSText::getTextClass('bbcode')->memberViewImages( $content );
    

    Problem jest jednak taki, że funkcja memberViewImages() nie istnieje, a więc nie są parsowane żadne obrazki (w tym uśmieszki).

    Będę wdzięczny za pomoc.

    Pozdrawiam

  6. Nie działa....

    <?xml version="1.0" encoding="utf-8"?>
    <hookexport>
     <hookdata>
           <config>
           <hook_name>Nazwa</hook_name>
           <hook_desc>Opis</hook_desc>
           <hook_author>Patryk</hook_author>
           <hook_email>mail</hook_email>
           <hook_website>strona</hook_website>
           <hook_update_check/>
           <hook_requirements><![CDATA[a:4:{s:20:"hook_ipb_version_min";i:0;s:20:"hook_ipb_version_max";i:0;s:20:"hook_php_version_min";s:0:"";s:20:"hook_php_version_max";s:0:"";}]]></hook_requirements>
           <hook_version_human>1.0</hook_version_human>
           <hook_version_long>1000</hook_version_long>
           <hook_extra_data/>
           <hook_key>languageManager</hook_key>
           </config>
     </hookdata>
     <hookfiles>
           <file>
           <hook_file_real>languageManager.php</hook_file_real>
           <hook_type>libraryHooks</hook_type>
           <hook_classname>languageManager</hook_classname>
           <hook_data><![CDATA[a:8:{s:12:"dataLocation";s:0:"";s:14:"libApplication";s:4:"core";s:15:"classToOverload";s:11:"output";s:9:"skinGroup";N;s:12:"skinFunction";N;s:4:"type";N;s:2:"id";N;s:8:"position";N;}]]></hook_data>
         <hooks_source><![CDATA[<?php
    
    class languageManager extends (~extends~)
    {
    public function __construct( ipsRegistry $registry, $initialize=FALSE )
       {
          echo "dzialahook";
           parent::__construct( $reqistry, $initialize );
       }
    }]]></hooks_source>
           </file>
     </hookfiles>
     <hookextras_settings/>
     <hookextras_language/>
     <hookextras_modules/>
     <hookextras_help/>
     <hookextras_templates/>
     <hookextras_css/>
     <hookextras_tasks/>
     <hookextras_database_create/>
     <hookextras_database_alter/>
     <hookextras_database_update/>
     <hookextras_database_insert/>
    </hookexport>

    Jak sprawdziłem jak to wygląda w folderze hooks to jest tak:

    class languageManager extends 
    {
    public function __construct( ipsRegistry $registry, $initialize=FALSE )
    {
      	echo "dzialahook";
       	parent::__construct( $reqistry, $initialize );
    }
    }

    czyli nie wpisuje jaka klase ma rozszerzac

  7. Witam,

    czy jest możliwość przeładowania ipsRegistry za pomocą hooka?

    Zrobiłem takie coś:

    <?xml version="1.0" encoding="utf-8"?>
    <hookexport>
     <hookdata>
    <config>
     	<hook_name>Nazwa</hook_name>
     	<hook_desc>Opis</hook_desc>
     	<hook_author>Patryk</hook_author>
     	<hook_email>mail</hook_email>
     	<hook_website>strona</hook_website>
     	<hook_update_check/>
     	<hook_requirements><![CDATA[a:4:{s:20:"hook_ipb_version_min";i:0;s:20:"hook_ipb_version_max";i:0;s:20:"hook_php_version_min";s:0:"";s:20:"hook_php_version_max";s:0:"";}]]></hook_requirements>
     	<hook_version_human>1.0</hook_version_human>
     	<hook_version_long>1000</hook_version_long>
     	<hook_extra_data/>
     	<hook_key>languageManager</hook_key>
    </config>
     </hookdata>
     <hookfiles>
    <file>
     	<hook_file_real>languageManager.php</hook_file_real>
     	<hook_type>libraryHooks</hook_type>
     	<hook_classname>languageManager</hook_classname>
     	<hook_data><![CDATA[a:8:{s:12:"dataLocation";s:0:"";s:14:"libApplication";s:4:"core";s:15:"classToOverload";s:11:"ipsRegistry";s:9:"skinGroup";N;s:12:"skinFunction";N;s:4:"type";N;s:2:"id";N;s:8:"position";N;}]]></hook_data>
     	<hooks_source><![CDATA[<?php
    
    class languageManager extends (~extends~)
    {
    static public function setMember( $member_id )
    {
    		echo 'test';
    	parent::setMember( $member_id );
    }
    }]]></hooks_source>
    </file>
     </hookfiles>
     <hookextras_settings/>
     <hookextras_language/>
     <hookextras_modules/>
     <hookextras_help/>
     <hookextras_templates/>
     <hookextras_css/>
     <hookextras_tasks/>
     <hookextras_database_create/>
     <hookextras_database_alter/>
     <hookextras_database_update/>
     <hookextras_database_insert/>
    </hookexport>
    

    i nie działa...

  8. Dobra, wszystko działa, dziękuję :)

    Zapomniałem dodać na samej górze tego:

     <script type='text/javascript'> //<![CDATA[    jsDebug			= 0; /* Must come before JS includes */    USE_RTE			= 0;    DISABLE_AJAX	= parseInt(0); /* Disables ajax requests where text is sent to the DB; helpful for charset issues */    inACP			= false;    var isRTL		= false;    var rtlIe		= '';    var rtlFull		= ''; //]]> </script>

    i dlatego nie działało

  9. Wkleiłem takie coś w headzie:

     <script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/prototype/1.7/prototype.js'></script>
    	<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/scriptaculous/1.8/scriptaculous.js?load=effects,dragdrop,builder'></script>
    
    <script type='text/javascript' src='http://localhost/forum/public/min/index.php?ipbv=32003&charset=UTF-8&f=public/js/ipb.js,cache/lang_cache/2/ipb.lang.js,public/js/ips.hovercard.js,public/js/ips.quickpm.js,public/js/ips.board.js' charset='UTF-8'></script>
    <script type='text/javascript'>
    //<![CDATA[
    
    	/* ---- URLs ---- */
    	ipb.vars['base_url'] 			= 'http://localhost/forum/index.php?';
    	ipb.vars['board_url']			= 'http://localhost/forum';
    	ipb.vars['img_url'] 			= "http://localhost/forum/public/style_images/purple";
    	ipb.vars['loading_img'] 		= 'http://localhost/forum/public/style_images/purple/loading.gif';
    	ipb.vars['active_app']			= 'forums';
    	ipb.vars['upload_url']			= 'http://localhost/forum/uploads';
    	/* ---- Member ---- */
    	ipb.vars['member_id']			= parseInt( 1 );
    	ipb.vars['is_supmod']			= parseInt( 1 );
    	ipb.vars['is_admin']			= parseInt( 1 );
    	ipb.vars['secure_hash'] 		= '59a721e974d4a27e06bd4d5f95ea8347';
    	ipb.vars['session_id']			= 'ee70d696099e74a731388e7f63498e8d';
    	ipb.vars['twitter_id']			= 0;
    	ipb.vars['fb_uid']				= 1587064998;
    	ipb.vars['auto_dst']			= parseInt( 1 );
    	ipb.vars['dst_in_use']			= parseInt( 1 );
    	ipb.vars['is_touch']			= false;
    	ipb.vars['member_group']		= {"g_mem_info":"1"}
    	/* ---- cookies ----- */
    	ipb.vars['cookie_id'] 			= '';
    	ipb.vars['cookie_domain'] 		= '';
    	ipb.vars['cookie_path']			= '/';
    	/* ---- Rate imgs ---- */
    	ipb.vars['rate_img_on']			= 'http://localhost/forum/public/style_images/purple/star.png';
    	ipb.vars['rate_img_off']		= 'http://localhost/forum/public/style_images/purple/star_off.png';
    	ipb.vars['rate_img_rated']		= 'http://localhost/forum/public/style_images/purple/star_rated.png';
    	/* ---- Uploads ---- */
    	ipb.vars['swfupload_swf']		= 'http://localhost/forum/public/js/3rd_party/swfupload/swfupload.swf';
    	ipb.vars['swfupload_enabled']	= true;
    	ipb.vars['use_swf_upload']		= ( 'flash' == 'flash' ) ? true : false;
    	ipb.vars['swfupload_debug']		= false;
    	/* ---- other ---- */
    	ipb.vars['highlight_color'] 	= "#ade57a";
    	ipb.vars['charset']				= "UTF-8";
    	ipb.vars['seo_enabled']			= 1;
    
    	ipb.vars['seo_params']			= {"start":"-","end":"\/","varBlock":"\/page__","varSep":"__"};
    
    	/* Templates/Language */
    	ipb.templates['inlineMsg']		= "";
    	ipb.templates['ajax_loading'] 	= "<div id='ajax_loading'><img src='http://localhost/forum/public/style_images/purple/ajax_loading.gif' alt='" + ipb.lang['loading'] + "' /></div>";
    	ipb.templates['close_popup']	= "<img src='http://localhost/forum/public/style_images/purple/close_popup.png' alt='x' />";
    	ipb.templates['rss_shell']		= new Template("<ul id='rss_menu' class='ipbmenu_content'>#{items}</ul>");
    	ipb.templates['rss_item']		= new Template("<li><a href='#{url}' title='#{title}'>#{title}</a></li>");
    	ipb.templates['m_add_friend']	= new Template("<a href='http://localhost/forum/index.php?app=members&module=profile&section=friends&do=add&member_id=#{id}' title='Dodaj jako znajomego' class='ipsButton_secondary'><img src='http://localhost/forum/public/style_images/purple/user_add.png' alt='Dodaj jako znajomego' /></a>");
    	ipb.templates['m_rem_friend']	= new Template("<a href='http://localhost/forum/index.php?app=members&module=profile&section=friends&do=remove&member_id=#{id}' title='Usuń znajomego' class='ipsButton_secondary'><img src='http://localhost/forum/public/style_images/purple/user_delete.png' alt='Usuń znajomego' /></a>");
    	ipb.templates['autocomplete_wrap'] = new Template("<ul id='#{id}' class='ipb_autocomplete' style='width: 250px;'></ul>");
    	ipb.templates['autocomplete_item'] = new Template("<li id='#{id}' data-url='#{url}'><img src='#{img}' alt='' class='ipsUserPhoto ipsUserPhoto_mini' />  #{itemvalue}</li>");
    	ipb.templates['page_jump']		= new Template("<div id='#{id}_wrap' class='ipbmenu_content'><h3 class='bar'>Przejdź do strony</h3><p class='ipsPad'><input type='text' class='input_text' id='#{id}_input' size='8' /> <input type='submit' value='Wykonaj' class='input_submit add_folder' id='#{id}_submit' /></p></div>");
    	ipb.templates['global_notify'] 	= new Template("<div class='popupWrapper'><div class='popupInner'><div class='ipsPad'>#{message} #{close}</div></div></div>");
    
    
    	ipb.templates['header_menu'] 	= new Template("<div id='#{id}' class='ipsHeaderMenu boxShadow'></div>");
    
    		ipb.global.checkDST();
    
    	Loader.boot();
    //]]>
    </script>

    Z tego co się zorientowałem wszystko psują zmienne typu ipb.*. Gdy dałem alert('test'); przed ipb.vars['base_url'] to wyświetliło alert, jeżeli dałem po to nie wyswietlilo tego alertu...

×
×
  • Dodaj nową pozycję...

Powiadomienie o plikach cookie

Umieściliśmy na Twoim urządzeniu pliki cookie, aby pomóc Ci usprawnić przeglądanie strony. Możesz dostosować ustawienia plików cookie, w przeciwnym wypadku zakładamy, że wyrażasz na to zgodę.