Foros del Web » Programando para Internet » Javascript »

Problema con bumpbox

Estas en el tema de Problema con bumpbox en el foro de Javascript en Foros del Web. 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 ...
  #1 (permalink)  
Antiguo 25/10/2012, 20:05
Avatar de raid_  
Fecha de Ingreso: diciembre-2010
Mensajes: 132
Antigüedad: 13 años, 3 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

Etiquetas: funcion, js, php
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 02:10.