Version 3.1.4
This commit is contained in:
1 parent
1d4720f3e2
commit
ae5c01cc78
2563 files changed
+283048
-240689
No files matched your search
@@ -0,0 +1,10 @@
|
||||
<html>
|
||||
<head><title>IP.Board - Bulletin Board System</title></head>
|
||||
<body>
|
||||
<h1>403: IP.Board -> Forbidden</h1>
|
||||
<hr>
|
||||
You have reached this page in error, please use your back button to return to the forum.
|
||||
<hr>
|
||||
<a href="http://www.invisionboard.com/">IP.Board</a>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,163 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<hookexport>
|
||||
<hookdata>
|
||||
<config>
|
||||
<hook_name>Русские буквы в списке пользователей</hook_name>
|
||||
<hook_desc>Добавление букв русского языка к фильтру по списку пользователей</hook_desc>
|
||||
<hook_author>IBResource, LTD</hook_author>
|
||||
<hook_email/>
|
||||
<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.0</hook_version_human>
|
||||
<hook_version_long>10000</hook_version_long>
|
||||
<hook_extra_data><![CDATA[a:3:{s:9:"templates";a:1:{s:10:"skin_mlist";a:1:{s:0:"";s:15:"member_alpha_ru";}}s:7:"display";a:2:{s:9:"templates";s:32:"От skin_mlist: member_alpha_ru";s:3:"css";s:34:"CSS файлы: 1: ipb_mlist_addon";}s:3:"css";a:1:{s:0:"";s:2:"32";}}]]></hook_extra_data>
|
||||
<hook_key>ibr_mlist_alpha_ru</hook_key>
|
||||
</config>
|
||||
</hookdata>
|
||||
<hookfiles>
|
||||
<file>
|
||||
<hook_file_real>mlist_aplharu.php</hook_file_real>
|
||||
<hook_type>templateHooks</hook_type>
|
||||
<hook_classname>alpha</hook_classname>
|
||||
<hook_data><![CDATA[a:8:{s:12:"dataLocation";s:0:"";s:14:"libApplication";s:0:"";s:15:"classToOverload";s:0:"";s:9:"skinGroup";s:10:"skin_mlist";s:12:"skinFunction";s:16:"member_list_show";s:4:"type";s:7:"foreach";s:2:"id";s:5:"chars";s:8:"position";s:10:"outer.post";}]]></hook_data>
|
||||
<hooks_source><![CDATA[<?php
|
||||
|
||||
class alpha
|
||||
{
|
||||
public function getOutput()
|
||||
{
|
||||
$template = ipsRegistry::instance()->output->getTemplate('mlist')->member_alpha_ru();
|
||||
|
||||
$js = <<<JS
|
||||
|
||||
<script type='text/javascript'>
|
||||
$('alpha_switch').observe('click', function(){
|
||||
if( $('member_alpha_ru') )
|
||||
{
|
||||
$('member_alpha').toggle();
|
||||
$('member_alpha_ru').toggle();
|
||||
}
|
||||
} );
|
||||
|
||||
$('alpha_switch_en').observe('click', function(){
|
||||
if( $('member_alpha') )
|
||||
{
|
||||
$('member_alpha').toggle();
|
||||
$('member_alpha_ru').toggle();
|
||||
}
|
||||
} );
|
||||
|
||||
JS;
|
||||
if ( ord( urldecode(ipsRegistry::$request['quickjump']) ) > 90 )
|
||||
{
|
||||
$js .= <<<JS
|
||||
$('member_alpha').toggle();
|
||||
JS;
|
||||
}
|
||||
else
|
||||
{
|
||||
$js .= <<<JS
|
||||
$('member_alpha_ru').toggle();
|
||||
JS;
|
||||
}
|
||||
|
||||
$js .= <<<JS
|
||||
</script>
|
||||
JS;
|
||||
|
||||
return $template . $js;
|
||||
}
|
||||
}]]></hooks_source>
|
||||
</file>
|
||||
</hookfiles>
|
||||
<hookextras_settings/>
|
||||
<hookextras_language/>
|
||||
<hookextras_modules/>
|
||||
<hookextras_help/>
|
||||
<hookextras_templates>
|
||||
<templates>
|
||||
<template_set_id>0</template_set_id>
|
||||
<template_group>skin_mlist</template_group>
|
||||
<template_content/>
|
||||
<template_name>member_alpha_ru</template_name>
|
||||
<template_data/>
|
||||
<template_updated>1280429247</template_updated>
|
||||
<template_removable>1</template_removable>
|
||||
<template_added_to>1</template_added_to>
|
||||
<template_user_added>1</template_user_added>
|
||||
<template_user_edited>1</template_user_edited>
|
||||
<template_master_key/>
|
||||
<template_set_type/>
|
||||
</templates>
|
||||
<templates>
|
||||
<template_set_id>1</template_set_id>
|
||||
<template_group>skin_mlist</template_group>
|
||||
<template_content/>
|
||||
<template_name>member_alpha_ru</template_name>
|
||||
<template_data/>
|
||||
<template_updated>1280429283</template_updated>
|
||||
<template_removable>1</template_removable>
|
||||
<template_added_to>1</template_added_to>
|
||||
<template_user_added>1</template_user_added>
|
||||
<template_user_edited>1</template_user_edited>
|
||||
<template_master_key/>
|
||||
<template_set_type/>
|
||||
</templates>
|
||||
<templates>
|
||||
<template_set_id>1</template_set_id>
|
||||
<template_group>skin_mlist</template_group>
|
||||
<template_content><![CDATA[ <li id='alpha_switch' class='clickable'>Русские</li>
|
||||
</ol>
|
||||
|
||||
<ol id='member_alpha_ru' class='tab_bar' style='display:block'>
|
||||
<if test="letterquickjump:|:!$this->request['quickjump']">
|
||||
<li class='active'><a href='{parse url="app=members&module=list" template="members_list" base="public" seotitle="false"}' title='{$this->lang->words['members_start_with']}{$letter}'>{$this->lang->words['mlist_view_all_txt']}</a></li>
|
||||
<else />
|
||||
<li><a href='{parse url="app=members&module=list" template="members_list" base="public" seotitle="false"}' title='{$this->lang->words['mlist_view_all_title']}'>{$this->lang->words['mlist_view_all_txt']}</a></li>
|
||||
</if>
|
||||
<foreach loop="array('А','Б','В','Г','Д','Е','Ё','Ж','З','И','Й','К','Л','М','Н','О','П','Р','С','Т','У','Ф','Х','Ц','Ч','Ш','Щ','Ъ','Ы','Ь','Э','Ю','Я') as $char">
|
||||
<if test="letterdefault:|:$letter=urlencode($char)">
|
||||
<li <if test="selected:|:$this->request['quickjump'] == $letter OR $this->request['quickjump'] == $char">class='active'</if>><a href='{parse url="app=members&module=list&{$url}&quickjump={$letter}" template="members_list" base="public" seotitle="false"}' title='{$this->lang->words['mlist_view_start_title']} {$char}'>{$char}</a></li>
|
||||
</if>
|
||||
</foreach>
|
||||
<li id='alpha_switch_en' class='clickable'>Английские</a></li>
|
||||
</ol>]]></template_content>
|
||||
<template_name>member_alpha_ru</template_name>
|
||||
<template_data/>
|
||||
<template_updated>1280430948</template_updated>
|
||||
<template_removable>1</template_removable>
|
||||
<template_added_to>1</template_added_to>
|
||||
<template_user_added>1</template_user_added>
|
||||
<template_user_edited>1</template_user_edited>
|
||||
<template_master_key/>
|
||||
<template_set_type/>
|
||||
</templates>
|
||||
</hookextras_templates>
|
||||
<hookextras_css>
|
||||
<css>
|
||||
<css_updated>1280431859</css_updated>
|
||||
<css_group>ipb_mlist_addon</css_group>
|
||||
<css_content>#member_alpha_ru li {
|
||||
padding: 2px 7px;
|
||||
}
|
||||
|
||||
#member_alpha_ru li.active {
|
||||
padding: 7px 15px;
|
||||
}</css_content>
|
||||
<css_position>0</css_position>
|
||||
<css_added_to>1</css_added_to>
|
||||
<css_app/>
|
||||
<css_app_hide>0</css_app_hide>
|
||||
<css_attributes/>
|
||||
<css_modules/>
|
||||
<css_removed>0</css_removed>
|
||||
<css_master_key>root</css_master_key>
|
||||
</css>
|
||||
</hookextras_css>
|
||||
<hookextras_tasks/>
|
||||
<hookextras_database_create/>
|
||||
<hookextras_database_alter/>
|
||||
<hookextras_database_update/>
|
||||
<hookextras_database_insert/>
|
||||
</hookexport>
|
||||
@@ -1,4 +1,4 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<hookexport>
|
||||
<hookdata>
|
||||
<config>
|
||||
@@ -6,12 +6,12 @@
|
||||
<hook_desc>Выводит на главной станице форумов блок 10 последних изменений статусов</hook_desc>
|
||||
<hook_author>Invision Power Services, Inc</hook_author>
|
||||
<hook_email/>
|
||||
<hook_website>http://www.nulled.ws</hook_website>
|
||||
<hook_website/>
|
||||
<hook_update_check/>
|
||||
<hook_requirements><![CDATA[a:4:{s:20:"hook_ipb_version_min";i:3;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.0</hook_version_human>
|
||||
<hook_version_long/>
|
||||
<hook_extra_data><![CDATA[a:2:{s:7:"display";a:1:{s:9:"templates";s:0:"";}s:9:"templates";a:0:{}}]]></hook_extra_data>
|
||||
<hook_extra_data><![CDATA[a:3:{s:7:"display";a:1:{s:9:"templates";s:0:"";}s:9:"templates";a:0:{}s:8:"database";a:0:{}}]]></hook_extra_data>
|
||||
<hook_key>status_updates</hook_key>
|
||||
</config>
|
||||
</hookdata>
|
||||
@@ -20,52 +20,25 @@
|
||||
<hook_file_real>boardIndexStatusUpdates.php</hook_file_real>
|
||||
<hook_type>templateHooks</hook_type>
|
||||
<hook_classname>boardIndexStatusUpdates</hook_classname>
|
||||
<hook_data><![CDATA[a:6:{s:15:"classToOverload";s:0:"";s:9:"skinGroup";s:11:"skin_boards";s:12:"skinFunction";s:18:"boardIndexTemplate";s:4:"type";s:7:"foreach";s:2:"id";s:11:"side_blocks";s:8:"position";s:9:"outer.pre";}]]></hook_data>
|
||||
<hook_data><![CDATA[a:8:{s:12:"dataLocation";s:0:"";s:14:"libApplication";s:0:"";s:15:"classToOverload";s:0:"";s:9:"skinGroup";s:11:"skin_boards";s:12:"skinFunction";s:18:"boardIndexTemplate";s:4:"type";s:7:"foreach";s:2:"id";s:11:"side_blocks";s:8:"position";s:9:"outer.pre";}]]></hook_data>
|
||||
<hooks_source><![CDATA[<?php
|
||||
|
||||
class boardIndexStatusUpdates
|
||||
{
|
||||
public $registry;
|
||||
private $hookGateway;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
/* Make registry objects */
|
||||
$this->registry = ipsRegistry::instance();
|
||||
$this->DB = $this->registry->DB();
|
||||
$registry = ipsRegistry::instance();
|
||||
|
||||
$classToLoad = IPSLib::loadLibrary( IPSLib::getAppDir( 'members' ) . '/sources/classes/hooks/gateway.php', 'members_hookGateway', 'members' );
|
||||
$this->hookGateway = new $classToLoad( $registry );
|
||||
}
|
||||
|
||||
public function getOutput()
|
||||
{
|
||||
/* Query the last 10 status updates */
|
||||
$this->DB->build( array(
|
||||
'select' => 'pp.*',
|
||||
'from' => array( 'profile_portal' => 'pp' ),
|
||||
'where' => 'pp.pp_status != ""',
|
||||
'order' => 'pp.pp_status_update DESC',
|
||||
'limit' => array( 0, 10 ),
|
||||
'add_join' => array(
|
||||
array(
|
||||
'select' => 'm.members_display_name, m.members_seo_name',
|
||||
'from' => array( 'members' => 'm' ),
|
||||
'where' => 'pp.pp_member_id=m.member_id',
|
||||
'type' => 'left'
|
||||
)
|
||||
)
|
||||
) );
|
||||
$q = $this->DB->execute();
|
||||
|
||||
/* Loop and build output array */
|
||||
$rows = array();
|
||||
|
||||
while( $r = $this->DB->fetch( $q ) )
|
||||
{
|
||||
$r = ipsMember::buildProfilePhoto( $r );
|
||||
$rows[] = $r;
|
||||
}
|
||||
|
||||
/* Return output */
|
||||
return $this->registry->output->getTemplate( 'boards' )->hookBoardIndexStatusUpdates( $rows );
|
||||
}
|
||||
return $this->hookGateway->statusUpdates();
|
||||
}
|
||||
}]]></hooks_source>
|
||||
</file>
|
||||
</hookfiles>
|
||||
@@ -74,6 +47,7 @@ class boardIndexStatusUpdates
|
||||
<hookextras_modules/>
|
||||
<hookextras_help/>
|
||||
<hookextras_templates/>
|
||||
<hookextras_css/>
|
||||
<hookextras_tasks/>
|
||||
<hookextras_database_create/>
|
||||
<hookextras_database_alter/>
|
||||
|
||||
Reference in new issue
Block a user