Brickipedia:Development Questions
Post here about development questions or inquiries by adding a section for a new thread. --ToaMeiko (talk) 23:17, 5 October 2013 (EDT)
1.22 Question[edit source]
- Is there any way to turn off that "Your edit was saved" box on your account? NovaHawk 01:04, 8 December 2013 (UTC)
- I guess a simple
#whatever-it-is { display: none !important;
- I guess a simple
} would probably work... UltrasonicNXT (talk)
- Thanks NXT- I had to download the old extension it originally came from to find the class name since it didn't show up in the code, but I got there in the end :P NovaHawk 01:48, 9 December 2013 (UTC)
SVG Logos[edit source]
Hi! Does anyone have SVGs of the Stories, Dev, and Cuusoo wikis I can use for the top bar instead of the PNGs we have currently? MtMNC (talk) 19:13, 24 December 2013 (UTC)
- For stories and cuusoo, no. UltrasonicNXT may still have the dev logo as an SVG. --ToaMeiko (talk) 19:30, 24 December 2013 (UTC)
- Unfortunately, I can't SVG, and because of the graphics I am using at the moment, making it an SVG may require the LSW logo having a full overhaul unless there is some miraculous converter. -SirComputer (talk) 20:51, 24 December 2013 (UTC)
- I could make one, SirC, but it may require me using a different red brick in the logo. --ToaMeiko (talk) 20:56, 24 December 2013 (UTC)
- I could probably make the Cuusoo logo as well. Is the "wiki" font just Arial? MtMNC (talk) 00:43, 25 December 2013 (UTC)
- Not sure. I'm not sure if Codyn329 knows either. I don't know who made it, but I'd assume GlenBricker made the original CUUSOO Wiki wordmark. --ToaMeiko (talk) 01:08, 25 December 2013 (UTC)
- Sorry, I don't know what font was used. However, Glenbricker didn't make it, I requested a friend of mine named Sam Wang. His last contribution was Sept. 6, 2013 via BTD-5 Wikia so I'm not sure if he would respond if I left any messages behind. However, I am willing to try. Codyn329 (talk) 01:37, 25 December 2013 (UTC)
- Not sure. I'm not sure if Codyn329 knows either. I don't know who made it, but I'd assume GlenBricker made the original CUUSOO Wiki wordmark. --ToaMeiko (talk) 01:08, 25 December 2013 (UTC)
- I don't really mind if the brick is changed - it isn't really of good quality anyway. -SirComputer (talk) 12:23, 25 December 2013 (UTC)
- I could probably make the Cuusoo logo as well. Is the "wiki" font just Arial? MtMNC (talk) 00:43, 25 December 2013 (UTC)
- I could make one, SirC, but it may require me using a different red brick in the logo. --ToaMeiko (talk) 20:56, 24 December 2013 (UTC)
PHP to Break Apart System Message?[edit source]
I'm working on a new sidebar for the small version of the wiki with icons and less links. However, I'm not very experienced with PHP, so how would I go about taking a system message called MediaWiki:Mobile-sidebar that looks like sort of like this
*page URL 1|link title 1 **image URL 1 *page URL 2|link title 2 **image URL 2 - *page URL 3|link title 3 **image URL 3
and outputting it like this (or a variation thereof)?
<a href="page URL 1"><div style="background-image:url(image URL 1);">link title 1</div></a><br> <a href="page URL 2"><div style="background-image:url(image URL 2);">link title 2</div></a><br> <a href="page URL 3"><div style="background-image:url(image URL 3);margin-top:10px;">link title 3</div></a>
Any insights would be much appreciated. MtMNC (talk) 00:43, 25 December 2013 (UTC)
- The standard method for dealing with MediaWiki:Sidebar is
Skin::buildSidebar()
, but alas, sidebar parsing is not for the faint-hearted. If you're an experienced developer and/or need to do complicated parsing routines, you may want to consider rolling out your own parser. I did that for one skin, by rolling out a parser based on Wikia's NavigationService (which in turn is based on old Monaco code) — with a few fixes, it's surprisingly robust.
- You might also want to check out BaseTemplate's makeListItem() (and, if necessary, makeLink()) — sometimes either using those or copying & modifying those might be a good idea. --Jack Phoenix (talk) 01:51, 25 December 2013 (UTC)
Captcha[edit source]
Hi, I've been away for a while and I apologize for that, but I noticed you guys are using a very unreliable Captcha method, and as a result a lot of automated accounts are being created (link). I've dealt with this problem on other wikis successfully. You should use one of ConfirmEdit's more reliable options instead of QuestyCaptcha or whatever you're using. The only two I've seen actually work are Asirra and FancyCaptcha, the latter looks very nice on the signup page in MediaWiki 1.22. I'm a Brickimedia sysadmin and I would set this up for you but I haven't had access to the config files or the VPS since the data loss in June. I recommend changing the captcha type as soon as possible to prevent your user table from becoming full of fake accounts. Thanks! --Seahorse (talk) 03:58, 30 December 2013 (UTC)
- Hey Seahorse, I'll hop onto IRC and send you the information to log in to the server so you can work there. It's best for you to commit to GitHub to make changes to the server, and then run /update.sh on the server. If you have a GitHub account, lemme know what it is and I can give you commit access. I do think we should use FancyCaptcha as opposed to Asirra or what we have currently. Thanks, ToaMeiko (talk) 04:12, 30 December 2013 (UTC)