The forum is here for legacy reasons. No new posts will be created. User registration is disabled! If you have any questions, please email us or check https://www.adultscriptpro.com for more details!
You are not logged in.
Pages: 1
Hello,
how to display small thumb of pornstars in top-10 ?
I have try with this code, but doesnt work
<?php if ($this->popular): ?>
<?php foreach ($this->popular as $model):?>
<a href="<?php echo RELATIVE_URL; ?>/pornstar/<?php echo $model['slug']; ?>/" title="View <?php echo e($model['name']); ?> bio!"><?php echo e($model['name']); ?></a><br />
<a href="<?php echo RELATIVE_URL; ?>/pornstar/<?php echo $model['slug']; ?>/"><img src="<?php echo MODEL_URL,'/',$model['model_id'],'.',$model['ext']; ?>" alt="<?php echo e($model['name']); ?>" /></a>
<?php endforeach; ?>
<?php else: ?>
<div class="none"><?php echo __('no-popular'); ?></div>
<?php endif; ?>
</div>
</div>
<?php echo p('adv', 'pornstar-browse-left'); ?>
</div>
Thank you
Offline
What query did you use and where are you putting this code?
Offline
What query did you use and where are you putting this code?
Nevermind got it, add some code in modules/pornstar
Any idea how to make it work with this code.
<script>
jQuery.fn.colapse_all = function() {
jQuery('#pornstar1').removeClass( 'hover' );
jQuery('#pornstar2').removeClass( 'hover' );
jQuery('#pornstar3').removeClass( 'hover' );
jQuery('#pornstar4').removeClass( 'hover' );
jQuery('#pornstar5').removeClass( 'hover' );
jQuery('#pornstar6').removeClass( 'hover' );
jQuery('#pornstar7').removeClass( 'hover' );
jQuery('#pornstar8').removeClass( 'hover' );
jQuery('#pornstar9').removeClass( 'hover' );
jQuery('#pornstar10').removeClass( 'hover' );
};
jQuery.fn.expand_this = function() {
var pornstar = arguments[0] || {};
jQuery.fn.colapse_all();
jQuery( pornstar ).addClass( 'hover' );
};
</script>
<ul class="pornstars">
<li id="pornstar1" OnMouseOver="jQuery.fn.expand_this( jQuery(this) );" class="hover">
</li>
<li id="pornstar2" OnMouseOver="jQuery.fn.expand_this( jQuery(this) );" class="hover">
</li>
<li id="pornstar3" OnMouseOver="jQuery.fn.expand_this( jQuery(this) );" class="hover">
</li>
<li id="pornstar4" OnMouseOver="jQuery.fn.expand_this( jQuery(this) );" class="hover">
</li>
<li id="pornstar5" OnMouseOver="jQuery.fn.expand_this( jQuery(this) );" class="hover">
</li>
<li id="pornstar6" OnMouseOver="jQuery.fn.expand_this( jQuery(this) );" class="hover">
</li>
<li id="pornstar7" OnMouseOver="jQuery.fn.expand_this( jQuery(this) );" class="hover">
</li>
<li id="pornstar8" OnMouseOver="jQuery.fn.expand_this( jQuery(this) );" class="hover">
</li>
<li id="pornstar9" OnMouseOver="jQuery.fn.expand_this( jQuery(this) );" class="hover">
</li>
<li id="pornstar10" OnMouseOver="jQuery.fn.expand_this( jQuery(this) );" class="hover">
</li>
</ul>
Last edited by dimegkay (2012-04-09 22:20:15)
Offline
Pages: 1