Home Backend Development PHP Tutorial 关于网站前台会员登记登录的一些疑问

关于网站前台会员登记登录的一些疑问

Jun 13, 2016 pm 12:01 PM
cms quote select type

关于网站前台会员注册登录的一些疑问
现在公司要求做一个企业站,前台要求可以注册会员,并且可以选择要注册会员的类型,根据注册类型的不同,登录后会员的功能也不一样,并且显示不同的用户中心界面。会员可以在网站上发布一些图片和文字等信息。发布后后台管理员进行审核,审核成功后方可在网站上显示。请问这样类似的功能应该怎么实现呢。本人大学毕业不久,以前都是让干的套模版的工作。而且现在用的这套CMS只有后台登陆和新闻类的发布功能。所以想请教一下论坛上的各位大大指导一下小弟,感激不尽!!!!!
------解决方案--------------------
你打算用哪个框架还是原生代码实现?
看你说是干套模版的工作,那么也应该有你熟悉的后台吧
------解决方案--------------------
这个很好实现啊,用权限控制来实现,不同注册类型其实就是不同的权限分组角色,每组角色在后台维护一套模板。
------解决方案--------------------
简单点的就设注册会员的类型为type,注册时根据注册类型给它个值(如1、2、3、4之类的),登录时判断type值给它对应的界面。
------解决方案--------------------
给用户发表的文章增加个字段用来标识是否通过审核,没有的在前台展示的时候就不进行展示。
------解决方案--------------------

引用:
Quote: 引用:

给用户发表的文章增加个字段用来标识是否通过审核,没有的在前台展示的时候就不进行展示。
额,这个审核字段,后台管理员怎么用呢,我现在就做过在前台模版加一个简单的判断啥的,这个的话就有点难了。麻烦大家给个详细点的教程啊..........
后台管理员审核就是更改那个标识字段,譬如用户发表的在初始化得时候都为1(未审核),后台管理员点击审核通过的时候更改状态为0(已审核),前台展示的时候根据这个字段在select语句中增加标识字段为0的文章进行展示就可以了。
Statement of this Website
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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Solve Ubuntu mounting mobile hard disk error: unknown file system type exfat Solve Ubuntu mounting mobile hard disk error: unknown file system type exfat Jan 05, 2024 pm 01:18 PM

Solve Ubuntu mounting mobile hard disk error: unknown file system type exfat

Asynchronous processing method of Select Channels Go concurrent programming using golang Asynchronous processing method of Select Channels Go concurrent programming using golang Sep 28, 2023 pm 05:27 PM

Asynchronous processing method of Select Channels Go concurrent programming using golang

PHP framework and CMS integration: unlimited possibilities for technology integration PHP framework and CMS integration: unlimited possibilities for technology integration Jun 01, 2024 pm 05:16 PM

PHP framework and CMS integration: unlimited possibilities for technology integration

How to implement change event binding of select elements in jQuery How to implement change event binding of select elements in jQuery Feb 23, 2024 pm 01:12 PM

How to implement change event binding of select elements in jQuery

Imperial CMS directory location revealed Imperial CMS directory location revealed Mar 12, 2024 pm 10:33 PM

Imperial CMS directory location revealed

Build a PHP cloud transcoding CMS system to implement video transcoding services Build a PHP cloud transcoding CMS system to implement video transcoding services Mar 16, 2024 am 08:30 AM

Build a PHP cloud transcoding CMS system to implement video transcoding services

PHPcms column cache storage path revealed PHPcms column cache storage path revealed Mar 14, 2024 pm 03:18 PM

PHPcms column cache storage path revealed

Impact and response to when PHPcms will stop maintenance Impact and response to when PHPcms will stop maintenance Mar 14, 2024 am 11:12 AM

Impact and response to when PHPcms will stop maintenance

See all articles