User talk:Penguin-Pal

Welcome
Hi, welcome to Wikia Developers Wiki! Thanks for your edit to the Admins & Bureaucrats Highlight page.

Please leave a message on my talk page if I can help with anything! -- Grunny (Talk) 12:18, 10 September 2012

Welcome
Hi, welcome to ! Thanks for your edit to the Highlight/code.css page. If you need help, read through our help pages or contact a local admin. If there are no active admins here, stop by Community Central and check out our forums.

Looking for live help? Then join us for an upcoming webinar to chat with staff and other Wikia editors. You can also check our Staff blog to keep up-to-date with the latest news and events around Wikia. Lastly, check out the Wikia Video Library, where you can find premium licensed videos to add to the wiki.

All of these links are a great way to start exploring Wikia.

Happy editing, Grunny  ( talk ) 21:26, April 22, 2013 (UTC)

Disable right click script
Could you do me a favor is make a script that disables right click so that I can put that on my wiki and I can completely lock the user rights page? I need to completely lock that special pages so that no one can find a way into changing our user rights please?MuppeTickeler (talk) 22:49, June 27, 2013 (UTC)

If you want to disable right click, try this; I found it here (i'm not that good in javascript to be honest): But i'm not sure that changing the accessibility for user rights management page is valid from the point of view of the Customization policy. Only admins can enter this page anyway, so it shouldn't be a problem for you.

I am not 100% sure if i get your question right. If not, can you please send it to me again?

Penguin-Pal  (talk)  06:07, June 28, 2013 (UTC)


 * Ok, where do we put the code? Also, I'm an admin on the Planet 51 wiki.--MuppeTickeler (talk) 06:12, June 28, 2013 (UTC)


 * There are 3 pages where you can add scripts:
 * MediaWiki:Monobook.css- only for Monobook users.
 * MediaWiki:Wikia.css- only for Oasis users.
 * MediaWiki:Common.css- applies on everyone.
 * Add this code to the bottom of the page that you choose.
 * Penguin-Pal  (talk)  06:40, June 28, 2013 (UTC)
 * That would disable right click on all pages. You'd need to add a conditional statement for the page you want it to apply to. But as Penguin-Pal said, that probably isn't the right way to do what you're trying to accomplish. ~Bobogoobo (talk) 07:11, June 28, 2013 (UTC)
 * The reason I want to apply that script because the user rights page needs to be locked and to where they can't get around a locked special page. It uses the mediawiki interfaces and it goes with the special page. You can't edit the special pages by yourself. The mediawiki interface does that to affect the message during the special page. This is the page on my wiki that I've locked for crazy changes by the shenanigans:

That's why I need the script of the disable right click so they can't abuse their way into changing rights. I also had another reason to lock the user rights control panel so that our user rights are preserved and cannot be altered anymore in the wiki.--MuppeTickeler (talk) 07:50, June 28, 2013 (UTC)

First of all as this script uses javascript that is run in client-side and not in wikia's servers, a user that disable javascript will still be able to access the page. I would suggest asking wikia to only enabe the access for this page to Wikia Staff, or Wikia Staff and bureaucrats.

If you want to limit the access for this page, you can do something like this: And replace // script with a script that will be applied on every user that is not a staff and not a bureaucrat. For example: But keep in mind that it's always best to request wikia to do this kind of changes so they will be applied on the page from the first place. Penguin-Pal  (talk)  09:09, June 28, 2013 (UTC)


 * What I want to do is block staff, utilities, helpers and other groups that have rights to remove all of our rights from the user rights page so that way they can't remove our rights using just the disable right click script.--MuppeTickeler (talk) 15:53, June 28, 2013 (UTC)
 * First of all, i updated the code as i forgot to add a way to only apply it on Special:UserRights and not other pages.
 * When it comes for blocking features for users like staff, i think it will be a violation of the customization policy. I recommend contacting wikia about this subject, to see what you can and cannot do with it.
 * Penguin-Pal  (talk)  18:28, June 28, 2013 (UTC)
 * Yeah, you're not thinking about this correctly. For one thing, if you have people abusing their rights, maybe they shouldn't have those rights. Secondly, you can use Special:Contact to request that users in certain groups aren't allowed to add or remove certain other groups to/from themselves or others. Lastly, it's not like staff is going to abuse anything, and yeah, blocking that would be a certain violation. ~Bobogoobo (talk) 21:01, June 28, 2013 (UTC)

User Rights Reasons Dropdown
Hi P-P,

Check this out.

 Spydar007 ( Talk  )  16:58, September 16, 2013 (UTC)
 * Nice. Penguin-Pal   (talk)  17:01, September 16, 2013 (UTC)

Question you maybe can aswer
Do you have any idea why this function marks all serrounding div's and tbody when it supposed to only marks 4 elements??? I used page: w:c:dragoncity:Eggs

I believe it has something todo with the each function. Is their any way to fix this issue? --Jens Ingels (talk) 14:58, December 24, 2013 (UTC)
 * Try using .parent rather than .parents. This way it will only apply your script on the first parent, rather than all the elements that $(this) is nested on.
 * Penguin-Pal  (talk)  15:11, December 24, 2013 (UTC)

Yeah I just figured it out 2 seconds ago >< Thx for the confirmation :) --Jens Ingels (talk) 16:05, December 24, 2013 (UTC)
 * I'm glad i could help ;) Penguin-Pal   (talk)  16:10, December 24, 2013 (UTC)

Can you help me with something else? I'm trying to make an small multi tab system. I have the code and var but I can't find an solution to call it. The full code is currently post here w:Thread:612813. My problem is in the tab action:

The idea would be that the var "elem" would change on click ("flame" for example) and than run the above code.

Example of action:
 * if "td.tab-exclusive_hybrid-flame" has been clicked >> var elem = flame, run script
 * if "td.tab-exclusive_hybrid-sea" has been clicked >> var elem = sea, run script
 * if "td.tab-exclusive_hybrid-nature" has been clicked >> var elem = nature, run script
 * if "td.tab-exclusive_hybrid-electric" has been clicked >> var elem = electric, run script

what do you think? Do you have an idea? --Jens Ingels (talk) 20:27, December 25, 2013 (UTC)
 * This would probably get what you're looking for&#58;


 * Though i'm not sure if you wanted "terra" to dynamically change as well. If that's the case just let me know and i'll rewrite the script. Penguin-Pal   (talk)  05:27, December 26, 2013 (UTC)

This indeed to seem be an lot better than my current solution. Currently the script is located here: w:c:dragoncity:MediaWiki:Common.js/eggs-ttab.js. I placed it entirely in the each function but I think your way would indeed be an lot faster.

Yes I want to try to make terra dynamically change as well. It depends how it would effect the loading time. I want to make sure the tab 0-9 switch smoothly. --Jens Ingels (talk) 01:02, December 29, 2013 (UTC)

If you set the elem variable to (where this refers to the clicked cell): $(this).attr("class").replace(/_/g,"").split(/tab-[a-z]{1,}/)[1].split("-")[1].split(" ")[0] It should get the relevant tab to the clicked tab cell.

Penguin-Pal  (talk)  13:06, December 29, 2013 (UTC)

JavaScript help.
Hello P-P ! How are you ? Yesterday, I looked for a script to make an accordion menu, and I found one that I installed on my test wiki, on this page with all the information. I placed the CSS in Wikia.css and the JS in Common.js. But it doesn't work.

Could you check it and try to find what is wrong ? If you can't fix it, there is another alternative I found this morning. It's a jQuery widget to install. The problem is that I don't know how to install it. I don't even know which of the scripts in the source code correspond to the accordion widget. Could you try to tell me how I can do this ? (and eventually install it on this page.

Thank you very much in advance,

— Hulothe  (discussion ) 10:16, May 9, 2014 (UTC)

EDIT : maybe should I only install jQuery UI with all its components like on Elder Scrolls Wiki ?


 * There's no need to import jQuery UI to make the code function properly. I believe that this is what you're trying to achieve (it should allow multiple accordions as well):


 * Penguin-Pal  (talk)  10:40, May 9, 2014 (UTC)


 * Thank you so much ! Yes, that is what I was trying to achieve, it is perfect. Have a good afternoon ! You're the best. — Hulothe  ( discussion ) 12:07, May 9, 2014 (UTC)


 * I'm glad i could help &#59;) Penguin-Pal   (talk)  12:28, May 9, 2014 (UTC)

DynamicImages
Hello P-P,

I just noticed that your DynamicImages script seems not to work in galleries, like on this page : w:c:ombredumordor:Urfael. It is weird assuming works perfectly with no-gallery images... Maybe has it something todo with recent Wikia updates ?

Thank you for your answer,

— Hulothe  (discussion ) 09:59, May 30, 2014 (UTC)


 * Thank you for reporting this, Hulothe. It looks like this error occures in non-english wikis. I'll be sure to fix it. Penguin-Pal   (talk)  10:17, May 30, 2014 (UTC)


 * Ok, thank you very much ! Your scripts are always great :)


 * I've just updated the script and it should work now (it may take it a few moments to work due to caching). Thanks again for the report &#58;)  Penguin-Pal   (talk)  10:52, May 30, 2014 (UTC)