expressionengine

Navicat utf8 not working on mysql database

a 夏天 提交于 2019-12-11 01:18:49
问题 I'm currently trying to merge data changes between two out of sync expressionengine databases. For this i have opted to use navicat. The website makes heavy use of the greek character set in templates. When I view greek table field data in phpmyadmin, I see the characters in greek as expected. When I load them up into Navicat, I only see "???" question marks in their place. When I try to sync data between the databases, the result is that question marks are put in the place of greek

Outputting variables within a plugin

て烟熏妆下的殇ゞ 提交于 2019-12-10 16:37:13
问题 Following on from this question, I'm now trying to rework the plugin so that I can do: {exp:deetector} {user_agent} {hash} {/exp:deetector} but with the code below, I get no output: public function __construct() { $this->EE =& get_instance(); include(PATH_THIRD.'/deetector/libraries/detector.php'); $this->ua = $ua; $tagdata = $this->EE->TMPL->tagdata; $variables[] = array( 'user_agent' => $this->ua->ua, 'hash' => $this->ua->uaHash, 'browser_os' => $this->ua->full, 'browser' => $this->ua-

Git: Deploying to Environments with Different Web Root Directory Names

柔情痞子 提交于 2019-12-10 11:53:56
问题 I have an ExpressionEngine site set up with Git in multiple environments: Local, Development, and Production. I have a couple of directories that are above web root, so the web root directory itself is inside the git repo, like this: .git system third_party templates public_html (web root) assets css js img themes index.php Now, my development and production environments are with 2 separate hosting providers, and their web roots have different names from each other. Development, for example,

Expression Engine Controllers

为君一笑 提交于 2019-12-10 10:22:56
问题 Im building my first site in Expression Engine, I was wondering how to use custom controllers in EE, like I would in Codeigniter, or what is the EE equivalent? 回答1: Controllers are the heart of your application, as they determine how HTTP requests should be handled. As you're probably well-aware, a CodeIgniter Controller is simply a class file that is named in a way that can be associated with a URI. <?php class Blog extends CI_Controller { public function index() { echo 'Hello World!'; } } ?

Converting an ExpressionEngine rewrite rule for and NginX server

有些话、适合烂在心里 提交于 2019-12-08 13:09:45
问题 I'm trying to migrate a working ExpressionEngine installation from an Apache environment over to an NginX environment on a different box. I have come across a problem trying to convert some .htaccess rewrites to NginX. The site uses the multi language module so needs a custom rewrite rule for every additional language. This is my standard vhost config which seems to get ExpressionEngine working nicely (without the multi language module): server { listen 80; server_name domain.co.uk www.domain

ExpressionEngine access via both http and https

烈酒焚心 提交于 2019-12-08 02:54:18
问题 We have an ExpressionEngine site we’re accessing via both http and https. Our users get security warnings from IE when accessing via https because some assets are accessed insecurely (CSS and images referenced there, in this case). This happens when the setting ‘General Config -> URL to the root directory of your site’ includes the http:// protocol identifier (With that field blank, set just to the site domain [example.com], or set without a protocol [//example.com/], we encounter other

Unix timestamp to .net DateTime

≯℡__Kan透↙ 提交于 2019-12-07 04:20:42
问题 I must be doing an obvious mistake but I can't figure it out. I am importing a date stored in a mysql database (it is stored by the ExpressionEngine CMS). It is a unix timestamp, i.e. seconds since 1/1/1970 00:00. So I'm doing something like this: DateTime dateTime = new System.DateTime(1970, 1, 1, 0, 0, 0, 0); dateTime = dateTime.AddSeconds(orderdate /* int read from the database */); Unfortunately I don't get the right result. Here is an example: Value read from the DB: 1258598728 (this is

Standalone PHP script using Expression Engine

流过昼夜 提交于 2019-12-06 08:25:56
问题 Is there a way to make a script where I can do stuff like $this->EE->db (i.e. using Expression Engine's classes, for example to access the database), but that can be run in the command line? I tried searching for it, but the docs don't seem to contain this information (please correct me if I'm wrong). I'm using EE 2.4 (the link above should point to 2.4 docs). 回答1: The following article seems to have a possible approach: Bootstrapping EE for CLI Access Duplicate your index.php file and name

ExpressionEngine access via both http and https

∥☆過路亽.° 提交于 2019-12-06 08:20:27
We have an ExpressionEngine site we’re accessing via both http and https. Our users get security warnings from IE when accessing via https because some assets are accessed insecurely (CSS and images referenced there, in this case). This happens when the setting ‘General Config -> URL to the root directory of your site’ includes the http:// protocol identifier (With that field blank, set just to the site domain [example.com], or set without a protocol [//example.com/], we encounter other problems, so those are not really an option). The problematic URLs are, of course, those generated with

Expression Engine Controllers

霸气de小男生 提交于 2019-12-06 03:35:52
Im building my first site in Expression Engine, I was wondering how to use custom controllers in EE, like I would in Codeigniter, or what is the EE equivalent? Controllers are the heart of your application, as they determine how HTTP requests should be handled. As you're probably well-aware, a CodeIgniter Controller is simply a class file that is named in a way that can be associated with a URI. <?php class Blog extends CI_Controller { public function index() { echo 'Hello World!'; } } ?> The ExpressionEngine equivalent are template groups and templates , and are managed from within the