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.

Eventmodule only for special group

10 years 10 months ago
Licenses:
JomSocial Active

This is your internal IP-Adress. I need your external IP-Address... Goto checkmyip.com/ ;-)

10 years 10 months ago
Licenses:

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 ;)


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

done

10 years 10 months ago
Licenses:

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.


- 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: Rolf Würgler
10 years 10 months ago
Licenses:
JomSocial Active

Take your time... This is not urgent... Fix of bugs has higher prio ;-)

regards and enjoy the "dive" :-)

Rolf

10 years 10 months ago
Licenses:

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 ;)


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

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

10 years 10 months ago
Licenses:

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 ;)


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

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

10 years 10 months ago
Licenses:

Hi, Rolf.

Please, give me a bit time... I'll try to do it till Friday ;)


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

Take all the time you need :-)

10 years 9 months ago
Licenses:

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.


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

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>

I created request to DB for data and altered original loop.

$query->from($db->quoteName('mysuffix_community_events')); - change to your db table suffix
$query->where($db->quoteName('contentid')." = 12"); - change 12 to your group id

How to use the code?

Just copy above code and replace with it original code within initial <ul> (line 14) and closing </ul> (around line 47). Also note that it's great to implement my previous hack that will allow you to use as many layouts/templates for Event modules... so you could have as many modules with Events from different groups... even one module for each group :D

It works 100% :D

EDIT (9-07-2014):
Corrected with sorting by date, starting from most recent Events.

EDIT (9-07-2014):
Corrected with showing only future Events. Will NOT show ongoing Events!


- 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: Rolf Würgler
10 years 9 months ago
Licenses:
JomSocial Active

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

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