BuddyPress/WordPress 社交网络扩展

发布于 2024-12-18 21:58:08 字数 434 浏览 4 评论 0原文

我目前正在为我的一个朋友构建一个社交网站。我本来打算使用 PHP、javascript 等从头开始编写这个...但似乎我正在做的很多事情都是重新发明轮子。这点很差。我目前正在四处寻找是否有一个框架或 API 可以完成所有基本的工作(已经经过多年的最佳实践修订等等),但仍然具有足够的可扩展性,可以让我轻松地为我的朋友定制它喜欢。我把耳朵贴在地上(用于搜索 google 的代码),不知何故,另一个 BuddyPress(wordpress 的扩展)似乎突然出现了很多。但我觉得它更像是一种博客之类的东西。另外,寻求扩展其功能似乎是一项艰巨的任务。

我试图添加的一项功能是用户能够拥有拆分帐户。假设一个用户加入我的网站,他将拥有一个只有某些用户可以看到的个人资料,但同时,他将拥有一个只有其他人可以看到的帐户。这就是我可以添加到 Buddy Press 的可扩展性级别吗?该功能基本上位于数据库后端。所以你会认为这很简单。让我知道你的想法。

I am currently constructing a social networking website for a friend of mine. I was going to write this from scratch using PHP, javascript, ect... But it seems as though a lot of the stuff I am doing is reinventing the wheel. Poorly at that. I am currently looking around to see if there is a framework or API that will do all the basic stuff (that has already been through years of best-practice revisions and so forth) but still extensible enough for me to customize it easily to my friends liking. I put my ear to the ground (code for searching google) and somehow or the other BuddyPress-which is an extension to wordpress seems to pop up quite a bit. But it strikes me as more of a blogging sort of thing. Plus, Looking to extend the functionality of this looks to be a herculean task.

One functionality piece that I am trying to add is the ability for the user to have a split account. Let's say that a user joins my site, he will have a profile that only certain users can see, but at the same time, he will have an account that only other people can see. Is that the level of extensibility that I can add to Buddy Press. That functionality is basically on the database back-end. So you would think that that would be simple. Let me know what you think.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

〆一缕阳光ご 2024-12-25 21:58:08

Wordpress 和 Buddypress 确实具有很强的可扩展性!如果您将从头开始编写社交网络与为 Buddypress 编写插件/扩展进行比较,那么这几乎没有竞争 - 为 WP/BP 编写肯定更简单。另外,由于您是在(通常)经过彻底测试的代码之上构建的,因此我建议您尝试一下。

根据您的具体用例,很好奇,您能否添加更多有关用户为何以及如何与其“拆分”配置文件进行交互的信息?

如果我要编写类似这样的代码,那么在设置 WP/BP 后,我将为用户创建额外的配置文件字段(例如alternate_bio),并且如果查看它们的用户具有适当的凭据,您的插件可以加载这些配置文件字段。

为了学习编写插件,我从这里开始:http://codex.wordpress.org/Writing_a_Plugin

希望这有帮助!

Wordpress and Buddypress are certainly very extensible! If you're comparing writing a social network from scratch with writing a plugin/extension for Buddypress, it's almost no contest -- writing for WP/BP is definitely more straightforward. Plus, since you're building on top of (usually) thoroughly-tested code, I would suggest that you take a crack at it.

As per your specific use case, it's curious, could you add more information about why and how the user will interact with their "split" profile?

If I were going to code something like this, after I set up WP/BP, I would create extra profile fields for users -- e.g. alternate_bio -- and your plugin can load these profile fields IF the user viewing them has the appropriate credentials.

For learning to write the plugin, I'd start here: http://codex.wordpress.org/Writing_a_Plugin

Hope this helps!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文