Homepage Member status

On the home page the defaut member status is set to "Latest" out of Latest\Top\Online\Random

Is there a way to set it to "Online"?

Quote · 14 Jul 2009

Settings/Basic Settings

 

Below Index page settings you can choose what you will have - Latest\Top\Online or Random,

look after:

 

Show members on index page
(if enabled in the template):

 

 

 

 

Quote · 14 Jul 2009

Didn't work, it's still set to "Latest Members"

BTW, how do I know it's enabled?

Quote · 14 Jul 2009

 

Didn't work, it's still set to "Latest Members"

 

BTW, how do I know it's enabled?

 Hmm...maybe I have changed it and then forgot itSmile

 

You can edit it here (added and changed code is green):

 

templates/base/scripts/BxBaseIndex.php

 

 
function getBlockCode_Members() {
  global $tmpl;
 
  // number of profiles
  $max_num = (int) getParam( "top_members_max_num" );
  $modehome = getParam( "top_members_mode" );
   
  // Get Sex from GET data
  if ( $_GET['Sex'] && $_GET['Sex'] != "all" ) {
   $sex = process_db_input( $_GET['Sex'] );
   $query_add = " AND `Sex` = '$sex'";
  } else {
   $sex = "all";
   $query_add = "";
  }
  
                $query_add .= ' AND (`Couple`=0 OR `Couple`>`ID`)';
  
  $query = "
   SELECT
    `Profiles`.*
   ";
 
  if ( $_GET['members_mode'] == 'online' or
    $_GET['members_mode'] == 'rand' or
    $_GET['members_mode'] == 'last' or
    $_GET['members_mode'] == 'top' )
    $mode = $_GET['members_mode'];
  else
   $mode = $modehome;

 

I think this will work great and you can now change it from AdminSmile

Quote · 14 Jul 2009
 
 
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.