Halfagain IM Forums
May 17, 2012, 07:42 *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Due to increasing spam we are forced to make this forum "Read Only". If you have an issue, most likely was discussed here. Use the Search function and try to find related discussions. If you can't find any helpful information, just email support at halfagain dot com"
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: How is php handled in the templates?  (Read 1392 times)
0 Members and 2 Guests are viewing this topic.
Dane Morgan
Newbie
*

Karma: 10
Offline Offline

Posts: 69


« on: February 20, 2006, 00:08 »

I would like to use a php tracking script on my blog network. Is this possible? would I be able to use tokens like {user}.{domain} or {title} to pass the information to my script?
Logged
Omar
Here to help.
Administrator
Hero Member
*****

Karma: 10001
Offline Offline

Posts: 2687


« Reply #1 on: February 20, 2006, 17:33 »

I am not sure how your scripts work and what they do but there is unlikely that BS could pass any data to other scripts, unless we hardcode it in the sources.

All i can tell you for sure is that templates does not support due to security reasons.
Logged
Dane Morgan
Newbie
*

Karma: 10
Offline Offline

Posts: 69


« Reply #2 on: February 20, 2006, 20:52 »

Quote from: Omar
I am not sure how your scripts work and what they do but there is unlikely that BS could pass any data to other scripts, unless we hardcode it in the sources.

All i can tell you for sure is that templates does not support due to security reasons.


Well, that would kill any kind of php tracking script since they require including the counting script in the page to be counted. That also kills a lot of other options like including link exchange or referrer scripts or even CaRP output. Are there any plans to introduce php includes in future releases?
Logged
jluk
Newbie
*

Karma: 10
Offline Offline

Posts: 4


« Reply #3 on: February 24, 2006, 15:54 »

if all you want to do is include some random file then you can do the following:
mv index.php to index2.php
then create a new index.php
Use a phpinclude to load the original index.php into a table cell or div or whatever you want.
This is only something I've started playing with, but it seems to work so far.
here's an example:

index.php




link1 link2 link3 link4 link5


I know that code above isn't pretty (and isn't compliant) but the idea was just to see whether it worked.
Logged
Dane Morgan
Newbie
*

Karma: 10
Offline Offline

Posts: 69


« Reply #4 on: February 25, 2006, 01:52 »

Quote from: jluk
if all you want to do is include some random file then you can do the following:
mv index.php to index2.php
then create a new index.php
Use a phpinclude to load the original index.php into a table cell or div or whatever you want.
This is only something I've started playing with, but it seems to work so far.
here's an example:

index.php




link1 link2 link3 link4 link5


I know that code above isn't pretty (and isn't compliant) but the idea was just to see whether it worked.


Most excelent solution. I could also then grab external variable for the script myself...
Thanks for the prod, my friend. Smiley
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.8 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!