[Nulled] » Nulled Warez Scripts » Forums scripts » Discuz! script » Discuz Add a Custom Data Call module
November 16 2022

Discuz Add a Custom Data Call module

First add data calls
Second, source/language/block/directory new module module template
         Source / language / lang_blockclass.php Creates a module in module management
 
 Third, background update DIY module classification cache
 
 Fourth, add the appropriate module template
 
 The specific operation looks like this:
 First add data calls
1> New folders in the source/class/block/directory, for example: RankList
2>
 Under the Randlist folder, create a new one BlockClass.php , as follows:


<?php
      if(!defined('IN_DISCUZ')) {
            exit('Access Denied');
      }
$blockclass = array('name' => lang('blockclass', 'blockclass_ranklist'));
?>
Create a new one under the Randlist folder Block_rankListMember.php , as follows:


<?php
      if(!defined('IN_DISCUZ')) {
            exit('Access Denied');
      }

class block_ranklistmember extends discuz_block {

public $setting = array();


public function block_ranklistmember() {
$ this-> Setting = array (.........); // This is initialized for configuration
        }
 
        public function name() {
                                 // Install the data source here
                return lang('blockclass', 'blockclass_ranklist_script_ranklist');
        }

public function blockclass() {
// This type of call of the call module
                return array('ranklist', lang('blockclass', 'blockclass_ranklist'));
         }

public function fields() {
// This is set to fields. In addition to the variables supported by Discuz itself, only the fields of this can be named in the template.
                 $fields = array(.........); 
                 return $fields;
          }
 
        public function getsetting() {
                return $this->setting;
        }
 
 
        public function getdata($style, $parameter) {
                                 $ list = array (.......); // This is based on the actual situation or relevant data
                return array('html' => '', 'data' => $list);
        }
}
 
 
?>
 Lang (....) in the above code, it's language processing, it's a bit. There are also $reparts, $fields, $Lists formats can refer to the format of the corresponding variable in the source/class/block/element/ Block_Member.php .


Secondly, new files under the source /language / block / directory
<?php
      if(!defined('IN_DISCUZ')) {
            exit('Access Denied');
      }
$lang = array(
'RANKLIST_FIDS' => 'Edition Block',
'Ranklist_Orderbyby' => 'Sorting Mode', 
                         'Ranklist_Orderby_thread_num' => 'changes in topic',
'ranklist_dateline' => 'Sort time section',
'Ranklist_detetine_nolimit' => 'None',
'ranklist_dtteline_last_week' => 'Last week,
'RANKLIST_DTTELEL_LAST_MONH' => 'Last month',
'RANKLIST_STARTROW' => 'Started number data lines,
'ranklist_items' => 'displays the number of data bands, 
                         'ranklist_items_comment' => 'Sets the number of topic entries displayed once, set to integers greater than 0',
);
?>


source/language/lang_blockclass.php
<?php
......
'blockclass_ranklist' => "lists",
'blockclass_ranklist_forum_member' => "Troubleshooting user,
                 «BOCKCLASS_RANKLIST_SCRIPT_FORUM_MEMBER '=>« Advanceded »,
                 'blockclass_ranklist_field_author' => 'User name',
                 'blockclass_ranklist_field_authorid' => 'id id id',
                 'blockclass_ranklist_field_avatar' => 'user avatar',
'blockclass_ranklist_field_avatar_middle' => 'user avatar (middle)',
                 'blockclass_ranklist_field_avatar_big' => 'user avatar (large)',
                 'blockclass_member_field_authorbio' => 'User self-standing',
'blockclass_ranklist_field_thread_num' => 'subject',
        ....
?>
Third, enter the background cache of the update tool, should check the "DIY Module Classification Class" and start updating.
 
 
 Fourth, enter the template of the background-portal-module, add the appropriate template.

Information

Visitors who are in the group Guests they can't download files.
Log in to the site under your login and password or if you are a new user go through the process registrations on the website.

Comments:

This publication has no comments yet. You can be the first!

Information the publication:

  • Author of the publication: zews
  • Date of publication: 16 November 2022 12:42
  • Publication category(s): Discuz! script / Modules Discuz!
  • Number of views of the publication: 154
  • Number of comments to the publication: 0

Related News

16 November 2022
Discuz! script / Modules Discuz!
Discuz! X2.5 Add a

Discuz! X2.5 Add a custom data call module (simple method) Function Discuz! The X Series Dista is still pretty

Read more
16 November 2022
Discuz! script / Modules Discuz!
About the custom html

About the custom html call of the static module discuz x1.5 Tags: HTML PHP In DIY, select module-> display

Read more
16 November 2022
Discuz! script / Modules Discuz!
using discuz

Discuz is an open source software, we use this software to manage the forum, we will briefly present the

Read more
14 November 2022
OpenCart script / OpenCart modules
SEO Tags PRO module for

The module for website promotion by keywords in search engines is SEO Tags PRO Opencart 3.0. It will help you

Read more
12 November 2022
PrestaShop script / Modules PrestaShop
One Page Checkout PS

One-click purchase module for PrestaShop. Transforms the process of selling your store into something pleasant for

Read more

Information

Users of visitor are not allowed to comment this publication.

Site Search

Site Menu


☑ Scripts Software

Calendar

«    May 2024    »
MonTueWedThuFriSatSun
 12345
6789101112
13141516171819
20212223242526
2728293031 

Advertisement

Survey on the website

Evaluate the work of the site
 

Statistics

  • +7 Total articles 5598
  • +22 Comments 3088
  • +38 Users : 3996