Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
p.rajnisz Posted November 9, 2016 Posted November 9, 2016 Hi, O version 3 I had PHP code which was generating links globaly on every page on forum, the code is: <php> include_once("statlinkxxxxxxxxxxxx.php"); $toShow = statlink_show_links("", " | ", "", ""); </php> {$toShow} Now after upgrade to 4.1 I can't display those links at all, I was trying difrrent methos and none was correct. Is there any chance to run this php globaly in sidebar or footer or I just have to downgrade forum version? Thank You
opentype Posted November 9, 2016 Posted November 9, 2016 PHP is run like this in templates 4.x. {{ single php statement here ;}} Note, that you can’t wrap code blocks like this. It’s single statements only.
p.rajnisz Posted November 9, 2016 Author Posted November 9, 2016 Hi, I have also try to put this PHP to file.php and simply just run this file from template by: {insert="file.php"} but if I do that the script does not works properly, I think the code cant work like this because is has to know each time on page of forum links are displayed.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.