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.

No Images in the Events Module

9 years 7 months ago
Licenses:
JomSocial Expired

Hi, i have the Module for Events on my Site and i dont see the images from event in this. Before last update i have the images there. What can be the problem?

THX

9 years 7 months ago
Licenses:

HI, Ronny Wunderlich.

Current events module doesn't display events images but a kind of calendar card with title and other details.


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

Hi, but in last versions was the image from Event or not? And when it was why not in the current version?

Is it possible in any way to display it? I like it more than the calendar card.

9 years 7 months ago
Licenses:

Hi, Ronny Wunderlich.

It could be done but after customizing module.
it was designers decision to change it look...
I'll mark your thread as Pending Support and in my spare time I'll prepare a customization. But be aware that it will take a while ;0
I'll update you with a solution.


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

Thanx for help!

9 years 6 months ago
Licenses:

Hi.

Copy this file:

ROOT/modules/mod_community_events/tmpl/default.php

to:

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

Edit file and replace this (starting from line 12 up to 38):

<div>
    <div class="app-box-content">
        <ul class="cThumbDetails cResetList">
            <?php foreach ($events as $event) { ?>
                <li <?php if (!empty($event->summary)): ?>class="jomNameTips" title="<?php echo CStringHelper::escape($event->summary); ?>" <?php endif; ?>>
                    <b class="cThumb-Calendar cFloat-L">
                        <b><?php echo CEventHelper::formatStartDate($event, JText::_('M')); ?></b>
                        <b><?php echo CEventHelper::formatStartDate($event, JText::_('d')); ?></b>
                    </b>
                    <div class="cThumb-Detail">
                        <a href="<?php echo $event->getLink(); ?>" class="cThumb-Title"><?php echo CStringHelper::escape($event->title); ?></a>
                        <div class="cThumb-Location">
                            <?php echo CStringHelper::escape($event->location); ?>
                        </div>
                        <div class="cThumb-Members small">
                            <a href="<?php echo $event->getGuestLink(COMMUNITY_EVENT_STATUS_ATTEND); ?>">
                                <?php echo JText::sprintf((!CStringHelper::isSingular($event->confirmedcount)) ? 'COM_COMMUNITY_EVENTS_ATTANDEE_COUNT_MANY' : 'COM_COMMUNITY_EVENTS_ATTANDEE_COUNT', $event->confirmedcount); ?>
                            </a>
                        </div>
                    </div>
                </li>
            <?php } ?>
        </ul>
    </div>
    <div class="app-box-footer">
        <a href="<?php echo CRoute::_('index.php?option=com_community&view=events'); ?>"><?php echo JText::_('COM_COMMUNITY_FRONTPAGE_VIEW_ALL_EVENTS'); ?></a>
    </div>
</div>

with this:
<div>
    <div class="app-box-content">
        <ul class="cThumbDetails cResetList">
            <?php foreach ($events as $event) { ?>
                <li <?php if (!empty($event->summary)): ?>class="jomNameTips" title="<?php echo CStringHelper::escape($event->summary); ?>" <?php endif; ?>>
                	<?php if($event->thumb) { ?>
                		<a href="<?php echo $event->getLink(); ?>" title="<?php echo CStringHelper::escape($event->title); ?>" class="cThumb-Calendar-image">
                			<img src="<?php echo $event->thumb; ?>" alt="<?php echo CStringHelper::escape($event->title); ?>">
                		</a>
                	<?php } else { ?>
                    <b class="cThumb-Calendar cFloat-L">
                        <b><?php echo CEventHelper::formatStartDate($event, JText::_('M')); ?></b>
                        <b><?php echo CEventHelper::formatStartDate($event, JText::_('d')); ?></b>
                    </b>
                  <?php } ?>
                  <?php if($event->thumb) {
                  		$details_class = 'cThumb-Detail-image';
                  		$event_date_start =  '(' . CEventHelper::formatStartDate($event, JText::_('d')) . '.' .CEventHelper::formatStartDate($event, JText::_('M')) . ')';
                  	} else {
                  		$details_class = 'cThumb-Detail';
                  		$event_date_start = '';
                  	}
                  ?>
                    <div class="<?php echo $details_class; ?>">
                        <a href="<?php echo $event->getLink(); ?>" class="cThumb-Title"><?php echo CStringHelper::escape($event->title) . ' ' . $event_date_start; ?></a>
                        <div class="cThumb-Location">
                            <?php echo CStringHelper::escape($event->location); ?>
                        </div>
                        <div class="cThumb-Members small">
                            <a href="<?php echo $event->getGuestLink(COMMUNITY_EVENT_STATUS_ATTEND); ?>">
                                <?php echo JText::sprintf((!CStringHelper::isSingular($event->confirmedcount)) ? 'COM_COMMUNITY_EVENTS_ATTANDEE_COUNT_MANY' : 'COM_COMMUNITY_EVENTS_ATTANDEE_COUNT', $event->confirmedcount); ?>
                            </a>
                        </div>
                    </div>
                </li>
            <?php } ?>
        </ul>
    </div>
    <div class="app-box-footer">
        <a href="<?php echo CRoute::_('index.php?option=com_community&view=events'); ?>"><?php echo JText::_('COM_COMMUNITY_FRONTPAGE_VIEW_ALL_EVENTS'); ?></a>
    </div>
</div>

Then you need to add this css code to your current template main css file:
.cThumb-Calendar-image {
	float:left !important;
	width: 64px;
}

.cThumb-Detail-image {
	margin: 0 0 0 75px;
}

Snippet will load event thumb from database and display it next to event details. If event has no thumbnail, then default look will be loaded.
If thumbnail is loaded then start date of event is displayed in () in title.

I attached demo file (without css styling).

In next major release of JomSocial will be introduced alternative layout for modules so it will be possible to have as many layout as you need, each different and still within same module :)


- 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
Attachments:
The following user(s) said Thank You: onimaro, Danny, Yian
9 years 5 months ago
Licenses:
JomSocial Expired

Its works great! THX a lot!

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