Open a file when click on article

  • Posted by TemplatePlazza (4837) Offline
have you changed all <a> tags? I think there a multiple <a> tags depends on condition
3 months 3 weeks 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
3 months 3 weeks ago #14 by Luca
The topic has been locked.
  • Posted by TemplatePlazza (4837) Offline
Hmm can you try to change
<?php if($item->urls) { ?>target ="_blank" <?php } ?>
to
<?php if($item->urls !== "") { ?>target ="_blank" <?php } ?>
3 months 3 weeks 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
3 months 3 weeks 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
3 months 3 weeks ago #17 by Luca
The topic has been locked.
  • Posted by TemplatePlazza (4837) Offline
Ah ok Luca. I was about to explore it deeper, but you found the solution faster ;)
3 months 3 weeks ago #18 by TemplatePlazza
The topic has been locked.
Powered by Kunena Forum