expressionengine

How to limit entries in ExpressionEngine?

How to make a counter in ExpressionEngine? {exp:weblog:entries weblog="news" limit="15"} {title} {body} Posted on {entry_date format="%M %d, %Y - %h:%i %A"} {/exp:weblog:entries} it seems 'limit' limits the SQL Calls , but not actual results.... Should i add php? more here: http://expressionengine.com/docs/modules/weblog/weblog%5F...

Custom PHP and expression engine

Hello there, I've created a complex php contact form that I'm looking to implement into my contact page, but for some reason expression engine isn't recognizing the php code even though I've enabled it in my preferences. Here's what the form looks like, I've tried a few things like embedding the file instead of pasting the actual code...

Unix timestamp to .net DateTime

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.Add...

Problem with categories and structure module - Expressionengine

Hello there, I’m currently working on a travel site for a client of mine, they require a cms so that they can add hotels and destinations and also update their website with ease. The basic structure of the site is explained below: 1. Home page This page currently pulls out destination information and a section of hotels that change on...

Introduction to Code Igniter and Expression Engine

I'm looking for an introduction in creating application using CodeIgniter and Integrating it to Expression Engine. ...

ExpressionEngine comments import to Disqus

Has anyone tackled importing default ExpressionEngine comments to Disqus? I found this on github but I'm not sure how to use it, or if it will work. http://gist.github.com/202802 ...

Last 2 letters of the uri defining the used language.

<?php $pageurl = "http://".$_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"]; $pageurl_noslashes = str_replace("/","",$pageurl); $lang = substr($pageurl_noslashes,-3); echo $lang; ?> {exp:channel:entries channel="products" limit="10"} <p>Product title: <span>{if title<?php echo $lang; ?>} {title<?php echo $lang; ?>} {if:else} {title} {/if}...

What kind of SQL join would this be?

I need to go to two tables to get the appropriate info exp_member_groups -group_id -group_title exp_members -member_id -group_id I have the appropriate member_id So I need to check the members table, get the group_id, then go to the groups table and match up the group_id and get the group_title from that. ...

Multiple language category names in expression engine

Hi, I'm building an expression engine 2.0-powered site that uses multiple languages (not using MSM aka multiple site manager, as the client did not want that approach). I am borrowing a few of the ideas from here: http://expressionengine.com/wiki/Multi_language_site_alternative/ however using cookies for the language selection as appos...

Using ExpressionEngine or Joomla templates inside a pre-existing page?

Hey SO, So I'm new to both Joomla and Expression Engine, and want to know if I can use it like I'd like. I've already made a full site, and would like to integrate blogging into the site. The site is on CodeIgniter. Is there a way that I could create a form template for submitting a post which would then save to my Joomla/CodeIgnit...

.htaccess issue

I'm using the .htaccess file below to force a redirect to a "language prefix" if none is found in the url. So if domain.com/news is typed it redirects to domain.com/en/news - this works fine. This rule should not be applied to certain folders like images, swf and myphp. It works fine for the first two, so when I access domain.com/swf I ...

Does ExpressionEngine have a way to refer to a static media folder in a template like Django's {{ MEDIA_URL }}?

It would be nice to be able to refer to a set "static" folder as a variable instead of having to keep track of a specific URL that might need to be changed if static media gets moved to a CDN later on. For example, this: <script src="{static_media}/js/jquery-1.4.min.js"></script> Instead of this: <script src="/static/js/jquery-1.4.m...

Converting an ExpressionEngine rewrite rule for and NginX server

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 stand...

ExpressionEngine 2: Sharing Libraries, or Loading Libraries from other Modules

I’ve got a number of custom modules that use a few of the same common libraries, in particular my database class. Is there a place I can put this commonly used class for use in modules via $this->EE->load->library('mydb'); or, is there a way to load that class in one module when it’s located in the libraries folder of another module? ...

server side / client side email validator differences

I'm using the native jQuery validation library to validate email addresses entered in a contact form. Since this is an Expression Engine site, I'm using its email validator as a server side backup. When I enter [email protected], jQuery says it's valid but when submitted, the Expression Engine validator says it is not valid. I know that validat...

Modal Registration Box using ExpressionEnine and jQuery

I'd like to create a modal style registration/login box for my ExpressionEngine site. What's the best way to handle registration on a modal box? Should I call a registration page using an iframe. Are there security concerns? ...

Loading the Language Class in ExpressionEngine for PHP Scripts not loaded by ExpressionEngine

Basically, what I need is a way for a PHP script called using ajax to access ExpressionEngine's $LANG superglobal. I'm using ExpressionEngine 1.6.8 core, and jQuery for ajax. My setup is that I have an extension that uses the publish_form_end hook to add some content and javascript to the publish form. The content will be dynamically upd...

SQL Query Problem

Hi Everyone, I've been at this for a bit now. Basically, I'm needing to add a derived column to count the hits to a weblog entry in the database. The problem is, the hits are being totaled and shown on only on the first record. Any Ideas? I've emboldened the parts of the query I'm talking about. The query is below: SELECT DISTINCT(t.en...

Good grammar for date data type for recursive descent parser LL(1)

I'm building a custom expression parser and evaluator for production environment to provide a limited DSL to the users. The parser itself as the DSL, need to be simple. The parser is going to be built in an exotic language that doesn't support dynamic expression parsing nor has any parser generator tools available. My current decision ...

Drupal vs ExpressionEngine for any kind of project from simple commercial site to complex ecommerce portals.

Hi friends... So far I've been using custom cms. lately I developed own cms with CodeIgniter, and I'm actually happy. But recently I take more design and front-end development works than deep development projects. I actually also prefer so... I have many things to do with custom cms, also some security issues, etc. I'm kind of tired of ...