Uutiset:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu
Advertisement:

Stats Script

Aloittaja netroact, tammikuu 27, 2008, 10:48:20 IP

« edellinen - seuraava »

netroact

I have a small little Perl stats script I run on all my websites. I use SSI. Is it possible for me to use that within the forum? I thought I could probably run it from the ad management content box, but it didn't work. I tried this:
<img src="http://somesite.com/cgi-bin/somescript.pl">

I really want to use this Perl script, but if it can't be done, I could code it in PHP ( extra work :'( ).

Any ideas would be appreciated.

pkmnfrk

What does the script output? If it's an image, then it should work fine like that (pop it in template_html_below for best results).

If, for some reason, it outputs HTML (for, say, old-school SSI), then you may want to try including an iframe:

<iframe src="http://somesite.com/cgi-bin/somescript.pl"></iframe>

netroact

Thank you for the quick reply!

It outputs an image, but it didn't work like I had it. I used the iframe and it worked, but the size is not formatted right. I didn't specifiy the size in the script output, because I thought the ad management would do that. I tried adding the width and height in the img src tag in the output of the script, but it didn't fix it.

Any ideas?


pkmnfrk

Could you link the actual script, so I can see what it outputs? PM me if you wish to keep it private.

Edit: I mean, a link to the file, not the contents.

netroact


pkmnfrk

Hmm, your problem is a bit... different than I expected, maybe someone else can help you.

netroact

Well, thanks for giving it a shot. It almost worked.

CmptrWz


netroact

I will study on that. Any examples would be appreciated. If I could use this to call my stats script in the background without an image, where could I put it?

Advertisement: