Drupal6: Removing template files - drupal

I have been using a custom template file called user-profile.tpl.php for a while. But wanted to explore the CCK Content Profile abilities.
I renamed the template file to something arbitrary, but instead of drupal defaulting to using the standard profile view it is complaining that it can't find the user-profile.tpl.php file.
So either it saves this in the database somewhere, cache is disabled so that is not the Anyone know how drupal save the template file names? And how that can be reset?

Make sure you flush the theme registry whenever you make a change like that. You can do it using the link in the top left of admin_menu if you're using that module, or if not, go to Settings -> Performance and clear the cache.

Related

Afterlogic Webmail Lite custom theme / skin

I would like to make a custom dark theme for a web client.
I tried everything but no matter what I changed I cannot get any changes to take effect. I found out this page in the documentation but I cannot get it to work:
https://afterlogic.com/docs/webmail-lite-8/developers-guide/creating-new-skin
Does anyone have some experience with this webmail client?
The recommended option for creating a new skin is to clone and rename one of the existing skins, and upon making changes to it, run gulp styles --themes YOUR_THEME_NAME command. Once this operation is performed, check static/styles/themes/YOUR_THEME_NAME and see if you get your changes reflected there. If the changes are in place, then it's probably browser cache causing it, try clearing it and see if that helps.
In fact, it's not required to deal with .less files, you can simply create a copy of an existing theme under static/styles/themes directory - but in either case, you need to make sure the new theme is listed in ThemeList section of data/settings/modules/CoreWebclient.config.json configuration file.

Silverstripe 3 - Is there a way to force images uploaded from an HTMLEditorField into a particular directory

Can't see this in docs for HTMLEditorField, and likely a TinyMCE hook anyway. We have a number of HTMLEditorFields where we want images uploaded via the media manager tool to default to a defined directory instead of defaulting to /assets/Upload. Which is making that directory hard to find stuff.
I know this can be fixed with UploadField, but is there a similar way with HTMLEditorField? Even if just to set a default on a per HTMLEditorField basis?

Custom CSS WordPress Theme via cPanel (not updating)

I am wondering why I am not unable to make changes; I already tried several things yet, I don't seem to be able to update the CSS, the following I did already:
There is no Editor, so I am unable to make changes via there.
I am an Administrator and have access to cPanel.
I made changes via ../wp-content/theme/my-theme/style.css and no changes were made.
I empty my cache via plugin and hard reload my Chrome, Firefox and Safari. And no changes were made.
Is there any other solutions? I already found the file which contains all the styles. I would try to add my own class, and see if I am to see if there is any effect.
First thing first, From cPanel you can navigate to your website from the fileManager, use it to make code changes and then save them. You need to clear the cache everytime you make changes (i usually do it from the browser (in chrome, open the dev console, then long press on the refresh button and select the bottom one)
If the changes are still not showing on your site, I think that maybe you are editing the wrong CSS? Is this your theme and are you 100% sure you are editing the right file and, for example, it's not overwritten by a child theme or something else?
If you are using any framework, maybe your property is overwritten by your framework (for example, by bootstrap). To check this, open the console or try to add !important in your CSS file.
Just as an example, when I develop a theme I leave the root style.css with only the theme definitions, and then I create different stylesheets in a different folder. This leads me to the next question: are you enqueue your file correctly? is it even loaded by WordPress?
to check this I usually inspect the code in and search for the id of the file I enqueued from my functions.php.
Unfortunately, without more details, this is the only things I could think of when developing and WordPress theme and make changes from cPanel. Hope some of this can actually help.
Please check following options
Permission of file at ../wp-content/theme/my-theme/style.css.
Grab the css and open in Dream-viewer or sublime is there any css syntax issue.
Also the path of style.css in header is show same by view source.
Or
Even you can use the plugins which allow to add custom css without toching the server check this plugin https://wordpress.org/plugins/simple-custom-css/

Making changes to WordPress header.php through DashBoard

First I take a copy of the header.php before I made changes.
After I made changes to the header like the default image and header text through the dashboard
I reopened the header.php and find no changes there.
My assumption is when changes being made through Dashboard then dynamically the corresponding php files would updated. No?
If not, how would be changes in Dashboard be reflected in php file?
If you're making your changes to the header.php files via Appearances >> Editor >> Header.php ... then of course you're altering your header.php file.
You can also accomplish this by FTPing the file or using your server's control panel.
But before you make all these changes to your core WordPress files, I'd have to ask -- "why"? It's never (recommended) to make changes to your core WordPress files. This is because when you go to update your WordPress the next time an update comes out, you'll lose all your changes ... so you'll have to keep a changelog of your edits or end up with a dinosaur version of WP in the future.
If your theme doesn't give you an opportunity to do so alter the header in other manners, perhaps a plugin is a better solution. Or perhaps using custom CSS is a better solution if that fits your need. What are you trying to accomplish? Why would it need a moderation of a WP core file? Most likely, there are other ways to accomplish your goal(s).

In Drupal, how do I override a template in a core module without modifying the actual core?

I want to edit the search results of a search using the search module. The template in question is search-result.tpl.php. I see that it's in html/modules/search, but I'd like to keep the modification out of the core and keep it in my sites folder. Is there a way to change the place that drupal looks for that specific template? If not, how can I accomplish my goal?
Copy the search-result.tpl.php into your theme's directory, modify it as needed, and clear the theme cache.
You may also want to check out the About overriding themable output handbook page for additional details.

Resources