[How To] - Hide Elements, Forced Hiding and Options - Printable Version -Shoutbox (https://shoutbox.menthix.net) +-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58) +--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4) +---- Forum: Skinning (/forumdisplay.php?fid=41) +----- Thread: [How To] - Hide Elements, Forced Hiding and Options (/showthread.php?tid=79693) [How To] - Hide Elements, Forced Hiding and Options by aNILEator on 12-06-2007 at 09:04 PM
In this tutorial I'll show you how to hide elements from messenger. code: NOTE: The Compatibility section restricts what version of Messenger your skin will load on, so you can make a skin only for WLM8.5 if you want too, and not allow support and compatibility with WLM8.1, in the long run this helps avoid any issues your skin might pose to other versions of Messenger people may be using. If you do not know what version of Messenger you have, you can find out by opening Messenger and on the Menu Bar (File, Contacts, Actions etc) Go to Help->About Messenger a window will be displayed that shows the version that you are running. Eg Version 8.1.0178 would translate to <MsgVersion Major="8" Minor="1"/> Starting to Skin You need to tell SkinInfo.xml what to replace so after </Information> you will need code similar to the example below code: Everything inside the <MessengerSkin> tag is part of what will be skinned <ResGroup> can be used to separate sections, for instance a resgroup for replacing items only in 8.0 and another for 8.1 and so on. <Restrictions> This can be used to restrict a Resgroup to only alter WLM 8.0 and 8.5, or only 8.5 etc (Essential for compatibility between different WLM Versions) This tells the Group what to do basically. Replacing Resources After Restrictions Add <Resources><Replace> code:Everything inside <Replace> gets (Guess what! ) Replaced So you'll want to add a code like this code: This is telling plus to replace the Window Definitions of Messenger with modified ones (there are other tags such as <styles> and <strings> but these are not needed for these modifications). 923 is the Contact List Window which we will be editing later on. Copy this definition from your earlier extracted resources into your skin directory, if you haven't already, as now it's time to get editing! HINT: If you plan on creating a skin that modifies lots of files, you may want to organize them into folders, or copy over the whole contents of the Consolidated Windows Folder to your skin's directory, this may help you to keep things organized. Editing Definitions - Forced Hiding • Open up your skin directory's copy of 923 Definition.txt in the editor of your choice. • Press "Ctrl+F" to bring up the search box, search for idSearchContainer It should bring you to some lines that say: code: Notice that in the line above there is a "layoutpos=bottom" specified, to hide the Search Bar you want to edit this attribute. • To force hide the Search Bar change "layoutpos=bottom" to "layoutpos=none" This will hide the Search Bar from the contact list. This method is the same for most Elements you may want to force hide. If an element that you want to hide does not have a layoutpos to modify, you can add one, it may work depending on the element. Give it a go So.. Save all files, apply the skin via Plus' Preferences and restart messenger the Search Bar Element should now be gone HINT: Sometimes Element ID's change between messenger versions, so it's best to check before you edit anything, that you are editing the correct line. *PlusSkin* Options Hiding I highly recommend that you use this feature instead of force modifying anything! Using Plus' Advanced Options you can let users decide what features they want or don't want in their messenger. The options are enabled via the registry so a .reg file could be included with your skin to activate any options that you are otherwise not allowed to display in the options window for your skin Putting <!--Comments Tags--> around an option will also not allow it load in your skins Options Window Unless the tags are removed or the option is enabled via the registry. The <!-- defines the beginning of a commented section the --> defines it's end, items between will not be loaded. Comment Tags can also be used for organization purposes, so you can easily distinguish a particular code segment's purpose or for disabling a particular piece of code that you perhaps are still working on and do not want loaded at the moment. So, on with the show... Adding Options to the Options Window Messenger Plus will automatically generate an options box when you define your options in SkinInfo.xml so here's how to add options. • Open up SkinInfo.xml and between </Information> and <MessengerSkin> add the following code: This will then generate a check box option that will enable/disable the registry setting for RemSearchBar As I'm sure you'll notice, there are attributes in use One defines the "Name" of the option, this will be what registry item is affected by the check box state. The other is the description that is displayed alongside the check box in the Options Window. So now we've told Plus what to modify in registry, we need to actually create the code for RemSearchBar to work Editing Definitions for *PlusSkin* Options • Open up your skin directory's copy of 923 Definition.txt in the editor of your choice. • Press "Ctrl+F" to bring up the search box, search for idSearchContainer It should bring you to some lines that say: code: • To add a *PlusSkin* option to allow you to hide the Search Bar change "layoutpos=bottom" to "<*PlusSkin Conditions(RemSearchBar = false)*>layoutpos=bottom</*PlusSkin*> <*PlusSkin Conditions(RemSearchBar = true)*>layoutpos=none</*PlusSkin*>" Here we've defined a true and false statement for the *PlusSkin* option to follow. If the option is turned off (false) then layoutpos=bottom. If the option is turned on (true) then layoutpos=none So this will hide the Search Bar if the option is true, if not it will leave it alone. RemSearchBar is the name I decided to give this option, notice it matches the same in the SkinInfo.xml, this is so the option in SkinInfo.xml affects the code we just written. HINT: You can alter several elements with one option just use the same "Name" this could be useful for having an option to centre align all toolbars at once, or hide multiple elements all at once This method is the same for most Elements you may want to hide with the *PlusSkin* command. And now you're done Editing the Definitions!!! NOTE: If you did not <!-- comment out --> the options in SkinInfo.xml then Plus will automatically generate an options window that can be accessed by the preferences->Customize->Skins "Skin Options" button. Or the plus button on the contact list->Messenger Skin->Skin's Options Creating a HideElement.reg So You've decided to release your skin publicly via these Forums or the Skins Database, GREAT! Your skin has the potential to be used by Millions of Messenger Plus Users! But you want users to be able to hide certain elements that you're restricted on adding an option for have no fear, I can help you do this one too! We're going to to create a HideElement.reg file • In the Skin Directory create a new file call it HideElement.reg • Right Click the file and choose 'Edit' it should open in notepad • Add this code to the file. code: Where Hide The Search Bar is the name of your skin as you set in SkinInfo.xml • Save and exit • Now if you run/merge HideElement.reg it should enable the RemSearchBar functions you defined as a *PlusSkin* option HINT: You can define more values to be adjust by creating a new line for each item, like so code: Now you can zip up the contents of your skin directory Rename it from SkinNameHere.zip to SkinNameHere.plsk and submit it to the Skins Database or upload here on the forums! And that's the end of this [How To] you should have learnt a lot in an easy to follow format (That's what I hope anyway) If this has been of particular help to you please take the time to thank me below for taking over 6 hours to type it out (and another 3 hours+ editing it all over again ) all for free ( I'm crazy) And/Or please leave a reputation point for me please by clicking the star. Thank You Nile Rate Me. This Tutorial May Not Be Copied Without My Permission, Please Contact me for permission RE: [How To] - Hide Elements, Forced Hiding and Options by riahc4 on 12-16-2007 at 10:21 PM
quote:IMO this is unfair; Patchou should be the one that removes the code for a skin to remove the ads. Some great skins will problably come out and because of hiding the ad banner they wouldnt be in the database. IMO unfair but hey; Its Patchou's software. RE: [How To] - Hide Elements, Forced Hiding and Options by prashker on 12-16-2007 at 10:23 PM
quote: Uh. No. Just no. RE: [How To] - Hide Elements, Forced Hiding and Options by riahc4 on 12-17-2007 at 12:08 AM
quote:"Uh. No. Just no" what? That it is unfair and even though its Patchou's software he should allow it? If you rebutel someone's opinion, state the reasons. Other than that you just made yourself look like another "+1" poster. RE: [How To] - Hide Elements, Forced Hiding and Options by aNILEator on 12-17-2007 at 12:18 AM
quote: There's a word called respect. It's flaunted around a lot these days but less people seem to actually use or believe in it. You claim to have beta tested Messenger for Microsoft for 5 years now. Surely you have respect for them. Surely. Why should you have respect for the Messenger Team? They spend months and years creating software for the masses to freely communicate with each other. The Ads are the main source of income for the Messenger team, same for Patchou. A donation of all the money from clicked ads (at least for the American branch) goes towards charities (for more information research into the "I'm" emoticon) It was Patchou's decision that Ad Removal shall not be permitted in the official skins Database out of respect for the Messenger team AND for the future of Messenger Plus! He has stated that Microsoft could easily submit a cease and desist request or deliberately force lock out all add-ons If you enjoy having free stable software you should respect the authors for taking their time to provide you with it. It's not a right to have software for free. In recent times you have shown a lack of respect for software authors and this community, which saddens most of us, you need only see your reputation to see something isn't right here. Personally I think you're stamping on thin ice recently, I suggest you think about how much effort and time people like you and I have put into creating software, tutorials, skins, scripts or anything and that it is not a right to expect compatibility and updates, the exception for this would be paid software where you sign into an agreement or contract. Even then there are exceptions and limitations. So have some more respect for peoples opinions and wishes, and do some research into subjects before posting your own. P.S I have a hell of a lot more respect for Sam, than I do for you riahc4, even though Sam can be the most annoying thing in the world ever, he's never rude or hurtful, I will always help him where needed (even if he keeps annoying me whilst completely re-coding his skin ) RE: [How To] - Hide Elements, Forced Hiding and Options by stuartbennett on 12-18-2007 at 08:49 PM
it was a good tutorial i have learnt something from this, yesterday you refered me to this thread so i might learn how to fix my skin, i have learnt something from reading this but still am baffled on how to fix my skin. RE: [How To] - Hide Elements, Forced Hiding and Options by piper on 12-19-2007 at 10:37 PM
it doesn't work RE: [How To] - Hide Elements, Forced Hiding and Options by aNILEator on 12-20-2007 at 12:05 AM
Piper I'm annoyed at you, you sent me a fairly polite PM but on here you're quite demanding and accusing. RE: [How To] - Hide Elements, Forced Hiding and Options by stuartbennett on 12-20-2007 at 01:37 PM
thanks AnilEator, after extensively looking through my skininfo file i realises that in the different resgroups where i declare multival what i had been doing was quote: instead of quote: as my multival option defined in the options section earlier in the file defined the properties name as WordWheelLoc thats what the resgroup had to read to know to use that property so my skin now works again. my newest problem is i have followed the tutorial in thread, obviously i have done something wrong but not entirely sure as to what yet, in relation to my word wheel element which can be found on line 3 of the 1001 definitions file it originally had the following quote: the problem is that in the above tutorial the example given only shows how to set one action for if that condition is true, i tried to be smart and though, well these options have only got spaces as a seperater between them in there normal layout so if i put background text next to the layout position text with only a space as a seperater then i can make it use one colour as a background if wordwheel is at top and another if its at the bottom, clearly i was wrong. below is the code i tried to use, if there are special seperaters to be used in plusskin tags when modifying multiple settings could you please advise what they are? quote: i appreciate your a busy person, however as you suggested a few days ago i have used this tutorial to solve most of my problem and only have this minor query on syntax to be answered, the result of my actions interestingly enough is that the background behind the sort your contact & add contacts buttons remains white and the bar is permanantly affixed to the bottom regardless of whether the user selects top or bottom in the skin options. i also added the remove searchbar option to y skin it works great by the way, i really appreciate it, i have added a positive point to your reputation as you really do deserve credit for all your hard work on this tutorial. EDIT: thanks anileator for helping me with this we must of spent like over an hour or so on messenger working on this, well mainly you working to be fair, anyways you know how in 8.5 we had to put the entire element tage in each pluskin tag for the word wheel i was forced to do the same with my searchbar option too just thought i should let you know. RE: [How To] - Hide Elements, Forced Hiding and Options by djdannyp on 12-21-2007 at 02:09 AM
Kinda after an answer from Patchou here (as I couldn't PM )..... RE: [How To] - Hide Elements, Forced Hiding and Options by aNILEator on 12-21-2007 at 09:12 AM
If you're just replacing the default Ad-Space image that's allowed. I have no idea what you're talking about 'sets' for RE: [How To] - Hide Elements, Forced Hiding and Options by djdannyp on 12-21-2007 at 10:28 AM
I'm talking about sets because my skin features several sets of images.....each set containing three images, the third of which goes in the space created by removing the ads. RE: [How To] - Hide Elements, Forced Hiding and Options by Toneo on 12-27-2007 at 07:58 AM
Hi. First of all this is a great tutorial, easy to understand, but I think I might've gone wrong somewhere... RE: [How To] - Hide Elements, Forced Hiding and Options by CookieRevised on 12-27-2007 at 10:37 AM
quote:Not allowed... Anything which could remove/hide the ads is simply not allowed, no matter how it is done or how it is called in the options or if it is only for a few pictures. If you want to include a registry key for this you can do it (eg: put a reg file in the skin's directory). But no explicit reference to that should be given anywhere, no option, no reference, nothing. RE: [How To] - Hide Elements, Forced Hiding and Options by stuartbennett on 12-28-2007 at 08:28 PM
i am trying to give users the option to remove buttons in the chat window but its not working, heres the code im using. code: based on this tutorial and lengthy sessions i have had with Nile this should work, anybody know what it is i have done wrong. heres the code that makes the option in skininfo. code: now as best i can see the option name matches up but if anyone can see a mistake here then id greatly appreciate it if you could tell me so i can correct it and learn from it lol. RE: [How To] - Hide Elements, Forced Hiding and Options by aNILEator on 12-28-2007 at 10:38 PM
quote: You have not contacted me on this issue. Don't lie! You have to HIDE the elements not remove them. Removing them can and will feck up messenger add in a layoutpos=none something like code: I have not tested this, so if it doesn't work that's the reason RE: [How To] - Hide Elements, Forced Hiding and Options by stuartbennett on 12-29-2007 at 08:43 AM
when i said about lengthy conversations with yourself Nile i was refering to the lengthy conversations we had regarding word wheel repositioning and hiding the contact list icons, those topics essentially interconnect with what i was attempting so it wasnt technically a lie. RE: [How To] - Hide Elements, Forced Hiding and Options by aNILEator on 12-29-2007 at 09:36 AM Did my method work or was it yours? because you should try not to remove elements wherever necessary RE: [How To] - Hide Elements, Forced Hiding and Options by stuartbennett on 12-29-2007 at 10:25 AM
oh, i havent tried your method yet, i will do however, however as i dont want to bugger up messenger if avoidable. quote: i tried this and got the following skin trace quote: that indicates theres a problem on line 501 in the 920 definitions file but i was editing line 492 line 501 is for the send files button which i havent changed yet, this was done in a clean copy of the 920 definitions file extracted by plus and i only made the changes you specified Nile just incase you were wondering. if i can hide the button rather than remove it then of course i will do so however as this error prevents me from using chat winow il use my other 920 definitions in the mean time. EDIT: as per my discussion with Nile on messenger i hid invite button without removing it using the following code. quote: but when i tried to do the same on the shared files button as per the code below it didnt work, yes it hid it but unlike what happened with invite button you can still click it even though theres no picture there. quote: does anybody know what i did wrong here? RE: [How To] - Hide Elements, Forced Hiding and Options by Basilis on 01-03-2008 at 10:48 AM I would like to thank you for giving such clear information on different parts of skinning.It helped me very much! RE: [How To] - Hide Elements, Forced Hiding and Options by aNILEator on 01-03-2008 at 09:03 PM
quote:Much appreciated Look forward to future tutorials, when I get back home RE: [How To] - Hide Elements, Forced Hiding and Options by LuckyMe on 02-21-2008 at 06:51 AM
Hey aNILEator, i´m trying to hide the search bar with your information, and i think there´s something wrong somewhere, i hope you can help me!, i´ll try to explain in my unfortunate english what´s happening now. RE: [How To] - Hide Elements, Forced Hiding and Options by TheSourcE on 04-18-2008 at 03:31 PM
How do you hide/show the Plus button and the Scripting button? RE: [How To] - Hide Elements, Forced Hiding and Options by aNILEator on 04-18-2008 at 03:59 PM Hi Eminem, have you looked at the resources for (I believe it's Willz skins) a skin which does do this, as far as I know you need to add something first off to disable the two Plus! Buttons. I haven't dabbled with it yet, I will do over summer when the Contest should hopefully be running, and my skins will all receive an overhaul and new options set. RE: [How To] - Hide Elements, Forced Hiding and Options by djdannyp on 04-18-2008 at 05:03 PM
code: those lines need to be added in the "Options" section of your SkinInfo.xml if you need more information then check my skin (link in my sig) as I have done this successfully RE: [How To] - Hide Elements, Forced Hiding and Options by aNILEator on 04-18-2008 at 09:03 PM thanks djdannyp RE: [How To] - Hide Elements, Forced Hiding and Options by TheSourcE on 04-19-2008 at 09:38 AM Thank you very much Djdannyp. It works |