


What should I do if pictures cannot be inserted into articles submitted to phpcms?
Can't insert pictures into articles submitted by phpcms? Phpcms v9 front-end user contribution page editor cannot upload pictures?
This is because there is no permission to upload images in the background to the front desk. The administrator must log in to the background before the front desk can upload things.
So if you need to insert an image to upload in the front-end user submission editor, you have to remove the permissions and modify:
Find the phpcms/modules/attachments/attachments.php line 18:
$this->isadmin = $this->admin_username = $_SESSION['roleid'] ? 1 : 0;
Change to:
$this->isadmin = $this->admin_username = $_SESSION['roleid'] ? 1 : 1;
Update cache, that’s it!
PHP Chinese website, a large number of free PHPCMS tutorials, welcome to learn online!
The above is the detailed content of What should I do if pictures cannot be inserted into articles submitted to phpcms?. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Atom editor mac version download
The most popular open source editor

SublimeText3 Linux new version
SublimeText3 Linux latest version

SublimeText3 Mac version
God-level code editing software (SublimeText3)

SublimeText3 English version
Recommended: Win version, supports code prompts!

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.