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) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 4.1 Release Testing (Moderator: Kurund Jalmi) »
  • Short-codes
Pages: [1]

Author Topic: Short-codes  (Read 3805 times)

Interpolat

  • I post frequently
  • ***
  • Posts: 140
  • Karma: -1
    • Interpolat Solutions, LLC.
  • CiviCRM version: 4.4+
  • CMS version: Wordpress
  • MySQL version: 5.5+
  • PHP version: 5.4+
Short-codes
January 10, 2012, 09:11:34 am
Have shortcodes now been implemented for wordpress, in the Beta2 release?  If yes, is there a list of the shortcodes somewhere?
Interpolat Solutions, LLC
Connecting the dots for you!
http://www.interpolat.com

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Short-codes
January 10, 2012, 09:23:08 am
Quote
Have shortcodes now been implemented for wordpress, in the Beta2 release?  If yes, is there a list of the shortcodes somewhere?
Yes, we have implemented shortcodes for contribution and event registration/info page.  So when you add post / page you will get small civicrm icon next to media icon for inserting short code in post or page.

Documentation coming soon.

Hth
Kurund
Found this reply helpful? Support CiviCRM

Anthony F. Camilleri

  • I post occasionally
  • **
  • Posts: 51
  • Karma: 2
  • CiviCRM version: 4.4.3
  • CMS version: wordpress
  • MySQL version: 5.1
  • PHP version: 4.3
Re: Short-codes
January 13, 2012, 04:08:15 pm
I've tried these out, and they work moderately well - however:
a. error screens do not keep to the page template of the shortcode page
b. when trying a front page and logged in as admin (or other user with civi rights) the civi navigation bar displays badly, down the left side of the page

Anthony

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Short-codes
January 14, 2012, 03:49:56 pm

Any chance you can investigate and post patches. I think we checked the error case from the frontend and it seemed to retain the shortcode template

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Anthony F. Camilleri

  • I post occasionally
  • **
  • Posts: 51
  • Karma: 2
  • CiviCRM version: 4.4.3
  • CMS version: wordpress
  • MySQL version: 5.1
  • PHP version: 4.3
Re: Short-codes
January 16, 2012, 03:13:43 pm
I can give it a shot - could you give details of where to find the shortcode code? (or appropriate tracker references)

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Short-codes
January 16, 2012, 04:43:47 pm

from the svn repository, check:

WordPress/civicrm.php, function civicrm_shortcode_handler

which corresponds to the file: wp-content/plugins/civicrm/civicrm.php

in your wp install

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

nextwave

  • I post occasionally
  • **
  • Posts: 62
  • Karma: 0
Re: Short-codes
January 17, 2012, 12:01:51 pm
When I tried using shortcodes, CiviCRM stylesheets and scripts do not load.  Using Wordpress 3.3.1 / beta2

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Short-codes
January 17, 2012, 09:05:49 pm
Quote
When I tried using shortcodes, CiviCRM stylesheets and scripts do not load.  Using Wordpress 3.3.1 / beta2

We have fixed this and will be part of next beta

Kurund
Found this reply helpful? Support CiviCRM

Interpolat

  • I post frequently
  • ***
  • Posts: 140
  • Karma: -1
    • Interpolat Solutions, LLC.
  • CiviCRM version: 4.4+
  • CMS version: Wordpress
  • MySQL version: 5.5+
  • PHP version: 5.4+
Re: Short-codes
January 20, 2012, 12:39:26 pm
Quote from: anthonycamilleri on January 13, 2012, 04:08:15 pm
I've tried these out, and they work moderately well - however:
a. error screens do not keep to the page template of the shortcode page
b. when trying a front page and logged in as admin (or other user with civi rights) the civi navigation bar displays badly, down the left side of the page

Anthony

I am also experiencing this same issue.  These are the errors thrown out by FireBug:

cj("#civicrm-menu").menu is not a function
[Break On This Error]    

...vicrm-menu').menu( {arrowSrc: resourceBase + 'packages/jquery/css/images/arrow.p...

/donate/ (line 514)
hide is not defined
[Break On This Error]    

hide('honorType', 'block');

/donate/ (line 991)
c is undefined
[Break On This Error]    

.../input|select|textarea|button|object/.test(d)?!a.disabled:"a"==d?a.href||b:b)&&l...

jquery...=1.8.16 (line 10)
d is undefined
[Break On This Error]    

...c in b)if(b[c]==null||b[c]==C)a[c]=b[c];return a}d.extend(d.ui,{datepicker:{vers...

jquery...=1.8.16 (line 18)
jQuery is not a function
[Break On This Error]    

jQuery(document).ready(function(){

thickb...0111117 (line 18)
jQuery is not a function
[Break On This Error]    

jQuery(document).ready(function($) {

cn-use...0.7.2.5 (line 1)
$ is undefined
[Break On This Error]    

$.fn.preloader = function(options) {

jquery...ver=1.1 (line 7)
jQuery is not a function
[Break On This Error]    

...y(this).attr("id")},function(b){jQuery(a).removeClass("loading");groups_wiget_re...

widget...r=3.3.1 (line 1)
Interpolat Solutions, LLC
Connecting the dots for you!
http://www.interpolat.com

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Short-codes
January 20, 2012, 10:12:48 pm
This is already fixed and will be part next beta ( early next week )

Kurund
Found this reply helpful? Support CiviCRM

Interpolat

  • I post frequently
  • ***
  • Posts: 140
  • Karma: -1
    • Interpolat Solutions, LLC.
  • CiviCRM version: 4.4+
  • CMS version: Wordpress
  • MySQL version: 5.5+
  • PHP version: 5.4+
Re: Short-codes
January 20, 2012, 10:58:07 pm
Awesome.  Thank you.
Interpolat Solutions, LLC
Connecting the dots for you!
http://www.interpolat.com

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 4.1 Release Testing (Moderator: Kurund Jalmi) »
  • Short-codes

This forum was archived on 2017-11-26.