This is an archive of past discussions with User:Topaz. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page.
cawiki StatusChanger
Hi,
I'm a user in Wikipedia in Catalan, and i am using the statuschanger.js. So In ca:w the status bar doesn't appears always. Do you know why? I am testing to change my monobook.css, but I can't reach my purpose. Pasqual (ca) · CUT17:20, 30 September 2006 (UTC)
By status bar, do you mean the buttons you use to change the status or the icon that shows your status? ~Topaz♪♫∆03:02, 1 October 2006 (UTC)
Sorry, I was waiting an answer on my talk page...
I refered to buttons,
On the one hand, I didn't know that exit an icon that shows my status, what? This which appears on my user page, this is everytime visible, no problem.
On the other, I would add an icon beside status buttons that shows everytime my status, is it possible? Otherwise I must go to my own user page to know my status, I never remember it!
If your statuschanger doesn't always appear, I'll need more specifics. Is there an error message you get when it doesn't appear? What browser are you using? Also, you could probably set up a bit of javascript that grabs your status page every time you load another page, but it'll probably be more resource-intensive in the end than you'd like. Probably best to just check it when you need to know. ~Topaz♪♫∆07:06, 9 October 2006 (UTC)
I use FireFox browser.
No error message appears.
OK, for your comment about to know my current status user.
If you don't see any errors, try looking in the JavaScript Console (Tools -> JavaScript Console). Open the console and clear it before each time you move to a new page. If the error occurs, copy-paste the messages that appear in the console. ~Topaz♪♫∆22:15, 9 October 2006 (UTC)
My console is in Catalan, and I have a lot of error messages, including when three status buttons appear. I don't want give you this work. I will follow searching... Thanks!
And what do you think if you add a button who indicates a message with current status, it will not use great resources and it will be faster than go to your user page. Is it able? Pasqual (ca) · CUT12:51, 10 October 2006 (UTC)
Hi Topaz, I recently responded to a help desk message about changing the text of the new messages banner. While I know how to change the color, border, and such, I do not know about changing the text locally. Do you have any idea how to do this. (It is for User:Llama man). Thanks as always, Prodegotalk23:09, 2 September 2006 (UTC)
Should be easy to do; leave me another message so I have a new messages banner to play with and I'll see what I can come up with. ~Topaz♪♫∆07:32, 3 September 2006 (UTC)
I got really lucky ;-), you finished right as I was checking up on you (and other things) for the first time in hours. I'll credit it to you of course, unless you want to present it to Llama man yourself. Thanks, Prodegotalk23:31, 3 September 2006 (UTC)
You can feel free to tell him as long as you give credit - I'll help him get it working if he's having problems you can't solve. (The script hasn't been fantastically tested yet.) ~Topaz♪♫∆23:41, 3 September 2006 (UTC)
Well, I bypassed the browser's cache and left a new message by logging out, but it still says the same thing. On the bottom of the page, where it usually has the "Internet Explorer" logo, it says "done, but with errors on page." This probably has something to do with that. -- TheGreatLlama(speak to the Llama!)01:39, 4 September 2006 (UTC)
In your monobook.js, you have the source to usermessagechanger.js inline instead of included. The problem with doing that is that included files aren't run until the end of the current <script>...</script> block. Because of that, nothing was getting initialized before the inline script tried to make use of those objects. Instead, place that code into its own js file and include it with inc(). ~Topaz♪♫∆17:24, 4 September 2006 (UTC)
I'm sorry, but I have zero knowledge of pretty much anything to do with JavaScript. I think I understand most of what you wrote, but what exactly do you mean by "include it with inc()"?-- TheGreatLlama(speak to the Llama!)20:01, 4 September 2006 (UTC)
This discussion sure is getting long, huh? Anyway, I did that, but it still don't work. In some places it doesn't have the "code" format that automatically activates on the monobook.js. -- TheGreatLlama(speak to the Llama!)19:10, 5 September 2006 (UTC)
You've got your javascript in the wrong places now. Move everything from the function inc (file) { line to and including lines starting with inc( from your usermessagechanger.js to your monobook.js. Then, in your newly modified monobook.js, move the line inc("User:Llama_man/usermessagechanger.js"); after the rest of the lines starting with inc(. ~Topaz♪♫∆03:09, 7 September 2006 (UTC)
Found the sneaky bug; change inc("User:Llama_man/statuschanger.js) so that it has a closing quote on your string and a trailing semicolon: inc("User:Llama_man/statuschanger.js"); ~Topaz♪♫∆03:23, 1 October 2006 (UTC)
Well, I fixed that bug and deleted the necessary "inc"s, and yet, it still doesn't work.
In your configured newmessage, you make use of topaz.wputil.username() (like the default value does). If you want that value in your user message, you need to include wputil and therefore also comm as noted on my main wikiscripts page: "Also depends on wputil if you want your current username." ~Topaz♪♫∆23:14, 1 October 2006 (UTC)
If you can help me, I'd like to know how to detect when the mouse starts moving and when it stops. Also, how to cancel timeouts. It's because I wanna try to create a beta version of your status changer for use on the Homestar Runner Fanstuff Wiki, as external image embedding is enabled over there. It's gonna be a lot more similar to Gmail's status changer. - Year2000Prob(email)22:38, 8 October 2006 (UTC)
There is an event fired when the mouse moves - you can hook it using something like this:
var onmousemove_old = document.onmousemove;
document.onmousemove = function (e) {
onmousemove_old(e);
//the mouse just moved, act accordingly
}
If you'd like to cancel a timeout, you just need to keep a reference to it around and call clearTimeout with it later, I believe:
var timeout = setTimeout(.....);
...
clearTimeout(timeout);
I'll let you try at it for now. What fun would it be if I did all the work? Seriously, though, if you have any other questions or just plain get stuck, let me know and I'll see what else I can do. I'll even make a H*R wiki account if needed - I am, in fact, a fan. ~Topaz♪♫∆22:17, 9 October 2006 (UTC)
You actually could help by duplicating your wikiscripts on the Homestar Runner Fanstuff Wiki, only so that they work properly there. - Year2000Prob(email)22:22, 9 October 2006 (UTC)
I'd rather not maintain up-to-date versions of my scripts in more than one place. You can feel free to duplicate my scripts there yourself - all you'd need to change is the username in the includes. This has already happened on the Catalan and Spanish Wikipedias, it seems. Just make sure you give credit where credit is due. ~Topaz♪♫∆23:16, 11 October 2006 (UTC)
Solicitud
Hola Topaz: Disculpa el error con tu TODO list, pensé que era el lugar apropiado para dejar solicitudes (se me pasó leer la primera línea ;)). Mas bien aprovecho para comentarte que tu statuschanger.js ha llegado a ser muy popular en la wiki en español donde hemos incluso llegado a implementar (aunque aún en pruebas) un portal de vigilancia de bibliotecarios, para saber si estan activos o no y así los wikipedistas sepan a quien acudir para una respuesta rápida. Sin embargo según veo son tus librerias las que tienen una enorme funcionalidad mas allá del status, justamente yo utilizo estas librerias para crear automáticamente consultas de borrado, votaciones a bibliotecarios y otras cosillas que he metido en mi botonera.
Hola nuevamente: ya implemnté el getpagecontent y funciona ok, aunque al parecer recortaba el texto a traer cuando encontraba un caracter dash. Por ello le añadí dos líneas a tu función
Could you give me an example article with either of those dashes so I could see what's actually going on? It's likely I just need a more robust entity decoder. ~Topaz♪♫∆23:13, 11 October 2006 (UTC)
I figured it out, but I was talking about how to install it. A technical overview would also be nice, but what I was getting at was how to put it into your monobook; e.g. copy and paste the contents into your monobook. For n00bs like me, it would be a great help. Thanks for acnowledging my request. ~ Flameviper17:49, 8 November 2006 (UTC)
Hi again, there seems to be a bug with the user message changer. Whenever I go to any page that a colored box with text in it (Such as User:Seadog.M.S or User:Kungfuadam, it replaces whatever is in that box with whatever message I put in to say when I had new messages. For instance, if I went to Kungfuadam's page, it would replace the "leave a message" box with "Yall got a llama-gram! (Last Llama-gram)" or whatever it's supposed to say. Can you fix this? Please note that I have deleted the user message changer on my monobook.js. Thanks in advance. --The Great Llama(speak to the Llama!)23:20, 11 October 2006 (UTC)
I was thinking if it'll be able to give the value of our user-status to a cookie, because, two weeks ago, I was trying to get page content with your function getpagecontent() and modify the font weight according to status. But processing was too hard and took hard resource.
Actually, that's not a bad idea at all. It bugs me a bit only because of the possibility of inconsistency between the cookie and the actual value, but it should work. Let me think about it a bit. ~Topaz♪♫∆19:13, 22 October 2006 (UTC)
There! Not only does it track the last status you set witha cookie, it also updates the toolbars and status transclusions on all open windows and tabs automatically! ~Topaz♪♫∆09:22, 4 November 2006 (UTC)
Borrado automático
Hola topaz: nuevamente te traigo una idea: Es posible crear una función similar al setpagecontent o al getpagecontent, pero que mande a borrar una página?. Es decir una función que reciba como parámetro el nombre de una página y un motivo de borrado y que como resultado la página pase por la página de borrado con el motivo indicado como parámentro y se borre automáticamente. Claro que esta función sólo podría ser usada por los bibliotecarios. que opinas? Saludos Axxgreazz (consultas?) 17:21, 26 October 2006 (UTC)
No quiero crear una funcion que puede borrar una pagina - es peligroso y la actual paginas por eso son sufficientes en la mayoria del tiempo. ~Topaz♪♫∆21:27, 26 October 2006 (UTC)
Bueno, no entiendo cual es el peligro, ya que sólo los administradores pueden borrar páginas... poniéndonos en el peor de los casos, si un administrador se vuelve loco y comienza a borrar páginas, igual lo puede hacer con un programa o manualmente... igual será detectado y las páginas serán restauradas...en fin gracias de todos modos. Axxgreazz (consultas?) 16:28, 27 October 2006 (UTC)
No me preocupo de un administrador loco; me preocupo de algo en JavaScript que no fue escribiendo correcto y que borra muchos paginas en un accidente grande. Es importante que cambios majores tienen confirmacion de una persona, si? ~Topaz♪♫∆19:51, 27 October 2006 (UTC)
Bueno te comento que asi como Uds tienes WP:AFD nosotros tenemos w:es:Wikipedia:Páginas para borrar. Cuando no queda claro si un artículo debe o no permanecer en la wiki se realiza una consulta de borrado, cuyo resultado luego del conteo de votos puede ser de "mantener" o "borrar" el artículo. Justamente tu opción de borrar automaticamente la queria para los casos en que la decisión fuera borrar, el artículo votado se borrará automáticamente en el momento en que se archiva la votación. De esta manera el mantenimiento es un poco más rápido. (Ojo que en la wiki en español una consulta de borrado se decide por una suma simple de los votos a favor o en contra.). Saludos Axxgreazz (consultas?) 15:28, 4 November 2006 (UTC)
Todavía me preocupo, pero voy a crearlo si puedes darme una manera para probarla. No soy un sysop en ningunas wikipedias. ...o, puedo crearlo en mi wiki personal (tambien esta mediawiki) y podria trabajar en wikipedia. Que piensas? ~Topaz♪♫∆21:57, 8 November 2006 (UTC)
Image tagging for Image:Ub-princesstutu.png
Thanks for uploading Image:Ub-princesstutu.png. The image has been identified as not specifying the source and creator of the image, which is required by Wikipedia's policy on images. If you don't indicate the source and creator of the image on the image's description page, it may be deleted some time in the next seven days. If you have uploaded other images, please verify that you have provided source information for them as well.
For more information on using images, see the following pages:
Well, first of all, I just released a new version of my status changer, so you're probably going to want to replace your copy with the new one while preserving your configuration. Beyond that, can you be more specific? What's it doing wrong or not doing? Are you getting any particular error messages? ~Topaz♪♫∆12:01, 4 November 2006 (UTC)
Ah, I see. Well, you're going to want to replace the content of your statuschanger script with my newer copy, but copy the lines between /* configuration */ and /* end configuration */ in your script before the copy and replace them in the new version once you've replaced your copy with mine. That process is also explained on my wikiscripts page if that's of any use. ~Topaz♪♫∆12:15, 4 November 2006 (UTC)
Bueno he realizado mi adaptación de tu nueva versión del statuschanger (que por cierto está genial!!) y todo funciona ok ;). Puedes verla aquí: w:es:Usuario:Axxgreazz/statuschanger.js. Las diferencias básicamente son las sgtes (por si te sirven para una nueva versión):
topaz.statuschanger.ubicacion: para que el usuario decida si pone la barra de estado al inicio o final del p-personal. (en la wiki en español la prefieren al inicio, es decir antes del link a la página de usuario). Por cierto para ubicarla antes, cree la función addsidepanelbutton2 que usa una función add2, abajo te copio el código.
topaz.statuschanger.textocompleto: para que el usuario decida si muestra el nombre completo de estado en la barra o si muestra la inicial del nombre de estado. Esto lo hice debido a que algunos usuarios usan la resolución 800x600 y tienen la barra de estado al inicio de p-personal. En estos casos la barra de estado se superpone al logo de wikipedia y al hacer clic en lugar de cambiar el estado se dirigian a la Portada. Lo único que se me ocurrió fue disminuir el espacio ocupado por la barra usando sólo las iniciales.
La sección de actualizar el span con estado, me parece excelente pero no la puedo usar debido a que mi configuración (descrita en el punto 1) difiere a tu configuración.
Bueno eso es todo, muy buena la actualización (gracias por avisar!!). Ya más adelante te estaré haciendo algunas consultillas sobre programación. Saludos Axxgreazz (consultas?) 15:51, 4 November 2006 (UTC)
addsidepanelbutton2:function(id,label,targhref) {
var li = topaz.util.add2((topaz.util.getobj(id).getElementsByTagName("ul"))[0],((topaz.util.getobj(id).getElementsByTagName("ul"))[0].getElementsByTagName("li"))[0],"li");
with(topaz.util.add(li,"a")) {
innerHTML = label;
href = targhref;
}
return li;
add2:function(parent, el0, tag, attr) {
var el = document.createElement(tag);
if (attr) {
for (key in attr) {
el[key] = attr[key];
}
}
return parent.insertBefore(el, el0);
}
It might just be you; I don't see that happening at all. What browser are you using? Your talk page looks a bit distorted, but nothing's appearing and disappearing like that. Try clearing your cookies, logging back in, and setting your status again. ~Topaz♪♫∆05:57, 7 November 2006 (UTC)
It worked for me when I was logged out.. Try logging out and looking at this page [3]. My actual status page (/status)[4] appears fine... but for some reason when I'm logged in, and I look at my user/user talk page its screwed (text only).. Also I've noticed that my old config used to be set out nicely.. take a look at my new one (after the two updates) [5]. Ta — Deon555talk23:03, 7 November 2006 (UTC)
Okay, I think I have a basic idea of what might be happening... Thanks for all the information, it really helps track down the problem. Let's see... do you have cookies enabled? ~Topaz♪♫∆04:47, 8 November 2006 (UTC)
Nope... works now and then.. and only for online / offline. Won't work for help, openproxy, abusereport, working.. Again.. sorry to flood u :) — Deon555talk05:20, 8 November 2006 (UTC)
Okay, it's reverting back to the wikisource of the status, and I understand why it's doing that: an oversight on my part. Since there's no easy way for javascript to know what the resulting html would be of some wikisource, I'll have to add an option that disables the auto-updater. For now, your quick fix will do the job. ~Topaz♪♫∆06:04, 8 November 2006 (UTC)
Fantastic :) Is there any way I can add the <!--tags--> or somehow stop it from occurring? My fix is fine, but each time I select a new status, it places that line back into the Status Page. You can see here: [7] and [8] that I tried to fix it, but it still kept doing it.. :s — Deon555talk06:23, 8 November 2006 (UTC)
Okay, I've updated the status changer; grab it and then try setting enablewikimarkup to true. Before you do, though, could you do me a favor and clear your browser cache? I'd like to see if my update notifier is working for other people. You should get a box at the top of your screen indicating that there's a new version of status changer available. ~Topaz♪♫∆22:27, 8 November 2006 (UTC)
Sorry, didn't check back here, and just for no reason cleared my cache this morn, yes the version notice came up. I updated to 20061108, and its bugging again :( I was just starting to enjoy having a status again too :P — Deon555talk00:02, 10 November 2006 (UTC)
I upgraded to 20061108 here [9], but then reverted to 20061106 so it would work again.. Should I leave it on 20061108 so you can see whats happening? — Deon555talk22:56, 10 November 2006 (UTC)
I was screwing around with the statuschanger code to turn it into a different thing (Anti-Vandalism Meter) and probably screwed up the code... would two instances of statuschanger work separately? Or would I have to change things around? Here is a link to my messed up file: User:StonedChipmunk/avm.js Tell me what you think and what I should do. (I have the original statuschanger here: User:StonedChipmunk/statuschanger.js.) --StonedChipmunk03:01, 17 November 2006 (UTC)
Hi Topaz, your sectionsplitter is incompatible with the MediaWiki editing page extension wikEd. wikEd puts parts of the edit page in container DIVs in order to re-sort the elements and to make them invisible for fullscreen mode. This seems to interfere with your script. The edit iframe content simply disappears after a few milliseconds. Cacycle23:00, 17 November 2006 (UTC)
If you can point me to where in the wikEd source the split-into-divs function is, I'll see what I can come up with. ~Topaz♪♫∆06:38, 18 November 2006 (UTC)
Check the source code for "// create wikEd element wrappers" and "// fill the wrappers". It is probably the easiest way to use the DOM inspector to see what wikEd does. Cacycle20:29, 25 November 2006 (UTC)
Status code
Can you give me the status code? As in the "This user is offline/online"? Thanks. I was wanting it for me user page. --RedPooka03:59, 28 November 2006 (UTC)
Hola Topaz. Vengo a comentarte que el statuschanger no funciona más. Estoy probando ahora en esta wiki tu monobook.js y aún así no funciona. El Firefox no muestra error en su Consola Javascript pero no ejecuta el código. El IE si dispara un error en la función setpagecontent en la segunda línea de código:
responseText.match().1...es nulo o no es un objeto
Gracias, Axxgreazz; no se funciona en mis probandos tambien. Pienso que estas correcto: es probablemente que hay un cambio in el software de MediaWiki. Estoy ocupado ahora, puedo quiero arreglarlo manana o Jueves si tengo tiempo. ~Topaz♪♫∆16:52, 5 December 2006 (UTC)
Arreglélo! Estuviste correcto, fue una actualizacion de Mediawiki. Ahora, hay un backslash en wpEditToken; no se porque es alli. Gracias! ~Topaz♪♫∆19:34, 5 December 2006 (UTC)
Statuschanger
On the statuschanger side panel, the text is not there, i only have three dots. I use IE7, and have done all in the installaton instruction... Dvyjones19:11, 10 December 2006 (UTC)
I'm not fantastically familiar with IE7, and my scripts aren't tested there yet; do you get any error messages when the page finishes loading? Also, just out of curiosity, does it work if you set topaz.statuschanger.usepersonalbar to true? ~Topaz♪♫∆21:11, 10 December 2006 (UTC)
No, I don't get any error messages, and when i change topaz.statuschanger.usepersonalbar to true, i only get a space at the top right corner. —Preceding unsigned comment added by Dvyjones (talk • contribs)
It worked when I used Firefox 2, i will be using it for WikiPedia now. —Preceding unsigned comment added by Dvyjones (talk • contribs)
Hola Topaz, ahora te traigo una nueva consulta: la función getpagecontent es capaz de traer el contenido de otra página aún cuando esta esté ubicada en una wiki diferente? Digamos que ejecuto el código en la wiki en inglés para traer el contenido de una página de la wiki en español... se puede hacer esto? Saludos Axxgreazz (consultas?) 20:09, 10 December 2006 (UTC)
No es possible; la technologia XMLHttpRequest tiene un restriction de seguridad que dice que no puede communicar entre hostnames (como se dice in espanol?) differentes. ~Topaz♪♫∆21:09, 10 December 2006 (UTC)
Wikistress
Hi!
I have used the StatusChanger, and tried to make a wikistress version, but it dowsn't quite work. I can see the statuschanger panel, but not the wikistress panel. See the script here: User:Dvyjones/wikistress.js --Dvyjones 22:49, 22 December 2006 (UTC)
Change the 4a to a plain number (not sure why you need to) and all the 'dvyjones' back to 'topaz'. Make sure you have all the required subscripts. Prodegotalk20:43, 1 January 2007 (UTC)
So I'd try, ut now I found it, the status changer should be in the personal bar, not as a panel, so this is a example for Topaz to use as a script: User:Dvyjones/wikistress.js
What difference does that make? Also, the script you linked is using a panel, not the personal bar; did you link the script you meant to link? ~Topaz♪♫∆16:39, 31 January 2007 (UTC)
What I meant was that the Statuschanger and the Wikistress-changer must be on each "side", if the statuschanger is a panel, the wikistress-changer must be in the personal bar, and vice versa. And since the wikistress-changer takes up most space, it should be a panel... Dvyjonest·c·e12:06, 4 February 2007 (UTC)