Open a file when click on article

  • Posted by TemplatePlazza (4849) Offline
have you changed all <a> tags? I think there a multiple <a> tags depends on condition
4 months 2 days ago #13 by TemplatePlazza
The topic has been locked.
I believe I have replaced all occurrences
I don't think I can attach a PHP file to show you the code
4 months 2 days ago #14 by Luca
The topic has been locked.
  • Posted by TemplatePlazza (4849) Offline
Hmm can you try to change
<?php if($item->urls) { ?>target ="_blank" <?php } ?>
to
<?php if($item->urls !== "") { ?>target ="_blank" <?php } ?>
4 months 2 days ago #15 by TemplatePlazza
The topic has been locked.
the operation has not changed.
it seems that inside the loop foreach the "$item-> urls" object is always set
4 months 2 days ago #16 by Luca
The topic has been locked.
Hello,
the variable "$item->urls" is never empty, if no URL is specified, the variable contains the following sequence

{"scream": "", "urlatext": "", "targeta": "", "urlb": "", "urlbtext": "", "targetb": "", "urlc": "", "urlctext": "", "targetc": ""}

I solved it by using "$urls->urla" instead of "$item->urls"

thank you so much for all your patience and assistance
4 months 2 days ago #17 by Luca
The topic has been locked.
  • Posted by TemplatePlazza (4849) Offline
Ah ok Luca. I was about to explore it deeper, but you found the solution faster ;)
4 months 1 day ago #18 by TemplatePlazza
The topic has been locked.
Powered by Kunena Forum