自动将个人资料图片分配给phpfox中的页面 [英] Automatically assign profile pics to pages in phpfox

查看:97
本文介绍了自动将个人资料图片分配给phpfox中的页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最后一个问题是: 在phpfox中自动创建页面

Followed by my last question: Automatically create pages in phpfox

现在,我正在尝试将预先上传的图像列表分配给某些页面作为phpfox中的个人资料图片.

Now I'm trying to assign a list of pre-uploaded images to some pages as their profile picture in phpfox.

在检查了数据库中的数据更改之后,我仅意识到了这两个字段中的更改:

After checking data changes in the database, I only realized changes in these two fields:

phpfox_pages 表中的

image_path (该地址指向图像文件的地址)

image_path in table of phpfox_pages (which take a an address to the image file)

user_image (带有字符串"user_id +%s" .file_extension)

user_image in table of phpfox_user (which take a string of "user_id+%s".file_extension)

但是通过在具有默认配置文件图片的页面的记录的这两个字段中插入数据,其配置文件图片不会更改.

But by inserting data in these two fields in records for a page that has a default profile pic, it's profile pic would not change.

还有其他我应该更改的字段或选项吗?

Is there any other fields or options that I should change?

推荐答案

查看phpfox_photo表,您会发现is_profile_photo属性(对于个人资料图片始终为1)

look phpfox_photo table in that you will find is_profile_photo attribute that is always 1 for the profile picture

这篇关于自动将个人资料图片分配给phpfox中的页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆