Rate this article

Show MX Calendar Detail links only if logged in

Rating: 0.0/5 (0 votes cast)

Edit the following file

includes\cal\CAL_mwCell.inc.php

Change line 40 to suit your needs.

<div><a href="<?php echo  CAL_XHTML_Url($data['event'][$i]['link']);?>" title="<?php echo $data['event'][$i]['desc'];?>" <?php if ($this->calendar->getViewEventTarget()!='') { ?>target="<?php echo $this->calendar->getViewEventTarget(); ?>" <?php } ?>><?php echo $data['event'][$i]['title'];?></a></div>

The red bit are the custom hack

<div>            <?php             // Show link if logged in            if ($_SESSION['kt_login_id'] != ''){;?>            <a href="<?php echo  CAL_XHTML_Url($data['event'][$i]['link']);?>" title="<?php echo $data['event'][$i]['desc'];?>" <?php if ($this->calendar->getViewEventTarget()!='') { ?>target="<?php echo $this->calendar->getViewEventTarget(); ?>" <?php } ?> rel="nofollow"><?php echo $data['event'][$i]['title'];?></a>            <?php } else {                 echo $data['event'][$i]['desc'];                }            // End Show link if logged in                ?>            </div>

You will also want to do the same for the Day view file

CAL_ViewDay.class.php

Line: 171

Adobe

ionCube Online PHP Encoder
Free PositiveSSL and WhoisGuard with Every Domain Purchase
XMS Systems

Although we try to ensure all the articles submitted are valid it is your responsibility to make sure you have backups before you use these suggestions on your pc or websites.
We do not take any responsibility for any data-loss, loss in functionality or any problem that might arise in what-ever way or form by making use of the information on this site.

"Friends of Interakt" has no connection to the Adobe Interakt Company