Default tabs for photos and videos on front page

Hi,  I'm building a site with photo gallery, video gallery and profile photos on the front page.  Each of these boxes has a set of tabs at the top that say "latest", "top", and "random".  The default tab is "top".  Does anyone know how I can change the default tab for these three boxes to "random".

Thank you

Rob

Quote · 14 Jul 2008

I'm looking for an answer to that for the members box on the home page as well.

Quote · 16 Jul 2008

Any smart people out there care to respond?  We will give you points!

Rob

Quote · 16 Jul 2008

templates\base\scripts\BxBaseIndex.php

Example:

function getBlockCode_Events() {

if( $mode != 'rand' and $mode != 'latest' )
$mode = 'latest';

here latests become default tab

another sample

function getBlockCode_ProfilePhotos() {

if ( $_GET['Mode_p'] == 'rand' or
$_GET['Mode_p'] == 'last' or
$_GET['Mode_p'] == 'top' )
$mode = $_GET['Mode_p'];
else
$mode = 'last';

'last'  will default tab

Next

function getBlockCode_ShareMusic() {

As we see here we use Class, ok, goto into getBlockCode_SharedMedia function

inc\classes\BxDolSharedMedia.php

function getBlockCode_SharedMedia($iUser = 0) {

here too we see

if( $mode != 'rand' && $mode != 'top' && $mode != 'last')
$mode = 'last';

so, I hope that you understand alls :)

Quote · 16 Jul 2008

Thank you Andrey,  that's very clear :-)

 

Could you please tell us how to set the number of items displayed in these blocks (shared photos, music, video) too ?

Life is a fatal disease, sexually transmissible - Virginity is carcinogenic! Ask here for vaccine.
Quote · 16 Jul 2008

For same

function getBlockCode_SharedMedia($iUser = 0) {

I see here follow:

$max_num = (int)getParam("top_photos_max_num");

so this is just GLParam :)

(its for sharing)

for another ..

lets look at

function getBlockCode_Events() {

here I see

$iResPerPage = (int)getParam("max_blogs_on_home");

so again - just GLParam

Just change it as you want :)

Quote · 16 Jul 2008

WOW !!! BoonEx support is very fast :-))

Thank you Andrey ;-)

Life is a fatal disease, sexually transmissible - Virginity is carcinogenic! Ask here for vaccine.
Quote · 16 Jul 2008

Another great post from Andrey - Thanks!!!

Quote · 16 Jul 2008

AAAA :)

I`m not support here :) , better staff

my working day just splitted - for support in blogs/forum and another boonex work

Quote · 16 Jul 2008

worked like a charm.  Thank you Andrey.

Rob

Quote · 16 Jul 2008

Thanks Andrew.  Your post was just what I needed.

Quote · 5 Aug 2008

Anyone know how to get couples to show there?

Its only shows males/females in there?

 

Any ideas?

Quote · 15 Oct 2008

Andrey ( or anybody)  - I love this mod and am using it on the front page of my site, but I would like to show "latest members" on the inside of my site (i.e. the homepage that is visible for members only).  Is there anyway to do this?  Alternatively, is they a mod out there (preferably free) that shows the newest members in a block?

-

Thanks

-

Rob

Quote · 11 Nov 2008

I would like to show "latest members" on the inside of my site (i.e. the homepage that is visible for members only).  Is there anyway to do this?

Yes I have random members photos showing on the main page but it would be great to be able to show logged in members the latest photos instead. Can we have different rand/top/latest settings depending on whether one is logged in or not? DV

Quote · 12 Nov 2008

anyone know a way to add a "my friends" tab as an addition to this block?

Quote · 22 Jan 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.