Sort of Members block

Hi,

I got a new problem with my current dolphin installation.

At the admin panel --> basic settings I switched the profile oder to "random" as default, but that has no effect.

At the main page within the mebers block, always the newest are shown, doesnt mather what I selected at the admin panel.

Anyone an idea? Or does anyone knows where at the database that is saved?

Quote · 23 Aug 2008

Saved in table GIParams, but it's not coded yet, you can edit it here

Open templates/base/scripts/BxBaseIndex.php

find function getBlockCode_Members()

and this line $mode = 'last';

and edit it to $mode = 'rand';

Quote · 23 Aug 2008

This link covers this topic in a little more detail: http://www.boonex.com/unity/forums/?action=goto&topic_id=Default-tabs-for-photos-and-videos-on-front-page

It is a good question though- why doesn't the profile order selecton in the admin panel work?

Rob

Quote · 23 Aug 2008

Never coded in Dol.ver.6.x.x, but it is very easy to do.

This settings can be changed from admin but it does not work now, add this code and then it will work.

 

Open base/scripts/BxBaseIndex.php

 

Find function getBlockCode_Members()

 

Find this lines:
// number of profiles
 $max_num = (int) getParam( "top_members_max_num" );


Add a new line bellow it:
// number of profiles
 $max_num = (int) getParam( "top_members_max_num" );
 $modehome = getParam( "top_members_mode" );

----------------------------------

 

Find this lines:
if ( $_GET['Mode'] == 'online' or
     $_GET['Mode'] == 'rand' or
     $_GET['Mode'] == 'last' or
     $_GET['Mode'] == 'top' )
     $mode = $_GET['Mode'];
 else
 $mode = 'last';


Edit latest line:
 $mode = $modehome;
----------------------------------

 

Find this lines:
$pages = ceil( $num / $max_num );
     $page = (int)$_GET['page'];
  
     if( $page < 1 or $mode == 'last' )

 

Edit latest line:
     if( $page < 1 or $mode == $mode )

----------------------------------

 

 

okwebSmile

Quote · 24 Aug 2008

Damn you are good okweb - Boonex should hire you!

Quote · 24 Aug 2008

Okweb, thanks for that, excellent!

I am using dolphin 6.1.4, there are some syntax differences re below... but it does work!!

Stuart

Never coded in Dol.ver.6.x.x, but it is very easy to do.

This settings can be changed from admin but it does not work now, add this code and then it will work.

Open base/scripts/BxBaseIndex.php

Find function getBlockCode_Members()

Find this lines:
// number of profiles
$max_num = (int) getParam( "top_members_max_num" );


Add a new line bellow it:
// number of profiles
$max_num = (int) getParam( "top_members_max_num" );
$modehome = getParam( "top_members_mode" );

----------------------------------

Find this lines:
if ( $_GET['Mode'] == 'online' or
$_GET['Mode'] == 'rand' or
$_GET['Mode'] == 'last' or
$_GET['Mode'] == 'top' )
$mode = $_GET['Mode'];
else
$mode = 'last';


Edit latest line:
$mode = $modehome;
----------------------------------

Find this lines:
$pages = ceil( $num / $max_num );
$page = (int)$_GET['page'];

if( $page < 1 or $mode == 'last' )

Edit latest line:
if( $page < 1 or $mode == $mode )

----------------------------------

okwebSmile

There are none so blind as those that will not see.
Quote · 24 Aug 2008

@caltrade Thanks..and I'am not sooo good.Laughing

@Stuart Yes quite right, used Dol.6.1.2 when I made it..

Quote · 24 Aug 2008
 
 
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.