Ver Mensaje Individual
  #1 (permalink)  
Antiguo 25/10/2012, 20:05
Avatar de raid_
raid_
 
Fecha de Ingreso: diciembre-2010
Mensajes: 132
Antigüedad: 13 años, 4 meses
Puntos: 12
Problema con bumpbox

Hola estoy utilizando bumpbox para mostrar unos archivos pdf en wordpress

Para verlo pongo este codigo

Código PHP:
<a href=" http://www.artviper.net/test.pdf" class="bx2" rel="800-350"
title="<?php the_title();?>"><?php the_title();?></a>
asi funciona perfectamente

pero el problema me viene cuando utilizo un campo personalizado

Código PHP:
<a href="<?php echo get_post_meta($post->ID"archivo"true); ?>" class="bx2" rel="800-350"
title="<?php the_title();?>"><?php the_title();?></a>
no funciona, y en la linea 10 de bumpbox-2.0.1.js me suelta un error

Código PHP:
Cannnot call method "index of" of null 


dejo la parte que me da error del bumpbox-2.0.1.js




Código PHP:

function doBump(namesinSpeedoutSpeedboxColorbackColorbgOpacitybRadiusborderWeightborderColorboxShadowSizeboxShadowColoriconSeteffectsIneffectsOutbgImagebgPositionbgRepeat) {
    
0;
    var 
nameClass names.replace(/./, '');
    var 
imgstore = new Array();
    var 
allBumps null;
    
allBumps = $$(names);
    
allBumps.each(function (e) {
        var 
content e.get('href');
        if (
e.get('href').indexOf('^') == 0) {

Uncaught TypeErrorCannot call method 'indexOf' of null
           
         
var id e.get('href').replace("^"'');
            $(
id).setStyle('display''none');
        } 

muchas gracias