Have anyone thinking about adding scribd connection in fileupload?

prutudom

New Member
Hi, I want to create an element plugin for file-upload to send the data to scridb. Do you have any suggestion where would be the starting point to work on this project.
 
Just want to make sure that I only need to work on /plugins/fabrik_element/fileupload right?
Do I need to modify any other files in order to integrated scribd in to element plugin?

Thank you.
 
I think you would be better looking at a form plugin to deal with the file once it has been uploaded to your server. Perhaps use the form php plugin and write a custom script from there
 
Hi Rob,
I try to run the PHP form plug-in but run to issue that the PHP script is not executing.

I use Fabrik version 3.1 Beta with Joomla! 3.1.5 Stable [ Ember ] 01-August-2013 14:00 GMT

What I observed is that in "/plugins/fabrik_form/php/php.php"

PHP:
    /**
    * Before the record is stored, this plugin will see if it should process
    * and if so store the form data in the session.
    *
    * [USER=20939]param[/USER]  object  $params      params
    * [USER=20939]param[/USER]  object  &$formModel  form model
    *
    * @return  bool  should the form model continue to save
    */
 
    public function onBeforeStore($params, &$formModel)
    {
        var_dump($params);   
 
        if ($params->get('only_process_curl') == 'onBeforeStore')
        {
            if ($this->_runPHP($params, $formModel) === false)
            {
                return false;
            }
        }
        return true;
    }

The result shows,

object(JRegistry)[398]
protected 'data' =>
object(stdClass)[400]
public 'plugins' =>
string
'php' (length=3)
public 'plugin_locations' =>
string
'both' (length=4)
public 'plugin_events' =>
string
'both' (length=4)

Hi Rob, If I var_dump($params->get('only_process_curl')) will get null and cause the script will not run.
Do you think that what I missing in this part?
Thank you very much.
 
Hi Troester,

Once I use the current Git Repo, it all working great!!!

I really appreciate for your help.

Thank you very much for your help.
 
care to share what PHP code you did - in case others want to do the same thing?
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top