Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

Display only the Photos from Featured Members

8 years 11 months ago
  • Tahir's Avatar
    Topic Author
  • Tahir
  • Offline
  • Fresh Boarder
  • Posts: 48
  • Thank you received: 2
Licenses:
JomSocial Expired

Hey,

In the file modules/mod_community_photos/mod_community_photos.php on line 20 is this piece of code:

$latestPhotos = $model->getAllPhotos(null, PHOTOS_USER_TYPE, $default, 10, COMMUNITY_ORDER_BY_DESC,

How can i add featured members or a specific profile type only in PHOTOS_USER_TYPE ? Which parameters i need to or can use here?

Thanks.

8 years 11 months ago
Licenses:

Hi, Tahir.

No, it's not so easy. What you're trying to do is a core hack. If you want to modify the way module works, you should rather customize tmpl/default.php with override.

Please, consider to hire a professional developer: www.jomsocial.com/jomsocial-developers


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
8 years 11 months ago
  • Tahir's Avatar
    Topic Author
  • Tahir
  • Offline
  • Fresh Boarder
  • Posts: 48
  • Thank you received: 2
Licenses:
JomSocial Expired

Which tmpl/default.php?

Can you give me exact path?

8 years 11 months ago
Licenses:

Hi, Tahir.

The path is: ROOT/modules/mod_community_photos/tmpl/default.php


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
8 years 11 months ago
  • Tahir's Avatar
    Topic Author
  • Tahir
  • Offline
  • Fresh Boarder
  • Posts: 48
  • Thank you received: 2
Licenses:
JomSocial Expired

Can i make a override for this file?

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW