I want to add another block to the home page that will only include female members. I do not want to get rid of the “Featured Members” block, just want to add a separate block for female members.
Thanks
I want to add another block to the home page that will only include female members. I do not want to get rid of the “Featured Members” block, just want to add a separate block for female members.
Thanks |
I want to add another block to the home page that will only include female members. I do not want to get rid of the “Featured Members” block, just want to add a separate block for female members.
Thanks
Female members block: - only single woman - only active members - only with picture uploaded
Updated 05-02-09 Will now display nickname, age, country and country flag bellow user pic. Random selected from DB. --
1) Admin/Builders/Pages Builder, Add a new HTML page as bellow:
Caption Lang Key: _female members Visible for: Guest Member
SAVE
2) Open phpMyAdmin, click on table PageCompose and browse look at row Caption and find _female members (shall be the last insert id) Edit ID where Caption = _female members as bellow:
Page: index Desc: List of female profiles selected from database Func: Female Content: SAVE (Content shall be blank)
3) Admin/Settings/Languages Settings, add a new language string Key: _female members String: Female members Category: Page titles
SAVE
4) Open file templates/base/scripts/BxBaseIndex.php Find Featured members block and add this code above
/** if ( $female_num ) $ret .= '<div class="clear_both"></div>'; $age_str = _t("_y/o", age( $female_arr['DateOfBirth'] )); $y_o_sex = $age_str . ' ' . _t("_".$female_arr['Sex']); $female_country = _t($aPreValues['Country'][$female_arr['Country']] ['LKey']); $female_flag = ' <img src="'. ($site['flags'].strtolower($female_arr['Country'])) .'.gif" alt="flag" />'; $ret .= '<div class="featured_block_1">'; $ret .= '<br />';
/** * Featured members block */
SAVE FILE
Now you can take a look at your web page
|
Thanks a lot okweb, I followed everything and the "Female Members" Block is now on my home page. One problem, the "Female Members" Block is only placing featured members inside the block. Any idea why that is happening? Great Thanks, this was very helpful. -Zehn- |
Nice job.. can we integrate in block "_members" in index page ?
|
Thanks a lot okweb,
I followed everything and the "Female Members" Block is now on my home page. One problem, the "Female Members" Block is only placing featured members inside the block. Any idea why that is happening?
Great Thanks, this was very helpful. -Zehn-
Added some female on my test site, are now 3 featured and 5 not, everyone is displayed in the female members block.
Not sure why it is so on your web site!!
Ottar. |
Nice job.. can we integrate in block "_members" in index page ?
Probably, but the code must be adapted...
|
Hello Okweb, i found my problem. |
Great Update! |
Just posting for anyone whom might find this useful. |
Hello okweb, |
great job guys |
Does this Mod work in 7.0.9 ? |
yes http://www.mediaworkflow.com.au |
yes But does this shows in the index.php ?? |
does this method work on dolphin7.3.3. ? |
The Members Anywhere module will allow you to easily create blocks with different subset of members and place those blocks on any page you desire. Paypal email is jeromemingo@gmail.com - http://www.boonex.com/market/posts/modzzz |