Show Only Members with Avatars on Homepage

Is there a way to only show those members with an avatar on the home page? I've looked in the settings but I can't find any selection to do it.

Quote · 21 Oct 2010

Try this module..http://www.boonex.com/unity/extensions/entry/Random_Photos_Videos_Audio

It is for showing random avatars on the home page too, but the good thing is it only shows the ones "with" actual photo avatars

ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 21 Oct 2010

 

Try this module..http://www.boonex.com/unity/extensions/entry/Random_Photos_Videos_Audio

It is for showing random avatars on the home page too, but the good thing is it only shows the ones "with" actual photo avatars

 Hi Newton this link dont work anymore Cry

Im wondering this too Cool

Quote · 16 Jan 2012

 

 

Try this module..http://www.boonex.com/unity/extensions/entry/Random_Photos_Videos_Audio

It is for showing random avatars on the home page too, but the good thing is it only shows the ones "with" actual photo avatars

 Hi Newton this link dont work anymore Cry

Im wondering this too Cool

 Here it is..

Random members avatars.zip · 1.5K · 246 downloads
ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 16 Jan 2012

 

 

 

Try this module..http://www.boonex.com/unity/extensions/entry/Random_Photos_Videos_Audio

It is for showing random avatars on the home page too, but the good thing is it only shows the ones "with" actual photo avatars

 Hi Newton this link dont work anymore Cry

Im wondering this too Cool

 Here it is..

 Awesome

Quote · 16 Jan 2012

This is an older version of the instructions I've attached and didn't realize it till today.

I will attach the new one to this post.

Here are the instructions. This is created originally by Prolaznik, prolaznik@Net-Zabava.com, http://Net-Zabava.com   

==============================================================================================

MOD: Display random members /Users with photo first by Prolaznik

==============================================================================================

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

                                   Installation 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

files to edit \templates\base\scripts\ BxBaseIndexPageView.php

look for this code around line 322

// top menu and sorting

$aModes = array('last', 'top', 'online');

change it to 

// top menu and sorting

$aModes = array('last', 'top', 'rand', 'online');

find this code around line 337

 

                case 'last':

                    if ($sMode == $sMyMode)

                    $sqlOrder = " ORDER BY `Profiles`.`Couple` ASC, `Profiles`.`DateReg` DESC";

                    $sModeTitle = _t('_Latest');

                break;

 

add this code bellow it 

 

                case 'rand':

                    if ($sMode == $sMyMode)

                    $sqlOrder = " ORDER BY `Profiles`.`Couple` ASC, `Profiles`.`Avatar` <> 0 DESC, RAND()";

                    $sModeTitle = _t('_Random');

                break;

around line 326 you need to change the display order

 $sMode = (in_array($_GET[$sBlockName . 'Mode'], $aModes)) ? $_GET[$sBlockName . 'Mode'] : $sMode = 'last';

change that 'last' to 'rand'

 

[edit] This has been updated by me..

 

look for all of this

 

if (empty($_GET[$sBlockName . 'Mode'])) {

        $sMode = 'last';

        } else {

        $sMode = (in_array($_GET[$sBlockName . 'Mode'], $aModes)) ? $_GET[$sBlockName . 'Mode'] : $sMode = 'last';

 

change to

 

if (empty($_GET[$sBlockName . 'Mode'])) {

        $sMode = 'rand';

        } else {

        $sMode = (in_array($_GET[$sBlockName . 'Mode'], $aModes)) ? $_GET[$sBlockName . 'Mode'] : $sMode = 'rand';

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

                                                                      Prolaznik

                                                                      prolaznik@Net-Zabava.com

                                                                         http://Net-Zabava.com                                    

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Random members avatars.zip · 1.9K · 228 downloads
ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 16 Jan 2012

 Thanks buddy working perfect Cool

 

Dolphin 7.0.8

Quote · 16 Jan 2012

any body know how to change the order of the tags box on the home page. I will like my to be video first

Quote · 27 Jan 2012

Agree With Glider

 

I would also like to change the Tags order on the home page from the default "Photos Tag" to a random selection of tags from all Video, Photo, and Sounds sections.

 

(This should have been a new forum entry, I know, but worth a bump)

Quote · 28 Jan 2012

Thanks for this newton :)

Quote · 30 Sep 2012
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.