Jump to content

How to run PHP code globally (code for generating links)


p.rajnisz

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...