Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#121 2011-02-08 11:57:04
Re: smd_admin_themes: Manage, edit, switch and share admin-side themes
redbot wrote:
Bloke, this plugin rocks!
Thanks redbot. The only minor annoyance is the fact that the Login and Plugin pages aren’t styled according to the user choices. It takes on the ‘global’ theme that you set due to the fact the plugin can’t run in those two places.
A real shame that takes the shine off the plugin imho, but there’s not much I can do about it (at least I don’t think there is: if you can find a way to do it then please let me know!)
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Hire Txp Builders – finely-crafted code, design and Txp
Offline
#122 2011-02-08 12:16:32
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Re: smd_admin_themes: Manage, edit, switch and share admin-side themes
Bloke wrote:
…The only minor annoyance is the fact that the Login and Plugin pages aren’t styled according to the user choices. It takes on the ‘global’ theme that you set due to the fact the plugin can’t run in those two places.
This won’t be a problem at all for me given that I thought to set a global theme and then use other ‘fake’ themes (based on the global one) which only differ for certain items being set to “dispay:none”. Does it make sense?
Offline
#123 2011-02-08 12:24:41
Re: smd_admin_themes: Manage, edit, switch and share admin-side themes
redbot wrote:
Does it make sense?
Perfectly. A great approach.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Hire Txp Builders – finely-crafted code, design and Txp
Offline
#124 2011-02-21 22:20:17
Re: smd_admin_themes: Manage, edit, switch and share admin-side themes
Maintenance release v0.26 fixes a silly annoyance if the filename you are uploading contains more than one full stop. The previous version just fell over, but now it reads the file extension properly (the file does have to have a file extension for it to recognise it: the code’s not that clever!). Thanks philwareham for unwittingly discovering this bug.
Last edited by Bloke (2011-02-21 22:21:55)
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Hire Txp Builders – finely-crafted code, design and Txp
Offline
#125 2011-04-14 17:58:21
Re: smd_admin_themes: Manage, edit, switch and share admin-side themes
Hi Bloke.
A request: do you think it would be possible to add a setting to configure the path to folder containing themes?
I see it defaults to /path/to/textpattern/theme (where the path to TXP is taken from txpath variable).
A bit of background: on multi-site installations, there may be the need to make some themes available just for some particular installs (ie. a theme that’s is customized for a particular client/project that wouldn’t make sense to have it available for other clients/projects).
You may say: “But on a multi-site install, you will end up with a list of all themes anyway, because /admin/themes/ is a symlink to /textpattern/themes/.”
Well, yes, but that’s another issue I’ve already solved by removing the symlink and creating a real folder in its place, and then symlinking just to the official themes (classic and remora).
I’ve thought about hacking smd_admin_themes a little to test if a custom path to themes would work. More precisely, I was thinking about saving the current value of txpath to txpath_orig, at the very top of the plugin, assign a new value to it (hardcoded in the plugin, at least by now, yucks!) , and then, reset its value back at the very bottom of the pluging (txpath = txpath_orig).
Offline
#126 2011-04-14 18:12:07
Re: smd_admin_themes: Manage, edit, switch and share admin-side themes
maniqui wrote:
I’ve thought about hacking smd_admin_themes a little to test if a custom path to themes would work…
It’s easier solved with a plugin pref that just happens to default to txpath. I’ll add it to the TODO, thanks.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Hire Txp Builders – finely-crafted code, design and Txp
Offline
#127 2011-06-08 10:44:45
Re: smd_admin_themes: Manage, edit, switch and share admin-side themes
v0.27 fixes a daft bug that stripped backslashes out of the edit window during saving. This version also introduces a new pref for TXP path (default is txpath) to try and make things easier on multi-site installations.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Hire Txp Builders – finely-crafted code, design and Txp
Offline
#128 2011-06-08 11:23:37
Re: smd_admin_themes: Manage, edit, switch and share admin-side themes
How do I get my admin theme added to Textgarden? I used the contact form a week or so back and got no response?
Cheers, Phil
Offline
#129 2011-06-08 11:29:40
Re: smd_admin_themes: Manage, edit, switch and share admin-side themes
philwareham wrote:
I used the contact form a week or so back and got no response?
That’s the only way I know to do it. Maybe Stuart’s busy / on holiday? Not seen him around the forum for a while.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Hire Txp Builders – finely-crafted code, design and Txp
Offline
#130 2011-06-24 02:41:04
Re: smd_admin_themes: Manage, edit, switch and share admin-side themes
Bloke wrote:
This version also introduces a new pref for TXP path (default is
txpath) to try and make things easier on multi-site installations.
Thanks for this, Stef. I missed this announcement.
Will try it and report back.
Offline
#131 2011-06-24 05:09:27
Re: smd_admin_themes: Manage, edit, switch and share admin-side themes
Ops… it’s not working properly for me.
I’m having this two issues:
- whenever I try to modify the value for “Textpattern path” via “Extensions -> Admin theme -> Preferences”, after hitting Save, the value is reverted back. Thankfully, I’ve smd_prefalizer installed :) but…
- even after changing the value for
smd_at_file_pathvia smd_prefalizer, and setting it to/path/to/site/admin/, when I visit the “Theme grid”, I only see Classic and Remora, but the screenshots for those two themes are not displayed.
Other themes in the /admin/theme/ folder are totally ignored.
For you to have a better understanding, this is the content of my /admin/theme/ folder:
drwxr-sr-x Sometheme
lrwxrwxrwx classic -> ../../textpattern/theme/classic
drwxr-sr-x Someothertheme
lrwxrwxrwx remora -> ../../textpattern/theme/remora
/admin/theme/ is a real folder containing other real folders (Sometheme, and Someothertheme, both TXP themes) and symlinks (classic, remora, symlinking to the real folders on /textpattern/theme/). The symlinked themes are being “viewed” by smd_admin_themes (although the screenshots are MIA); the real folders are being ignored.
Anyway, it’s not that the folders are being ignored: I could almost confirm that smd_admin_themes, despite of the value of smd_at_file_path, it’s still looking for admin themes at /textpattern/theme/.
I’m currently taking a peek at plugin’s code, but so far, I can’t spot the problem.
Offline
#132 2011-06-24 12:57:13
Re: smd_admin_themes: Manage, edit, switch and share admin-side themes
maniqui wrote:
- whenever I try to modify the value for “Textpattern path” via “Extensions -> Admin theme -> Preferences”, after hitting Save, the value is reverted back.
Odd coincidence – I’ve had something similar happen with changing preferences in a couple of plugins lately – two of which were path preferences.
Offline
#133 2011-06-24 15:23:16
Re: smd_admin_themes: Manage, edit, switch and share admin-side themes
I did some a quick test: I opened /lib/txplib_theme.php and changed the two instances of txpath to a hardcoded /path/to/admin/. That only change helped smd_admin_themes to find/list the themes at /admin/theme/ (instead of those at /textpattern/theme/).
It seems to me that smd_admin_themes (more precisely, function smd_at_read_skins()) resorts to some mechanisms provided by txplib_theme.php to find/list the available skins.
So, it doesn’t seem to me that smd_at_file_path is having any effect or relation to the way smd_admin_themes looks for themes.
Now, I wonder if it’s still possible for smd_admin_themes to override/overwrite/redefine the value for txpath at txplib_theme.php, or not rely on that lib at all…
Amaze me one more time, Stef.
Offline
#134 2011-06-24 18:49:50
Re: smd_admin_themes: Manage, edit, switch and share admin-side themes
Julian
I just ran into the issue again on an install I needed to move, and smd_admin_themes needed the path updated. Same as last time: In order to get the new path to save, I had to delete the current preferences and install them again.
Not sure that it helps your situation, but fwiw.
Offline
#135 2011-07-05 13:44:36
Re: smd_admin_themes: Manage, edit, switch and share admin-side themes
smd_admin_themes 0.26 stopped working here after update from 4.4.0 to 4.4.1. Upgraded to v.027, problem persists.
Upon creating a new theme i get these errors (translation of German error messages in comments below):
Warning: mkdir(theme/author/) [function.mkdir]: Keine Berechtigung in …/textpattern/lib/txplib_misc.php(653) : eval()’d code on line 623
/* That means insufficient priviledges */Warning: fopen(theme/author/author.php) [function.fopen]: failed to open stream: Datei oder Verzeichnis nicht gefunden in …/textpattern/lib/txplib_misc.php(653) : eval()’d code on line 691
/* File or directory not found */Warning: fwrite(): supplied argument is not a valid stream resource in …/textpattern/lib/txplib_misc.php(653) : eval()’d code on line 692
Warning: fclose(): supplied argument is not a valid stream resource in …/textpattern/lib/txplib_misc.php(653) : eval()’d code on line 693
Warning: fopen(theme/author/textpattern.css) [function.fopen]: failed to open stream: Datei oder Verzeichnis nicht gefunden in …/textpattern/lib/txplib_misc.php(653) : eval()’d code on line 696
/* File or directory not found */Warning: fwrite(): supplied argument is not a valid stream resource in …/textpattern/lib/txplib_misc.php(653) : eval()’d code on line 697
Warning: fclose(): supplied argument is not a valid stream resource in …/textpattern/lib/txplib_misc.php(653) : eval()’d code on line 698
Upon trying to upload an existing theme from a saved .zip file i get these errors:
Warning: move_uploaded_file(…/textpattern/theme/php6AF8qI) [function.move-uploaded-file]: failed to open stream: Keine Berechtigung in …/textpattern/lib/txplib_misc.php on line 1486
/* That means insufficient priviledges */Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move ‘/tmp/php6AF8qI’ to ‘…/textpattern/theme/php6AF8qI’ in …/textpattern/lib/txplib_misc.php on line 1486
To me it almost looks like as if the upgrade to txp 4.4.1 went wrong, but i can’t figure it out, really. Any help in sight?
Thank you very much in advance!
Last edited by jayrope (2011-07-05 13:45:43)
A hole turned upside down is a dome, when there’s also gravity.
Offline