Is there any possibility to show for example only male or female photos? If so, how can I do it? Please advice
Is there any possibility to show for example only male or female photos? If so, how can I do it? Please advice |
You mean the based on the mail/female profile that uploaded them? so much to do.... |
Something like that. When you go to for eg http://www.website.com/m/photos/home/ you have options on photos block: Latest and Top. I wish there can be Male and Female and after choose category Latest and Top. This is possible? |
Sex is a parameter of the Profile, of the member. There is no way to know if the photo image is of a male or female. Now, if your site is one where photos are suppose to be of the members and not just any subject, then you can check the sex of the owner of the photo. In order to do this, you will need to do a special database query in which you join the Profiles table with the sys_albums, and sys_albums_objects tables. The objects table does not indicate the owner, for that you have to check which album the photo is in and see who the owner of the album is from the sys_albums table. Then you check the sex of the owner. If you are not good with mySQL queries, then post a job for this or maybe one of the mySQL gurus will come in and help with this. Then of course you have to create the block for this and have the pagination bits, etc. Now, if you can force your users to assign a category of male/female to each photo, then you can do this by searching on categories. Modzz even has a module in the market to make it easy to insert blocks that return items based on categories. Geeks, making the world a better place |
Thank you for your response. So it is not that easy to do. By the way, is a very useful tool for dating sites or social networks. In the end, should be divided into categories of images such as landscapes and people (male and female) . I have a module for example "Humor" - where getting funny pictures and videos but I have the modules " Videos " and " Photos " where users also can add various funny posts. It's hard to teach users to use modules , so it would be very useful breakdown of photographs on the male and female . Otherwise, it gets bigger mess in the pictures , and those wishing to meet someone with the pictures get on the wrong and not the appearance of such a person. Sex is a parameter of the Profile, of the member. There is no way to know if the photo image is of a male or female. Now, if your site is one where photos are suppose to be of the members and not just any subject, then you can check the sex of the owner of the photo. In order to do this, you will need to do a special database query in which you join the Profiles table with the sys_albums, and sys_albums_objects tables. The objects table does not indicate the owner, for that you have to check which album the photo is in and see who the owner of the album is from the sys_albums table. Then you check the sex of the owner. If you are not good with mySQL queries, then post a job for this or maybe one of the mySQL gurus will come in and help with this. Then of course you have to create the block for this and have the pagination bits, etc. Now, if you can force your users to assign a category of male/female to each photo, then you can do this by searching on categories. Modzz even has a module in the market to make it easy to insert blocks that return items based on categories.
|
If you can get your members to use the default photo album just for their photos, then you can easily pull out images from that album, you can pull out the first photo from the profile photo album and then check to see if the profile user is male or female and use the sort by group built into mySQL.
Post a job for this and someone may help. Geeks, making the world a better place |
Modz "Members Anywhere" module is exellent and will alow you to display blocks of member photos anywhere wityh any criterior... I have this and had it customised to meed my needs. It works a treat.... http://www.boonex.com/m/members-anywhere
Hope it helps.
Nathan : )
|