|
#1
|
|||
|
|||
|
insert php include in addon help
Maybe someone has an idea.
I am trying to build an addon, so far it is working, but the only problem: include("get_resolution.php") in the script below is written into the top of my markup and I am not able to put it into the <head>-part with a TAG. I am not very good in PHP, any idea? PHP Code:
|
|
#2
|
||||
|
||||
|
#3
|
|||
|
|||
|
No solution
Sorry, but I can't find there a solution.
The variable $browser_script_out = include("file.php"); is not working like I want to. The include is writing a javascript to the image_template, but unfortunately as first entry, which is not usefull, I will let it write into that place I prefer (into <head>) with an PIXELPOST TAG. I don't know how to get an include working. Or other question, is it possible to insert an include in general? |
|
#4
|
|||
|
|||
|
How to get the browser size of the user?
May be I am to confused now, the reason why i want to solve this, I want to get the users browser size for delivering the depending image size.
I tried now several ways to get this script into the right position, but with no success. I tried to put this in the addon, but this forces a loop: PHP Code:
this is my get_resolution.php: PHP Code:
|
| Post Reply |
| Thread Tools | |
|
|