Extension talk:SidebarEx

In the installation section, "* 5) Apply any page protection deemed necessary " - deemed necessary by whom? The MediaWiki: namespace is already protected by default, so (if the namespace is set to its default value) attempting to lock MediaWiki:Sidebar and the like adds nothing. --Carlb 22:31, 6 July 2007 (UTC)
 * Good point. I must admit I think a lot in terms of BizzWiki extension these days and rights management is a bit different than in stock Mediawiki! &#91;user:jldupont&#124;Jean-Lou Dupont] 22:50, 6 July 2007 (UTC)

Create new Sidebars (DONE)
Hey

Thanks a lot for this extension

But I've got a Problem, how do I create new Sidebars for a new User.

I created one for the '*' and it works, but for Example I can't create one for the User: Admin.

I triede to edit LocalSettings and to fill in there: $bwSidebarNs = MediaWiki; $bwSidebarPage = 'Sidebars'; $bwSidebarSearch = array ( 'user', '*', 'admin' );

but there is no change.

Can I create a new sidebar for every User, or every User on his own?

I don't know why it works with the not logged in Users ('*') and with the other Users don't.

Please help me, Thanks
 * The order matters for $bwSidebarSearch: if you want 'admin' membership to be checked first, then ('admin', 'user', '*'). If you put 'user' first, all logged users will see the sidebar corresponding to 'user'.

Jean-Lou Dupont 13:26, 6 August 2007 (UTC)


 * So I can define a new sidebar for every User?
 * The User should have the possiblity to edit their pages, on their own. is this possible?
 * And can I leave the field $bwSidebarSearch empty so that every one has his own sidebar or is it just group based?
 * The extension is 'group membership' aware and *not* 'per-user' aware i.e. the extension, currently, can not handle 'per-user' sidebars. Jean-Lou Dupont 15:22, 6 August 2007 (UTC)
 * Too bad but thanks a lot for your help!
 * Took me two minutes to add 'per-user' functionality. Enjoy. Jean-Lou Dupont 15:32, 7 August 2007 (UTC)

Could this be used also for Sidebars depending on namespace? (DONE)
I reckon it would not be very hard to adapt this that sidebars depended on namespaces?

--JuhaV 06:35, 28 August 2007 (UTC)
 * Correct. Jean-Lou Dupont 11:06, 28 August 2007 (UTC)
 * Done. Jean-Lou Dupont 12:55, 28 August 2007 (UTC)
 * Thanks! We're planning to use this feature for example wikis with multiple languages etc. --JuhaV 06:41, 17 September 2007 (UTC)

Don't Appear? (RESOLVED)
Installed this extension, along with Extension:ExtensionClass which has one error which I have reported on that extension talk page. Now can't seem to get the different Sidebars to appear, have defined MediaWiki:Sidebar/user, MediaWiki:Sidebar/sysop and my own personal one at User:Dr DBW/Sidebar and can't get anything different from the one already defined at MediaWiki:Sidebar

Does this ignore the normal Sidebar at MediaWiki:Sidebar, or do we have to delete that one? If a person is not a member of the groups defined, so it default back to this one? Or do I have to have the MediaWiki:Sidebar/* defined? --Dr DBW 02:22, 30 August 2007 (UTC)


 * Worked it out thanks, didn't realise was using 1.9.3. Upgraded to 1.10.1 and starting to work now.  For clarification, do these sidebars totally replace the default one, or append it on the end of the default? --Dr DBW 03:58, 30 August 2007 (UTC)
 * Replaces the default one. Jean-Lou Dupont 12:04, 30 August 2007 (UTC)


 * Strange, because I have done the following, Sidebar contains a list of menus, Sidebar/user /sysop does not have those menus, but has some extra ones and it appends it to the end? Then if I have my own personal one, then that is also appended on the end again? BTW, thanks for this extension, it is a very good one :-) --Dr DBW 23:55, 30 August 2007 (UTC)

Undefined offset: 0 in Namespace.php on line 96 (RESOLVED)
Recently upgraded to Mediawiki 1.10.1 from 1.9.3 and now the above error has appeared, and it is due to this extension (i.e. the error disappears when it is removed from LocalSettings.php). The contents of line 96 in Namespace.php is below. --Dr DBW 04:12, 10 September 2007 (UTC) return $wgCanonicalNamespaceNames[$index];
 * I just did a quick 1.10.1 install on my Windows machine + just installed this extension without anything else & no customization except for MediaWiki:Sidebar/* : it works on my side without an error. Please provide backtrace debug info. Jean-Lou Dupont 11:32, 10 September 2007 (UTC)
 * Turned on the debugging, nothing in there stands out as being wrong or associated with this error. What should I be looking for do you think?  Is there something additional with debugging that I should be turning on? --Dr DBW 23:06, 10 September 2007 (UTC)
 * How about allowing for more PHP level messages i.e. error_reporting in PHP.ini ? Jean-Lou Dupont 23:26, 10 September 2007 (UTC)
 * And could you name the error in question, the one you are referring to above? Jean-Lou Dupont 01:07, 11 September 2007 (UTC)
 * I am following the details here How to debug to get the debugging information. It is a shared server and don't have access to the php configuration file to change things.  Not sure what you want by "name the error", since the title for this entry is the error exactly as you see it on the pages, see .   It appears whether you are logged in or not, is not visible in the special namespace, user pages, category pages, non-main namespace pages, MediaWiki namespace --Dr DBW 01:13, 11 September 2007 (UTC)
 * Could you try the trunk version in the SVN repository? I believe I have found the 'bug': in stock MediaWiki, the NS_MAIN namespace is not given a 'canonical name' as with the other namespaces... Jean-Lou Dupont 01:42, 11 September 2007 (UTC)
 * Downloaded the version from here and error has now gone :-)  Thanks for that, much appreciated :thumbsup: -- Dr DBW  |  talk  02:03, 11 September 2007 (UTC)
 * Another happy customer, great! Jean-Lou Dupont 02:13, 11 September 2007 (UTC)

Does it work with mediawiki 1.11.0 ? (TODO)
If yes, then I must be stupid as I can't create user specific sidebar. My username is perro1o, could you please clearly state what page I need to create in order to get my own personal sidebar. From the documentation it is not clear if it is: neither of these 2 solutions do actually work.
 * "name/Sidebar" which would be "perro1o/Sidebar" in my case
 * "MediaWiki:Sidebar/user" which would be "MediaWiki:Sidebar/perro1o" in my case

My settings are just the defaults one.

Thanks for your help.
 * I currently do not support 1.11. No timeframe yet. Jean-Lou Dupont 10:46, 1 October 2007 (UTC)

Getting SideBarEx to show up in the navigation side panel ???
Thanks Jean-Lou for the advice about changing over to "SidebarEx" ...

I removed the entries from "LocalSettings.php" regarding the "SysopSideBar" extension and installed "SidebarEx" using the PEARS approach .. I see that the directory "MediWiki" was created and the "StubManager" and "SidebarEx" were created and filled ..

If I browse the various "'Sysop', 'User', '*'" pages i get them already filled in with what I assume id the default SideBar navigation information ... This is great because I assume that "SideBarEx" is working ..

But, I cannot see the same information in the SideBar on my wiki ... I still see the original info .. I have refreshed my browser a number of times ..

I also cannot find the extension in the Versions Page (Other) ...

Have I missed something ???

--Dick 19:25, 15 October 2007 (UTC)
 * Have you checked that the page names are : MediaWiki:Sidebar/sysop, MediaWiki:Sidebar/user, MediaWiki:Sidebar/* ? Jean-Lou Dupont 19:31, 15 October 2007 (UTC)

Yes, they definitely have the required names .. I can copy and paste the names from your example on this install page and then search for them on my wiki and they show up correctly ..

What I have noticed is that if I search for any file which has "MediaWiki:Sidebar/..." in it, it shows the default navigation list ... The Sysop list I have changed and that shows the changes in the page but not on the SideBar ... I just tried it on this site and see it does the same - so thats not an issue ...

Why can't I see the extensions in the Special Version page ?? Do I need extensionClass to run this version of SideBarEx ?? .. I found the extensionClass script eventually and installed it and it shows up in the Versions page ...

(As a matter of interest I did get SysopSideBar to work before going over to SideBarEx) ...

--Dick 05:43, 16 October 2007 (UTC)
 * Let's start at the beginning: SidebarEx is only currently tested for MW1.10 and 1.11.
 * No you do not need 'ExtensionClass' for SidebarEx.
 * Yes you should see 'StubManager' and 'SidebarEx' (amongst the others) in Special:Version. Do you have the 'require "MediaWiki/StubManager/StubManager.php' line in your LocalSettings.php?
 * Also, do you have any PHP level restrictions for accessing the PEAR directory? (e.g. open base dir, safe mode etc.)
 * Jean-Lou Dupont 07:02, 16 October 2007 (UTC)

OK Jean-Lou,

- I removed "ExtensionClass"

- I added "MediaWiki/StubManager/StubManager.php" to LocalSettings.php (Had not done that)..

"StubManager" now shows up in Versions Page ..

Still no default Sidebar ...

I then added "require_once( "$IP/extensions/SidebarEx/SidebarEx.php" );" to LocalSettings.php .. (I recall that you said that StubManager would handle all tasks and one need not place anything into LocalSettings.php !!)

But SidebarEx now shows up in Versions Page .. (I entered the relevant files into "/extensions/SidebarEx" directory) ..

Even though i added "require_once( "$IP/extensions/SidebarEx/SidebarEx.php" );" to LocalSettings.php, I still don't get the default SideBar on the left-hand side ..

How would i test for any PHP level restrictions for accessing the PEAR directory ? .. I'm using SuSe 10.1 (I'm sure I'm not in 'Safe Mode")... My PEAR directory path is "/usr/share/php5/PEAR/" ...

--Dick 07:49, 16 October 2007 (UTC)

I got the default Sidebar to show up ..

Further to my tests here Jean-Lou, I changed the following in LocalSettings.php ... ($bwSidebarNs = NS_MEDIAWIKI and $bwSidebarPage = Sidebar;) $bwSidebarNs = NS_MEDIAWIKI; // must be defined prior $bwSidebarPage = Sidebar; $bwSidebarSearch = array ('Bureaucrat', 'Sysop', 'User', '*' ); #  MediaWiki:Sidebar/Bureaucrat #  MediaWiki:Sidebar/Sysop #  MediaWiki:Sidebar/User #  MediaWiki:Sidebar/* #  User:username/Sidebar #  MediaWiki:Sidebar/Ns/Main #  MediaWiki:Sidebar/Ns/Category require_once( "MediaWiki/StubManager/StubManager.php" ); require_once( "$IP/extensions/SidebarEx/SidebarEx.php" );
 * 1) Define the SideBar Pages for SideBarExt. ##
 * 2) 1) Define (if desired) the base namespace where the pages will be fetched:
 * 1) 2) Define (if desired) the base page where the 'sidebar' pages will be fetched:
 * 1) 3) Define the priority list i.e. group membership search order.
 * 1)    Corresponding sidebar pages for $bwSidebarSearch:
 * 1)    Per-User sidebars - Edit the page
 * 1)    Per-Namespace sidebars - Examples:
 * 1) 4) Include the required scripts to run SideBarEx:

'Sidebar' was 'Sidebars' and this was copied from your install instructions Page ..

The Sysop sidebar does not show up when i log in .. When i log in as a guest the default sidebar shows up .. No matter how i log in, only the default sidebar shows ...

If I remove "require_once( "$IP/extensions/SidebarEx/SidebarEx.php" );", the default sidebar goes back to original sidebar ...

--Dick 08:13, 16 October 2007 (UTC)