socialengine

SocialEngine: getDbTable() vs. getItemTable()

血红的双手。 提交于 2019-12-25 02:28:23
问题 I have often seen tables are retrieved in SocialEngine using Engine_Api::_()->getDbTable() . For example: $usersTbl = Engine_Api::_()->getDbTable('users','user'); $row = $usersTbl->createRow(); $row->user_id = $user->getIdentity(); $row->phone_number = $phoneNumber; $row->save(); However, I also see that SocialEngine has used Engine_Api::_()->getItemTable in many places. For example: $table = Engine_Api::_()->getItemTable($type); $row = $table->createRow(); foreach($params as $key=>$value) {

PHP case sensitive path's issue

巧了我就是萌 提交于 2019-12-24 16:53:27
问题 I am running a SocialEngine PHP application, which i've recently migrated to another server. And from that point on - a problem occurs: The SocialEngine's core trying to include files in case insensitive paths, which appear not to exist (although, in the right case, they do exist) How can I make the PHP/Apache act nicer, and also search in other cases? For example, the SocialEngine looks for /application/modules/Menuitems.php , and the right path is /application/modules/Menu**I**tems.php . To

How to use Jquery hovercard in Socialengine 4 Framework?

好久不见. 提交于 2019-12-14 03:26:45
问题 I am trying to use Jquery Hovercard in Socialengine framework I am using jquery plugin: http://designwithpc.com/Plugins/Hovercard#demo everything works fine in my local system. but I don't know how to use the same in the socialengine framework. can anyone help me where I can keep js file I have two js file? jquery.min.js hovercard.js How to include and use it in Activity module exact location is bellow, activity\views\scripts_activityText.tpl You can also see the page here: http://demo-se

How to add an admin page for a custom widget in Socialengine 4

邮差的信 提交于 2019-12-12 03:08:59
问题 How can we create an administration panel page for a custom widget in social engine 4? I have not found any information regarding this over the internet. 回答1: You should create a controller, for example, 'AdminSettingsController.php' in application/modules/Yourmodule/controllers/ In this controller: class User_AdminManageController extends Core_Controller_Action_Admin Then create public function indexAction() inside. It will contain all your code related to your custom widget. After that you

SocialEngine Zend getting user profile picture

戏子无情 提交于 2019-12-06 16:13:09
问题 I am trying to get a users profile picture by using $this->itemPhoto($this->viewer(), 'thumb.icon'); or $this->htmlLink($this->viewer()->getHref(), $this->itemPhoto($this->viewer(), 'thumb.icon')) The this->viewer gets the person who is viewing the page and outputs their user_id and a link. I mimicked the output of that but it refuses to accept it. It errors out with 'Item must be a valid item." I have searched through the code and when users upload images it for some reason is hashed and put

SocialEngine Zend getting user profile picture

痞子三分冷 提交于 2019-12-04 19:13:45
I am trying to get a users profile picture by using $this->itemPhoto($this->viewer(), 'thumb.icon'); or $this->htmlLink($this->viewer()->getHref(), $this->itemPhoto($this->viewer(), 'thumb.icon')) The this->viewer gets the person who is viewing the page and outputs their user_id and a link. I mimicked the output of that but it refuses to accept it. It errors out with 'Item must be a valid item." I have searched through the code and when users upload images it for some reason is hashed and put into hashed folders which i can't just pull from. But using the above functions do not work if i