By Alexandre Cayer on Sunday, 09 November 2014
Posted in Technical Issues
Replies 11
Likes 0
Views 505
Votes 0
Hey Mark, Jason,

In 1.2 I had a modification that got erased with update and that I didn't save heuuu yeah i know ...

I wanted the es-story to show only in groups and not in profile and I did it with and if equals a constant like

if (view == profile) {
display theme/profile...

else if (view == group) {

I think it was with one of the constant you had enable back then... I don't know if it is still the same thing. Anyway, any other implemented way so I can know what view am I in would be welcome.

Thanks

Alex

EDIT: getCluster == 3 or getClusterType == 'group' ?!?!
Hi,

There is a bug in the code of:

/components/com_easysocial/controllers/groups.php line 1197, in which it missed out a check to check for superadmin. Change the line to:

if( $group->isMember() || $this->my->isSiteAdmin() )
·
Tuesday, 11 November 2014 11:42
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Alex,

I am sorry for the delay of this reply as now is a weekend for us here in our country

I wanted the es-story to show only in groups and not in profile ..


Do you mean you only what to display the story update form when in groups page? If yes, then you can edit this theme file 'JOOMLA/components/com_easysocial/themes/wireframe/stream/default.php' and look for below code at line 31:


<?php if (!empty($story)) { echo $story->html(); } ?>


and replace the above with:


<?php if (!empty($story) && $view != 'profile') { echo $story->html(); } ?>


Let me know if the above work for you or not.

Hope this help and have a nice day!
Sam
·
Sunday, 09 November 2014 14:50
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Sam,

Thanks, this is the good file and good line. However the code itself doesn't work. I wanted: <?php if (!empty($story) && $view == 'group') { echo $story->html(); } ?>

I have tried GROUP and GROUPS and both doesn't work... however, this disable in DASHBOARD and in PROFILE.

Either i didn't get the view correct or I think this will be through another variable. ?

An idea ?

Alex
·
Monday, 10 November 2014 12:24
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Alex,

I am sorry for the delay of this reply.

Ah, please try with 'groups' ( all lower case ) and let me know if this work for you or not.


<?php if (!empty($story) && $view == 'groups') { echo $story->html(); } ?>


By the way, if you do the above, that will disable the story update form in your dashboard page. Do you want to disable the story form in your dashboard page as well?

Please advise.

Hope this help and have a nice day!
Sam
·
Monday, 10 November 2014 12:38
·
0 Likes
·
0 Votes
·
0 Comments
·
Oh Sam,

I wasn't that dumb, in fact I found that it's a bug.

My previous code with view as GROUPS work only IF settings-group-group default display: timeline

When the setting is set to INFO, the ES-STORY doesn't load at all when you switch the INFO back to TIMELINE. The AJAX call doesn't load the ES-STORY by itself!!!

Can you reproduce on your own ?
Alex
·
Monday, 10 November 2014 12:40
·
0 Likes
·
0 Votes
·
0 Comments
·
The BUG is the same when you switch to INFO and then back to TIMELINE... there ... AJAX TIMELINE just doesn't work with ES-STORY
·
Monday, 10 November 2014 12:45
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Sam,

Just saw your comments. The <?php if (!empty($story) && $view == 'groups') { echo $story->html(); } ?>

Seems to have disable both dashboard and profile.
·
Monday, 10 November 2014 12:49
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Alex,


When the setting is set to INFO, the ES-STORY doesn't load at all when you switch the INFO back to TIMELINE. The AJAX call doesn't load the ES-STORY by itself!!!

The BUG is the same when you switch to INFO and then back to TIMELINE... there ... AJAX TIMELINE just doesn't work with ES-STORY


Regarding the above, I cannot replicate in my local instance. Please see http://screen.stackideas.com/2014-11-10_1258.swf

The code worked correctly. http://screen.stackideas.com/2014-11-10_1301.png

If you want, you can pass me your Joomla backend access and your FTP account and I will take a look at your issue again.
Please advise.
Sam
·
Monday, 10 November 2014 13:02
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Sam,

I don't know if this has something to do with a bug Chang fix couple minutes earlier... but I humm i'm not sure.

Here are the info.

Alex
·
Monday, 10 November 2014 13:12
·
0 Likes
·
0 Votes
·
0 Comments
·
Seems to have finally got it all
good work.
I have updated but hope to see in next version :P
·
Tuesday, 11 November 2014 11:53
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

As long as it is a bug on our part, it will be immediately committed into our repository (before we reply even), ready for the next version.
·
Tuesday, 11 November 2014 11:56
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post