This is your internal IP-Adress. I need your external IP-Address... Goto checkmyip.com/ ;-)
Hi, Rolf.
Ah, you're right ^^ my IP is 89.229.79.120...
But in other topic you provided working FTP credentials... just copy them to your first post credential box.
EDIT:
But check it there are proper chown ;)
done
Hi, Rolf.
I'll need a bit of time to take a deeper look at it... to take a dive ;)
Now, we have a lot of forum requests.
So I ask your patience. I mark this thread as Pending Support so it is on my TODO list... I'll be back ASAP.
Take your time... This is not urgent... Fix of bugs has higher prio ;-)
regards and enjoy the "dive" :-)
Rolf
Hi, Rolf.
Upgrade to latest version of JomSocial removed my fix... so I had to restore it.
Now module: Nächste Events (TEST) shows events from group Biologie (18).
There is only one Event: SUSV-Kurs Süsswasserbiologie
So module shows correct:
prntscr.com/3ym4s2
Events from private groups will not be show due to privacy restrictions.
So no Events from group Vereinsevents (17) as long it's private.
Module: Nächste Events (TEST) (2) shows events from group Donnerstags-Tauchen (17).
There are 19 Events and module displays 5 most recent.
So module shows correct:
prntscr.com/3ym64y
Module with fix seems to work as expected. So I mark this thread as Resolved.
But you need to remember to apply my fix to modules/mod_community_events each time after upgrade of JomSocial.
I've sent my proposition of changes to PO but it's still not implemented... you can post about it on Community if you find this feature useful ;)
Here:
www.jomsocial.com/community/groups/viewg...stions-for-the-staff
Or even on main stream ;)
Hi Mike
Thank you for the infos... ;-)
But i need the module for that one private Group "Vereinsmitglieder". These are events only for members of our club. And there is no other option in JS to controll if a user is member of this group or not. The group must be a private group for that, am i right?
So it would be very helpfull if TRIPLE-M (Magnificent Magic Mike) made this possible. :-)
hopefull regards
Rolf
Hi, Rolf.
:D
Well, this can be done but it will cause security issues. You're right saying that if you want to have group for members only it mus be private. ALL content in private groups is PRIVATE so will not be displayed anywhere... this can by bypassed by DIRECT fetching data from DB. But as I said it will create security issues as content of this module will be displayed for ALL users... not sure if clicking links will allow to see Event content...
But if this is not problem for you I can set it like that.. just say that you agree ;)
Hi Mike :-)
I understand what you say... The risk is mine ;-)
On my site, all users of the website could see those events in the "private event"-module, but only clubmembers are allowed to attend.
If it's possible to show the event as text for non-clubmembers and as link only for clubmembers this would be great. If not, what happens if a non-clubmember opens the event? Can he attend? Or is there a possibility to block attending for non-clubmembers?
regards
Rolf
Hi, Rolf.
Please, give me a bit time... I'll try to do it till Friday ;)
Take all the time you need :-)
Hi, Rolf.
I just want to tell that I'm nearly there :)
Just need to figure out why loop loads the same event twice.
I'll share with solution soon.
Hi, Rolf.
Ok, I did it! :D
I already applied on your site and it works.
Now if user that is not a group member click on links in module - should see notice that group is private ;) So access rights and privacy are preserved.
Here is code:
<ul class="cThumbDetails cResetList">
<?php
$db = JFactory::getDbo();
$query = $db->getQuery(true);
$query->select('*');
$query->from($db->quoteName('mysuffix_community_events'));
$query->where($db->quoteName('contentid')." = 12");
$query->order($db->quoteName('startdate') . ' DESC');
$db->setQuery($query);
$eventrowglobal = $db->loadRowList();
//print_r($eventrow);
?>
<?php foreach ($eventrowglobal as $eventrow) { ?>
<?php
$todais = strtotime(date('d-m-Y H:i'));
$eventstarts = strtotime(JHtml::date($eventrow[10] , 'd-m-Y H:i'));
if($eventstarts > $todais) {
?>
<li>
<b class="cThumb-Calendar cFloat-L">
<b><?php echo JHtml::date($eventrow[10] , 'M'); ?></b>
<b><?php echo JHtml::date($eventrow[10] , 'd'); ?></b>
</b>
<div class="cThumb-Detail">
<a href="<?php echo CRoute::_('index.php?option=com_community&view=events&task=viewevent&eventid=' . $eventrow[0] . '&groupid=' . $eventrow[3] ); ?>" class="cThumb-Title"><?php echo $eventrow[5]; ?></a>
<div class="cThumb-Location">
<?php echo CStringHelper::escape($eventrow[6]); ?>
</div>
<div class="cThumb-Members small">
<a href="<?php echo CRoute::_('index.php?option=com_community&view=events&task=viewguest&eventid=' . $eventrow[0] . '&type=1'); ?>">
<?php echo JText::sprintf((!CStringHelper::isSingular($eventrow[17])) ? 'COM_COMMUNITY_EVENTS_ATTANDEE_COUNT_MANY' : 'COM_COMMUNITY_EVENTS_ATTANDEE_COUNT', $eventrow[17]); ?>
</a>
</div>
</div>
</li>
<?php } ?>
<?php } ?>
</ul>
Hell, YEAAAAHHHH!!!!! Triple-M has made it!!! :-)
Thank you very much.... You're my hero!!! :-)
But there are 2 small corrections needed ;-)
1. The module shows also past events now.
2. The sort of the events is not correct now.
I'm sure you can fix this! ;-) Then this would be a perfect solution for me (and i think for many others) !!!
cheers
Rolf