Add Plugin

edited April 2012 in Plugins
Hello,
I am tring to add plugin which are inactive and not listed in admin area.
I am tring to send this command addPlugin('Adsense'); at config.php. but nothing is happening.
Which config.php are we talking of the one which configures your site name, database(main) or is the one in the classes.
i am lost please help Thanks

Comments

  • you should add the addPlugin('PluginName') to the config.php in the root folder of your StatusNet installation...
  • edited April 2012

    Please advise
  • edited April 2012
    kindly help.

    In order to add plugin af config.php
    <?php<br />if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); }

    $config['site']['name'] = 'http://www.xyz.com';

    $config['site']['server'] = 'www.xyz.com';
    $config['site']['path'] = false;

    $config['db']['database'] = mysql_database path;

    $config['db']['type'] = 'mysql';

    $config['site']['profile'] = 'public';

    addPlugin('Adsense');

    Is this the correct way of doing it?
    Thanks,edited
  • edited April 2012
    @kevin32837 Adding addPlugin('PluginName') to the config.php in the root folder of your StatusNet installation is the correct way of installing a plugin.

    But there's more to the Addsense-Plugin, did you actually read the information in $rootfolder$/plugins/Adsense/AdsensePlugin.php ? You need to also provide your Client ID and the slot, which you can get from https://www.google.com/adsense/. But I suggest you open the Plugin File with a text editor yourself and read the description.
  • Oh, and keep in mind that people here generally don't work for StatusNet, but are helping you on a voluntary basis, so if you don't get an answer in 14 hours, there's no need to shout with four exclamation marks...
  • edited April 2012
    Thanks
  • edited April 2012
    edited those exclamations sorry for that. thanks for your time
  • You're welcome! Did you get it to work in this case?
  • See in the README file in the plugin folder.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Google Sign In with OpenID