给你的购物网站加上phpBB论坛

Zen Cart说明文件,安装指南和使用手册等等。可以回复,不能发新贴。

版主: Jack

版面规则
新手必读栏目。本版面不能发新贴,可以回复

Re: 给你的购物网站加上phpBB论坛

帖子Tracy88 » 2009-12-20 0:18

学习中,谢谢JACK
Tracy88
新手上路
新手上路
 
帖子: 9
注册: 2009-12-18 10:44

Re: 给你的购物网站加上phpBB论坛

帖子wang_mengmian » 2010-05-09 0:01

学习中
wang_mengmian
新手上路
新手上路
 
帖子: 8
注册: 2009-09-03 16:28

Re: 给你的购物网站加上phpBB论坛

帖子seoerchen » 2010-06-03 14:59

这个我的网站没弄,也不知道怎么弄,来这里学习了
[url=http://www.uggsclassicshortsale.com/]UGGS Classic Short[/url]
seoerchen
中级会员
中级会员
 
帖子: 50
注册: 2010-05-15 1:41

Re: 给你的购物网站加上phpBB论坛

帖子oliveyuan » 2010-07-07 5:06

Jack 写道:phpBB 是世界上应用最广泛的一个开源论坛, 最新版本 3.0.0

zencart集成phpBB3的方法:
修改 \includes\classes\class.phpbb.php 将其中的函数 phpbb_create_account()

代码: 全选
    function phpbb_create_account($nick, $password, $email_address) {
      if ($this->phpBB['installed'] != true || !zen_not_null($password) || !zen_not_null($email_address) || !zen_not_null($nick)) return false;
      if ($this->phpbb_check_for_duplicate_email($email_address) == 'already_exists') {
//        $this->phpbb_change_email($old_email, $email_address);
      } else {
        $sql = "select max(user_id) as total from " . $this->phpBB['users_table'];
        $phpbb_users = $this->db_phpbb->Execute($sql);
        $user_id = ($phpbb_users->fields['total'] + 1);
        $sql = "insert into " . $this->phpBB['users_table'] . "
                (user_id, username, user_password, user_email, user_regdate)
                values
                ('" . (int)$user_id . "', '" . $nick . "', '" . md5($password) . "', '" . $email_address . "', '" . time() ."')";
        $this->db_phpbb->Execute($sql);
//could do a check here to see if Insert_ID() matches $user_id...


// @TODO: MySQL5

        $sql = "INSERT INTO " . $this->phpBB['groups_table'] . " (group_name, group_description, group_single_user, group_moderator)
                VALUES (0, 'Personal User', 1, 0)";
        $this->db_phpbb->Execute($sql);
        $group_id = $this->db_phpbb->Insert_ID();
        $sql = "INSERT INTO " . $this->phpBB['user_group_table'] . " (user_id, group_id, user_pending)
                VALUES ($user_id, $group_id, 0)";
        $this->db_phpbb->Execute($sql);
        //might optionally send an extra email welcoming them to the phpBB forum, reminding them of their nickname?
      }
    }



替换为
代码: 全选
    function phpbb_create_account($nick, $password, $email_address) {
      if ($this->phpBB['installed'] != true || !zen_not_null($password) || !zen_not_null($email_address) || !zen_not_null($nick)) return false;
      if ($this->phpbb_check_for_duplicate_email($email_address) == 'already_exists') {
//        $this->phpbb_change_email($old_email, $email_address);
      } else {
        $sql = "select max(user_id) as total from " . $this->phpBB['users_table'];
        $phpbb_users = $this->db_phpbb->Execute($sql);
        $user_id = ($phpbb_users->fields['total'] + 1);
//        $sql = "insert into " . $this->phpBB['users_table'] . "
//                (user_id, username, user_password, user_email, user_regdate)
//                values
//                ('" . (int)$user_id . "', '" . $nick . "', '" . md5($password) . "', '" . $email_address . "', '" . time() ."')";
        $sql = "insert into " . $this->phpBB['users_table'] . "
                ( username,username_clean, user_password, user_email, user_regdate, user_passchg, group_id, user_permissions, user_sig, user_occ, user_interests, user_email_hash, user_lang, user_timezone)
                values
                ( '" . $nick . "','" . $nick . "', '" . md5($password) . "', '" . $email_address . "', '" . time() . "', '" . time(). "', 2, '', '', '', '', '" . crc32(strtolower($email_address)) . strlen($email_address) . "', 'zh_cmn_hans', 8)";
        $this->db_phpbb->Execute($sql);
//could do a check here to see if Insert_ID() matches $user_id...

    $sql = "SELECT user_id, username, user_colour
        FROM " . $this->phpBB['users_table'] . "
        WHERE user_type IN ('0', '3')
        ORDER BY user_id DESC LIMIT 1";
    $phpbb_newest_user = $this->db_phpbb->Execute($sql);

    $sql = "UPDATE " . $this->phpBB['config_table'] . "
        SET config_value = '" . $phpbb_newest_user->fields['user_id'] . "'
        WHERE config_name = 'newest_user_id'";
    $this->db_phpbb->Execute($sql);
   
    $sql = "UPDATE " . $this->phpBB['config_table'] . "
        SET config_value = '" . $phpbb_newest_user->fields['username'] . "'
        WHERE config_name = 'newest_username'";
    $this->db_phpbb->Execute($sql);   
   
    $sql = "UPDATE " . $this->phpBB['config_table'] . "
        SET config_value = '" . $phpbb_newest_user->fields['user_colour'] . "'
        WHERE config_name = 'newest_user_colour'";
    $this->db_phpbb->Execute($sql);   
   
    $sql = "UPDATE " . $this->phpBB['config_table'] . "
        SET config_value = config_value + 1
        WHERE config_name = 'num_users'";
    $this->db_phpbb->Execute($sql);

// @TODO: MySQL5

//      $sql = "INSERT INTO " . $this->phpBB['groups_table'] . " (group_name, group_desc, group_single_user, group_moderator)
//              VALUES (0, 'Personal User', 1, 0)";
//      $this->db_phpbb->Execute($sql);
//      $group_id = $this->db_phpbb->Insert_ID();
        $sql = "INSERT INTO " . $this->phpBB['user_group_table'] . " (user_id, group_id, user_pending)
                VALUES ($user_id, 2, 0)";
        $this->db_phpbb->Execute($sql);
        //might optionally send an extra email welcoming them to the phpBB forum, reminding them of their nickname?
      }
    }


当我注册填写了nick name后,其显示
1062 Duplicate entry '' for key 'username_clean'
in:
[insert into phpbb_users (user_id, username, user_password, user_email, user_regdate) values ('55', 'oliveyuan2008', 'c2e84211e7d9a1c1da0959be33bd85f8', 'yuanhaiwei@msn.com', '1278450139')]

该怎么做
oliveyuan
中级会员
中级会员
 
帖子: 54
注册: 2010-04-07 6:38
QQ 帐号: 1075175310

Re: 给你的购物网站加上phpBB论坛

帖子yj3318 » 2010-07-07 14:29

为什么非得先安装zen cart并且不选择安装phpBB呢?我在安装时选择安装PHPBB,但无法正常访问,现在是否还可以加上phpBB吗?怎么做才行?
脑子都受潮了吗?为什么总是拿没素质当个性!
头像
yj3318
普通会员
普通会员
 
帖子: 29
注册: 2010-07-05 17:12

Re: 给你的购物网站加上phpBB论坛

帖子Jack » 2010-07-08 9:49

在\includes\configure.php 中可以打开
Zen Cart - 让每个人拥有自己生意的梦想成真
加入Zen Cart地图 | 恕不回复站内短信提问 | QQ: 3171061
头像
Jack
论坛版主
论坛版主
 
帖子: 12265
注册: 2004-12-16 10:04

Re: 给你的购物网站加上phpBB论坛

帖子bindy1986 » 2010-08-04 10:37

请问jack,phpbb3怎么安装中文语言包
http://www.idrawall.com/ 精品手袋资料库
头像
bindy1986
中级会员
中级会员
 
帖子: 96
注册: 2010-02-24 10:52
QQ 帐号: 59914465

Re: 给你的购物网站加上phpBB论坛

帖子bindy1986 » 2010-08-04 11:01

mark and study
http://www.idrawall.com/ 精品手袋资料库
头像
bindy1986
中级会员
中级会员
 
帖子: 96
注册: 2010-02-24 10:52
QQ 帐号: 59914465

Re: 给你的购物网站加上phpBB论坛

帖子bindy1986 » 2010-08-04 11:15

我下了一个中文语言包,装好了,步骤很简单,跟大家分享一下。
1,将语言包放到/language下。在styles/*/imageset下面建立语言按钮文件夹,zh_CN。
2,后台GENERAL-Board settings设置默认语言为中文。
3,删除安装目录,前台登陆admin-用户控制面板-论坛相关参数设置语言问中文。


不过我这样设置之后,论坛前台首页出现乱码,并且提示一下错误:
[phpBB Debug] PHP Notice: in file /index.php on line 113: sprintf() [function.sprintf]: Too few arguments
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4284: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3478)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4286: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3478)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4287: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3478)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4288: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3478)


请老大帮忙了
附件
zh_CN.zip
(155.98 KiB) 被下载 76 次
http://www.idrawall.com/ 精品手袋资料库
头像
bindy1986
中级会员
中级会员
 
帖子: 96
注册: 2010-02-24 10:52
QQ 帐号: 59914465

Re: 给你的购物网站加上phpBB论坛

帖子snakeling » 2010-08-09 11:52

annot modify header information - headers already sent by
類似的我有遇過
一個是修改php.ini
裡面的output_buffer要改為On

另一個就是你的functions.php這支檔案前後可能有空格或是檔案帶BOM
改一下就行了
snakeling
 
帖子: 4
注册: 2010-01-08 15:55

上一页下一页

  • 相关话题
    回复总数
    阅读次数
    最新文章

回到 新手上路



在线用户

正在浏览此版面的用户:没有注册用户 和 1 位游客

cron