User talk:Barrylb

From Meta, a Wikimedia project coordination wiki

Barry,

I'm trying to get a calendar to display in my left nav bar for my corporate Intranet site. I've tried editing Monobook.php to include the calendar.php file and I tried using the calendar tag, but it didn't work. Any idea on how I can accomplish this?

Thanks!

Hi, I suggest first you test it is installed properly by putting <calendar/> in any wiki page and make sure it shows up. If it does not then make sure you have included the calendar.php in LocalSettings.php. Once it is working, you can modify Monobook.php. I put this code into my Monobook: <?php $this->msgWiki( 'Leftnav' ) ?> just above the toolbox portlet <div class="portlet" id="p-tb">. Then edit MediaWiki:Leftnav on your wiki and set its contents to <calendar/> and it should work. -- Barrylb 01:41, 1 August 2006 (UTC)[reply]

Hi Barrylb

Thanks for the Usercan Hook trick, it works very well. However i would like to allow any logged-in users to edit articles, not only Sysop users. How can I do that ? I guess it has something to do with this bit of code:

if (!$title->isTalkPage() && !$user->isSysop())

What do I do to allow any logged-in users to edit articles ? (I still want to limit anonymous editing to Talk pages).

thank you very much for your work

Lilious 19:58, 16 July 2006 (UTC)[reply]

I think the following will do what you want, just change that line to:

if (!$title->isTalkPage() && !$this->isLoggedIn())

You can read this as "if the article is not a talk page and the user is not logged on then .. disallow editing". Hope it works.

I'm glad my work is useful to others! Barrylb 20:17, 16 July 2006 (UTC)[reply]



Yesss ! It's working ! And very usefull !!!
Your other articles (corporate wiki and calendar) are also looking very interesting. Please keep on writing !

Thanks again :-)

Lilious 15:09, 17 July 2006 (UTC)[reply]

Thanks ![edit]

Once again you helped me a lot: The DynamicPageList extension is looking great and i was looking for something to get nice URLs, your Fix for ampersand in titles sound again very interesting.

I'm going to try all that very soon :-)

cheers

Lilious 23:38, 20 July 2006 (UTC)[reply]


Hi Barry,

I am having two problems. The first is that I can't add an event. For some reason there is no edit tool in the events special page. Furthermore, when I try to put in the syntax code on any page it doesn't do anything.

Also, I would like to resize my calander and events boxes, any suggestions? - JJG