SimR
-
Posts
3 -
Joined
-
Last visited
Content Type
Profiles
Forums
phpVMS Resources
Downloads
Posts posted by SimR
-
-
11 minutes ago, ProAvia said:
Post line 17 from lib/skins/iCrewLITE/popupnews/popupnews_list.php
Hi ProAvia
<li><?php
foreach($news as $item) {
}
$hashtag_string = str_replace(['!', '\\', '/', '*', ' '], '',$item->subject); // Line 17 in the file
$lowercase = strtolower($hashtag_string);
echo '<a href="'.SITE_URL.'/index.php/PopUpNews/popupnewsitem/'.$item->id.'"><font color="white">#'.$lowercase.'</font></a>';
$posted_month = date(m, $item->postdate);
$current_month = date('m');
if($posted_month == $current_month)
{
echo '<span class="pull-right">
<i class="material-icons">trending_up</i>
</span>';
}
else
{
'';
}
?></li>this is the code and I posted the function and highlighted the line 17.
it works fine locally but not live.
-
Hi,
Im new here so if this is the wrong place I apologise in advance, I just tried to install the popupnews plugin for my va via the plugin manager for the iCrewLite skin and followed the installation manual and the the plugin works locally but when deploying it live I get this problem showing,
Parse error: syntax error, unexpected '[', expecting ')' in lib/skins/iCrewLITE/popupnews/popupnews_list.php on line 17
and it completely destroys the dashboard but when I disable it the styling comes back as intended.
any ideas what I have to change to make it work?
Thank you in advance.
Have a nice evening.
issues pop up news for iCrewLite
in General & Support
Posted
Hi,
thank you for the suggestion but it didn't work for me but I changed skin to suit my va's styling a bit more.
have a nice weekend and I appreciate your time