WordPress.org

Ready to get started?Download WordPress

Forums

Picasa and Google Plus Express
Not getting shortcodes returned-only long codes (5 posts)

  1. ckleiman
    Member
    Posted 1 year ago #

    When I select shortcodes and then an album instead of getting a shortcode I get the entire php file, which, shows when viewed. How to fix? Here's and example of what I'm getting;

    [pe2-gallery album="http://picasaweb.google.com/data/feed/base/user/103867063987324985586/albumid/5883508004250645905?alt=rss&hl=en_US&kind=photo" each="function each(iterator, context) {
    var index = 0;
    try {
    this._each(function(value) {
    iterator.call(context, value, index++);
    });
    } catch (e) {
    if (e != $break) throw e;
    }
    return this;
    }" eachSlice="function eachSlice(number, iterator, context) {
    var index = -number, slices = [], array = this.toArray();
    if (number < 1) return array;
    while ((index += number) < array.length)
    slices.push(array.slice(index, index+number));
    return slices.collect(iterator, context);
    }" all="function all(iterator, context) {
    iterator = iterator || Prototype.K;
    var result = true;
    this.each(function(value, index) {
    result = result && !!iterator.call(context, value, index);
    if (!result) throw $break;
    });
    return result;
    }" any="function any(iterator, context) {
    iterator = iterator || Prototype.K;
    var result = false;
    this.each(function(value, index) {
    if (result = !!iterator.call(context, value, index))
    throw $break;
    });
    return result;
    }" collect="function collect(iterator, context) {
    iterator = iterator || Prototype.K;
    var results = [];
    this.each(function(value, index) {
    results.push(iterator.call(context, value, index));
    });
    return results;
    }" detect="function detect(iterator, context) {
    var result;
    this.each(function(value, index) {
    if (iterator.call(context, value, index)) {
    result = value;
    throw $break;
    }
    });
    return result;
    }" findAll="function findAll(iterator, context) {
    var results = [];
    this.each(function(value, index) {
    if (iterator.call(context, value, index))
    results.push(value);
    });
    return results;
    }" select="function findAll(iterator, context) {
    var results = [];
    this.each(function(value, index) {
    if (iterator.call(context, value, index))
    results.push(value);
    });
    return results;
    }" grep="function grep(filter, iterator, context) {
    iterator = iterator || Prototype.K;
    var results = [];

    if (Object.isString(filter))
    filter = new RegExp(RegExp.escape(filter));

    this.each(function(value, index) {
    if (filter.match(value))
    results.push(iterator.call(context, value, index));
    });
    return results;
    }" include="function include(object) {
    if (Object.isFunction(this.indexOf))
    if (this.indexOf(object) != -1) return true;

    var found = false;
    this.each(function(value) {
    if (value == object) {
    found = true;
    throw $break;
    }
    });
    return found;
    }" member="function include(object) {
    if (Object.isFunction(this.indexOf))
    if (this.indexOf(object) != -1) return true;

    var found = false;
    this.each(function(value) {
    if (value == object) {
    found = true;
    throw $break;
    }
    });
    return found;
    }" inGroupsOf="function inGroupsOf(number, fillWith) {
    fillWith = Object.isUndefined(fillWith) ? null : fillWith;
    return this.eachSlice(number, function(slice) {
    while(slice.length < number) slice.push(fillWith);
    return slice;
    });
    }" inject="function inject(memo, iterator, context) {
    this.each(function(value, index) {
    memo = iterator.call(context, memo, value, index);
    });
    return memo;
    }" invoke="function invoke(method) {
    var args = $A(arguments).slice(1);
    return this.map(function(value) {
    return value[method].apply(value, args);
    });
    }" max="function max(iterator, context) {
    iterator = iterator || Prototype.K;
    var result;
    this.each(function(value, index) {
    value = iterator.call(context, value, index);
    if (result == null || value >= result)
    result = value;
    });
    return result;
    }" min="function min(iterator, context) {
    iterator = iterator || Prototype.K;
    var result;
    this.each(function(value, index) {
    value = iterator.call(context, value, index);
    if (result == null || value < result)
    result = value;
    });
    return result;
    }" partition="function partition(iterator, context) {
    iterator = iterator || Prototype.K;
    var trues = [], falses = [];
    this.each(function(value, index) {
    (iterator.call(context, value, index) ?
    trues : falses).push(value);
    });
    return [trues, falses];
    }" pluck="function pluck(property) {
    var results = [];
    this.each(function(value) {
    results.push(value[property]);
    });
    return results;
    }" reject="function reject(iterator, context) {
    var results = [];
    this.each(function(value, index) {
    if (!iterator.call(context, value, index))
    results.push(value);
    });
    return results;
    }" sortBy="function sortBy(iterator, context) {
    return this.map(function(value, index) {
    return {
    value: value,
    criteria: iterator.call(context, value, index)
    };
    }).sort(function(left, right) {
    var a = left.criteria, b = right.criteria;
    return a < b ? -1 : a > b ? 1 : 0;
    }).pluck('value');
    }" toArray="function clone() {
    return slice.call(this, 0);
    }" entries="function toArray() {
    return this.map();
    }" zip="function zip() {
    var iterator = Prototype.K, args = $A(arguments);
    if (Object.isFunction(args.last()))
    iterator = args.pop();

    var collections = [this].concat(args).map($A);
    return this.map(function(value, index) {
    return iterator(collections.pluck(index));
    });
    }" size="function size() {
    return this.length;
    }" inspect="function inspect() {
    return '[' + this.map(Object.inspect).join(', ') + ']';
    }" find="function detect(iterator, context) {
    var result;
    this.each(function(value, index) {
    if (iterator.call(context, value, index)) {
    result = value;
    throw $break;
    }
    });
    return result;
    }" _reverse="function reverse() {
    [native code]
    }" _each="function forEach() {
    [native code]
    }" clear="function clear() {
    this.length = 0;
    return this;
    }" first="function first() {
    return this[0];
    }" last="function last() {
    return this[this.length - 1];
    }" compact="function compact() {
    return this.select(function(value) {
    return value != null;
    });
    }" flatten="function flatten() {
    return this.inject([], function(array, value) {
    if (Object.isArray(value))
    return array.concat(value.flatten());
    array.push(value);
    return array;
    });
    }" without="function without() {
    var values = slice.call(arguments, 0);
    return this.select(function(value) {
    return !values.include(value);
    });
    }" uniq="function uniq(sorted) {
    return this.inject([], function(array, value, index) {
    if (0 == index || (sorted ? array.last() != value : !array.include(value)))
    array.push(value);
    return array;
    });
    }" intersect="function intersect(array) {
    return this.uniq().findAll(function(item) {
    return array.detect(function(value) { return item === value });
    });
    }" clone="function clone() {
    return slice.call(this, 0);
    }" toJSON="function toJSON() {
    var results = [];
    this.each(function(object) {
    var value = Object.toJSON(object);
    if (!Object.isUndefined(value)) results.push(value);
    });
    return '[' + results.join(', ') + ']';
    }" removeDuplicates="function () {
    for(i = 0; i < this.length; i++){
    for(j = this.length-1; j>i; j--){
    if(this[i][0] == this[j][0]){
    this.splice(j,1);
    }
    }
    }
    }" empty="function () {
    for(i = 0; i <= this.length; i++){
    this.shift();
    }
    }" ]

    http://wordpress.org/extend/plugins/picasa-express-x2/

  2. internationalkenpo
    Member
    Posted 1 year ago #

    I'm getting the same issue. running 1.1.6 on 3.5.2 had the issue on 3.5.1 as well. Unsure when the issue came up. Any followup would be amazing!

  3. videowijs
    Member
    Posted 1 year ago #

    Having the same issue...

    any workarounds?

  4. gjanes
    Member
    Plugin Author

    Posted 1 year ago #

    The "each" attribute is not created by this plugin. You must be using a plugin that is adding that for an unknown purpose, and this plugin passes that through.

    Turn off other plugins until you find the culprit. Then post it here and if I get a chance I may try to filter it out.

  5. atacamaweb
    Member
    Posted 12 months ago #

    While testing this plugin i had the same problem.
    I disabled all other plugins and found out "PicasaView" was the one creating the problem. The other ones make no problems.

    Trying to find another plugin for picasaview, i want to be able to show images from other galleries. But i need also access to differend picasa accounts. *it's a long search*
    But your plugin looks great!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.