CheckInfo(); "That's it."> How to call the current member information on any page in DreamWeaver-DEDECMS-php.cn
Home> CMS Tutorial> DEDECMS> body text

How to call the current member information on any page in DreamWeaver

藏色散人
Release: 2020-01-06 09:18:31
Original
2007 people have browsed it

How to call the current member information on any page in DreamWeaver

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:

 
Copy after login

Calling page:

Copy after login

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!

Related labels:
source:php.cn
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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!