By bowden123 on Thursday, 18 September 2014
Posted in Pre-Sales
Replies 33
Likes 0
Views 4.4K
Votes 0
Hello,
I'm working on a site that lists events that are going on during that week. (From Thursday to Thursday) Is there a way to only show site visitors what's going on that week and not give them other options to view a month out etc? Can your software automatically show the next weeks after that current week has expired? How easy is it for end users to add their own events?
You can create a date range menu item and set the date range using 'plain english' (using the php strtotime format function) e.g. "this thursday" to "next thursday"

Also you can use the Timelimit plugin to hide events outside this range completely (this requires a silver membership of the JEvents club)

You can configure JEvents to allow your registered users to create events quite easily.
·
Thursday, 18 September 2014 14:45
·
0 Likes
·
0 Votes
·
0 Comments
·
OK I downloaded the timelimit plugin. What values do I need to enter to have it go from This Thursday to Next Thursday. I put in -7 and 7 and can't get it to work. I also tried several other limits and they wouldn't work for me either. -1 and 7
·
Friday, 19 September 2014 17:53
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

That would mean 7 days in the past and 7 days in future?

Set it to:

-1, +7

Thanks
Tony
·
Friday, 19 September 2014 21:13
·
0 Likes
·
0 Votes
·
0 Comments
·
Is there a way to make the days static so it only shows Thurs - Thurs. We're a weekly events publication and would like events published on Thurs.
·
Friday, 19 September 2014 22:18
·
0 Likes
·
0 Votes
·
0 Comments
·
Sure!! You just need to install the Weekday restrictions addon:

http://www.jevents.net/products-new/add ... strictions

and then choose the days you want to show in the "options" tab of your menu item.
·
Saturday, 20 September 2014 10:01
·
0 Likes
·
0 Votes
·
0 Comments
·
try

"this thursday" and "this thursday + 7 days" in the date range menu item remembering to check the 'strtotime' option. This works fine on my server (I just checked).
·
Saturday, 20 September 2014 10:27
·
0 Likes
·
0 Votes
·
0 Comments
·
can you explain where I can find the "strtotime" option? I put in the vaules "this thursday" and "this thursday +7" and I get an error. see below

500
DateTime::__construct(): Failed to parse time string (this thursday + 7) at position 14 (+): Unexpected character
·
Saturday, 20 September 2014 13:33
·
0 Likes
·
0 Votes
·
0 Comments
·
OK I figured out I had an extra space causing the error but can you tell me where I can find the Strtotime option?
·
Saturday, 20 September 2014 13:46
·
0 Likes
·
0 Votes
·
0 Comments
·
Please see the attached screenshot, ignore the settings.
Top right StrToTime

Thanks
Tony
·
Monday, 22 September 2014 08:10
·
0 Likes
·
0 Votes
·
0 Comments
·
Can you tell me where I can go to remove the text "Date Range View" and the dates in the top header in grey under my header "Special Events" (see attachment) I believe the div is called jev_header. Also can you point me in the direction of the dates shown in red "18 September 2014 - 25 September 2014" as seen on my screen shot? I would like to increase the date size. Thanks
[attachment=0:3t1whviy]<!-- ia0 -->DateRangeView.jpg<!-- ia0 -->[/attachment:3t1whviy]
·
Monday, 22 September 2014 19:52
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

We can alter all this with some CSS.

Can you provide a link for us?

Thanks
Tony
·
Monday, 22 September 2014 22:00
·
0 Likes
·
0 Votes
·
0 Comments
·
·
Monday, 22 September 2014 22:18
·
0 Likes
·
0 Votes
·
0 Comments
·
Add these to your custom JEvents CSS file.

This will hide the 'Date Range View'
.jev_header > h2 {
display: none;
}


You can change the date font size and box size using something like this

.jev_header2 .currentmonth {
font-size: 120%;
width: 100% !important;
}
.jev_header2 .previousmonth, .jev_header2 .nextmonth {
display: none;
·
Tuesday, 23 September 2014 08:28
·
0 Likes
·
0 Votes
·
0 Comments
·
Question.. On reoccurring events the date that is always shown is the first day of the event. For example we have different art exhibits listed. See Attachment [attachment=0:3r1ptx06]<!-- ia0 -->daterange.jpg<!-- ia0 -->[/attachment:3r1ptx06] The first exhibit opened Oct 16 and goes until the Feb 2. How can I have the day that is shown be the current date (not the start date) for events that take place over an extended period? SO on my screen shot all events would show Dec 15th.
·
Monday, 15 December 2014 21:46
·
0 Likes
·
0 Votes
·
0 Comments
·
Is this a recurring event or a multi-day event?
·
Tuesday, 16 December 2014 11:50
·
0 Likes
·
0 Votes
·
0 Comments
·
Multi-day event
·
Tuesday, 16 December 2014 13:24
·
0 Likes
·
0 Votes
·
0 Comments
·
In which case you can create a template override.

Copy the file components/com_jevents/views/iconic/helpers/iconicdateicon.php to templates/YOURTEMPLATE/html/com_jevents/helpers/iconicdateicon.php and edit the copied file with this content

<?php 
defined('_JEXEC') or die('Restricted access');

function Iconicdateicon($view,$lines, $title, $href, $class="", $event=false, $Itemid=false){
$params = JComponentHelper::getParams(JEV_COM_COMPONENT);
if ($event && $href && $params->get('iconlinkstoevent',0)){
if (!$Itemid){
$Itemid = JRequest::getInt("Itemid");
}
$href = $event->viewDetailLink($event->yup(),$event->mup(),$event->dup(), true, $Itemid);
}
list($year,$month,$day) = JEVHelper::getYMD();
if ($event->_multiday && !($event->yup()==$year && $event->mup()==$month && $event->dup()==$day) && count($lines)==2) {
$datestp = JevDate::mktime(0, 0, 0, $month, $day, $year);
$lines = explode(":", JEV_CommonFunctions::jev_strftime("%d:%b", $datestp));
}
if (count($lines)==2) list($line1,$line2) = $lines;
else {
$line2 = $lines[0];
$line1=false;
}
if ($href!=""){
if ($line1){
return '<a class="jevdateicon '.$class.'" href="' . $href . '" title="' . $title . '"><span class="jevdateicon1">' . $line1.'</span><span class="jevdateicon2">'.$line2.'</span></a>'."\n";
}
else {
return '<a class="jevdateicon '.$class.'" href="' . $href . '" title="' . $title . '"><span class="jevdateicon2">' . $line2.'</span></a>'."\n";
}
}
else {
if ($line2){
return '<span class="jevdateicon '.$class.'" ><span class="jevdateicon1">' . $line1.'</span><span class="jevdateicon2">'.$line2.'</span></span>'."\n";
}
else {
return '<span class="jevdateicon '.$class.'" ><span class="jevdateicon2">' . $line2.'</span></span>'."\n";
}
}
}
·
Tuesday, 16 December 2014 14:04
·
0 Likes
·
0 Votes
·
0 Comments
·
I ran into an issue. When I went to templates/Yourtemplate (template that I'm using) /html there is only a file called modules.php in that folder and that's it.
·
Tuesday, 16 December 2014 14:12
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

Correct. So you create the missing folders/file.

Thanks
Tony
·
Tuesday, 16 December 2014 20:38
·
0 Likes
·
0 Votes
·
0 Comments
·
Perfect! That worked thanks!
·
Tuesday, 16 December 2014 21:12
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post