MyBB Community Forums

Full Version: jQuery color picker
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7
This was posted in reference to the end "note" of https://community.mybb.com/thread-158934...pid1253006
[Image: nKA5D]

Why isn't it showing the rest of the stuff?

I also have this, but it doesn't work on the header or footer

var customElements = " #panel, .tfoot, .upper, .thead, .tcat, #footer, #copyright, .breadcrumb, #header";
(2016-12-07, 11:16 PM)Sgt Cheesepuffs Wrote: [ -> ][Image: nKA5D]

Why isn't it showing the rest of the stuff?

I also have this, but it doesn't work on the header or footer

var customElements = " #panel, .tfoot, .upper, .thead, .tcat, #footer, #copyright, .breadcrumb, #header";



You have to use the correct identifiers and then also remove image attributes from the css on the respective items else it will not work properly.


Example of correct identifiers:
var customElements = " #panel, .tfoot, .upper, .thead, .postbit_buttons > a:link";

 var customText = ".post_block h3, .post_block h3 a, .trow1 a:link, .trow2 a:link, #logo ul.top_links a:link, #panel .lower a:link, .navigation a:link";
(2016-12-08, 04:56 AM)vintagedaddyo Wrote: [ -> ]
(2016-12-07, 11:16 PM)Sgt Cheesepuffs Wrote: [ -> ][Image: nKA5D]

Why isn't it showing the rest of the stuff?

I also have this, but it doesn't work on the header or footer

var customElements = " #panel, .tfoot, .upper, .thead, .tcat, #footer, #copyright, .breadcrumb, #header";



You have to use the correct identifiers and then also remove image attributes from the css on the respective items else it will not work properly.


Example of correct identifiers:
var customElements = " #panel, .tfoot, .upper, .thead, .postbit_buttons > a:link";

 var customText = ".post_block h3, .post_block h3 a, .trow1 a:link, .trow2 a:link, #logo ul.top_links a:link, #panel .lower a:link, .navigation a:link";

Thanks, I fixed that, but it's still not showing the pictures that have RGB
nvm..
I can't find my themes folder in my ftp.

I created the cp.css, inserted all the stuff. I also changed the images path. I also added the javascripts to "jscripts" not js because I can't find my themes folder. Then I added the stuff in the headerinclude, changed the path to the javascripts. Then I inserted the images to my image directory. I also added the colorpicker.css and added all the stuff in it.
Then I added the code (<span>the fancy product</span>) and it isn'T still working. I'm trying to install it since 9 hours and I just unable to solve the problem. I see my image and I can also click on it but nothing happens.

My forum website is www.aow-samp.com/Forums
Maybe some staff member of MyBB would help me quickly please. dunno. OR do you have any idea/s?

Kind regards Sauron.
(2016-11-21, 08:36 PM)vintagedaddyo Wrote: [ -> ]This was posted in reference to the end "note" of https://community.mybb.com/thread-158934...pid1253006

Any plan to make this into a plugin as your plugins are awesome Big Grin
(2020-02-09, 08:32 AM)sappy Wrote: [ -> ]
(2016-11-21, 08:36 PM)vintagedaddyo Wrote: [ -> ]This was posted in reference to the end "note" of https://community.mybb.com/thread-158934...pid1253006

Any plan to make this into a plugin as your plugins are awesome Big Grin


AsI have not looked at this since 2016, I will have to look at it again when I find the free tine to do so, though I had not planned on making it into a plug nor am I sure that that will change, I will add it to my things to re-look at in the futere "to do" list if and or when my limited free time allows. Smile
(2020-02-09, 04:55 PM)vintagedaddyo Wrote: [ -> ]
(2020-02-09, 08:32 AM)sappy Wrote: [ -> ]
(2016-11-21, 08:36 PM)vintagedaddyo Wrote: [ -> ]This was posted in reference to the end "note" of https://community.mybb.com/thread-158934...pid1253006

Any plan to make this into a plugin as your plugins are awesome Big Grin


AsI have not looked at this since 2016, I will have to look at it again when I find the free tine to do so, though I had not planned on making it into a plug nor am I sure that that will change, I will add it to my things to re-look at in the futere "to do" list if and or when my limited free time allows. Smile

https://community.mybb.com/mods.php?acti...w&pid=1158

There is already a color picker, the only problem i was facing was the skin.js disabled other forum functions such as sce editor, and jquery/js forum functions.
(2020-02-16, 09:43 AM)sappy Wrote: [ -> ]
(2020-02-09, 04:55 PM)vintagedaddyo Wrote: [ -> ]
(2020-02-09, 08:32 AM)sappy Wrote: [ -> ]
(2016-11-21, 08:36 PM)vintagedaddyo Wrote: [ -> ]This was posted in reference to the end "note" of https://community.mybb.com/thread-158934...pid1253006

Any plan to make this into a plugin as your plugins are awesome Big Grin


AsI have not looked at this since 2016, I will have to look at it again when I find the free tine to do so, though I had not planned on making it into a plug nor am I sure that that will change, I will add it to my things to re-look at in the futere "to do" list if and or when my limited free time allows. Smile

https://community.mybb.com/mods.php?acti...w&pid=1158

There is already a color picker, the only problem i was facing was the skin.js disabled other forum functions such as sce editor, and jquery/js forum functions.


Hmm, interesting, I don't currently have the free time to try out this plugin nor look into this further but two things I notice right away..,

This should not be in functions.php as it has been mentioned here already in previous posts loading jquery a second time is not needed as mybb has it already...

<script type="text/javascript" src="{$mybb->settings[\'bburl\']}/js/jquery.min.js"></script>

Also as mentioned here in previous posts this should not be in skin.js

jQuery.noConflict();

[attachment=42579] * just those two issues removed, let me know if that sorts it out for you as I didn't have the free time to try the plugin.

Also I notice this plugin is rather limited on what it changes in comparison to the variants I shared in the past also it does not allow touch selection on mobile and also there is a bit of hardcoded text that could be localized as that is sorta a pet peeve of mine lol so if I find some free time I may look into this and modify it with things I provided here in this thread in the past because we already know they work... but not sure if and or when I may find the free time to do so...
Pages: 1 2 3 4 5 6 7