User talk:MarkS
If you leave a comment here then I will normally reply to your comment here unless:
Therefore if you leave a comment please add this page to your watch list. |
Archive |
Signpost updated for January 29th, 2007.
Weekly Delivery |
---|
| ||
Volume 3, Issue 5 | 29 January 2007 | About the Signpost |
|
| |
Home | Archives | Newsroom | Tip Line | Single-Page View | Shortcut : WP:POST |
|
You are receiving this message because you have signed up for the Signpost spamlist. If you wish to stop receiving these messages, simply remove your name from the list. Ralbot 17:58, 30 January 2007 (UTC)
AddEditButtons
Hi,
I would like to allow users to add new buttons on my wiki as well. What is the license and are there any precautions? Aretai 15:50, 31 January 2007 (UTC)
- Extra edit buttons are part of wikipedia and licensed under the same terms as the rest of Wikipedia - GFDL. So you can take a copy of the code and develop/use as you wish. However, you can't sell the code. I'm not aware of any particular precautions you need to take if adding something based on XEB to your own wiki. Its just javascript and no more dangerous than anything else. However, I must mention I have no experience in installing them on another wiki, so it is uncharted territory. --MarkS (talk) 19:58, 2 February 2007 (UTC)
Maybe could you just let me know what are the steps to have it installed on my wiki? For example:
- 1) You login as an admin and paste the code from http://en.wikipedia.org/wiki/User:MarkS/extraeditbuttons.js to yourwiki/User:Admin/extraeditbuttons.js
- 2) You change the code to reflect your directory hierarchy:
'C':['5/5f/Button_center.png','Center','<div style="text-align: center;">\n','\n<\/div>','Centred text'
(If I understand it OK it points to a directory on a wikipedia server so it should be probably changed??!!??) Any other changes necessary due to diff wiki?
- 3) Then you make the tutorial for your wiki users similar to http://en.wikipedia.org/wiki/User:MarkS/Extra_edit_buttons
(Does the changed to edit buttons affect admin user as well?)
Regards, Aretai 10:49, 5 February 2007 (UTC)
- I've never tried to put it on another wiki myself but this is what I know:
- You will need to copy the javascript code as you suggest
- You can then paste it either to the location you suggest or any other location you would like. I would suggest that you paste it into yourwiki/User:Admin/extraeditbuttons.js if you only want some users to have access to it. You then need to add the code each user's monobook.js to import the code into monobook.js so it runs whenever you load a page. The XEB documentation tells you how to do this.
- The alternative place to put it is either directly in yourWiki/MediaWiki:Common.js or into something like yourWiki/XEB.js (and then use the code very similar to the way user put XEB into their monobook.js to import it into yourWiki/MediaWiki:Common.js). If you do it this way it is available to all users. yourWiki/MediaWiki:Common.js runs whenever a page is accessed for all users. If you look at the wikipedia version you should see that it adds 11 buttons to the standard 10 wikimedia buttons.
- My understanding is that there is nothing to physically stop you using the images in Commons (ie. the ones XEB uses at the moment) so you don't need to update the code to reflect alternative locations whilst testing. However, my understanding is that using commons images in external web pages (ie. outside wikimedia) is strongly discourage. I would install the code first, see if it works and then move the images.
- You might want to make sure you have a recently up to date version of the wikimedia code. I know they have been adding variables to wikimedia over the month and it might be the case that XEB is using a newish variable
- Copy the tutorial and away you go
- That's the theory anyway. Let me know how you get on.--MarkS (talk) 21:43, 5 February 2007 (UTC)
Thx for answers MarkS. I tried both ways. I've pasted the code to my page (I'm an admin). and then have updated monobook.js (still admin account) however it wasn't working. Then I've just pasted code from the Common.js as you have suggested.
Do you think that version of the software I'm using MW 1.6.7 is significant? Do you think I should change sth in the code?
Regards, Aretai 16:28, 7 February 2007 (UTC)
- I've tried this myself and got it to work. The test was done using Wiki on a stick. Wiki on a stick was downloaded and setup. I haven't made any significant changes to the configuration. The only change to the basic configuration that might be relevant here was allowing the shorter url method (so you can type http://127.0.0.1/wiki/article rather than http://127.0.0.1/wiki/ndex.php?title=...). The steps where:
- Create a user MarkS on my own wiki
- Copy the XEB javascript file from wikipedia into User:MarkS/XEB.js.
- Copy the short piece of code into monobook.js that writes XEB.js into monobook.js. This is the piece of code detailed at the top of the XEB page that all users require to use XEB. You need to make sure that the URL of the code to include points to User:MarkS/XEB.js. You might want to just test the URL directly in your browser to make sure it works pulls up the page javascript itself (and not a complete MW page).
- Set $wgAllowUserJs=true; in localsettings.php. This is the bit that I got stuck on for 20 minutes before realising that monobook.js wasn't running at all.
- Refresh the page and XEB should be running.
- I used the dev version of XEB in my testing (this is because I wanted the dev version installed on WOS for possible testing). However, I suggest you use the live version of XEB-the version of MW you use shouldn't affect the live version. Once it is installed and running you then need to move the button images to your own wiki. Let me know how you get on. If it works for you then I'll write this up on the main XEB page. --MarkS (talk) 10:14, 9 February 2007 (UTC)
Hi,
thx for all help. I tried all this (even have created user MarkS on my wiki;)) but still it's not working:( Probably it's because of my MW 1.6.7 - will try to upgrade to 1.9.*. Tried this WOS (version 1.6.7) btw. what version have you used?
Regards, Aretai 15:24, 9 February 2007 (UTC)
- Just check the version and it is 1.7.1 (I've got my version of a couple of WOS a couple of weeks ago, I know since I downloaded it they have done an update to remove a bug from the WOS exe. One thing to check first is to see if monobook.js is being run at all. I did this version by simply adding
alert("hello world");
into monobook.js. When that didn't work I knew it was a general problem rather than XEB. You could also try the code in common.js and see if it works their. It might help narrow down the problem. --MarkS (talk) 16:23, 9 February 2007 (UTC)
Signpost updated for February 5th, 2007.
Weekly Delivery |
---|
| ||
Volume 3, Issue 6 | 5 February 2007 | About the Signpost |
|
| |
Home | Archives | Newsroom | Tip Line | Single-Page View | Shortcut : WP:POST |
|
You are receiving this message because you have signed up for the Signpost spamlist. If you wish to stop receiving these messages, simply remove your name from the list. Ralbot 05:16, 6 February 2007 (UTC)
Expandable toolbox buttons?
User:Kbh3rd/Vandal warning toolbox - interesting tool. Gave me an idea to have a button that could expand into a series of buttons - templates, usually, that one does not want to see in every edit, but sometimes are useful.-- Piotr Konieczny aka Prokonsul Piotrus | talk 21:02, 6 February 2007 (UTC)
- I have a plan for this sort of thing. The past month or two I have been working on some significant extra functionality in XEB. User:Olliminatore has something on the German XEB which has a popup when you click on the table button. I liked the idea but it used a popup window and I didn't like this. So I took the idea and worked it into something better. My version creates a floating popup (very similar to Lupin's popups) in which you fill in the parameters and then click insert and it adds the table markup. The key feature though is that the code is reusable and other popups can be easily added. So this evening I added a reference popup and I've got ideas for things like an advanced image popup etc. It would be very easy to add an extra button (with perhaps a speech bubble image) and then add a popup with a list of the possible templates. Click the template and it gets inserted at the current place on the page. I'll add something in the next few days. At the moment all this is on the dev version because I haven't fully tested the popup code on a wide range of browsers and browser version (I've only check Opera, Firefox 2.0 and IE7). If you want to have a look at the dev version feel free and let me know what you think. --MarkS (talk) 21:18, 6 February 2007 (UTC)
- Replying styles: That works too. Honestly I can't wait till they implement meta:LiquidThreads, or perhaps synchronized threads (which are kind of workable now). I am not sure how to use the dev version, but once the update is ready for testing I will do so on my computers (latest Mozilla and SeaMonkey builds).-- Piotr Konieczny aka Prokonsul Piotrus | talk 21:32, 6 February 2007 (UTC)
- Karl's threads work well but I always forget to edit the talk page itself so the new messages message appears; LiquidThreads though will be great. If you want to try the dev version then you could copy the code from the bottom of my monobook.js - everything from "//==== XEB Settings ====" down. The variable XEBSettings (at the very top of this code) just needs to be set to "dev","live" or "Karl" to switch between different versions of the script. Once setup it makes testing much easier. --MarkS (talk) 22:33, 6 February 2007 (UTC)
- I have added a popup menu for a list of templates to add to a user's talk page. To use it you need to setup XEBOrder to include the button "Talk". This will add a button with a face and speech bubble. Click on the button and a popup menu will open. Highlight the item you want and click it to insert it. At the moment this isn't in live XEB. However, I have tested the dev version in SeaMonkey. I have taken a copy of this dev version of the code and create a third version of XEB called "Test". This is to allow users to test a version of XEB that isn't going to be changing regularly. I won't update this Test version until Friday at the earliest to allow time for comment. If you want to use the Test version then have a look at my monobook.js to see how to set it up. Any comments on this popup (or any other part of the next popups or XEB itself please let me know). --MarkS (talk) 22:00, 11 February 2007 (UTC)
- Karl's threads work well but I always forget to edit the talk page itself so the new messages message appears; LiquidThreads though will be great. If you want to try the dev version then you could copy the code from the bottom of my monobook.js - everything from "//==== XEB Settings ====" down. The variable XEBSettings (at the very top of this code) just needs to be set to "dev","live" or "Karl" to switch between different versions of the script. Once setup it makes testing much easier. --MarkS (talk) 22:33, 6 February 2007 (UTC)
- Replying styles: That works too. Honestly I can't wait till they implement meta:LiquidThreads, or perhaps synchronized threads (which are kind of workable now). I am not sure how to use the dev version, but once the update is ready for testing I will do so on my computers (latest Mozilla and SeaMonkey builds).-- Piotr Konieczny aka Prokonsul Piotrus | talk 21:32, 6 February 2007 (UTC)
Signpost updated for February 12th, 2007.
Weekly Delivery |
---|
| ||
Volume 3, Issue 7 | 12 February 2007 | About the Signpost |
|
| |
Home | Archives | Newsroom | Tip Line | Single-Page View | Shortcut : WP:POST |
|
You are receiving this message because you have signed up for the Signpost spamlist. If you wish to stop receiving these messages, simply remove your name from the list. Ralbot 05:19, 13 February 2007 (UTC)
Signpost updated for February 19th, 2007.
Weekly Delivery |
---|
| ||
Volume 3, Issue 8 | 19 February 2007 | About the Signpost |
|
| |
Home | Archives | Newsroom | Tip Line | Single-Page View | Shortcut : WP:POST |
|
You are receiving this message because you have signed up for the Signpost spamlist. If you wish to stop receiving these messages, simply remove your name from the list. Ralbot 07:22, 20 February 2007 (UTC)
Signpost updated for February 26th, 2007.
Weekly Delivery |
---|
| ||
Volume 3, Issue 9 | 26 February 2007 | About the Signpost |
|
| |
Home | Archives | Newsroom | Tip Line | Single-Page View | Shortcut : WP:POST |
|
You are receiving this message because you have signed up for the Signpost spamlist. If you wish to stop receiving these messages, simply remove your name from the list. Ralbot 08:24, 27 February 2007 (UTC)
Hi
I was wondering if you could remove a few buttons in your script. Several buttons are repeated in the string. eg: , , , , , , , , & finally . Install it to see what I mean. Thank you for your assistance, -- Darkest Hour 22:52, 2 March 2007 (UTC)
- Your right. What happened was that XEB was built to add these extra buttons. Then somebody incorporated the extra buttons in the standard English Wikipedia. The extra buttons weren't removed immediately because much of XEB is shared between the English and German Wikipedia's. If you want to remove individual buttons then you can always use the rmEditButtons option. However, I will also look at tidying up the standard buttons that XEB gives to people so there aren't any duplicates with the standard Wikipedia buttons. I'll try and do this in the next release which should be out within a week. -- MarkS (talk) 23:44, 3 March 2007 (UTC)
- This is fixed in the dev version of XEB. The dev version is ready to be promoted to live. However, I'd rather do that early tomorrow morning (to ensure that I don't make a change for US users and then promptly go to bed leaving them with no support at update time). The dev version removes all the duplicate buttons with one exception. The table button (Button array) will continue to be duplicated for the time being. This is because the XEB table button (the second one on the tool bar) will have a popup dialog box for the user to sepecify exactly what they want. I would like to move this to the standard table button but that would require playing with part of the code I know the least about (the code I just copied from the German version of XEB). I'll fix this when I get a chance. -- MarkS (talk) 20:55, 5 March 2007 (UTC)
Signpost updated for March 5th, 2007.
Weekly Delivery |
---|
| ||
Volume 3, Issue 10 | 5 March 2007 | About the Signpost |
|
| |
Home | Archives | Newsroom | Tip Line | Single-Page View | Shortcut : WP:POST |
|
You are receiving this message because you have signed up for the Signpost spamlist. If you wish to stop receiving these messages, simply remove your name from the list. Ralbot 06:27, 6 March 2007 (UTC)
Adding XEB to another MediaWiki application
HI Mark, I'm a bit new to this, but I have been trying to install the extended toolbar to my MediaWiki application and all I have is the short toolbar. COuld you tell me how I can install this extension. Thank you MartinR — Preceding unsigned comment added by 193.120.95.141 (talk • contribs) 14:32, 6 March 2007 (UTC)
- Reply left on user's talk page -- MarkS (talk) 14:52, 6 March 2007 (UTC)
apology about "liver" edit
i apologize for the nonsense put up on "liver". i foolishly left my computer unattended and a silly child put that info up there. he will be dealt with.