WPFreely88
Forum Replies Created
-
Forum: Plugins
In reply to: [Lightbox Plus Colorbox] Can you have more that 5 lightboxes on one page?Code Sample
<tr style="text-align:right;"> <td style="border-bottom: 1px solid #cccccc;border-right: 1px solid #cccccc;text-align:center;padding-bottom:10px;padding-right:0px;text-align:center;"> <a href="#data-<?php echo $post->ID ?>" class="cp-inline-link-<?php echo $lbpcount?>"><img style="opacity:0.80;" src="<?php bloginfo('template_url')?>/images/btn-read-more.png" /></a> <a href="<?php bloginfo('siteurl') ?>/request-consultant/?postid=<?php echo $post->ID ?>&bullhorn_id=<?php echo $post->BHID; ?>"> <img src="<?php bloginfo('template_url')?>/images/btn-request-consultant.png" /></a> </td> </tr> </table> <!-- END: Display Taxonomies in Table--> </br> </br> <div style="display:none"> <div id="cp-inline-href-<?php echo $lbpcount++?>" style="padding: 10px;background: #fff"> <div id="data-<?php echo $post->ID ?>"> <div class="clear"></div> <div id="content" class="threeFourth clearfix"> <h3><?php the_title(); ?></h3> <div class="entry"><?php the_content(); ?></div> <a href="<?php bloginfo('siteurl') ?>/request-consultant/?postid=<?php echo $post->ID ?>&bullhorn_id=<?php echo $post->BHID; ?>"> <img src="<?php bloginfo('template_url')?>/images/btn-request-consultant.png" /></a> </div><!-- #END content threeFourth clearfix --> </div><!-- #END data- --> </div> </div><!-- #END display:none --> </div> <!-- #END content-cp--> <?php endwhile; endif;?>Forum: Plugins
In reply to: [Lightbox Plus Colorbox] Can you have more that 5 lightboxes on one page?Figured it out, sorry. I increased the amount of “Number of Inline Lightboxes” in the Base Settings to “20”. Then in my code I created a variable, “$lbpcount=1”. From there, as my code loops, i call the variable in the anchor tag “class=”cp-inline-link-<?php echo $lbpcount?>” then in the hidden div, I increment the variable by one “id=”cp-inline-href-<?php echo $lbpcount++?>”
So each time my code loops, it will increment $lbpcount and I will call a new inline lightbox. It works great, already tested it. Thanks all.
Forum: Plugins
In reply to: [Lightbox Plus Colorbox] Can you have more that 5 lightboxes on one page?Did you ever find a solution to this? I have the same issue. I have inline content dynamically identified by the postID. So it would be nice to display content in a lightbox with a dynamic id. I.e. class=”lbp-inline-link-<?php echo $post->ID ?>”>”