Adult Script Pro Community Forums

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.

#1 2012-04-09 17:22:34

dimegkay
Member
Registered: 2012-04-09
Posts: 17

Displaying small thumbs top-10 pornstars

Hello,
how to display small thumb of pornstars in top-10 ?

I have try with this code, but doesnt work sad


<?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 smile

Offline

#2 2012-04-09 20:38:38

THS
Member
Registered: 2012-02-02
Posts: 313
Website

Re: Displaying small thumbs top-10 pornstars

What query did you use and where are you putting this code?

Offline

#3 2012-04-09 21:37:46

dimegkay
Member
Registered: 2012-04-09
Posts: 17

Re: Displaying small thumbs top-10 pornstars

THS wrote:

What query did you use and where are you putting this code?

Nevermind smile got it, add some code in modules/pornstar smile

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

Board footer

Powered by FluxBB