Thursday, 18 September 2014
  33 Replies
  4.4K Visits
0
Votes
Undo
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?
Tuesday, 16 December 2014 21:19
·
#132077
0
Votes
Undo
Great to hear!

Thanks
Tony

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

Wednesday, 17 December 2014 01:09
·
#132078
0
Votes
Undo
OK.. After I added a new event I can see that it's not working exactly like I would like it. I added an event that's runs Dec 18-20th but now when I go to the website it defaults it to todays date (Dec 16th). How can I adjust this?
Wednesday, 17 December 2014 14:55
·
#132079
0
Votes
Undo
It helps if I'm awake when I send a message
    <?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 && $event->ydn()<=$year && $event->mdn()<=$month && $event->dd()<=$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";
}
}
}

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!

Wednesday, 17 December 2014 15:12
·
#132080
0
Votes
Undo
would I still change the code on the iconicdateicon.php in the following folder? templates/YOURTEMPLATE/html/com_jevents/helpers/iconicdateicon.php

If so I replaced the entire code in iconicdateicon.php with the text you just provided and it strips my website design and most events. see attachment
Wednesday, 17 December 2014 16:14
·
#132081
0
Votes
Undo
        <?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 && $event->ydn()<=$year && $event->mdn()<=$month && $event->ddn()<=$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";
}
}
}

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!

Wednesday, 17 December 2014 16:22
·
#132082
0
Votes
Undo
OK that worked for my multiple day event thats coming up in a few days. (Dec 18-20th) However its still showing the first day of the exhibit opening and not the current date. For example the exhibit runs Oct 16th - Feb 2nd. I would like the date to be shown be todays date for the events but currently it shows Oct 16th. Is there a way to change that? Just don't want people to get confused when the date is shown in the past when its actually still going on.
Wednesday, 17 December 2014 16:32
·
#132083
0
Votes
Undo
More haste less speed !!

I think this is finally what you need
            <?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 && $event->ydn()>=$year && $event->mdn()>=$month && $event->ddn()>=$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";
}
}
}

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!

Wednesday, 17 December 2014 16:43
·
#132084
0
Votes
Undo
Still doesn't seem like it's working. Here's a screenshot of the exhibits[attachment=0:3fjkw3gi]<!-- ia0 -->Screen shot 2014-12-17 at 10.42.47 AM.png<!-- ia0 -->[/attachment:3fjkw3gi]
Thursday, 18 December 2014 09:54
·
#132085
0
Votes
Undo
Can you send me login details via PM so I can do quick diagnostic for you?

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!

Saturday, 20 December 2014 08:33
·
#132086
0
Votes
Undo
solved with this code
 <?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().$event->mup().$event->dup()<=$year.$month.$day && $event->ydn().$event->mdn().$event->ddn()>=$year.$month.$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";
}
}
}

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!

Sunday, 21 December 2014 14:21
·
#132087
0
Votes
Undo
Looks great! Thank you!
Tuesday, 15 December 2015 15:51
·
#132088
0
Votes
Undo
Hello
Previously my boss wanted me to remove some of the navigation on the top of my calendar list. Now he wants it added back in. I was able to get some of the header to come up but I can't get the "next", "previous" "calendar".. etc. to appear like the original had. I'm working on a demo site. The URL is https://www.weeklybuzzsf.com/demo/index ... stevents/-

The code that you helped me enter previously is below. Could this be what is blocking the navigation to appear? I did try to change the settings within the menu from none to full navigation and that didn't work for me. Thanks for your assistance in advance.


<?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().$event->mup().$event->dup()<=$year.$month.$day && $event->ydn().$event->mdn().$event->ddn()>=$year.$month.$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, 15 December 2015 19:35
·
#132089
0
Votes
Undo
Hello,

That code is just the icon.

In your menu item it looks like you have set display navigation icons to hide altogether Change this to Yes.

Many thanks
Tony

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

  • Page :
  • 1
  • 2
There are no replies made for this post yet.

Members Area

Show your support

Unlike many Joomla calendars we do not charge to download JEvents - please show your support for this project by becoming a member of the JEvents Club Club members get access to early releases, exclusive member support forums, and Silver and Gold members can use many exciting JEvents addons

Your membership will ensure that JEvents continues to be the best events calendar for Joomla.