Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#49 2010-09-08 12:20:08

hablablow
Member
From: Paris
Registered: 2004-12-13
Posts: 309
Website

Re: msd_admin_colorpicker: Adds colorpicker to write tab

Matt,

Yes I’m using bot_privs and wdm_update_url, turned them both off. Default color is #FFF and custom-6. Changed the order of execution of the plugin to 1.

Nothing happens, no color picker in the Write tab.

Are you using the Plugin directory path to decode anything such as your images ?

Are you calling anything else then the bundled version of Jquery that ships with Txp ?

In case some functional link would be broken what should I look at in the source page of the Writte tab ?

Thanks again for your help.


_
_I plant seeds for future visions. Farmer of your eyes. Subliminal engineer of your minds. eion founder__

Hablablow + Webdesignofficina

Offline

#50 2010-09-08 12:30:04

hablablow
Member
From: Paris
Registered: 2004-12-13
Posts: 309
Website

Re: msd_admin_colorpicker: Adds colorpicker to write tab

Alright the scripts urls called in the Write tab are broken….
In a multisite setup config… Mmmmmmm…
Someone ran into this script linking problem in a multisite environment probably before…
Anyone ?


_
_I plant seeds for future visions. Farmer of your eyes. Subliminal engineer of your minds. eion founder__

Hablablow + Webdesignofficina

Offline

#51 2010-09-08 14:22:30

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

Re: msd_admin_colorpicker: Adds colorpicker to write tab

Multisite… aha, I haven’t worked with a mutlisite configuration so I’m not sure how it’s supposed to work.

You could modify the following lines to fix the url for your site:

php 
echo "<script src='".hu."textpattern/index.php?msd_clrpkr=farbtastic_js' type='text/javascript'></script>";
	echo "<script src='".hu."textpattern/index.php?msd_clrpkr=colorpicker_js' type='text/javascript'></script>";

And

.farbtastic .wheel {
css;
echo "background: url(".hu."textpattern/index.php?msd_clrpkr=wheel) no-repeat;";
echo  <<<css
width: 195px;
height: 195px;
}
.farbtastic .overlay {
css;
echo "background: url(".hu."textpattern/index.php?msd_clrpkr=mask) no-repeat;";
echo <<<css
}
.farbtastic .marker {
width: 17px;
height: 17px;
margin: -8px 0 0 -8px;
overflow: hidden;
css;
echo "background: url(".hu."textpattern/index.php?msd_clrpkr=marker) no-repeat;";

Last edited by MattD (2014-01-10 19:02:18)


My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

#52 2010-09-08 15:03:04

hablablow
Member
From: Paris
Registered: 2004-12-13
Posts: 309
Website

Re: msd_admin_colorpicker: Adds colorpicker to write tab

Okay thanks I’ll try that.

Isn’t .hu. supposed to retrieve the url as defined in the Site URL field ?

Last edited by hablablow (2010-09-08 15:05:00)


_
_I plant seeds for future visions. Farmer of your eyes. Subliminal engineer of your minds. eion founder__

Hablablow + Webdesignofficina

Offline

#53 2010-09-08 20:48:15

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

Re: msd_admin_colorpicker: Adds colorpicker to write tab

There are similar questions being asked over here.

I’ve changed the plugin based on what Stef says there so install the new version and let me know how it goes.


My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

#54 2010-09-08 21:14:49

hablablow
Member
From: Paris
Registered: 2004-12-13
Posts: 309
Website

Re: msd_admin_colorpicker: Adds colorpicker to write tab

Great Matt I’ll let you know…
Thank you very much !


_
_I plant seeds for future visions. Farmer of your eyes. Subliminal engineer of your minds. eion founder__

Hablablow + Webdesignofficina

Offline

#55 2010-09-10 11:02:23

hablablow
Member
From: Paris
Registered: 2004-12-13
Posts: 309
Website

Re: msd_admin_colorpicker: Adds colorpicker to write tab

Matt,

v2.6 – hopefully fixed mutli site use case by removing “hu” from urls and using relative urls.

Yes it does here for me !

The color-wheel appears in the extension tab and it looks great !…
But unfortunately not in the article tag due to a js error: container is not defined on line 27 (farbastic.js)
For some reason the container node is not added…

line 27:

return container.farbtastic || (container.farbtastic = new jQuery._farbtastic(container, callback));

Maybe the order by which the script are called in the article tab, I see they are in the head in the colorpicker tab

Thanks !

Last edited by hablablow (2010-09-10 11:12:21)


_
_I plant seeds for future visions. Farmer of your eyes. Subliminal engineer of your minds. eion founder__

Hablablow + Webdesignofficina

Offline

#56 2010-09-10 17:03:03

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

Re: msd_admin_colorpicker: Adds colorpicker to write tab

And you’re using custom-6 as the field right? You could try modifying the load order but that won’t make it go in the head of the page.

Maybe send me a login for your site? I’m not seeing this same problem. Usually that error is returned when the Color Custom Field is set incorrectly meaning there isn’t an input with the matching id.

Edit: I’ve added a check to confirm that the Color Custom Field is set to an id that exists in the write tab. Try out version 2.7 and if you get the new error then that’s the problem.

If you are using the 6th custom field you would put custom-6 in the Color Custom Field input on the preferences page.

Last edited by MattD (2010-09-10 17:23:50)


My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

#57 2010-09-10 17:48:31

candyman
Member
From: Italy
Registered: 2006-08-08
Posts: 684

Re: msd_admin_colorpicker: Adds colorpicker to write tab

Matt, from your site I still get the 2.6 version.

Offline

#58 2010-09-10 18:43:16

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

Re: msd_admin_colorpicker: Adds colorpicker to write tab

candyman wrote:

Matt, from your site I still get the 2.6 version.

You were getting 2.7 it just wasn’t marked as such. Fixed now. Apologies.


My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

#59 2010-09-13 10:41:02

hablablow
Member
From: Paris
Registered: 2004-12-13
Posts: 309
Website

Re: msd_admin_colorpicker: Adds colorpicker to write tab

Matt,

It’s working now perfectly. Just had to give, for the custom-6 form, a name under admin > Advanced.

Cheers !

Last edited by hablablow (2010-09-13 15:12:11)


_
_I plant seeds for future visions. Farmer of your eyes. Subliminal engineer of your minds. eion founder__

Hablablow + Webdesignofficina

Offline

#60 2013-03-02 03:42:36

robhert
Member
From: Perú
Registered: 2007-04-27
Posts: 206
Website

Re: msd_admin_colorpicker: Adds colorpicker to write tab

Hi! It’s not working in TXP 4.5.x Any ideas? Does it still works?

Offline

Board footer

Powered by FluxBB