Color changer
#21
Can you describe more? Thead is ok, but what about the logo?

Reply
#22
(2016-07-30, 09:19 PM)Snake_ Wrote: Can you describe more? Thead is ok, but what about the logo?

Almost sorta like Sinister.ly how the logo can change depending on the color selected. Whereas the default green that is in the current logo will change to the preset color selector.
Reply
#23
I would do it like this:
1. I am doing a logo image in several colors (of your choice).
2. He threw a background image to the class (background-image).
3. Then, in JS change the class with the change of color.

It seems to be simple, but look for solutions Toungue

Reply
#24
(2016-07-31, 08:49 PM)Snake_ Wrote: I would do it like this:
1. I am doing a logo image in several colors (of your choice).
2. He threw a background image to the class (background-image).
3. Then, in JS change the class with the change of color.

It seems to be simple, but look for solutions Toungue

I made an image for each color but I can't seem to get it working. Can you please add me on Skype? Falcon.FP
Reply
#25
Search in header template:
<img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" title="{$mybb->settings['bbname']}" />
Change to:
<div class="logo"></div>

Add to CSS:
.logo {
	background-image: url(http://funkyimg.com/i/2eRNN.png);
	    height: 75px;
    width: 225px;
}


.logo-red {
		background-image: url(http://funkyimg.com/i/2eRNQ.png) !important;
	    height: 75px;  
    width: 225px;
}

.logo-yellow {
		background-image: url(http://funkyimg.com/i/2eRNP.png) !important;	
	    width: 225px; 
	height: 75px;

}
^ You must change url to images and width & height.

Now go to headerinclude template, and to this script you must add JS code which turns the class.
$('.yellow .click').click(function() {
				 $("div.logo").addClass("logo-yellow")
		});
$('.red .click').click(function() {
				 $("div.logo").addClass("logo-red")
		});
$('.purple .click').click(function() {
				 $("div.logo").addClass("logo-purple")
		});
$('.green .click').click(function() {
				 $("div.logo").addClass("logo-green")
		});
and more colors.

Additionally you should add cookie script. If I find free time, i'll add is.


Maybe someone have other, simple code?

Reply
#26
FYI FlatOne theme has inbuilt color changer & picker for each area (two version: colorpicker and colorselector [from a list of colors]). If you have legitimetly purchased this theme from themefreak.net you should find those scripts inside theme zip archive.
Reply
#27
(2016-08-01, 12:47 PM)Johnny S Wrote: FYI FlatOne theme has inbuilt color changer & picker for each area (two version: colorpicker and colorselector [from a list of colors]). If you have legitimetly purchased this theme from themefreak.net you should find those scripts inside theme zip archive.

If this is the case, the request should not even exist as it's a prebuilt feature of a premium theme, the thread should be closed and the user denied support. At least if my understanding of the issue is correct.
[Image: fSGNVQj.png]
Reply
#28
(2016-08-01, 01:00 PM)Shade Wrote:
(2016-08-01, 12:47 PM)Johnny S Wrote: FYI FlatOne theme has inbuilt color changer & picker for each area (two version: colorpicker and colorselector [from a list of colors]). If you have legitimetly purchased this theme from themefreak.net you should find those scripts inside theme zip archive.

If this is the case, the request should not even exist as it's a prebuilt feature of a premium theme, the thread should be closed and the user denied support. At least if my understanding of the issue is correct.

If this code is on the public forum, which also provides support, moreover, it is converted by supperter it can not be used by third parties?

Reply
#29
Quote:If this code is on the public forum, which also provides support, moreover, it is converted by supperter it can not be used by third parties?

I forgot to mention that i was referring to OP and his request for this function (and not you, you have provided valuable replies to his request).
Reply
#30
(2016-08-01, 05:17 PM)Johnny S Wrote:
Quote:If this code is on the public forum, which also provides support, moreover, it is converted by supperter it can not be used by third parties?

I forgot to mention that i was referring to OP and his request for this function (and not you, you have provided valuable replies to his request).

I do own a paid, legitimate copy of the theme. I'm looking for something different than what was provided in the zip.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)