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.

Selecting some photo album and not all

10 years 3 months ago
  • P's Avatar
    Topic Author
  • P
  • Offline
  • Fresh Boarder
  • Posts: 1
  • Thank you received: 4
Licenses:
JomSocial Expired

Is it possible to select only certina photo album and not to expose front-page side (in group view)? Is there some module to do this
Thanks

10 years 3 months ago
Licenses:

Hi.

I'm not sure what you request here...
You need to display in module photos from certain album only?
And you want to display that module only on certain group page?
Is that right?


- 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
10 years 3 months ago
  • P's Avatar
    Topic Author
  • P
  • Offline
  • Fresh Boarder
  • Posts: 1
  • Thank you received: 4
Licenses:
JomSocial Expired

Yes. Perfect!

10 years 3 months ago
Licenses:

Hi.

"Yes" you mean both? :)


- 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
10 years 3 months ago
  • P's Avatar
    Topic Author
  • P
  • Offline
  • Fresh Boarder
  • Posts: 1
  • Thank you received: 4
Licenses:
JomSocial Expired

Yes both!

10 years 3 months ago
Licenses:

Hi.

Ok, then we gave here TWO requests:

1. Display module on specific group page.
Install this superb extension:
extensions.joomla.org/extensions/extensi...anced-module-manager

Now on modules will have additional tab called "Assignments". Among many settings there you'll find "URL" option. Click on "Include" and paste URL (without initial http;//your-domain.com).

This will allow you to assign module to certain group page.

2. Display photos from certain album only:

Copy this file:

ROOT/modules/mod_community_photos/tmpl/default.php

to:

ROOT/templates/your-template/html/mod_community_photos (if you don't have "html" or "mod_community_photos" folders, feel free to create them)

Edit file and replace this (line 25-29):

<div class="js-col4 bottom-gap">
				<a href="<?php echo CRoute::_('index.php?option=com_community&view=photos&task=photo&albumid=' . $row->albumid .  '&userid=' . $row->user->id . '&photoid=' . $row->id);?>">
				<img class="jomNameTips" title="<?php echo JText::sprintf('COM_COMMUNITY_PHOTOS_UPLOADED_BY' , $row->user->getDisplayName() );?>" src="<?php echo $row->getThumbURI(); ?>" alt="<?php echo CStringHelper::escape( $row->user->getDisplayName() );?>" />
				</a>
			</div>

With this:
<?php if($row->albumid == 51) { ?>
			<div class="js-col4 bottom-gap">
				<a href="<?php echo CRoute::_('index.php?option=com_community&view=photos&task=photo&albumid=' . $row->albumid .  '&userid=' . $row->user->id . '&photoid=' . $row->id);?>">
				<img class="jomNameTips" title="<?php echo JText::sprintf('COM_COMMUNITY_PHOTOS_UPLOADED_BY' , $row->user->getDisplayName() );?>" src="<?php echo $row->getThumbURI(); ?>" alt="<?php echo CStringHelper::escape( $row->user->getDisplayName() );?>" />
				</a>
			</div>
			<?php } ?>

This line is most important here:
<?php if($row->albumid == 51) { ?>

Change number 51 to album ID you want to display.

And remember - module doesn't show photos from group albums (!) and this is "LATEST" photos module so older photos may be not displayed.

If you want to use this module for multiple times, then you'll need to add alternative layout feature to the module (unfortunately it will be a core file hack so you'll need to have backup copy of customized files.

mod_community_photos.php (line 44)
+ replace: require( JModuleHelper::getLayoutPath('mod_community_photos') );
+ with: require( JModuleHelper::getLayoutPath('mod_community_photos', $params->get('layout', 'default')) );
mod_community_photos.xml (line 25)
+ add:
<fieldset name="advanced">
<field name="layout" type="modulelayout" label="JFIELD_ALT_LAYOUT_LABEL" description="JFIELD_ALT_MODULE_LAYOUT_DESC" />
</fieldset>

This will create additional tab in module (when in edit mode) where you could choose alternative layout file - the one you copied (ROOT/modules/mod_community_photos/tmpl/default.php) to ROOT/templates/your-template/html/mod_community_photos .

Just rename file from default.php album-18.php or something similar and in Advaced tab choose it from dropdown list.

Please, read this tutorial: www.ostraining.com/blog/joomla/alternative-layouts-for-modules/


- 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
The following user(s) said Thank You: P. Irion
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