Topce Posted March 15, 2015 Share Posted March 15, 2015 Всем привет. У кого этот плагин работает "как надо"? Устанавливаю себе, и он не отображается. Язык - Русский Ставлю язык - Английский, плагин начинает работать и отображаться. У кого было такое? P.S. Прикрепить не могу, просто размещу код под спойлером: <?xml version="1.0" encoding="UTF-8"?> <plugin name="Staff Online" version_long="12003" version_human="1.2.3" author="Invisionizer" website="__invisionizer.com" update_check=""><hooks/><widgets><widget key="staffOnline" class="IPSWidget" restrict="sidebar,cms" default_area="sidebar" allow_reuse="" menu_style="menu" embeddable="1"><![CDATA[<?php /** * @package Staff Online * @author <a href='__www.invisionizer.com'>Invisionizer</a> * @copyright (c) 2015 Invisionizer */ namespace IPSplugins<{LOCATION}>widgets; /* To prevent PHP errors (extending class does not exist) revealing path */ if ( !defined( 'IPSSUITE_UNIQUE_KEY' ) ) { header( ( isset( $_SERVER['SERVER_PROTOCOL'] ) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0' ) . ' 403 Forbidden' ); exit; } class _staffOnline extends IPSWidget { public $key = 'staffOnline'; public $app = ''; public $plugin = '<{ID}>'; public function init() { $this->template( array( IPSTheme::i()->getTemplate( 'plugins', 'core', 'global' ), $this->key ) ); parent::init(); } public function configuration( &$form=null ) { if ( $form === null ) { $form = new запрещённый_сайтersForm; } $form->add( new запрещённый_сайтersFormSelect( 'staffOnline_g', IPSSettings::i()->staffOnline_g ? explode( ',', IPSSettings::i()->staffOnline_g ) : array(), FALSE, array( 'options' => IPSMemberGroup::groups(), 'parse' => 'normal', 'multiple' => true ), NULL, NULL, NULL, 'staffOnline_g' ) ); return $form; } public function preConfig( $values ) { return $values; } public function render() { if ( IPSMember::loggedIn()->inGroup(explode(',', IPSSettings::i()->staffOnline_g ) ) ) { return ''; } $groups = IPScoreStaffDirectoryGroup::roots(); try { IPScoreStaffDirectoryUser::load( IPSMember::loggedIn()->member_id, 'leader_type_id', array( 'leader_type=?', 'm' ) ); $userIsStaff = TRUE; } catch( OutOfRangeException $e ) { $userIsStaff = FALSE; } /* Build WHERE clause */ $parts = parse_url( (string) IPSRequest::i()->url() ); $url = $parts['scheme'] . "://" . $parts['host'] . $parts['path']; $where = array( array( 'login_type=' . IPSSessionFront::LOGIN_TYPE_MEMBER ), array( 'current_appcomponent=?', IPSDispatcher::i()->application->directory ), array( 'current_module=?', IPSDispatcher::i()->module->key ), array( 'current_controller=?', IPSDispatcher::i()->controller ), array( 'running_time>' . IPSDateTime::create()->sub( new DateInterval( 'PT30M' ) )->getTimeStamp() ), array( 'location_url IS NOT NULL AND location_url LIKE ?', "{$url}%" ), array( 'member_id IS NOT NULL' ) ); try { $online = IPSDb::i()->select( array( 'member_id', 'member_name', 'seo_name', 'member_group' ), 'core_sessions', $where, 'running_time DESC' )->setKeyField( 'member_id' ); $onlineCount = count($online); } catch ( UnderflowException $e ) { $online = FALSE; } return $this->output( $groups, $userIsStaff, $onlineCount ); } }]]></widget></widgets><htmlFiles><html filename="staffMembers.phtml">PGlwczp0ZW1wbGF0ZSBwYXJhbWV0ZXJzPSIkdXNlcnMsICRvbmxpbmVDb3VudCwgJG9yaWVudGF0aW9uPSd2ZXJ0aWNhbCciIC8+Cnt7aWYgJG9yaWVudGF0aW9uID09ICd2ZXJ0aWNhbCd9fQogICAge3tmb3JlYWNoICR1c2VycyBhcyAkdXNlcn19CiAgICAgICAge3tpZiAkdXNlci0+bWVtYmVyKCktPmlzT25saW5lKCl9fQogICAgICAgICAgICA8bGkgY2xhc3M9J2lwc0RhdGFJdGVtIHt7aWYgJG9yaWVudGF0aW9uID09ICdob3Jpem9udGFsJ319aXBzR3JpZF9zcGFuM3t7ZW5kaWZ9fSc+CiAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSdpcHNEYXRhSXRlbV9pY29uIGlwc1Bvc190b3AnPgogICAgICAgICAgICAgICAgICAgIHt0ZW1wbGF0ZT0idXNlclBob3RvIiBhcHA9ImNvcmUiIGdyb3VwPSJnbG9iYWwiIHBhcmFtcz0iJHVzZXItPm1lbWJlcigpLCAndGlueScifQogICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSJpcHNEYXRhSXRlbV9tYWluIj4KICAgICAgICAgICAgICAgICAgICB7e2lmIFxJUFNcTWVtYmVyOjpsb2dnZWRJbigpLT5sYW5ndWFnZSgpLT5jaGVja0tleUV4aXN0cyggImNvcmVfc3RhZmZfZGlyZWN0b3J5X25hbWVfeyR1c2VyLT5pZH0iICl9fTxhIGhyZWY9J3skdXNlci0+bWVtYmVyKCktPnVybCgpfSc+e2xhbmc9ImNvcmVfc3RhZmZfZGlyZWN0b3J5X25hbWVfeyR1c2VyLT5pZH0ifTwvYT57e2Vsc2V9fXskdXNlci0+bWVtYmVyKCktPmxpbmsoKXxyYXd9e3tlbmRpZn19CiAgICAgICAgICAgICAgICAgICAgICAgIDxwIGNsYXNzPSdpcHNUeXBlX3Jlc2V0IGlwc1R5cGVfbm9ybWFsIGlwc1R5cGVfbGlnaHQnPgogICAgICAgICAgICAgICAgICAgICAgICAgICAge2V4cHJlc3Npb249IlxJUFNcTWVtYmVyXEdyb3VwOjpsb2FkKCAkdXNlci0+bWVtYmVyKCktPm1lbWJlcl9ncm91cF9pZCApLT5mb3JtYXR0ZWROYW1lIiByYXc9InRydWUifQogICAgICAgICAgICAgICAgICAgICAgICAgICAgPHNwYW4gY2xhc3M9Imlwc1Bvc19yaWdodCI+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHt7aWYgIW1lbWJlci5tZW1iZXJzX2Rpc2FibGVfcG0gQU5EICEkdXNlci0+bWVtYmVyKCktPm1lbWJlcnNfZGlzYWJsZV9wbX19CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8YSBocmVmPSd7dXJsPSJhcHA9Y29yZSZtb2R1bGU9bWVzc2FnaW5nJmNvbnRyb2xsZXI9bWVzc2VuZ2VyJmRvPWNvbXBvc2UmdG89eyR1c2VyLT5tZW1iZXIoKS0+bWVtYmVy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Age3tpZiBjb3VudCggJGdyb3VwLT5tZW1iZXJzKCkgKX19CiAgICAgICAgICAgICAgICAgICAgICAgIHt0ZW1wbGF0ZT0ic3RhZmZNZW1iZXJzIiBncm91cD0icGx1Z2lucyIgbG9jYXRpb249Imdsb2JhbCIgYXBwPSJjb3JlIiBwYXJhbXM9IiRncm91cC0+bWVtYmVycygpLCAkb25saW5lQ291bnQsICRvcmllbnRhdGlvbj0ndmVydGljYWwnIn0KICAgICAgICAgICAgICAgICAgICB7e2VuZGlmfX0KICAgICAgICAgICAgICAgIHt7ZW5kZm9yZWFjaH19CiAgICAgICAgICAgIDwvdWw+CiAgICAgICAgPC9kaXY+CiAgICB7e2Vsc2V9fQogICAgICAgIDx1bCBjbGFzcz0naXBzR3JpZCBpcHNHcmlkX2NvbGxhcHNlUGhvbmUgaXBzV2lkZ2V0X2NvbHVtbnMnPgogICAgICAgICAgICB7e2ZvcmVhY2ggJGdyb3VwcyBhcyAkaWR4ID0+ICRncm91cH19CiAgICAgICAgICAgICAgICB7e2lmIGNvdW50KCAkZ3JvdXAtPm1lbWJlcnMoKSApfX0KICAgICAgICAgICAgICAgICAgICB7e2lmICRpZHggPCA0fX0KICAgICAgICAgICAgICAgICAgICAgICAge3RlbXBsYXRlPSJzdGFmZk1lbWJlcnMiIGdyb3VwPSJwbHVnaW5zIiBsb2NhdGlvbj0iZ2xvYmFsIiBhcHA9ImNvcmUiIHBhcmFtcz0iJGdyb3VwLT5tZW1iZXJzKCksICRvbmxpbmVDb3VudCwgJG9yaWVudGF0aW9uIn0KICAgICAgICAgICAgICAgICAgICB7e2VuZGlmfX0KICAgICAgICAgICAgICAgIHt7ZW5kaWZ9fQogICAgICAgICAgICB7e2VuZGZvcmVhY2h9fQogICAgICAgIDwvdWw+CiAgICB7e2VuZGlmfX0KPC9kaXY+Cnt7ZW5kaWZ9fQo=</html></htmlFiles><cssFiles><css filename="staffOnline.css">aHRtbFtkaXI9Imx0ciJdIC5pcHNXaWRnZXRfY29sdW1ucyA+IFtjbGFzcyo9Imlwc0dyaWQiXSB7CiAgICBib3JkZXItcmlnaHQ6IDBweCBzb2xpZCByZ2JhKDAsIDAsIDAsIDAuMSk7CiAgICBwYWRkaW5nLXJpZ2h0OiAxMHB4Owp9</css></cssFiles><jsFiles/><resourcesFiles/><lang><word key="staff_online" js="0">Администраторы онлайн</word><word key="block_staffOnline" js="0">Администраторы онлайн</word><word key="block_staffOnline_desc" js="0">Добавить список сотрудников.</word><word key="staffOnline_g" js="0">Разрешения</word><word key="staffOnline_g_desc" js="0">Исключить группы от просмотра.</word></lang><versions><version long="10000" human="1.0.0"><![CDATA[//<?php /* To prevent PHP errors (extending class does not exist) revealing path */ if ( !defined( 'IPSSUITE_UNIQUE_KEY' ) ) { header( ( isset( $_SERVER['SERVER_PROTOCOL'] ) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0' ) . ' 403 Forbidden' ); exit; } /** * Install Code */ class ips_plugins_setup_install { /** * ... * * @return array If returns TRUE, upgrader will proceed to next step. If it returns any other value, it will set this as the value of the 'extra' GET parameter and rerun this step (useful for loops) */ public function step1() { } // You can create as many additional methods (step2, step3, etc.) as is necessary. // Each step will be executed in a new HTTP request }]]></version><version long="12000" human="1.2.0"><![CDATA[//<?php /* To prevent PHP errors (extending class does not exist) revealing path */ if ( !defined( 'IPSSUITE_UNIQUE_KEY' ) ) { header( ( isset( $_SERVER['SERVER_PROTOCOL'] ) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0' ) . ' 403 Forbidden' ); exit; } /** * 1.2.0 Upgrade Code */ class ips_plugins_setup_upg_12000 { /** * ... * * @return array If returns TRUE, upgrader will proceed to next step. If it returns any other value, it will set this as the value of the 'extra' GET parameter and rerun this step (useful for loops) */ public function step1() { } // You can create as many additional methods (step2, step3, etc.) as is necessary. // Each step will be executed in a new HTTP request }]]></version><version long="12001" human="1.2.1"><![CDATA[//<?php /* To prevent PHP errors (extending class does not exist) revealing path */ if ( !defined( 'IPSSUITE_UNIQUE_KEY' ) ) { header( ( isset( $_SERVER['SERVER_PROTOCOL'] ) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0' ) . ' 403 Forbidden' ); exit; } /** * 1.2.1 Upgrade Code */ class ips_plugins_setup_upg_12001 { /** * ... * * @return array If returns TRUE, upgrader will proceed to next step. If it returns any other value, it will set this as the value of the 'extra' GET parameter and rerun this step (useful for loops) */ public function step1() { } // You can create as many additional methods (step2, step3, etc.) as is necessary. // Each step will be executed in a new HTTP request }]]></version><version long="12002" human="1.2.2"><![CDATA[//<?php /* To prevent PHP errors (extending class does not exist) revealing path */ if ( !defined( 'IPSSUITE_UNIQUE_KEY' ) ) { header( ( isset( $_SERVER['SERVER_PROTOCOL'] ) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0' ) . ' 403 Forbidden' ); exit; } /** * 1.2.2 Upgrade Code */ class ips_plugins_setup_upg_12002 { /** * ... * * @return array If returns TRUE, upgrader will proceed to next step. If it returns any other value, it will set this as the value of the 'extra' GET parameter and rerun this step (useful for loops) */ public function step1() { } // You can create as many additional methods (step2, step3, etc.) as is necessary. // Each step will be executed in a new HTTP request }]]></version><version long="12003" human="1.2.3"><![CDATA[//<?php /* To prevent PHP errors (extending class does not exist) revealing path */ if ( !defined( 'IPSSUITE_UNIQUE_KEY' ) ) { header( ( isset( $_SERVER['SERVER_PROTOCOL'] ) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0' ) . ' 403 Forbidden' ); exit; } /** * 1.2.3 Upgrade Code */ class ips_plugins_setup_upg_12003 { /** * ... * * @return array If returns TRUE, upgrader will proceed to next step. If it returns any other value, it will set this as the value of the 'extra' GET parameter and rerun this step (useful for loops) */ public function step1() { } // You can create as many additional methods (step2, step3, etc.) as is necessary. // Each step will be executed in a new HTTP request }]]></version></versions></plugin> Quote Link to comment Share on other sites More sharing options...
andros0789 Posted April 9, 2015 Share Posted April 9, 2015 Всем привет. У кого этот плагин работает "как надо"? Устанавливаю себе, и он не отображается. Язык - Русский Ставлю язык - Английский, плагин начинает работать и отображаться. У кого было такое? P.S. Прикрепить не могу, просто размещу код под спойлером: <?xml version="1.0" encoding="UTF-8"?> <plugin name="Staff Online" version_long="12003" version_human="1.2.3" author="Invisionizer" website="__invisionizer.com" update_check=""><hooks/><widgets><widget key="staffOnline" class="IPSWidget" restrict="sidebar,cms" default_area="sidebar" allow_reuse="" menu_style="menu" embeddable="1"><![CDATA[<?php /** * @package Staff Online * @author <a href='__www.invisionizer.com'>Invisionizer</a> * @copyright (c) 2015 Invisionizer */ namespace IPSplugins<{LOCATION}>widgets; /* To prevent PHP errors (extending class does not exist) revealing path */ if ( !defined( 'IPSSUITE_UNIQUE_KEY' ) ) { header( ( isset( $_SERVER['SERVER_PROTOCOL'] ) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0' ) . ' 403 Forbidden' ); exit; } class _staffOnline extends IPSWidget { public $key = 'staffOnline'; public $app = ''; public $plugin = '<{ID}>'; public function init() { $this->template( array( IPSTheme::i()->getTemplate( 'plugins', 'core', 'global' ), $this->key ) ); parent::init(); } public function configuration( &$form=null ) { if ( $form === null ) { $form = new запрещённый_сайтersForm; } $form->add( new запрещённый_сайтersFormSelect( 'staffOnline_g', IPSSettings::i()->staffOnline_g ? explode( ',', IPSSettings::i()->staffOnline_g ) : array(), FALSE, array( 'options' => IPSMemberGroup::groups(), 'parse' => 'normal', 'multiple' => true ), NULL, NULL, NULL, 'staffOnline_g' ) ); return $form; } public function preConfig( $values ) { return $values; } public function render() { if ( IPSMember::loggedIn()->inGroup(explode(',', IPSSettings::i()->staffOnline_g ) ) ) { return ''; } $groups = IPScoreStaffDirectoryGroup::roots(); try { IPScoreStaffDirectoryUser::load( IPSMember::loggedIn()->member_id, 'leader_type_id', array( 'leader_type=?', 'm' ) ); $userIsStaff = TRUE; } catch( OutOfRangeException $e ) { $userIsStaff = FALSE; } /* Build WHERE clause */ $parts = parse_url( (string) IPSRequest::i()->url() ); $url = $parts['scheme'] . "://" . $parts['host'] . $parts['path']; $where = array( array( 'login_type=' . IPSSessionFront::LOGIN_TYPE_MEMBER ), array( 'current_appcomponent=?', IPSDispatcher::i()->application->directory ), array( 'current_module=?', IPSDispatcher::i()->module->key ), array( 'current_controller=?', IPSDispatcher::i()->controller ), array( 'running_time>' . IPSDateTime::create()->sub( new DateInterval( 'PT30M' ) )->getTimeStamp() ), array( 'location_url IS NOT NULL AND location_url LIKE ?', "{$url}%" ), array( 'member_id IS NOT NULL' ) ); try { $online = IPSDb::i()->select( array( 'member_id', 'member_name', 'seo_name', 'member_group' ), 'core_sessions', $where, 'running_time DESC' )->setKeyField( 'member_id' ); $onlineCount = count($online); } catch ( UnderflowException $e ) { $online = FALSE; } return $this->output( $groups, $userIsStaff, $onlineCount ); } }]]></widget></widgets><htmlFiles><html filename="staffMembers.phtml">PGlwczp0ZW1wbGF0ZSBwYXJhbWV0ZXJzPSIkdXNlcnMsICRvbmxpbmVDb3VudCwgJG9yaWVudGF0aW9uPSd2ZXJ0aWNhbCciIC8+Cnt7aWYgJG9yaWVudGF0aW9uID09ICd2ZXJ0aWNhbCd9fQogICAge3tmb3JlYWNoICR1c2VycyBhcyAkdXNlcn19CiAgICAgICAge3tpZiAkdXNlci0+bWVtYmVyKCktPmlzT25saW5lKCl9fQogICAgICAgICAgICA8bGkgY2xhc3M9J2lwc0RhdGFJdGVtIHt7aWYgJG9yaWVudGF0aW9uID09ICdob3Jpem9udGFsJ319aXBzR3JpZF9zcGFuM3t7ZW5kaWZ9fSc+CiAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPSdpcHNEYXRhSXRlbV9pY29uIGlwc1Bvc190b3AnPgogICAgICAgICAgICAgICAgICAgIHt0ZW1wbGF0ZT0idXNlclBob3RvIiBhcHA9ImNvcmUiIGdyb3VwPSJnbG9iYWwiIHBhcmFtcz0iJHVzZXItPm1lbWJlcigpLCAndGlueScifQogICAgICAgICAgICAgICAgPC9kaXY+CiAgICAgICAgICAgICAgICA8Z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1mb3JjZVJlbG9hZCBkYXRhLWlwc0RpYWxvZy1yZW1vdGVTdWJtaXQgZGF0YS1pcHNEaWFsb2ctZmxhc2hNZXNzYWdlPSJ7bGFuZz0ibWVzc2FnZV9zZW50In0iPjxpIGNsYXNzPSdmYSBmYS1lbnZlbG9wZSc+PC9pPiA8L2E+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAge3tlbmRpZn19CiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L3NwYW4+CiAgICAgICAgICAgICAgICAgICAgICAgIDwvcD4KICAgICAgICAgICAgICAgIDwvZGl2PgogICAgICAgICAgICA8L2xpPgogICAgICAgICB7e2VuZGlmfX0KICAgIHt7ZW5kZm9yZWFjaH19Cnt7ZW5kaWZ9fQo=</html><html filename="staffOnline.phtml">PGlwczp0ZW1wbGF0ZSBwYXJhbWV0ZXJzPSIkZ3JvdXBzLCAkdXNlcklzU3RhZmY9RkFMU0UsICRvbmxpbmVDb3VudCwgJG9yaWVudGF0aW9uPSd2ZXJ0aWNhbCciIC8+Cnt7aWYgIWVtcHR5KCAkb25saW5lQ291bnQgKSB9fQo8aDMgY2xhc3M9J2lwc1R5cGVfcmVzZXQgaXBzV2lkZ2V0X3RpdGxlJz57bGFuZz0iYmxvY2tfc3RhZmZPbmxpbmUifTwvaDM+CjxkaXYgY2xhc3M9J2lwc1dpZGdldF9pbm5lcic+CiAgICB7e2lmICRvcmllbnRhdGlvbiA9PSAndmVydGljYWwnfX0KICAgICAgICA8ZGl2IGNsYXNzPSdpcHNQYWRfaGFsZiBpcHNCb3gnPgogICAgICAgICAgICA8dWwgY2xhc3M9J2lwc0RhdGFMaXN0IGlwc0RhdGFMaXN0X3JlZHVjZWRTcGFjaW5nJz4KICAgICAgICAgICAgICAgIHt7Zm9yZWFjaCAkZ3JvdXBzIGFzICRncm91cH19CiAgICAgICAgICAgICAgICAgICAge3tpZiBjb3VudCggJGdyb3VwLT5tZW1iZXJzKCkgKX19CiAgICAgICAgICAgICAgICAgICAgICAgIHt0ZW1wbGF0ZT0ic3RhZmZNZW1iZXJzIiBncm91cD0icGx1Z2lucyIgbG9jYXRpb249Imdsb2JhbCIgYXBwPSJjb3JlIiBwYXJhbXM9IiRncm91cC0+bWVtYmVycygpLCAkb25saW5lQ291bnQsICRvcmllbnRhdGlvbj0ndmVydGljYWwnIn0KICAgICAgICAgICAgICAgICAgICB7e2VuZGlmfX0KICAgICAgICAgICAgICAgIHt7ZW5kZm9yZWFjaH19CiAgICAgICAgICAgIDwvdWw+CiAgICAgICAgPC9kaXY+CiAgICB7e2Vsc2V9fQogICAgICAgIDx1bCBjbGFzcz0naXBzR3JpZCBpcHNHcmlkX2NvbGxhcHNlUGhvbmUgaXBzV2lkZ2V0X2NvbHVtbnMnPgogICAgICAgICAgICB7e2ZvcmVhY2ggJGdyb3VwcyBhcyAkaWR4ID0+ICRncm91cH19CiAgICAgICAgICAgICAgICB7e2lmIGNvdW50KCAkZ3JvdXAtPm1lbWJlcnMoKSApfX0KICAgICAgICAgICAgICAgICAgICB7e2lmICRpZHggPCA0fX0KICAgICAgICAgICAgICAgICAgICAgICAge3RlbXBsYXRlPSJzdGFmZk1lbWJlcnMiIGdyb3VwPSJwbHVnaW5zIiBsb2NhdGlvbj0iZ2xvYmFsIiBhcHA9ImNvcmUiIHBhcmFtcz0iJGdyb3VwLT5tZW1iZXJzKCksICRvbmxpbmVDb3VudCwgJG9yaWVudGF0aW9uIn0KICAgICAgICAgICAgICAgICAgICB7e2VuZGlmfX0KICAgICAgICAgICAgICAgIHt7ZW5kaWZ9fQogICAgICAgICAgICB7e2VuZGZvcmVhY2h9fQogICAgICAgIDwvdWw+CiAgICB7e2VuZGlmfX0KPC9kaXY+Cnt7ZW5kaWZ9fQo=</html></htmlFiles><cssFiles><css filename="staffOnline.css">aHRtbFtkaXI9Imx0ciJdIC5pcHNXaWRnZXRfY29sdW1ucyA+IFtjbGFzcyo9Imlwc0dyaWQiXSB7CiAgICBib3JkZXItcmlnaHQ6IDBweCBzb2xpZCByZ2JhKDAsIDAsIDAsIDAuMSk7CiAgICBwYWRkaW5nLXJpZ2h0OiAxMHB4Owp9</css></cssFiles><jsFiles/><resourcesFiles/><lang><word key="staff_online" js="0">Администраторы онлайн</word><word key="block_staffOnline" js="0">Администраторы онлайн</word><word key="block_staffOnline_desc" js="0">Добавить список сотрудников.</word><word key="staffOnline_g" js="0">Разрешения</word><word key="staffOnline_g_desc" js="0">Исключить группы от просмотра.</word></lang><versions><version long="10000" human="1.0.0"><![CDATA[//<?php /* To prevent PHP errors (extending class does not exist) revealing path */ if ( !defined( 'IPSSUITE_UNIQUE_KEY' ) ) { header( ( isset( $_SERVER['SERVER_PROTOCOL'] ) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0' ) . ' 403 Forbidden' ); exit; } /** * Install Code */ class ips_plugins_setup_install { /** * ... * * @return array If returns TRUE, upgrader will proceed to next step. If it returns any other value, it will set this as the value of the 'extra' GET parameter and rerun this step (useful for loops) */ public function step1() { } // You can create as many additional methods (step2, step3, etc.) as is necessary. // Each step will be executed in a new HTTP request }]]></version><version long="12000" human="1.2.0"><![CDATA[//<?php /* To prevent PHP errors (extending class does not exist) revealing path */ if ( !defined( 'IPSSUITE_UNIQUE_KEY' ) ) { header( ( isset( $_SERVER['SERVER_PROTOCOL'] ) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0' ) . ' 403 Forbidden' ); exit; } /** * 1.2.0 Upgrade Code */ class ips_plugins_setup_upg_12000 { /** * ... * * @return array If returns TRUE, upgrader will proceed to next step. If it returns any other value, it will set this as the value of the 'extra' GET parameter and rerun this step (useful for loops) */ public function step1() { } // You can create as many additional methods (step2, step3, etc.) as is necessary. // Each step will be executed in a new HTTP request }]]></version><version long="12001" human="1.2.1"><![CDATA[//<?php /* To prevent PHP errors (extending class does not exist) revealing path */ if ( !defined( 'IPSSUITE_UNIQUE_KEY' ) ) { header( ( isset( $_SERVER['SERVER_PROTOCOL'] ) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0' ) . ' 403 Forbidden' ); exit; } /** * 1.2.1 Upgrade Code */ class ips_plugins_setup_upg_12001 { /** * ... * * @return array If returns TRUE, upgrader will proceed to next step. If it returns any other value, it will set this as the value of the 'extra' GET parameter and rerun this step (useful for loops) */ public function step1() { } // You can create as many additional methods (step2, step3, etc.) as is necessary. // Each step will be executed in a new HTTP request }]]></version><version long="12002" human="1.2.2"><![CDATA[//<?php /* To prevent PHP errors (extending class does not exist) revealing path */ if ( !defined( 'IPSSUITE_UNIQUE_KEY' ) ) { header( ( isset( $_SERVER['SERVER_PROTOCOL'] ) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0' ) . ' 403 Forbidden' ); exit; } /** * 1.2.2 Upgrade Code */ class ips_plugins_setup_upg_12002 { /** * ... * * @return array If returns TRUE, upgrader will proceed to next step. If it returns any other value, it will set this as the value of the 'extra' GET parameter and rerun this step (useful for loops) */ public function step1() { } // You can create as many additional methods (step2, step3, etc.) as is necessary. // Each step will be executed in a new HTTP request }]]></version><version long="12003" human="1.2.3"><![CDATA[//<?php /* To prevent PHP errors (extending class does not exist) revealing path */ if ( !defined( 'IPSSUITE_UNIQUE_KEY' ) ) { header( ( isset( $_SERVER['SERVER_PROTOCOL'] ) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0' ) . ' 403 Forbidden' ); exit; } /** * 1.2.3 Upgrade Code */ class ips_plugins_setup_upg_12003 { /** * ... * * @return array If returns TRUE, upgrader will proceed to next step. If it returns any other value, it will set this as the value of the 'extra' GET parameter and rerun this step (useful for loops) */ public function step1() { } // You can create as many additional methods (step2, step3, etc.) as is necessary. // Each step will be executed in a new HTTP request }]]></version></versions></plugin> У меня то работает, то нет, брал с вебтэлк плагин, и все плагины что брал оттуда то работают, то нет. Обновление страницы делаешь он пропадает, снова жму F5 и он появляется. Quote Link to comment Share on other sites More sharing options...
Topce Posted April 9, 2015 Author Share Posted April 9, 2015 У меня то работает, то нет, брал с вебтэлк плагин, и все плагины что брал оттуда то работают, то нет. Обновление страницы делаешь он пропадает, снова жму F5 и он появляется. Аналогично, временно отказался от всех плагинов (сейчас 3 штуки стоит, основных и нужных) Quote Link to comment Share on other sites More sharing options...
HooLIGUN Posted April 9, 2015 Share Posted April 9, 2015 '?do=embed' frameborder='0' data-embedContent>> Вот этот хук работает стабильно.покрайней мере у меня Quote Link to comment Share on other sites More sharing options...
Topce Posted April 9, 2015 Author Share Posted April 9, 2015 '?do=embed' frameborder='0' data-embedContent>> Вот этот хук работает стабильно.покрайней мере у меня Мы обсуждаем тут 4 версию форума.. А с 3.х.х не хочется что-то мурыжить )) Quote Link to comment Share on other sites More sharing options...
HooLIGUN Posted April 9, 2015 Share Posted April 9, 2015 Мы обсуждаем тут 4 версию форума.. А с 3.х.х не хочется что-то мурыжить )) Ох,не обратил внимания... :) Quote Link to comment Share on other sites More sharing options...
Topce Posted April 9, 2015 Author Share Posted April 9, 2015 Ох,не обратил внимания... Так тут раздел весь посвящен 4 версии ))) Quote Link to comment Share on other sites More sharing options...
HooLIGUN Posted April 9, 2015 Share Posted April 9, 2015 Так тут раздел весь посвящен 4 версии )))Я как раз на раздел внимания и не обратил. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.