This update allows the member and photo widgets to display random items (members/photos). If you think that the Latest Members widget is too static for your site, you can use this update to make your site appear more dynamic.
Installation is pretty straight-forward:
To make the widget display random members add this code inside any html file from the skins_site/<some skin>/ folder:
<!--widget="members(array('mode'=>'rand'))"-->
This update can also display random members with a certain profile property, which is a very powerful feature. For example you can display random women or random men but also random members with red hair or random members seeking men. The usage in this case is like this:
<!--widget="members(array('mode'=>'rand','cmp_field'=>'<some_dbfield>','cmp_to'=>'<some_value>'))"-->
or, the most complex:
<!--widget="members(array('mode'=>'rand','cmp_field'=>'<some_dbfield>','cmp_to'=>'<some_value>','cmp'=>'<sql comparison operator>'))"-->
The meanings of the 3 new fields are:
The same applies to multiple checkboxes fields but instead of comparing to '1', you need to compare to '|1|'. Same for females: your cmp_to field must be '|2|'.
Some examples for the default Etano package:
<!--widget="members(array('mode'=>'rand','cmp_field'=>'f1','cmp_to'=>'1'))"-->
<!--widget="members(array('mode'=>'rand','cmp_field'=>'f1','cmp_to'=>'2'))"-->
<!--widget="members(array('mode'=>'rand','cmp_field'=>'f4_country','cmp_to'=>'218'))"-->
You can contact us if you need more help with this.
To make the widget display random photos add this code inside any html file from the skins_site/<some skin>/ folder:
<!--widget="photos(array('mode'=>'rand'))"-->