Jump to content

User talk:MarkS

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by MarkS (talk | contribs) at 19:54, 14 June 2007 (→‎[[User talk:MarkS/extraeditbuttons.js]]). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

If you leave a comment here then I will normally reply to your comment here unless:
  • you specifically ask me to reply somewhere else (in which case I may copy my reply to here as well)
  • you are using sychronised threads in which case I will use sychronised thread for the reply. In this case I don't guarantee that I will remember to update your talk page so you are aware than I have made a change.
  • I think there is a good reason to reply somewhere else !

Therefore if you leave a comment please add this page to your watch list.

Archive  

Archive 1

This talk page is automatically archived by Werdnabot. Any sections older than 32 days are automatically archived to User_talk:MarkS/Archive/Archive 1. Sections without timestamps are not archived.

Signpost updated for May 14th, 2007.

The Wikipedia Signpost
The Wikipedia Signpost
Weekly Delivery



Volume 3, Issue 20 14 May 2007 About the Signpost

Administrator status restored to five accounts after emergency desysopping User committed identities provide protection against account hijacking
Academic journals multiply their analyses of Wikipedia WikiWorld comic: "Ubbi dubbi"
Features and admins The Report on Lengthy Litigation

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:52, 15 May 2007 (UTC)[reply]

Signpost updated for May 21st, 2007.

The Wikipedia Signpost
The Wikipedia Signpost
Weekly Delivery



Volume 3, Issue 21 21 May 2007 About the Signpost

Corporate editing lands in Dutch media Spoiler warnings may be tweaked
WikiWorld comic: "Disruptive technology" News and notes: LGBT project mention, milestones
Features and admins The Report on Lengthy Litigation

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:24, 22 May 2007 (UTC)[reply]


question about extra edit buttons

Thanks for the great extension! I'm trying to install it on my local mediawiki installation. I'm having a bit of trouble..

I created a user MarkS and copied the css file to User:MarkS/XEB/live.css and the .js file to User:MarkS/extraeditbuttons.js and added this line in MarkS/monobook.js:

// Script from User:MarkS/extraeditbuttons.js

importScript('User:MarkS/extraeditbuttons.js'); //User:MarkS/extraeditbuttons.js

in the error console of firefox I get the following error:

Error: invalid label
Source File: :http://localhost/FLM/mediawiki-1.9.3/index.php?title=User:MarkS/monobook.js&action=raw&ctype=text/javascript&dontcountme=s
Line: 1, Column: 16
Source Code:
{{subst:js|User:MarkS/extraeditbuttons.js}}

pointing to the colon after the word 'User' above

can you please point me to your previous answers regarding local installation

thanks a lot for your time and any help!

--Gargamel573 22:03, 24 May 2007 (UTC)[reply]

Sorry for the delay in reply I've been away. My best guess is that your setup doesn't like the 'importScript' function. I suspect this function is somewhere in English Wikipedia rather than the MediaWiki software. Try using the following lines in monobook.js instead of the line importScript line:

document.write('<script type="text/javascript" src="' 
            + 'http://en.wikipedia.org/w/index.php?title=User:MarkS/extraeditbuttons.js' 
            + '&action=raw&ctype=text/javascript&dontcountme=s"></script>');

By the looks of it the top of XEB article has been updated for a new form of including scripts which might not work on other setups. I'll amend the main XEB documentation. Let me know how you get on. --MarkS(talk) 19:20, 28 May 2007 (UTC)[reply]


Thanks for the help, it works great!
one last Q: to what location (path) on the wiki do I copy the images I downloaded from the XEB page?
Thanks a lot for the extension and the help :)
Gargamel573 11:41, 30 May 2007 (UTC)[reply]
Its going to be a long boring process to move the images! But my understanding is that it should be done because Wikimedia don't like external sites linking into their images. To get the images out of wikipedia the quickest way is to display the XEB toolbar and right click on each button and select SaveAs to save the images to your local machine. Then user the "Upload file wizard" in your wiki to upload them. I don't think it will offer you a choice where to save the image it just uploads it and gives it an almost random path name. You need to make a note of the path name (and make sure it is the path of the image itself rather than the page with the image and all its information). Once you've move the images you should see that the URL starts with the same path. Place this common route into the variable ISRC (you can see this at the top of the script). Then place the bit that changes for each button into the part of the script that contains the details of each button). Any problems let me know. --MarkS(talk) 19:35, 30 May 2007 (UTC)[reply]

Signpost updated for May 28th, 2007.

The Wikipedia Signpost
The Wikipedia Signpost
Weekly Delivery



Volume 3, Issue 22 28 May 2007 About the Signpost

Controversy over biographies compounded when leading participant blocked Norwegian Wikipedian, journalist dies at 59
WikiWorld comic: "Five-second rule" News and notes: Wikipedian dies, Alexa rank, Jimbo/Colbert, milestones
Features and admins Bugs, Repairs, and Internal Operational News
The Report on Lengthy Litigation

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:37, 29 May 2007 (UTC)[reply]

Hello Mark. A question about your "Extra buttons" script.

I installed your extra buttons script in my .js file however for some reason the extra buttons only work for talk pages of users. In articles or in talk pages of articles the extra buttons don't seem to work. Is there any way you can make them work everywhere?Wikidudeman (talk) 01:41, 2 June 2007 (UTC)[reply]

XEB should work fine for both articles and talk pages. I've done a bit of testing and the problem seems to line in your monobook.js file. You call the "addOnloadHook" function at the bottom of your code and pass in a function to run. The bottom of that function has an if statement ('if ( show_cwli == true )'). JavaScript Debugger (a firefox extension that I use for checking for errors) reports 'show_cwli' as an undefined variable. If I remove the if statement (and the conditional block of code that goes with it) then it all works fine. The top of the function passed to addOnloadHook stops further execution for User and User_Talk pages which is why XEB works fine for these pages for you. My guess is that your function runs first, fails to complete and that stops XEB's code frrm running. I hope this helps, if you want to discuss some more let me know. --MarkS(talk) 19:31, 4 June 2007 (UTC)[reply]
Do you know what I could change in my monobook file exactly to make it work? I'm not great with scripts so could you just copy the original flawed text and provide the new text that would fix the problem? Here's my monobook file [[1]].Wikidudeman (talk) 22:26, 4 June 2007 (UTC)[reply]
From my testing removing the following lines near the bottom of your monobook.js should make it work:

if ( show_cwli == true ) {
                            addPortletLink("tags", "javascript:doCleanup('can we link it')", "can we link it", "can we link it", "Can we link it", ""); 
  }

Doing this may (in some circumstances) stop this part of your script running. I'm not sure what circumstances they are because in my testing this bit always crashed and didn't actually work. Try it and let me know if this works. --MarkS(talk) 21:35, 8 June 2007 (UTC)[reply]

Signpost updated for June 4th, 2007.

The Wikipedia Signpost
The Wikipedia Signpost
Weekly Delivery



Volume 3, Issue 23 4 June 2007 About the Signpost

From the editor
Sockpuppeting administrator desysopped, banned Admin restored after desysopping; dispute centers on suitability of certain biographies
Controversial RFA suspended, results pending Dutch government provides freely licensed photos
WikiWorld comic: "John Hodgman" News and notes: Another Wikipedian dies, brand survey, milestones
Features and admins Bugs, Repairs, and Internal Operational News
The Report on Lengthy Litigation

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:38, 5 June 2007 (UTC)[reply]

Signpost updated for June 11th, 2007.

The Wikipedia Signpost
The Wikipedia Signpost
Weekly Delivery



Volume 3, Issue 24 11 June 2007 About the Signpost

From the editor
Privacy report lists Wikipedia among best sites, but needing improvement Board candidacies open, elections planned
WikiWorld comic: "Why did Mike the Headless Chicken cross the road?" News and notes: Ontario error, no consensus RFA, milestones
Features and admins Bugs, Repairs, and Internal Operational News
The Report on Lengthy Litigation

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 02:47, 13 June 2007 (UTC)[reply]

Hi, please see this page. Thank you--OsamaK 10:27, 14 June 2007 (UTC)[reply]

Answered on the script talk page --MarkS(talk) 19:54, 14 June 2007 (UTC)[reply]