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?
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['groupid']!=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('please_login','','member')); }
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!