Travis Smith
  • Member for 9 years, 1 month
  • Last seen more than 1 year ago
How to import data in EE?
10 votes

To add an entry to EE, you need to enter data in a minimum of two places: an entry in exp_channel_titles and a matching one (by entry_id) in exp_channel_data. The entry_id field is not auto-...

View answer
If url_title doesn't exist, display random entry
Accepted answer
8 votes

This is actually simpler than it seems. For this URL, events/calendar/2012-12 , use this code: {exp:channel:entries channel="calendar_images" limit="1" orderby="random" dynamic="yes"} Content {/exp:...

View answer
Is there a way to display "last edit date" when viewing entries in the admin panel?
5 votes

If you want to do it yourself without installing anything or using SQL, this code in a template will display the most recent 5 entries and when they were edited: {exp:channel:entries limit="5" ...

View answer
search:title doesn't work
3 votes

I'd just use the query module: {exp:query sql="SELECT entry_id FROM exp_channel_titles WHERE title LIKE '%searchterm%' and weblog_id='1' " backspace="1"}{entry_id}|{/exp:query} That would pull a ...

View answer
Viewing an audit trail of channel entry edits/revisions
Accepted answer
3 votes

How about this: Because you are using Safecracker, you can have each new edit be actually submitted as a new entry, with the old entry_id saved in a field called original_entry_id. Then set the status ...

View answer
Hide template_group segment in URL
2 votes

Using {path=contact} to link to a template in site/contact is definitely a safe practice. Is it a "good" practice? There's no real downside to it, so I'd say yes. There's also nothing 'bad' about ...

View answer
Email Displaying HTML Code
1 votes

EE's default system emails -- the ones that use Email Notification Templates -- are always sent as text. There's no code that allows them to be sent as HTML. See: Auto-Generated Emails Not Being Sent ...

View answer
Site failing after update to Playa 4.4.2
1 votes

I just had the same thing happen -- had to comment out line 423: //$this->EE->db->query('ALTER TABLE exp_playa_relationships ADD parent_var_id INT(6) UNSIGNED AFTER parent_row_id,...

View answer
Multiple channel entry tags on a single template - Have content not repeat itself
1 votes

Use an embedded template, and do the other channel loops in there. In that template, pass in the entry IDs you don't want repeated: {embed="includes/inner" excluded_ids="not 12|34|56"} In the inner ...

View answer
Wygwam Upgrade to v3.0.2
1 votes

For me, this happened and was a cache problem -- I cleared the cache; it started working again. I know you said you tried that, but give it another go.

View answer
Javascript email error with prettyphoto
1 votes

You can't serve javascript via AJAX -- and the email address is being automatically encoded as Javascript to protect it from spammers. The way around this is to turn off "Automatically turn URLs and ...

View answer
Strange URLs appeared in Webmaster tools
1 votes

Usually this happens when: A client has a field that is supposed to contain a URL starting with http:// and they enter data without the http://. so it becomes a relative URL There no error checking ...

View answer
1054 Unknown column error when upgrading from 3.5.15 to 4.3.6
0 votes

The 4.0.0 upgrade script looks at the "member" model (which includes member group permissions) to determine what member fields it needs to deal with to upgrade from 3.5.X. However, the default member ...

View answer
New server, EE migration, PHP 5.4 issue
0 votes

The white screen of death is often caused by this: Sometimes EE is set to output content as Gzip data. When a PHP error occurs, the PHP error spits out first, and but the browser is expecting ...

View answer
When I add an image to a WYGWAM field, using Assets, from an S3 source, I get a double slash
Accepted answer
0 votes

This was resolved by Pixel&Tonic for me.

View answer
Does Wygwam 3.0.2 strip out JavaScript in Source mode?
Accepted answer
0 votes

Apparently, this is something WYGWAM used to do as well. Here's the support thread: https://getsatisfaction.com/pixelandtonic/topics/wygwam_deleting_javascript_tags_in_content

View answer
Auto login on freemember registration
-1 votes

No, it can't. There's a third-party add-on called Simple Registration http://wedoaddons.com/addon/simple-registration/documentation that will do this, though. TTFN Travis

View answer