CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Discussion »
  • Extensions (Moderators: mathieu, totten, kasiawaka) »
  • Pogstone Content Tokens
Pages: [1]

Author Topic: Pogstone Content Tokens  (Read 394 times)

edewsberry

  • I’m new here
  • *
  • Posts: 11
  • Karma: 0
  • CiviCRM version: 4.2.11
  • CMS version: WordPress 3.6.1
  • MySQL version: 5.5.34
  • PHP version: 5.4
Pogstone Content Tokens
November 24, 2014, 08:11:14 pm
I just installed the Pogstone Content Tokens extension - it sounds like a great idea!  Unfortunately, I don't see the tokens listed when I try to send an email.

The ReadMe said that "If running under WordPress, WordPress tables MUST be in the same database as the CiviCRM tables" ... sorry if I'm a newbie, but I don't know how this is possible.  I have two databases, one for CIVI and one for WordPress, so I'm sure the tables aren't in the same place.

Does this mean I can't use this extension with WordPress?

Thanks.

Elise

JonGold

  • Ask me questions
  • ****
  • Posts: 638
  • Karma: 81
    • Palante Technology
  • CiviCRM version: 4.1 to the latest
  • CMS version: Drupal 6-7, Wordpress 4.0+
  • PHP version: PHP 5.3-5.5
Re: Pogstone Content Tokens
November 24, 2014, 08:57:44 pm
Hi Elise,

It's possible for Wordpress and Drupal tables to both be in the same database.  There are some advantages to this, but personally I think it's a best practice to have separate databases - it makes rolling back one without the other much easier.

Here's the good news:  I looked at the source code, and it seems like it would be very easy to add support for Wordpress using separate databases, using the same approach Sarah took for allowing Drupal to be in separate databases.  This module is still marked as "beta", most likely because of issues like this one!  If you have a developer on staff (or that you work with), they could probably call the function "contenttokens_getUserFrameworkDatabaseName" to get the database name.  In fact, I actually suspect there's a built-in function in Civi to do this, and that function isn't even needed.  I don't have a Wordpress install to test with, but this should be less than an hour of work to implement and test.

Pogstone has done the heavy lifting and was generous enough to give it back to the community; hopefully folks will step up and do that last bit of work to make it usable for more folks!
Sign up to StackExchange and get free expert CiviCRM advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

JonGold

  • Ask me questions
  • ****
  • Posts: 638
  • Karma: 81
    • Palante Technology
  • CiviCRM version: 4.1 to the latest
  • CMS version: Drupal 6-7, Wordpress 4.0+
  • PHP version: PHP 5.3-5.5
Re: Pogstone Content Tokens
November 29, 2014, 10:57:01 pm
Hi Elise,

It seems like there's a newer version of the extension that addresses your issue!

Jon
Sign up to StackExchange and get free expert CiviCRM advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Discussion »
  • Extensions (Moderators: mathieu, totten, kasiawaka) »
  • Pogstone Content Tokens

This forum was archived on 2017-11-26.