Home >CMS Tutorial >PHPCMS >What should I do if phpcms v9 visitors cannot upload pictures?

What should I do if phpcms v9 visitors cannot upload pictures?

藏色散人
藏色散人Original
2020-02-12 10:16:162639browse

What should I do if phpcms v9 visitors cannot upload pictures?

What should I do if phpcms v9 visitors cannot upload pictures?

phpcms v9 Permissions for visitors to upload attachments

Solution:

Step 1: The system default backend management member group cannot modify the permissions for visitors to upload attachments; solution :

Find phpcms/modules/member/templates/member_group_edit.tpl.php

80 and comment out line 85

<?php
                                //if($groupinfo[&#39;groupid&#39;]!=8) {?>
<?php // }?>

that is, the visitor

will not be judged Step 2:

Comment: \modules\attachment\attachments.php Line 22:

//判断是否登录
if(empty($this->userid)){
        //showmessage(L(&#39;please_login&#39;,&#39;&#39;,&#39;member&#39;));
}

Step 3: Update cache

The above method uploads attachments to all visitor classes applicable to all!

Related recommendations: phpcms tutorial

The above is the detailed content of What should I do if phpcms v9 visitors cannot upload pictures?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn