Members Block

Hi all!

 

Lets say I am rebuilding the index page from scratch and want to fully reconstruct all elements.

 

The members' block seems to be Ajax driven with 4 main menu items (Latest, Top, Online. Random). What I would like to achieve is to discard the Top, Online and Random items. This is no problem, I can just take them out of my html code. But, how do I get the Latest members to load automatically when the page is called. I understand that is usually done with 2 things in mind, first, the 'Latest Member' Content is the 'default' content in that code, and secondly, the menu item 'Latest' must be given some .css class like 'active' or 'selected'. The css is no problem and shouldnt affect the functionality anyway, but I am still unable to get the Latest members to come up automatically.

 

Would appreciate any ideas.

 

Thanks

Quote · 4 Sep 2008

templates\base\scripts\BxBaseIndex.php

function getBlockCode_Members() {

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 = 'last';

are you found last 'last' here?

this is default mode

Quote · 4 Sep 2008

Thanks Andrey!

 

Yes, that function is there. It works fine in the default index page that comes with the script.. but I just can't get it working in my new design (the new index page).

 

The page relies on the same list of scripts as the default index page, has the same css links and anything a part from the design html (like tables and divs) is the same...

 

I just can't seem to code my td to display the latest members.

 

I rely on tables.. and I know I sometimes have to use the same ID used by the script for div's and so on.. but even that doesnt seem to work. I would say, the problem is I don't know what code to insert into my td to have it scho the latest members.

 

Any help would be appreciated.

 

Thanks again!

Quote · 4 Sep 2008

First that I notice that you move in wrong way to developing templateyou should just create another one folder in 'templates' folder and make it similary UNI template (by structure), but with yours styles,

you don`t should create index2.php page at all :)

All template structure works via classes, so all blocks generated in functions of base index class

so, I repeat, just follow my directions - use Classes :)

Quote · 4 Sep 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.