Can someone help me grab this little code?

Discussion in 'HTML & Website Design' started by Divvy, Jan 17, 2011.

  1. #1
    Hello guys,

    Can someone help me?
    I need to grab an website code to show my featured members at my website. Needs to be exactly like the other website.

    What I need:
    Bar code at the top of the page where is saying "Put me here!" and showing 12 members photos.
    I already have the code to show my members id and avatars...
    Here It is:
    {if count($aFeatured)}
    <div>
    {foreach from=$aFeatured item=aUser}
        <div class="featitem">
        {img user=$aUser suffix='_100' max_width=100 max_height=100}
        </div>
    {/foreach}
    </div>
    </div>
    {/if}
    Code (markup):
    Where {img user=$aUser suffix='_100' max_width=100 max_height=100} is the line to show the avatar image.
    I only need to add the same mouse hover effects that badoo have and the same "Put me here" image...

    Where?
    You need to make an login to see: http://badoo.com/search/
    Please login with webmasterlair [ at ] gmail [ dot ] com and password qywyhohe

    Do you want to help me for free or want a fee for that?
    I can pay you via paypal, just let me know your price via pm...

    Thank you!
     
    Divvy, Jan 17, 2011 IP
  2. franzflip

    franzflip Peon

    Messages:
    19
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Did you try using the source on the browser?
     
    franzflip, Jan 17, 2011 IP
  3. Divvy

    Divvy Well-Known Member

    Messages:
    785
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    128
    #3
    yes, but with no success...
    Can someone help me? Here is a better explanation of what I need:

    This is the *class.php code:
    <?php
    
    defined('PHPWOLF') or exit('NO DICE!');
    
    
    class Ttirainbow_Component_Block_Featmembers2 extends Phpfox_Component
    {
    
    	public function process()
    	{
    
    		$dbase = Phpfox::getLib('database');
    			
    		$aRows = $dbase->select(Phpfox::getUserField() . ', uf.ordering, u.birthday, u.country_iso, u.status')
    			->from(Phpfox::getT('user'), 'u')
    			->join(Phpfox::getT('user_featured'), 'uf','uf.user_id = u.user_id')			
    			->limit(7)			
    			->order('RAND()')
    			->execute('getRows');	
    		
    		$this->template()->assign(array(
    				'aFeatured' => $aRows
    			)
    		);
    		
    		return 'block';		
    	}
    	
    }
    
    ?>
    Code (markup):
    And this is the *html.php code:
    <?php 
     
    defined('PHPWOLF') or exit('NO DICE!'); 
    
    ?>
    
    {if count($aFeatured)}
    <div>
    {foreach from=$aFeatured item=aUser}
    	<div class="featitem">
    	{img user=$aUser suffix='_100' max_width=100 max_height=100}
    
    	<div class="featinfo">
    		{$aUser|user|shorten:20}<br/>
    		Age: {$aUser.birthday|age} <br/>
    	</div>
    	</div>
    {/foreach}
    </div>
    </div>
    {/if}
    Code (markup):
    I only need to show the member pic, so I deleted the lines:
    <div class="featinfo">
    		{$aUser|user|shorten:20}<br/>
    		Age: {$aUser.birthday|age} <br/>
    	</div>
    Code (markup):
    But It seems that the code is messing my webpage, mostly the members IDs. Any ideas of what could be?

    About my request, like you can see, I already have the code to show my members pics, the only thing that I need is:
    1- Same effect like badoo have when we pass with the mouse hover the pic (zoom)
    2- Same blue image that is saying "Put me here!"... notice that the image is above (hover) the members pics...

    Thats all! :)
    Sorry for my poor english... hope that you understood now.
    Can someone help me? Thank you
     
    Divvy, Jan 18, 2011 IP