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.

All photos component not working well

8 years 10 months ago
Licenses:
JomSocial Active iSEO Expired Socialize Expired

ISSUE SUMMARY:
After the update my component "all photos" is not working properly, is just showing only one photo, and the others is not shown. Is not showing the photos of the users.







STEPS TO REPLICATE:
1 . The link to view all photos www.filminday.com/actividad/photos/display.html
2 I verify my component "all photos" on www.filminday.com/administrator/index.ph...modules&view=modules
3 My configuration is
Display: Photos
From: All
Sort by:
Newest
Limit:20





RESULT
EXPECTED RESULT
BROWSER

Attachments:
8 years 10 months ago
Licenses:

Hi, Jose.

I assign developer to this thread.


- 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 10 months ago
Licenses:

Hi,

in what way do you upgrading your jomsocial. do you uninstall it first (I hope not) ?
I checked at backend, there is not much photos for users.

Regards

8 years 10 months ago
Licenses:
JomSocial Active iSEO Expired Socialize Expired

Well months before, the component module "all photos" were showing all photos (profile photos 'in this case around 70 photos of the users', uploaded photos), now it just showing one photo, even if I upload a photo, it doesn't apper, it just show one.

I tried to activate and desactivate the module but it doesn't show "all photos" including the profile avatars. Feel free to activate and desactivate the module.

8 years 10 months ago
Licenses:

Hi,

please provide me valid credentials information of your site, I need:
FTP
joomla super user
phpmyadmin/cpanel (database access)

I need it for debugging purpose. please edit your put post at this topic and put that credentials information at site info form (private)

Regards

8 years 10 months ago
Licenses:
JomSocial Active iSEO Expired Socialize Expired

Ok I will provide the ftp access, thank you in advance.

8 years 10 months ago
Licenses:

Hi,

I still waiting for:
FTP
joomla super user
phpmyadmin/cpanel (database access)

Regards

8 years 10 months ago
Licenses:
JomSocial Active iSEO Expired Socialize Expired

I just had provided on my last message, here in this publication will be posted too.

8 years 10 months ago
Licenses:

Hi,

could you please upgrade your site to jomsocial 4.2.2 first?
if the issue still exist, please edit:
/modules/mod_community_photos/mod_community_photos.php line 49

$photoType = 'user';
changing it to:
$photoType = null;

Regards

8 years 10 months ago
Licenses:
JomSocial Active iSEO Expired Socialize Expired

Here is the code, but I don't know waht part exactly, there are some many equal text:



Here is my code counting to line 49

1<?php
2
3/**
4
5* @copyright (C) 2015 iJoomla, Inc. - All rights reserved.
6
7* @license GNU General Public License, version 2 ( www.gnu.org/licenses/gpl-2.0.html )
8
9* @author iJoomla.com <This email address is being protected from spambots. You need JavaScript enabled to view it.>
10
11* @url www.jomsocial.com/license-agreement
12
13* The PHP code portions are distributed under the GPL license. If not otherwise stated, all images, manuals, cascading style sheets, and 14included JavaScript *are NOT GPL, and are released under the IJOOMLA Proprietary Use License v1.0
15
16* More info at www.jomsocial.com/license-agreement
17
18*/
19
20defined( '_JEXEC' ) or die( 'Unauthorized Access' );
21
22
23
24 // Check if JomSocial core file exists
25
26 $corefile = JPATH_ROOT . '/components/com_community/libraries/core.php';
27
28
29
30 jimport( 'joomla.filesystem.file' );
31
32 if( !JFile::exists( $corefile ) )
33
34 {
35
36 return;
37
38 }
39
40
41
42 // Include JomSocial's Core file, helpers, settings...
43
44 require_once( $corefile );
45
46 require_once dirname(__FILE__) . '/helper.php';
47
48
49
50 // Add proper stylesheet

JFactory::getLanguage()->isRTL() ? CTemplate::addStylesheet('style.rtl') : CTemplate::addStylesheet('style');



$displayType = $params->get('display_type',1); // 0 = albums, 1 = photos (default)

$limit = $params->get('limit',20);

$photoType = $params->get('category_type',0);

$sortBy = $params->get('filter_by', 0);



if($sortBy){

// 1 = popularity

$sortBy = 'hit';

}



switch($photoType){

case 0:

$photoType = false; // this will grab all the photos

break;

case 1:

$photoType = 'user';

break;

case 2:

$photoType = 'group';

break;

case 3:

$photoType = 'event';

break;

default:

$photoType = 'user';

}



if($displayType){

$model = CFactory::getModel('photos');

//photos

$photos = $model->getAllPhotos(null, $photoType, $limit, array(0,10), COMMUNITY_ORDER_BY_DESC,

$sortBy, true);



if ($photos) {

// Make sure it is all photo object

foreach ($photos as $row) {

$photo = JTable::getInstance('Photo', 'CTable');

$photo->bind($row);

$row = $photo;

}

}



require(JModuleHelper::getLayoutPath('mod_community_photos', 'photos'));



} else {

$model = CFactory::getModel('photos');



$filter = 'special';



if($photoType == 'group' || $photoType == 'event'){

$filter = $photoType;

}



$albums = $model->getAllAlbums(0, $limit, $sortBy, $filter);



if ($albums) {

// shuffle($latestAlbums);

// Make sure it is all albums object

foreach ($albums as $row) {

$album = JTable::getInstance('Album', 'CTable');

$album->bind($row);

$row = $album;

}

}



if (!empty($albums)) {

for ($i = 0; $i < count($albums); $i++) {

$row = $albums[$i];

$row->user = CFactory::getUser($row->creator);

}

}



require(JModuleHelper::getLayoutPath('mod_community_photos', 'albums'));

}

Attachments:
8 years 10 months ago
Licenses:

Hi,

switch($photoType){
    case 0:
        $photoType = false; // this will grab all the photos
        break;
    case 1:
        $photoType = 'user';
        break;
    case 2:
        $photoType = 'group';
        break;
    case 3:
        $photoType = 'event';
        break;
    default:
        $photoType = 'user';
}

changing it to
switch($photoType){
    case 0:
        $photoType = false; // this will grab all the photos
        break;
    case 1:
        $photoType = 'user';
        break;
    case 2:
        $photoType = 'group';
        break;
    case 3:
        $photoType = 'event';
        break;
    default:
        $photoType = null;
}

Regards

The following user(s) said Thank You: José Guillermo
8 years 10 months ago
Licenses:
JomSocial Active iSEO Expired Socialize Expired

Thank you, it worked out, I have a question, why this happened?

8 years 10 months ago
Licenses:

Hi,

seem there is a bug. :)

Regards

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