After downloading the phpwind forum universal integrated chat room plug-in, do not open the file with Notepad. Use DW and other web page editing tools to modify it. After downloading, choose one of the following to upload to the root directory of the forum. Subdirectories are not allowed.
Here is the file description:
pwchat_noguest_gbk, a GBK chat room that does not allow visitors to speak;
pwchat_yesguest_gbk, is a GBK chat room that allows visitors to speak;
pwchat_noguest_utf-8, a utf-8 chat room that does not allow visitors to speak;
pwchat_yesguest_utf-8, is a utf-8 chat room that allows guests to speak;
pwchat_noguest_big5, a big5 chat room that does not allow visitors to speak;
pwchat_yesguest_big5 is a big5 chat room that allows visitors to speak;
Compatible with any version of the phpwind forum:
Integration ideas for this plug-in:
1,require_once(global.php);//Included into PW main file;
2. Echo iconv(GB2312, UTF-8, $windid) at the user name;//Output the user name and convert it to the corresponding encoding;
3. JS determines whether the user name is empty. If the visitor is not allowed to speak, the user name input box is locked.
The above is all the integration ideas. The phpwind forum has been using the core file of GLOBAL.PHP and the username variable of $windid since its establishment. This is why it can adapt to all versions from 1.0 to the future; anyone with a discerning eye will know this at a glance. Simple, apart from calling the user name, it has nothing to do with the forum.