4images Forum & Community

4images Modifications / Modifikationen => Mods & Plugins (Requests & Discussions) => Topic started by: STCD on February 02, 2003, 03:53:21 AM

Title: QUESTION!
Post by: STCD on February 02, 2003, 03:53:21 AM
I am having problems with the random image mod... :? my question is: can i use a SSI call to a PHP file??? Something like
Code: [Select]
<!--#include file="random.php" -->
I cant change all the files to php because i use lots of ssi calls :( also i dont understand anything about php and i dont know how to make my .shtml files turn to .php files :oops:

(Sorry but i am new to php :oops: )

Also, if my index page is outside the 4images folder how can i call the random.php file? 4images/random.php???? And what if the index page is in another folder, like pages/index.shtml, and the random.php file is in 4images/random.php??? Sorry for the bad english and for the dumb questions :oops:
Title: QUESTION!
Post by: V@no on February 02, 2003, 03:59:06 AM
try:
Code: [Select]
<?php include&#40;"random.php"&#41;; ?>
Title: QUESTION!
Post by: STCD on February 03, 2003, 01:07:13 AM
Fatal error: Cannot instantiate non-existent class: db in random.php on line 16

 :(

and i dont want a php thing, i mean i want to know if its possible to insert the random image in a .shtml file!
Title: Include File but {image_name} not display
Post by: dulpaijo on February 03, 2006, 04:38:40 AM
Dear mr Vano,

i have applet.txt files
this file is on 4images/applet/applet.txt

i put this code in postcard_priview.html
<? include("http://localhost/4images/applet/{applet}"); ?>

an this is my applet.txt files

Quote
<applet archive=anfybump.jar code=anfybump.class codebase=http://localhost/4images/applet/ {width_height}>
<param name=credits value=Applet by Fabio Ciucci (www.anfyteam.com)>
<param name=regcode value=NO>
<param name=reglink value=NO>
<param name=regnewframe value=YES>
<param name=regframename value=_blank>
<param name=statusmsg value=Bumpmap applet>
<param name=res value=1>
<param name=picture2 value=http://localhost/4images/applet/symbmp.gif>
<param name=picture value=http://localhost/4images/applet/{image}>
<param name=bump value=NO>
<param name=bump_height value=1>
<param name=angle_x value=3>
<param name=angle_y value=2>
<param name=lightsize value=9>
<param name=lightpower value=95>
<param name=lightmin value=10>
<param name=lightmax value=500>
<param name=interactive value=YES>
<param name=overimg value=http://localhost/4images/applet/sun.gif>
<param name=overimgX value=10>
<param name=overimgY value=10>
<param name=textscroll value=NO>
<param name=memdelay value=1000>
<param name=priority value=3>
<param name=MinSYNC value=10>
Sorry, your browser doesn't support Java.
</applet>

when i preview with this code, and i see my resource code,there is no image.jpg --->{image}

Quote
<applet archive=anfybump.jar code=anfybump.class codebase=http://localhost/4images/applet/ >
<applet archive=anfybump.jar code=anfybump.class codebase=http://localhost/4images/applet/ {width_height CAN NOT INSERT HERE}>
<param name=credits value=Applet by Fabio Ciucci (www.anfyteam.com)>
<param name=regcode value=NO>
<param name=reglink value=NO>
<param name=regnewframe value=YES>
<param name=regframename value=_blank>
<param name=statusmsg value=Bumpmap applet>
<param name=res value=1>
<param name=picture2 value=http://localhost/4images/applet/symbmp.gif>
<param name=picture value=http://localhost/4images/applet/>
<param name=picture value=http://localhost/4images/applet/{image CAN NOT DISPLAYED HERE just BLANK}>
<param name=bump value=NO>
<param name=bump_height value=1>
<param name=angle_x value=3>
<param name=angle_y value=2>
<param name=lightsize value=9>
<param name=lightpower value=95>
<param name=lightmin value=10>
<param name=lightmax value=500>
<param name=interactive value=YES>
<param name=overimg value=http://localhost/4images/applet/sun.gif>
<param name=overimgX value=10>
<param name=overimgY value=10>
<param name=textscroll value=NO>
<param name=memdelay value=1000>
<param name=priority value=3>
<param name=MinSYNC value=10>
Sorry, your browser doesn't support Java.
</applet>

what can i do to make {image} or {width_height} } CAN INSERT TO APPLET.TXT file and of course display when i priview my ecard...

Thank you Vano for your help
thank you for anybody

sorry for my bad english  :P
Title: Re: QUESTION!
Post by: V@no on February 03, 2006, 04:49:51 AM
Try use:
<?=$this->val_cache['tag name'];?>
instead of template tags in your applet.txt
Title: Re: QUESTION!
Post by: dulpaijo on February 03, 2006, 01:47:00 PM
Mr. Vano... thank for your quick reply... but sorry i can't understand...   :P
Quote
Try use:
<?=$this->val_cache['tag name'];?>
instead of template tags in your applet.txt

it's mean that i must change applet.txt files. so my applet.txt files become like this?

Quote
<applet archive=anfybump.jar code=anfybump.class codebase=http://localhost/4images/applet/ <?=$this->val_cache[<?=$this->val_cache['{width_height}'];?> >
<param name=credits value=Applet by Fabio Ciucci (www.anfyteam.com)>
<param name=regcode value=NO>
<param name=reglink value=NO>
<param name=regnewframe value=YES>
<param name=regframename value=_blank>
<param name=statusmsg value=Bumpmap applet>
<param name=res value=1>
<param name=picture2 value=http://localhost/4images/applet/symbmp.gif>
<param name=picture value=http://localhost/4images/applet/<?=$this->val_cache[<?=$this->val_cache['{image}'];?>>
<param name=bump value=NO>
<param name=bump_height value=1>
<param name=angle_x value=3>
<param name=angle_y value=2>
<param name=lightsize value=9>
<param name=lightpower value=95>
<param name=lightmin value=10>
<param name=lightmax value=500>
<param name=interactive value=YES>
<param name=overimg value=http://localhost/4images/applet/sun.gif>
<param name=overimgX value=10>
<param name=overimgY value=10>
<param name=textscroll value=NO>
<param name=memdelay value=1000>
<param name=priority value=3>
<param name=MinSYNC value=10>
Sorry, your browser doesn't support Java.
</applet>

i have already done. but still wrong...
my soucre code STILL EMPTY no IMAGE.JPG file
here is the result....
Quote
<applet archive=anfybump.jar code=anfybump.class codebase=http://localhost/4images/applet/ BLANK>>
<param name=credits value=Applet by Fabio Ciucci (www.anfyteam.com)>
<param name=regcode value=NO>
<param name=reglink value=NO>
<param name=regnewframe value=YES>
<param name=regframename value=_blank>
<param name=statusmsg value=Bumpmap applet>
<param name=res value=1>
<param name=picture2 value=http://localhost/4images/applet/symbmp.gif>
<param name=picture value=http://localhost/4images/applet/BLANK>
<param name=bump value=NO>
<param name=bump_height value=1>
<param name=angle_x value=3>
<param name=angle_y value=2>
<param name=lightsize value=9>
<param name=lightpower value=95>
<param name=lightmin value=10>
<param name=lightmax value=500>
<param name=interactive value=YES>
<param name=overimg value=http://localhost/4images/applet/sun.gif>
<param name=overimgX value=10>
<param name=overimgY value=10>
<param name=textscroll value=NO>
<param name=memdelay value=1000>
<param name=priority value=3>
<param name=MinSYNC value=10>
Sorry, your browser doesn't support Java.
</applet>



Title: Re: QUESTION!
Post by: V@no on February 03, 2006, 02:28:57 PM
{tag name}

=

<?=$this->val_cache['tag name'];?>


=

<?=$this->val_cache['width_height'];?>
Title: Re: QUESTION!
Post by: dulpaijo on February 04, 2006, 07:46:10 AM
thank V@no for your quick reply...
but... still doesn't work...  :cry:

still BLANK  :cry:

Is it still possible with another script??

Title: Re: QUESTION!
Post by: V@no on February 04, 2006, 08:08:01 AM
then, since there is no php code in your applet.txt, simply use its contents inside the templates...