This article is a mirror article of machine translation, please click here to jump to the original article.

View: 14350|Reply: 0

[Webmaster Communication] Teach you to quickly understand the file function of Discuz!, and you don't have to ask for help to modify files from now on

[Copy link]
Posted on 11/30/2014 9:05:42 PM | | |
Tips:
Q: What are the documents for the description?
A: I only explain the basic program files (php, htm, js, except for a few irrelevant ones) in the upload directory based on the original files, and generally do not explain the rest of the files (such as image files).

Q: What are the blank index.htm in some directories used for?
A: Used to prevent column directories

Q: What is the meaning of file name color and logo?
A: Bold indicates that this file is more important, unless you know its functions very well, modification errors will cause the whole site to be paralyzed; Italics indicate that the file has been encrypted, and it generally makes no sense to modify it; The underscore means that 99.99% of the modifications of this file are generally unusable, just understand
Green is the library file, blue is the constant call file, and red is the system global core file

Q: Are there any special rules for file name naming?
A: Yes, generally inc is the call file, func is the function library file, class is the library file, and lng is the language package file.

Q: I read your post, but I still can't understand what the document means?
A: Well, you still have to have a certain foundation, generally master SQL, PHP and Htm you can change the file to do the function you want, this is not my task. Generally speaking, if you can point to a place and you can say the approximate location and the document where it is located within 1 minute, then you are basically considered qualified. However, I personally think the most important thing is to change and read more and improve your ability in practice




Let's start below, please look at the files in your upload directory, the format of the expression is the file name, function description, etc

Starting with the root directory, the root directory file is generally the entrance, that is, the code that performs the specific function is generally not in these files, but in the file it calls
admin.php System Site Management Portal File
api.phpDiscuz! Cooperative application portal (e.g. roaming, Alipay, etc. go here)
connect.phpQQ Internet Portal File
cp.phpApply the entry file
crossdomain.xmlData interaction file, if the addresses of other sites are defined in it, then the two different sites can interact with data
favicon.ico icon file, which appears in the browser's title bar
forum.php Forum entry file
group.php Group entry file
home.php Homestead Entry Document
index.php features are basically the same as portal.php
member.php User Information Portal File
misc.php Commonly used operation portal files for website users, such as ratings, collections, and other functions, all use this file
plugin.phpPlugin entry file
portal.php Portal entry file
robots.txt Adding a specific address to this file can prevent it from being retrieved by search spiders
search.php Search function entry program
userapp.phpUser application portal

The files in the API directory are mainly applications of merchants that cooperate with Discuz!, and generally do not need to be modified and do not need to be modified, so I will not explain it here. If you want to know, you can ask me separately, most of the files in this directory are now decrypted.

archiver directoryindex.php, is the entrance to the often referred to as the plateless program, which is generally not for people to see, but for robots.

config directory,config_global_default.phpThe configuration file that you have to modify when installing the forum, the otherconfig_ucenter_default.phpIt is automatically generated and generally cannot be manually modified, otherwise it will lead to errors.

The files in the data directory are usually dynamic cache files, these files have constants that can be called, of course, attachments, avatars, etc. are also saved here.

install is the directory of the installer, and the meaning of the files in it is not much to explain, so it is omitted here.

uc_client and the files in the uc_server directory are related to the operation of UCentre, and the content in it is generally not recommended to be modified, and the same is omitted.

The files in the static directory are all static files, such as images, previews, etc., here I will only describe the files in the js directory below
Many Ajax effects in Discuz! are implemented by the code in this file, and if you know Javascript, you can try to change it, and I will explain where it takes effect later
admincp.js Site management
bbcode.js Discuz! code effect implementation
calendar.js Calendar
common.jsSystem global
common_diy.js Home DIY effect
common_extra.js The functions are basically the same as common.js
editor.js Editor effects
forum.js Forum effects
forum_moderate.js Forum management
forum_post.js Forum posting
forum_slide.js Forum sidebar
forum_viewthread.js Forum topic browsing
google.js Google search
home.js Home
home_blog.js Homestead log
home_drag.js Home, form drag
home_friendselector.js HomeFriend Selection
home_uploadpic.js Upload pictures of your home
logging.js Log in
md5.jsMD5 encryption
portal.js Home
portal_diy.js Home DIY
portal_upload.js Upload to the homepage
register.js Registration page
seditor.js Editor effects
smilies.js Emotes
space_diy.js DIY in personal space
threadsort.js Topic sorting
tree.js Tree list
userapp_swfobject.jsFLASH batch upload

Back to the root directory, here I will explain the function of the template file in the templates/default directory
Among them, the templates in userapp and style correspond to the application and home style respectively, the template in the mobile directory corresponds to the 3G mobile version, the search directory corresponds to the search page template, the ranklist corresponds to the ranking template, the tag directory is the tag, the group template in the group is the group template, the home template in the home is the home template, and the portal is the article homepage template, which is generally not used by plug-in authors. I won't go into much detail here.
Only the following directory is mentioned, and then the occasion when the file is called will be explained
default/member under the four files
getpasswd.htmPassword retrieval
login.htm User login
login_simple.htm Same as above, but the function is simpler
register.htm User registration

default/common I won't explain the css below, because it is basically useless for people who do plugins, if you are interested, please consult the template style author yourself, and also explain the occasion of use
block_forumtree.htm Forum tree list module
block_thread.htm Topic modules
block_userinfo.htm User Information Module
buyinvitecode.htm Invitation code purchase
css_sample.htm CSS samples
editor.htm Editor
editor_menu.htm Editor menu button
extcredits.htm Expand the enumeration of points
faq.htm Use help
footer.htm The bottom file of the site, the general template file must call this template to display the bottom information normally
footer_ajax.htm Ibid
header.htm Header file, general template files must call this file to display the header information normally
header_ajax.htm Ibid
header_common.htm Ibid
header_diy.htm Ibid
invite.htm Invitation to register
preview.htm also come
pubsearchform.htm Search
report.htm Report
seccheck.htm CAPTCHA check
seditor.htm Editor
sendmail.htm Mail Send page
showmessage.htm Prompt information page, this is the template used to use the showmessage function to produce information in the PHP program
simplesearchform.htm Search
stat.htm Site statistics
userabout user app information

default/forum The template files called by PHP programs in the general forum are here (tip, generally the php file names corresponding to htm have similar characters, which is easy to recognize)
activity_applist_more.htm App list
activity_applylist.htm App list
activity_export.htm Export
ajax_albumlist.htm Album list
ajax_attachlist.htm Attachment list
ajax_imagelist.htm List of images
ajax_secondgroup.htm Expand user groups
ajax_threadlist.htm List of topics
announcement.htm Announcements
attachpay.htm Attachment fees
attachpay_view.htm Browse the payment records of charging attachments
comment.htm Comments
comment_more.htm Ibid
debate_umpire.htm Debate
discuz.htm Forum homepage
discuzcode.htm Discuz! Code
editor_ajax.htm Editor
editor_menu_forum.htm Forum menu
forumdisplay.htm Browse the list of topics
forumdisplay_fastpost.htm Quick reply framework
forumdisplay_leftside.htm Topic list Browse the sidebar
forumdisplay_list.htm Topic list
forumdisplay_passwd.htm Forum password entry page
forumdisplay_subforum.htm Secondary forum framework
index.htm Empty file, which is used to prevent column directories
index_navbar.htm Head navigation bar
modcp.htm moderator management backend
modcp_announcement.htm Moderator management background announcement released
modcp_forum.htm Moderator management Background forum management
modcp_forumaccess.htm Moderators manage the permission settings of the backend forum
modcp_home.htm Moderator Admin Backend Homepage
modcp_log.htm Moderator management background record viewing
modcp_login.htm Moderator Admin Backend Login Page
modcp_member.htm Moderator management Background user management
modcp_moderate.htm Moderator management Bulk management of background themes
modcp_moderate_float.htm Moderator Admin Background Theme Management Floating Window
modcp_post.htm Moderators manage background post management
modcp_recyclebin.htm Moderators manage the background recycle bin
modcp_recyclebinpost.htm Moderators manage the recycle bin post browse page in the backend
modcp_report.htm Moderator management Background user report management
modcp_thread.htm Moderators manage background theme management
pay.htm Charge theme
pay_view.htm Paid Subject Payment History View
post.htm Templates related to posting, this is the global template
post_activity.htm Publish the theme of the event
post_attachlimit.htm Attachment Restriction Information page
post_debate.htm Publish debateism
post_editor_attribute.htm Editor
post_editor_body.htm Editor theme
post_editor_extra.htm Editor attachment functionality
post_editor_option.htm Editor
post_forumselect.htm Forum list selection when posting
post_infloat.htm Floating posting pages
post_poll.htm Poll topic publishing page  
post_reward.htm Publish the theme of the bounty
post_sortoption.htm Sorting options
post_trade.htm Publish product topics
postappend.htm Browse past post lists
rate.htm User ratings
rate_view.htm Scoring records
recommend.htm Topic recommendations
relatekw.htm tab generation page
search_sortoption.htm Search
stat_main.htm Site statistics homepage
stat_memberlist.htm Site statistics, user statistics
stat_misc.htm Site statistics, such as statistics like bids, topics, and so on
stat_onlinetime.htm Site statistics, online time statistics
stat_team.htm Site statistics, management team
stat_trade.htm Site statistics, transaction statistics
tag.htm tags
topicadmin.htm Global template, with the following
topicadmin_action.htm Select the drop-down item for the topic management action while browsing the topic
topicadmin_getip.htm Post IP View Page
topicadmin_modlayer.htm When managing the theme, the floating small floating window with common operations such as topping, moving, and essence
trade.htm Product theme global template
trade_displayorder.htm Basic information about the product theme
trade_info.htm Browse product information
trade_view.htm Browse commodity transaction records
upload.htm Attachment upload
viewthread.htm Global templates that are called when browsing a topic
viewthread_activity.htm Browse event topics
viewthread_debate.htm Browse debate topics
viewthread_fastpost.htm Boxes for quick posting while browsing topics
viewthread_from_node.htm Same viewthread_node.htm
viewthread_mod.htm Manage items as you browse themes
viewthread_node.htm User information displayed when browsing the topic
viewthread_node_body.htm Ibid
viewthread_pay.htm Browse paid themes
viewthread_poll.htm Browse poll topics
viewthread_poll_voter.htm Browse options for polling topics
viewthread_portal.htm Browse articles
viewthread_printable.htm Browse printable versions
viewthread_reward.htm Browse bounty themes
viewthread_trade.htm Browse product topics
warn_view.htm Browse the post warning history

However, the front is all soy sauce program files, the real big name is just starting now, return to the root directory, look at the source directory, the programs that mainly perform specific functions are in it
sourcebelowdiscuz_version.phpIt is a Discuz! version marking file, which identifies the current Discuz! version and is generally unmoving.
source, the plugins directory is the plugins directory, if you want to use the plugin interface to develop plugins, the general files are placed in this directory; language directory contains all the language package files, and you can open the contents yourself to see them; The archiver directory contains the programs without plates. These are generally irrelevant, so I won't waste space here.

The class directory is all the files of the call library, and for the average plug-in author, you only need to master the files in the following directories.
source\class\magic contains all the prop script files, and the prop functions corresponding to the specific files can be checked in the system settings
source\class\task contains all the forum task script files
task_avatar.php Avatar upload task
task_blog.php Log tasks
task_connect_bind.phpQQ Internet Task
task_email.php Mailbox validation task
task_friend.php Add a friend task
task_gift.php Red envelope tasks
task_member.php User-class tasks
task_post.php Posting tasks
task_profile.php Tasks to improve user information
task_promotion.php Space Missions

The file in class\block\forum is the module program used when DIY forum pages, and the program here only manages the search method of data but not the specific display of data
block_activity.php Forum Activities
block_activitycity.php Forum Event City
block_activitynew.php Latest events
block_forum.php Forum
block_thread.php Topic
block_threaddigest.php Essence theme
block_threadhot.php Hottest topics
block_threadnew.php Latest topics
block_threadspecial.php Special theme display
block_threadspecified.php Classified theme display
block_threadstick.php Pinned theme display
block_trade.php Themed display
block_tradehot.php Hottest product theme display
block_tradenew.php Latest product theme display
block_tradespecified.php Product category information display
blockclass.php A program with only a few lines is used to display the corresponding name of the forum, not as a separate module

module directory, for general plug-in authors, it is enough to master the meaning of the program files of the five directories of forum/home/group/member/misc, and the templates called by these files correspond to the directory structure and files under templates/default, which is very easy to discern, so if you want to modify the display of the corresponding templates, you can find the htm file according to this rule.
source\module\forum manages all forum-related programs
forum_ajax.php Forum Ajax Effects Program
forum_announcement.php Forum announcements
forum_attachment.php Forum attachment download
forum_forumdisplay.php List of forum topics
forum_group.php Group forums
forum_image.php Forum image
forum_index.php Forum homepage
forum_index_mobile.php Forum homepage - mobile version
forum_misc.php Miscellaneous features like rating collections are here
forum_modcp.php Forum moderator management
forum_post.php Procedures used for posting forum posts
forum_redirect.php Post jumps, such as when viewing the previous topic and the next topic
forum_relatekw.php Tag aggregation
forum_relatethread.php Related topics are displayed
forum_rss.php RSS calls
forum_tag.php tab browsing
forum_topicadmin.php Theme management for the theme browse page
forum_trade.php Commodity trading
forum_viewthread.php The main program when browsing the topic

source\module\group manages all group-related programs
group_attentiongroup.php Groups I follow
group_index.php Group homepage
group_my.php My Groups

source\module\home manages all home-related programs
home_editor.php HomeEditor
home_invite.php Home, invitation to register
home_magic.php Home, props
home_medal.php Home, Medal
home_misc.php Home, miscellaneous operations
home_rss.php Homeland RSS
home_space.php Home space
home_spacecp.php Background management of home space
home_task.php Home, task operation

source\module\member functions are more complicated, which will be explained in detail below
member_activate.php User activation
member_clearcookies.php Information cleansing
member_connect.php QQ Internet
member_connect_logging.php Connected login
member_connect_register.php Connected registration
member_emailverify.php Email verification
member_getpasswd.php Get a password
member_logging.php Standard Login
member_lostpasswd.php Recover your password
member_register.php User registration
member_regverify.php Registration verification
member_switchstatus.php State switching, such as switching from stealth to non-incognito

source\module\misc functions are also more complicated, which will be discussed in detail below
misc_buyinvitecode.php Invitation code purchase
misc_diyhelp.php DIY help
misc_error.php Error message page
misc_faq.php Help that comes with the forum
misc_initsys.phpAll cloud service functions are here
misc_invite.php Invitation to register
misc_manyou.phpRoaming program
misc_mobile.php Miscellaneous features for mobile version
misc_ranklist.php Leaderboard page
misc_report.php User reports
misc_seccode.php CAPTCHA generator
misc_secqaa.php Validate the question generator
misc_stat.php Site statistics
misc_swfupload.php Attachments are uploaded in bulk quickly
misc_tag.php Tag management

source\admincp The following are all files related to system site settings, and the files in the following directory do not need to be mastered, you only need to know that cloud is a system setting related to cloud services
source\admincp\moderate is a program related to background auditing, which is described below
  moderate_article.php Article Review
  moderate_blog.php Log auditing
  moderate_comment.php Review moderation
  moderate_doing.php Dynamic moderation
  moderate_member.php User Review
  moderate_picture.php Upload image review
  moderate_portalcomment.php Portal review moderation
  moderate_reply.php Respond to the review
  moderate_share.php Share reviews
  moderate_thread.php Topic review

source\admincp
admincp_addons.php Certified plugin author management
admincp_admingroup.php Management group management
admincp_adv.php Ad management
admincp_album.php Album management
admincp_albumcategory.php Album classification management
admincp_announce.php Announcement management
admincp_article.php Article management
admincp_attach.php Attachment management
admincp_block.php Module management
admincp_blockstyle.php Modular style
admincp_blockxml.php Ibid
admincp_blog.php Log management
admincp_blogcategory.php Log classification management
admincp_card.php Cam Generation
admincp_checktools.php Inspection tools
admincp_click.php Homes visit
admincp_cloud.php Cloud services
admincp_comment.php Comment management
admincp_counter.php Forum statistics updates
admincp_cpanel.php Call the library, call some functions
admincp_credits.php Points settings
admincp_db.php Database management
admincp_district.php Classification information model
admincp_diytemplate.php Template DIY management
admincp_doing.php Set up search functionality in the background
admincp_domain.php Navigation bar management
admincp_ec.php E-commerce
admincp_faq.php Forum helps with management
admincp_feed.php Dynamic settings
admincp_forums.php Forum settings
admincp_founder.php Founder settings
admincp_group.php User group settings
admincp_index.php Background homepage
admincp_login.php Background landing page
admincp_logs.php System record viewing
admincp_magics.php Props settings
admincp_main.php The template that is called to show the purpose of the header information
admincp_medals.php Medal setting
admincp_members.php Membership settings
admincp_menu.php menu in System Settings
admincp_misc.php Miscellaneous settings, online listings, links, and more
admincp_moderate.php Audit management, directly call the following moderate directory program
admincp_nav.php Navigation bar in System Settings
admincp_perm.php Permission settings
admincp_pic.php Upload image management
admincp_plugins.php Plugin management
admincp_portalcategory.php Portal article classification management
admincp_postcomment.php Post review management
admincp_postsplit.php Post bulk management
admincp_profilefield.php User Information Settings
admincp_prune.php Filter word settings
admincp_quickquery.php Quick SQL statement setup
admincp_recyclebin.php Recycle bin management
admincp_recyclebinpost.php Recycle Bin post management
admincp_report.php Report management
admincp_search.php Search management
admincp_setting.php System Global Settings
admincp_share.php Share settings
admincp_smilies.php Emote settings
admincp_specialuser.php Special user settings
admincp_styles.php Style setting
admincp_tag.php Tag management
admincp_tasks.php Task management
admincp_templates.php Template management
admincp_threads.php Topic management
admincp_threadsplit.php Topic bulk management
admincp_threadtypes.php Topic classification
admincp_tools.php System tools
admincp_topic.php Theme bulk management, not used separately
admincp_tradelog.php Commodity transaction history
admincp_usergroups.php User group settings
admincp_verify.php User authentication management
discuzdb.md5Standard database validation file data file
discuzfiles.md5The standard program file verifies the file data file, which records the size information of the standard file

\source\function is all function files, these files are really easy to use, there are many powerful functions in it, you can use these files by calling these files.
\source\function\cache is related to cache file generation, so you don't need to master it.
source\function I write the operations related to these functions
  function_admincp.php System settings
  function_attachment.php Attachment operation
  function_block.php Module
  function_blog.php Logs
  function_cache.php Cache
  function_cloud.php Cloud services
  function_comment.phpComment
  function_connect.php QQ Internet
  function_core.phpA large number of core functions are here, equivalent to the global.func.php of the old version
  function_credit.phpIntegral operations
  function_delete.php Delete action
  function_discuzcode.php Discuz! code
  function_domain.php Navigation bar
  function_ec_credit.php Points transactions
  function_editor.php Editor
  function_exif.php Photo exif information
  function_feed.php Dynamic management
  function_filesock.php Remote files
  function_forum.php Forum
  function_forumlist.php Forum list
  function_friend.php Friends
  function_group.php Groups
  function_grouplog.php Group records
  function_home.php Home
  function_importdata.php Export data
  function_magic.phpprops
  function_mail.php Mailbox operations
  function_manyou.php Roaming
  function_member.phpuser
  function_message.php Information
  function_misc.php Miscellaneous functions
  function_plugin.php Plugins
  function_portal.php Portal
  function_portalcp.php Portal is acquired
  function_post.php Posts
  function_profile.php Personal information
  function_search.php Search
  function_seccode.php Captcha
  function_share.phpShare
  function_space.php Personal page
  function_spacecp.php Profile settings
  function_stat.php Site statistics
  function_sysmessage.phpSystem information
    function_threadsort.php Topic sorting
    function_trade.php Commodity trading
    function_userapp.php User app

Finally, there is the \source\include file, where many of the specific codes executed after passing through the entry program. Among them, \source\include\cron contains all the script files for scheduled tasks. Focus on the meaning of files in the five directories: modcp\post\space\thread\topicadmin
\source\include\modcp moderator background programs are all here
modcp_announcement.php Announcements
modcp_forum.php Forum tags
modcp_forumaccess.php Forum Permissions
modcp_home.php Homepage
modcp_log.php Run log
modcp_login.php Login page
modcp_member.php User editing
modcp_moderate.php Audit
modcp_noperm.php No permission prompt page
modcp_plugin.php Plugin management
modcp_recyclebin.php Recycle Bin
modcp_recyclebinpost.php Recycle Bin posts
modcp_report.php User reports
modcp_thread.php Bulk management of topics

\source\include\post Post publishing operations are performed here
post_albumphoto.php Post album photos
post_editpost.php Edit posts
post_newreply.php Send a new reply
post_newthread.php Publish new topics
post_newtrade.php Publish new product topics
post_threadsorts.php Topic classification information

\source\include\space The operation of the personal settings information is performed here
space_activity.php Email verification
space_album.php My photo album
space_blog.php My log
space_debate.php My debate
space_doing.php My Movements
space_favorite.php Personal collection
space_friend.php My buddy
space_home.php My home
space_index.php My Settings homepage
space_notice.php Personal reminders
space_plugin.php Plugin-related settings
space_pm.php Short messages in the forum
space_poll.php My vote
space_profile.php My personal information
space_reward.php My bounty
space_share.php My share
space_thread.php My theme
space_trade.php My commodity transactions
space_videophoto.php Video verification
space_wall.php My Space Style Settings

\source\include\space\thread All special theme operations are performed separately in the files in this folder
  thread_activity.php Event theme
  thread_debate.php Debate topic
  thread_pay.php Charge theme
  thread_poll.php Poll topics
  thread_printable.php Theme printing
  thread_reward.php Bounty theme
  thread_trade.php Product theme

\source\include\space\topicadmin Remember the theme admin menu that drops down when browsing themes? The main administrative operation code is in this file
topicadmin_banpost.php Block posts
topicadmin_copy.php Theme duplication
topicadmin_delcomment.php Delete comments
topicadmin_delpost.php Delete posts
topicadmin_getip.php View the poster's IP
topicadmin_merge.php Merge themes
topicadmin_moderate.php Topic recommendation, essence, designation, move, and other operations
topicadmin_refund.php Mandatory refunds
topicadmin_removereward.php Cancel the bounty
topicadmin_repair.php Fix the theme
topicadmin_restore.php Ibid
topicadmin_split.php Topic segmentation
topicadmin_stamp.php Subject Identification
topicadmin_stamplist.php List of marks for subject identification
topicadmin_stickreply.php Reply to the post specified
topicadmin_warn.php Warn a post








Previous:Java Edition Web Source Code Viewer
Next:Errors that often occur on web servers, below is the error log for slow queries
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com