Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <hookexport>
- <hookdata>
- <config>
- <hook_name>adCode Speciali</hook_name>
- <hook_desc>annunci pubblicitari personalizzati per sezioni aree...</hook_desc>
- <hook_author>BomAle</hook_author>
- <hook_email>ale54@live.it</hook_email>
- <hook_website>http://nodownloadzoneforum.net</hook_website>
- <hook_update_check/>
- <hook_requirements><![CDATA[a:3:{s:21:"required_applications";a: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:2:{s:7:"display";a:1:{s:8:"settings";s:30:"Impostazioni Mobile, Sexy zone";}s:8:"settings";a:2:{i:0;s:14:"ad_code_mobile";i:1;s:12:"ad_code_sexy";}}]]></hook_extra_data>
- <hook_key>adcode_special</hook_key>
- <hook_global_caches/>
- </config>
- </hookdata>
- <hookfiles>
- <file>
- <hook_file_real>adCode_special_topic_view_first_post.php</hook_file_real>
- <hook_type>libraryHooks</hook_type>
- <hook_classname>adCode_special_topic_view_first_post</hook_classname>
- <hook_data><![CDATA[a:8:{s:12:"dataLocation";s:0:"";s:14:"libApplication";s:6:"forums";s:15:"classToOverload";s:25:"app_forums_classes_topics";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
- /**
- * Description of adCode_special_topic_view_first_post
- *
- * @author Alessandro <ale54@live.it>
- * @date 13-lug-2015, 15.19.02
- */
- class adCode_special_topic_view_first_post extends (~extends~)
- {
- public function parsePost( array $post )
- {
- $after_post = parent::parsePost($post);
- if ( $after_post['post']['_adCode'] && !IPS_IS_AJAX && $this->registry->getClass('IPSAdCode')->userCanViewAds() )
- {
- if(in_array( $this->request['f'], $this->registry->getClass('class_forums')->forumsGetChildren(113, array(113)) ))
- {
- $after_post['post']['_adCode'] = $this->registry->getClass('IPSAdCode')->getAdCode( 'ad_code_sexy' );
- }
- elseif( $this->registry->output->isTouchDevice() || $this->registry->output->getAsMobileSkin() )
- {
- $after_post['post']['_adCode'] = $this->registry->getClass('IPSAdCode')->getAdCode( 'ad_code_mobile' );
- }
- }
- return $after_post;
- }
- }
- ]]></hooks_source>
- </file>
- <file>
- <hook_file_real>adCode_special_topic_view.php</hook_file_real>
- <hook_type>commandHooks</hook_type>
- <hook_classname>adCode_special_topic_view</hook_classname>
- <hook_data><![CDATA[a:8:{s:12:"dataLocation";s:0:"";s:14:"libApplication";s:0:"";s:15:"classToOverload";s:27:"public_forums_forums_topics";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
- /**
- * Description of adCode_special_topic_view
- *
- * @author Alessandro <ale54@live.it>
- * @date 13-lug-2015, 14.42.43
- */
- class adCode_special_topic_view extends (~extends~)
- {
- public function doExecute( ipsRegistry $registry )
- {
- if( $this->registry->getClass('IPSAdCode')->userCanViewAds() )
- {
- if( in_array( $this->request['f'], $this->registry->getClass('class_forums')->forumsGetChildren(113, array(113)) ) )
- {
- ipsRegistry::$settings['ad_code_topic_view_header'] = $this->settings['ad_code_sexy'];
- ipsRegistry::$settings['ad_code_topic_view_footer'] = $this->settings['ad_code_sexy'];
- //$this->registry->getClass('IPSAdCode')->setGlobalCode( 'header', 'ad_code_sexy' );
- //$this->registry->getClass('IPSAdCode')->setGlobalCode( 'footer', 'ad_code_sexy' );
- }
- elseif( $this->registry->output->isTouchDevice() || $this->registry->output->getAsMobileSkin() )
- {
- ipsRegistry::$settings['ad_code_topic_view_header'] = $this->settings['ad_code_mobile'];
- ipsRegistry::$settings['ad_code_topic_view_footer'] = $this->settings['ad_code_mobile'];
- //$this->registry->getClass('IPSAdCode')->setGlobalCode( 'header', 'ad_code_mobile' );
- //$this->registry->getClass('IPSAdCode')->setGlobalCode( 'footer', 'ad_code_mobile' );
- }
- }
- parent::doExecute( $registry );
- }
- }
- ]]></hooks_source>
- </file>
- <file>
- <hook_file_real>adCode_special_forum_view.php</hook_file_real>
- <hook_type>commandHooks</hook_type>
- <hook_classname>adCode_special_forum_view</hook_classname>
- <hook_data><![CDATA[a:8:{s:12:"dataLocation";s:0:"";s:14:"libApplication";s:0:"";s:15:"classToOverload";s:27:"public_forums_forums_forums";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
- /**
- * Description of adCode_special_forum_view
- *
- * @author Alessandro <ale54@live.it>
- * @date 13-lug-2015, 13.42.05
- */
- class adCode_special_forum_view extends (~extends~)
- {
- public function doExecute( ipsRegistry $registry )
- {
- if( $this->registry->getClass('IPSAdCode')->userCanViewAds() )
- {
- if( in_array( $this->request['f'], $this->registry->getClass('class_forums')->forumsGetChildren(113, array(113)) ) )
- {
- ipsRegistry::$settings['ad_code_forum_view_header'] = $this->settings['ad_code_sexy'];
- ipsRegistry::$settings['ad_code_forum_view_footer'] = $this->settings['ad_code_sexy'];
- //$this->registry->getClass('IPSAdCode')->setGlobalCode( 'header', 'ad_code_sexy' );
- //$this->registry->getClass('IPSAdCode')->setGlobalCode( 'footer', 'ad_code_sexy' );
- }
- elseif( $this->registry->output->isTouchDevice() || $this->registry->output->getAsMobileSkin() )
- {
- ipsRegistry::$settings['ad_code_forum_view_header'] = $this->settings['ad_code_mobile'];
- ipsRegistry::$settings['ad_code_forum_view_footer'] = $this->settings['ad_code_mobile'];
- //$this->registry->getClass('IPSAdCode')->setGlobalCode( 'header', 'ad_code_mobile' );
- //$this->registry->getClass('IPSAdCode')->setGlobalCode( 'footer', 'ad_code_mobile' );
- }
- }
- parent::doExecute( $registry );
- }
- }]]></hooks_source>
- </file>
- <file>
- <hook_file_real>adCode_special_forum_view_first_topic.php</hook_file_real>
- <hook_type>skinHooks</hook_type>
- <hook_classname>adCode_special_forum_view_first_topic</hook_classname>
- <hook_data><![CDATA[a:8:{s:12:"dataLocation";s:0:"";s:14:"libApplication";s:0:"";s:15:"classToOverload";s:10:"skin_forum";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[
- /**
- * Description of adCode_special_forum_view_first_topic
- *
- * @author Alessandro <ale54@live.it>
- * @date 13-lug-2015, 15.02.23
- */
- class adCode_special_forum_view_first_topic extends (~extends~)
- {
- public function topic($data, $forum_data, $other_data, $inforum)
- {
- if( isset($data['_adCode']) AND $data['_adCode'] )
- {
- if(in_array( $this->request['f'], $this->registry->getClass('class_forums')->forumsGetChildren(113, array(113)) ))
- {
- $data['_adCode'] = $this->registry->getClass('IPSAdCode')->getAdCode( 'ad_code_sexy' );
- }
- elseif( $this->registry->output->isTouchDevice() || $this->registry->output->getAsMobileSkin() )
- {
- $data['_adCode'] = $this->registry->getClass('IPSAdCode')->getAdCode( 'ad_code_mobile' );
- }
- }
- return parent::topic($data, $forum_data, $other_data, $inforum);
- }
- }
- ]]></hooks_source>
- </file>
- <file>
- <hook_file_real>adCode_special_global.php</hook_file_real>
- <hook_type>skinHooks</hook_type>
- <hook_classname>adCode_special_global</hook_classname>
- <hook_data><![CDATA[a:8:{s:12:"dataLocation";s:0:"";s:14:"libApplication";s:0:"";s:15:"classToOverload";s:11:"skin_global";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[class adCode_special_global extends (~extends~)
- {
- /**
- * Description of adCode_special_global
- *
- * @author Alessandro <ale54@live.it>
- * @date 5-sett-2015, 22.19.05
- */
- public function globalTemplate($html, $documentHeadItems, $css, $jsModules, $metaTags, array $header_items, $items=array(), $footer_items=array(), $stats=array())
- {
- if( $this->registry->getClass('IPSAdCode')->userCanViewAds() && ( $this->registry->output->isTouchDevice() || $this->registry->output->getAsMobileSkin() ) )
- {
- $items['adHeaderCode'] = $this->registry->getClass('IPSAdCode')->getAdCode( 'ad_code_mobile' );
- $items['adFooterCode'] = $this->registry->getClass('IPSAdCode')->getAdCode( 'ad_code_mobile' );
- }
- return parent::globalTemplate( $html, $documentHeadItems, $css, $jsModules, $metaTags, $header_items, $items, $footer_items, $stats );
- }
- }]]></hooks_source>
- </file>
- </hookfiles>
- <hookextras_settings>
- <setting>
- <conf_is_title>1</conf_is_title>
- <conf_title_title>Ad Code Integration</conf_title_title>
- <conf_title_desc>These settings will allow you to enter ad codes that can then be displayed throughout your forum</conf_title_desc>
- <conf_title_noshow>0</conf_title_noshow>
- <conf_title_keyword>adcodeintegration</conf_title_keyword>
- <conf_title_app>core</conf_title_app>
- <conf_title_tab>System</conf_title_tab>
- </setting>
- <setting>
- <conf_id>1336</conf_id>
- <conf_title>Mobile</conf_title>
- <conf_description>testtttttttttttttt</conf_description>
- <conf_group>1</conf_group>
- <conf_type>textarea</conf_type>
- <conf_key>ad_code_mobile</conf_key>
- <conf_value/>
- <conf_default/>
- <conf_extra/>
- <conf_evalphp/>
- <conf_protected>0</conf_protected>
- <conf_position>15</conf_position>
- <conf_start_group/>
- <conf_add_cache>1</conf_add_cache>
- <conf_keywords>adcode_special</conf_keywords>
- <conf_title_keyword>adcodeintegration</conf_title_keyword>
- <conf_is_title>0</conf_is_title>
- </setting>
- <setting>
- <conf_id>1327</conf_id>
- <conf_title>Sexy zone</conf_title>
- <conf_description><![CDATA[disponibile per le sezioni <a href="http://nodownloadzoneforum.net/forum/113-sexy-zone/">sexy e figlie</a>...]]></conf_description>
- <conf_group>1</conf_group>
- <conf_type>textarea</conf_type>
- <conf_key>ad_code_sexy</conf_key>
- <conf_value/>
- <conf_default/>
- <conf_extra/>
- <conf_evalphp/>
- <conf_protected>0</conf_protected>
- <conf_position>14</conf_position>
- <conf_start_group>SPECIALI BY BOMALE</conf_start_group>
- <conf_add_cache>1</conf_add_cache>
- <conf_keywords>adcode_special</conf_keywords>
- <conf_title_keyword>adcodeintegration</conf_title_keyword>
- <conf_is_title>0</conf_is_title>
- </setting>
- </hookextras_settings>
- <hookextras_language/>
- <hookextras_modules/>
- <hookextras_help/>
- <hookextras_templates/>
- <hookextras_css/>
- <hookextras_replacements/>
- <hookextras_tasks/>
- <hookextras_database_create/>
- <hookextras_database_alter/>
- <hookextras_database_update/>
- <hookextras_database_insert/>
- </hookexport>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement