author_id function

I am working on a custom module (Groups duplicate) in conjunction with the Sub-Profiles module, and I am having a small issue. By default, when you create a new Group, the author_id is the person who creates the Group. I want to change that. I have a select field on the XxXxxFormAdd.php page that displays all of the sub-profiles of the logged in user or all sub-profiles of member who created the logged in member. I would like to use this field as the author_id input field. I have tried to do a search through all of dolphin for author_id, but could not seem to find what I am looking for. Does anyone know where the function is that assigns the author_id. I am not worried if it is a global change and affects all modules. In fact, it would actually be good if it can/does as all other modules would allow for the same functionality

snapshot22.png · 303.3K · 134 views
snapshot23.png · 129.5K · 140 views
caredesign.net
Quote · 16 Aug 2014

Well, my search sucks. For some reason it was displaying empty even though there were pages with author_id. So after looking through a whole bunch of pages, I have found a solution which seems to be working - at least within this one module.

 

XxXxxDb.php replace:


        $this->_sFieldAuthorId = 'author_id';

with:


        $this->_sFieldAuthorId2 = 'provider_id';

created a field in the db table (xx_xxx_main) called provider_id.

caredesign.net
Quote · 16 Aug 2014
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.