View Full Version : how do i add this line on a main page ?
mature_student
08-16-2005, 05:58 PM
i tried to add on the main.tpl, which ever line i try there is an error.
i want this line to affect all pages of PHPLD
plz help !
Ap0s7le
08-16-2005, 06:31 PM
What is it in the file you're wanting to include?
Thanks
-Casey
mature_student
08-16-2005, 08:19 PM
Content visible to registered users only.
keyword stuffer
if thats OK ?
David
08-16-2005, 08:23 PM
That looks like an ASP command to me. Yes?
mature_student
08-16-2005, 09:01 PM
Content visible to registered users only.
no no no no
its a .pl extension file
so,, lpz help me put this in
thanks
Ap0s7le
08-16-2005, 09:12 PM
Ah, honestly I've never tried to include a perl script.
Google including perl in smarty haha
Let us know what you find, I've got to bail but will look later if you haven't found a solution.
-Casey
fille97
08-16-2005, 09:17 PM
Content visible to registered users only.
If you want to use that in php, you must use:
include('http://www.yourdomain.com/fullpath/file.ext');
If you're in the middle of a print or echo
example:
print "Hello! This is a text";
You have to make:
print "Hello!";
include('http://www.yourdomain.com/fullpath/file.ext');
print "This is a text";
I hope this helps you.
mature_student
08-16-2005, 10:48 PM
can anyone plz tell me where to add this line on main.tpl ?
thanks
IGonza
08-17-2005, 03:37 PM
Show the link to your site and tell where you want to add that text.
Thanks,
Igor.
porschinho
08-17-2005, 11:38 PM
looks like server side includes (SSI)
i think including a perl file into a smarty template will not work, because smarty includes only files written in html or php.
David
08-17-2005, 11:48 PM
Content visible to registered users only.
I agree. I'm sure there is a workaround, but we would need to know more about what you are including. It might be easy, or it might take converting your script to php.
vBulletin® v3.8.0, Copyright ©2000-2012, Jelsoft Enterprises Ltd.