statusnet
Discussions
Activity
Sign In
Can you explain how to add a plugin? for example adsense?
Francisco
March 2010
in
Plugins
I would appreciate if someone explains that.
Comments
seancarmody
March 2010
Use the addPlugin function in config.php, for example
addPlugin('MobileProfile');
I haven't tried AdSense, but I imagine
addPlugin('Adsense');
would work.
Francisco
March 2010
thanks sean, I have another question, where do I edit the Adsense.php with my adsense editor ID?
seancarmody
March 2010
Actually, looking in the code, what you need to do is invoke the plugin in config.php like this:
addPlugin('Adsense', array('client' => 'Your client ID', 'rectangle' => 'slot'));
aric
March 2010
Oh there should be a readme for addsense.
adding to my todo.
Francisco
March 2010
I still cannot have my ads in the microblog, could someone be more specific please?
aric
March 2010
addPlugin('Adsense', array('client' => 'pub-xxxxxxxxxxxxx', 'rectangle' => 'xxxxxxxxxxxxxxxxx'));
so this is in your config.php?
your google account will provide the details of ClientID and rectangle.
chris10
March 2010
I added this line on config.php then I find my pub code
what do you put on rectangle ? I put the google_ad_slot is that right ?
Then do I have to change the template ?
aric
March 2010
@chris10
I don't have a google ad words account. So i dunno, Just try plugging some stuff it should be straightforward.
looks like rectangle translates to size or somthing...
https://www.google.com/adsense/static/en_US/AdFormats.html
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
Apply for Membership
Categories
Recent Discussions
Categories
All Categories
2.1K
General
1,403
Plugins
252
Themes
48
Installation
252
status.net service
105
Hosting
12
StatusNet Desktop
22
Powered by Vanilla
Comments
addPlugin('MobileProfile');
I haven't tried AdSense, but I imagine
addPlugin('Adsense');
would work.
addPlugin('Adsense', array('client' => 'Your client ID', 'rectangle' => 'slot'));
adding to my todo.
so this is in your config.php?
your google account will provide the details of ClientID and rectangle.
what do you put on rectangle ? I put the google_ad_slot is that right ?
Then do I have to change the template ?
looks like rectangle translates to size or somthing...
https://www.google.com/adsense/static/en_US/AdFormats.html