How can Dreamweaver call the current member information on any page?
Dream Weaver DEDECMS calls the current member information on any page
Recommended study: Dream Weaver cms
I have been studying dede these days I also tried to get some of the various functions myself. Today I encountered the need to call the member number, which is the Mid value. I checked it on Baidu and found that there are many methods:
{dede:memberinfos} You can use mid= ""Points to calling a certain member information
This method can only call mid=1 by default, which is the information of the website administrator. Using invalid classmates is not invalid, it is just disabled by official default. You only need Comment out include/taglib/memberinfos.lib.php about line 62 (mine is line 62) if($row['matt'])==10) return " ;But this method still cannot call the mid value .
After checking it for a long time, I suddenly found that it can be called by imitating the ajax framework at the top of the template. My code:
<script language="javascript" src="/include/dedeajax2.js"></script> <script language="javascript" type="text/javascript"> /*这一段是默认的*/ function CheckLogin(){ var taget_obj = document.getElementById('_userlogin'); myajax = new DedeAjax(taget_obj,false,false,'','',''); myajax.SendGet2("/member/ajax_loginsta.php"); DedeXHTTP = null; } /*这一段是自己填写的*/ function CheckInfo(){ var taget_obj = document.getElementById('_userinfo'); /*这里的名字一定要和调用的页面使用的ID值一致*/ myajax = new DedeAjax(taget_obj,false,false,'','',''); myajax.SendGet2("/member/ajax_loginuser.php"); /*可以复制上面的loginsta 在php页面填写需要的信息 最后记住一定要改名字哦。*/ DedeXHTTP = null; } </script>
Calling page:
<div id="_userinfo" style="color:#f00; height:50px; line-height:20px;"></div> <script language="javascript" type="text/javascript">CheckInfo();</script> <!--记住一定要和上面的function 值一致-->
Supplement: Calling mid value:< ;?php echo $cfg_ml->M_ID; ?> must be filled in on the ajax_loginuser.php page.
The above is the detailed content of How to call the current member information on any page in DreamWeaver. For more information, please follow other related articles on the PHP Chinese website!

织梦导入css的方法:1、将HTML模板文件放到“templets”文件夹中;2、将HTML文件的后缀改成“.htm”;3、在原先的样式路径前加上“{dede:global.cfg_templets_skin/}”即可。

数据库是网站运行的核心,存储着用户数据、文章内容等重要信息,因此在网站运营过程中,数据库文件的备份和恢复显得尤为重要。对于使用织梦CMS搭建的网站来说,数据库文件的恢复同样是一项关键任务。本文将详细介绍织梦CMS数据库文件的恢复方法,并提供具体的代码示例,帮助用户迅速恢复网站数据,保障网站正常运行。一、备份数据库文件在恢复数据库文件之前,首先需要确保已经进行

织梦是一个非常著名的CMS,由于其简单易用的特点被许多网站使用,它的后台采用php进行开发,而最新的官方版本是织梦php 5.7。在本文中,我们将探讨织梦php5.7版本的新特性和优势。

织梦是一款非常流行的网站建设系统,其架构是基于PHP语言构建的。因此,织梦需要PHP来运行。那么,具体来讲,织梦需要多少个PHP呢?这并不是一个简单的问题。本文将会从以下几个方面介绍织梦需要的PHP版本和组件数量。

安装织梦时遇到问题是一个常见的情况,其中一个可能的问题就是无法成功安装php7.0。在本文中,我们将介绍如何解决这个问题。

织梦需要PHP 5.2版本及以上,其安装方法:1、首先安装PHP并配置好环境;2、下载DedeCMS安装包,并解压到网站根目录;3、打开网站URL,按照提示完成安装;4、安装完成后,通过http://localhost/yourwebsite访问即可访问到织梦后台。

cms不是织梦,cms是指内容管理系统,而织梦只是cms的一种;织梦cms就是指织梦内容管理系统,而内容管理系统是一种位于WEB前端和后端办公系统或流程之间的软件系统;cms具有许多基于模板的优秀设计,可以加快网站开发的速度和减少开发的成本。

织梦CMS是一款基于PHP5开发的开源内容管理系统,被广泛应用于网站建设领域。掌握织梦PHP5的关键要点,对于开发者来说非常重要。本文将介绍一些关键要点,并提供具体的代码示例,帮助读者更好地理解和应用织梦PHP5。一、文件包含在织梦CMS的开发中,经常需要在不同的文件之间进行数据共享和代码重用。PHP的文件包含功能是解决这个问题的有效方法。在织梦CMS中,常


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

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

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

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

Atom editor mac version download
The most popular open source editor

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.
