PDA

View Full Version : Mini Mods - [OzzModz] Style & Language Selector In NavBar


ozzy47
11-28-2013, 11:00 PM
Another mod brought to you by,
https://vborg.vbsupport.ru/external/2015/01/1.png

This is just a simple mod, to allow you to have the Style Chooser and/or the Language Chooser in the navbar, or in the header.

To add the choosers in the header, requires you to add the following code to the very end in your header template.
{vb:raw show.ozzmodz_style_lang_chooser}It is a simple installation, just import the product XML, product-ozzmodz_styles_navbar

Note: There is two XML's in the zip file, one is for vB versions 4.2.0 and above, the other one is for vB versions 4.1.12 and below, so choose the one to install accordingly.

You can edit the options under the settings, [OzzModz] Style & Language Selector Settings

Complete Feature List
Option to disable the mod completely.
Option to show the Style Chooser
Option to show the Language Chooser.
Option to disable the auto deploy of the mod, so you can manually add it to your header..First screenshot is how it looks in the header, second one is how it looks in the navbar, third one is of the settings.

-------------------------------------------------------------------------------------------

If you like this mod please hit the https://vborg.vbsupport.ru/external/2015/08/1.png button to the right ---->

Please remember to click the, https://vborg.vbsupport.ru/external/2015/08/2.png button to the right if you installed the mod ---->

What does 'Marking As Installed' do ?

* It helps you to stay on top of updates - members who have installed modifications will be notified whenever new updates are available.

* For security issues - vbulletin.org will contact all members who have installed a modification whenever a security issue is brought to their attention.

* Marking a modification as installed also helps me know how many people are using my work, giving me extra incentive to provide more features and new modifications.

I appreciate the support!
-------------------------------------------------------------------------------------------

v1.0.0 Initial Release

-------------------------------------------------------------------------------------------
Contributions Received (members who clicked on, and followed through with the Support Developer button)

bazookajoe (https://vborg.vbsupport.ru/member.php?u=297643)

ozzy47
11-29-2013, 05:32 PM
Reserved

bazookajoe
11-30-2013, 02:20 AM
Excellent Mod! Thanks Ozzy!

Downloaded and installed, work great!

ozzy47
11-30-2013, 02:21 AM
Excellent Thanks Ozzy!

Don't forget to mark as installed. :)

Edit: I see you now did, and thanks for the donation, I noted it in the first post. :D

bazookajoe
11-30-2013, 02:44 AM
More donations coming..I've installed a couple of your other mod so I will pitch in more as I know it takes time and skills for this work.

New Joe
11-30-2013, 04:23 AM
Nice to see someone still making good mods for vB4 good on ya mate.
Keep them coming

ozzy47
11-30-2013, 04:32 AM
Thanks. :)

SLY LS1
01-04-2014, 05:56 AM
Great mod

Note: this has an issue when using IE11

It add and extra space between the navbar and the header image

Work fine in IE11 compatability mode though

cheers

RichieBoy67
01-04-2014, 07:03 AM
Great idea Ozz! Will check it out soon!

ozzy47
01-04-2014, 11:15 AM
Glad ya like it, and thanks for marking as installed. :)

RichieBoy67
01-04-2014, 11:39 AM
I like this but thinking I want to move it to the top bar. Not sure but going to play around with it. it is great for newer Vbulletin users to see that there are other themes they can use if wanted.

I usually have a low res theme, default and a main modified theme but who knows how many people ever look at the bottom of the page for the theme selector.

Thanks again brother

#-Update

This is where I added minehttps://vborg.vbsupport.ru/data:image/bmp;base64,iVBORw0KGgoAAAANSUhEUgAAAykAAABICAYAAAD yKroIAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJc EhZcwAADsMAAA7DAcdvqGQAABPESURBVHhe7d1fjBzFncDx9R8 gOeWJh9iylEi2wGAFFPPP8IBBcl7gzRHiOc88+IR44ZW3e8xJk YwWiSQnXTgp4TjdXQTSyoI3cncOWe//XXvXQQcXBA7xH1jba6/9u6rqrp7q6l/39PRMz8zufgd9NDPd1VW/quqZrt/MrJk4cOCAAAAAAEAbbt68KZ999pl88cUX8vXXX8vly5dlfX1dX n75ZXn99dfl7bfflvfee08++OAD+eijj+T9998XkhQAAAAArdG SlGvXrrlEpQxJCgAAAIDWaElK6MqVK9m9R5ICAAAAoDUkKQAAA ADGCkkKAAAAgLFCkgIAAABgrJCkAAAAABgrJCkAAKCxgwcPypE jR+SRRx4Bdiz7Gjh06JD6GkEzNkk5e/asvPvuuzI5OVnw1ltvZfceSQoAAHAJykMPPST79++X+++/H9ix7Gvg8OHD7jWhvVbQO5uk2ATl888/l+vXr2f8/xPFfrty6dLX8tVXl+TLL7+Sv/zlC5IUAABwwH16TIICJPbt2+deE9prBb2zScqbb76ZS06uXftG rly9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l7XH27jdvNh97thkvy3nj7HsONlz5445L2w5 7Ro6KiQpALa923u/L/KnedlY+ZPIzCci58/LncUl8/ic3F6Yl7vmMQA0IYvLcnvWvJfMzIosrYl8Mi3XFy6KLM/I7fkFkXlTxlsIpNu0OkN3FhYryfKKbC6cl/Wlabk5vywye0HuLi/IzQt/NvvN/fIFkZU58543bfb9j8jcBdlYPCdy4aKJb1puryzJ5uKCXF+alZs r86Y/pk6z8Lu7YMrNr7r3TplbMWZlc9k8XzR9O2fqWrTb1uTa0jnz3r pqyq/I3dlpY870y4zD0kXZnDfHnjPHnDdxTZv3XtPOjYU/mntTZsZsn/uz6aNpb+68iWFOvlm29a7KxgVT94IZxyUTv4nvm9VF2bBjds7G tyrfLs2Y+/OmDsOMsXs+Z9ow5cXEsnHOtGHHd9rOyawbjw0zFndWVmR90czL +Tm5NT8jG6b83QvmmDkzHuZ6IDbeRWtJbtm4Zkwds8lzmTXzsW DamTGx2/tzc65ed4ydiyVT3pY1+12/7WO3zxy7Ysd0Vm6tmudz5hhbn6n/tp2HlXOmLdOPJbNt3pQzMd1YmZZvbfx2zNP2N80Y2sd2nBen3p dzv/mVzP76Tfnkn/9RFn/3lqy+90tZ+e1bMv+bX8jiv/xC5t/5uZz95T/I2V//XGbeOS2z70zKwm//SVZ//66sffCerPz+d7Lywb/K6n+8I6v/Zo7/z1/JTZMkadfQUek9STkr/w+gALWMjMtjQwAAAABJRU5ErkJggg==

I just added it here in the top links section in the header template. Nice mod dude!

<vb:if condition="$show['member']">

<div id="toplinks" class="toplinks">
<ul class="isuser">
<li>{vb:raw show.ozzmodz_style_lang_chooser}</li>

ozzy47
01-04-2014, 11:52 AM
Cool, glad it actually works up there. :)

mitch84
01-20-2014, 04:04 PM
conflict with this style, can you fix that? thx
https://vborg.vbsupport.ru/showpost.php?p=2475578&postcount=492

RichieBoy67
01-20-2014, 05:15 PM
conflict with this style, can you fix that? thx
https://vborg.vbsupport.ru/showpost.php?p=2475578&postcount=492

Your link leads to something that really does not explain anything. Can you be more specific?

Did you try the instructions he gave me a few posts up about turning off auto edits?

ozzy47
01-20-2014, 06:18 PM
I have no trouble with it in that style waiting for more feedback in the style's thread. :)

RichieBoy67
01-20-2014, 06:28 PM
Oh yeah, I see now. I did not even think to look at the full version of the thread. I thought it was a link to another post in this thread but I just realized this thread is new with only 13 posts and the number on that one was very high. My bad - :erm:

TheLastSuperman
01-20-2014, 06:39 PM
conflict with this style, can you fix that? thx
https://vborg.vbsupport.ru/showpost.php?p=2475578&postcount=492

Fix is in this post: https://vborg.vbsupport.ru/showpost.php?p=2475602&postcount=495

;)

I have no trouble with it in that style waiting for more feedback in the style's thread. :)

I reckon it depends on whether you have it auto-placing itself or defining the position manually using {vb:raw show.ozzmodz_style_lang_chooser} in your templates. It is however confirmed by me that it's a issue related to my custom style, has nothing to do with the functionality of this mod ;).

Barcham
01-27-2014, 09:27 PM
I have a board that caters to both English and French members and this will be extremely useful for me so that members can see right off the bat that they can change the language to their preference. Thanks a lot! Great hack.

ozzy47
01-27-2014, 11:19 PM
Glad ya like it, and thanks for marking as installed. :)

fxdigi-cash
04-17-2014, 10:56 PM
great mod!! Thanks ozzy47.

I have one question though. is it possible to append a language to style directly through coding??

meaning if I go to forum 3 the language and style change based on coding.

for example, let's say we have forums 1,2,3 are English and Blue style Skin, and forums 5,6,7 are in Hebrew or Arabic with Red style Skin. Whoever go around these forums 1,2,3 the language and style are always the same. However, the language and style change whenever a user goes to forums 5,6,7....

I know this can be done manually by clicking language from time to time, but is there a way how to do that without clicking manually??

Thanks