Extension talk:Social Sidebar

From MediaWiki.org
Jump to: navigation, search
Start a new discussion

Contents

Thread titleRepliesLast modified
Is it possible to change the position of the Social Bar?002:04, 3 April 2012
Parse error115:54, 29 January 2012
Width issue019:27, 20 November 2011
ERROR!410:46, 14 September 2011

Is it possible to change the position of the Social Bar?

I would like to put it above the "Tools". Is it possible?

189.38.207.18402:04, 3 April 2012

Parse error

I get this after install: Parse error: syntax error, unexpected T_VARIABLE in /home/content/65/6092565/html/scientolipedia/LocalSettings.php on line 204

Is that enough to give you an idea what I need to fix? Thanks MediaWiki 1.18.0 (Semantic Bundle Version 2011-08-24.20111208-dev) PHP 5.2.17 (cgi-fcgi) MySQL 5.0.91-log

Dave8800818:29, 28 December 2011

You should provide line 204 of your LocalSettings.php too. I suspect a problem with the invocation of the Semantic Bundle. Cheers

[[kgh]]15:54, 29 January 2012
 

Width issue

Nice extension, first of all, many thanks! Question though, is there something I can set to change the width of the Follow button or to insert a linebreak? MountWiki is just about short enough to display but my Twitter name is akerbeltzalba, which makes the last -a creep into my text body area. Any hints would be greatly appreaciated! Akerbeltz 19:27, 20 November 2011 (UTC)

Akerbeltz19:27, 20 November 2011

ERROR!

Strict Standards:  call_user_func_array() expects parameter 1 to be a valid callback, non-static method SocialSideBar::FBTwitter() should not be called statically in C:\xampp\htdocs\includes\Hooks.php on line 158

Localsettings code:

 $wgFBImage = "/extensions/SocialSideBar/facebook.png";
 $wgFBLink  = "http://www.facebook.com/pages/Cole-Stuff/162794417087497";
 $wgTwitterImage = "/extensions/SocialSideBar/twitter.png";
 $wgTwitterLink  = "http://www.twitter.com/colejohnson66";
72.211.252.6922:39, 4 September 2011

Which MediaWiki version are you using?

Joa ds15:31, 12 September 2011

1.17

72.211.252.6900:41, 13 September 2011
 

Updated to 0.2, now this:

Strict Standards:  call_user_func_array() expects parameter 1 to be a valid callback, non-static method SocialSideBar::FBTwitter() should not be called statically in C:\xampp\htdocs\includes\Hooks.php on line 158

Localsettings.php

require_once("$IP/extensions/SocialSideBar/SocialSideBar.php");
$wgFB  = "http://www.facebook.com/pages/Cole-Stuff/162794417087497";
$wgTwitter  = "colejohnson66";
72.211.252.6900:47, 13 September 2011

That is really strange.

I am testing all my extensions on 15.5 and have no problems, so not really sure what is causing it.

Could you try to add 'static' to the FBTwitter function (in SocialSideBar.php): So it should look like

// Class & functions
class SocialSideBar {
        static function FBTwitter( $skin, &$bar ) {
....

And let me know if this fixes it

Joa ds10:45, 14 September 2011
 
 
 
Personal tools
Namespaces

Variants
Actions
Navigation
Support
Download
Development
Communication
Print/export
Toolbox