Open a file when click on article

  • Posted by TemplatePlazza (5260) Offline
have you changed all <a> tags? I think there a multiple <a> tags depends on condition
2 years 2 months ago #13 by TemplatePlazza
The topic has been marked as resolved.
I believe I have replaced all occurrences
I don't think I can attach a PHP file to show you the code
2 years 2 months ago #14 by Luca
The topic has been marked as resolved.
  • Posted by TemplatePlazza (5260) Offline
Hmm can you try to change
<?php if($item->urls) { ?>target ="_blank" <?php } ?>
to
<?php if($item->urls !== "") { ?>target ="_blank" <?php } ?>
2 years 2 months ago #15 by TemplatePlazza
The topic has been marked as resolved.
the operation has not changed.
it seems that inside the loop foreach the "$item-> urls" object is always set
2 years 2 months ago #16 by Luca
The topic has been marked as resolved.
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
2 years 2 months ago #17 by Luca
The topic has been marked as resolved.
  • Posted by TemplatePlazza (5260) Offline
Ah ok Luca. I was about to explore it deeper, but you found the solution faster ;)
2 years 2 months ago #18 by TemplatePlazza
The topic has been marked as resolved.
Powered by Kunena Forum