Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#109 2010-11-02 22:02:45
Re: smd_admin_themes: Manage, edit, switch and share admin-side themes
Is this the one I have Stef or should I upgrade again?
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
#110 2010-11-02 22:06:34
Re: smd_admin_themes: Manage, edit, switch and share admin-side themes
thebombsite wrote:
Is this the one I have Stef or should I upgrade again?
The theme colours and stuff are the same as your version, but the bug fix on the edit screen and the export file pref are new.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
#111 2010-11-02 22:07:08
Re: smd_admin_themes: Manage, edit, switch and share admin-side themes
Okey dokey.
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
#112 2011-02-02 01:42:57
Re: smd_admin_themes: Manage, edit, switch and share admin-side themes
Hey, Stef. I’ve no idea what I did but somehow I screwed the plugin.
Fatal error: Class ‘Cinema_theme’ not found in ../textpattern/theme/Remora/Remora.php on line 7
That’s what I get when I click on the Admin Themes tab or try to edit the advanced preferences subtab of Admin. I tried uninstalling the plugin and reinstalling it to no avail. Please help!
Offline
#113 2011-02-02 01:51:47
Re: smd_admin_themes: Manage, edit, switch and share admin-side themes
th3lonius wrote:
Fatal error: Class ‘Cinema_theme’ not found in ../textpattern/theme/Remora/Remora.php on line 7
D’oh! It means there’s a (probably syntax) error in your theme and because it’s set as default then the admin side won’t load. Couple of ways out of it:
1) in phpMyAdmin, visit the txp_prefs tab, find the theme_name
entry and set it to classic
2) (better) via FTP, visit textpattern/themes, backup the cinema theme directory to your local machine then delete the server copy
Once you’ve fixed the error(s) in the code you can re-upload the theme dir and try it out via smd_admin_themes.
Last edited by Bloke (2011-02-02 01:54:26)
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
#114 2011-02-02 04:43:04
Re: smd_admin_themes: Manage, edit, switch and share admin-side themes
I don’t see an entry for theme_name in txp_prefs.
Offline
#115 2011-02-02 09:19:52
Re: smd_admin_themes: Manage, edit, switch and share admin-side themes
th3lonius wrote:
I don’t see an entry for theme_name in txp_prefs.
Weird it should be there, but you could create it with the following details:
prefs_id: 1
name: theme_name
val: classic
type: 1
event: admin
html: themename
position: 160
user_name: <leave blank>
Did the FTP thing work?
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
#116 2011-02-02 10:47:58
Re: smd_admin_themes: Manage, edit, switch and share admin-side themes
Deleting it worked. Thanks, Stef. I’ll just start over and tread lightly this time. :) I think I know what caused the problem now.
Offline
#117 2011-02-04 21:09:46
Re: smd_admin_themes: Manage, edit, switch and share admin-side themes
Question, Stef: how might I go about altering the backend HTML? Your admin themes plugin is great but backend customization is still inhibited by Textpattern’s rigid tabular structure. I’m guessing there’s no easy way to do this, but can you point me in the right direction so I can play around with it on a test server?
Offline
#118 2011-02-04 22:55:18
Re: smd_admin_themes: Manage, edit, switch and share admin-side themes
th3lonius wrote:
backend customization is still inhibited by Textpattern’s rigid tabular structure. I’m guessing there’s no easy way to do this
Take a look on Textgarden and you’ll find quite a few themes that ditch the tables in the header and footer (I think Stuart did Classic2, among others, which use <ul>
s). That’s mostly what themes play with, although there is nothing to stop you from adding a callback to hook into any of the admin-side events/steps. From there you can augment stuff or shuffle things around. Take a look at the bot_write_tab_customise plugin or dig around in the Extensions section on the wiki to see how it’s done.
In addition, the new markup in 4.3.0 means that your Stylesheet can fairly easily target individual items on one/many pages to shut them off or restyle them. Alternatively, a line or two of jQuery can likewise target items and move them, clone them, delete them, etc.
So, yes, the tables are there (some places it makes sense, while others are a little harder to understand!) but you’d be surprised what you can do within the framework with some cunning.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
#119 2011-02-05 04:30:43
Re: smd_admin_themes: Manage, edit, switch and share admin-side themes
Thank you for the thoughtful reply. You’ve given me a place to start. I think I’ll pursue the jQuery route and start studying plugin code. :)
Offline
#120 2011-02-08 11:52:04
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Re: smd_admin_themes: Manage, edit, switch and share admin-side themes
Bloke, this plugin rocks!
Luckily I installed it just when I was thinking to rewrite ied_hide_in_admin from scratch: a pointless effort now that I discovered your plugin has a ‘theme per user’ capability. Togheter with the new txp 4.3 html hooks it will be super useful, thank you!!
Offline