View previous topic :: View next topic |
Author |
Message |
green19 Window Shopper

Joined: 20 Jul 2006 Posts: 10 Location: Woodland Hills
|
Posted: Thu Jul 20, 2006 1:18 am Post subject: Default URL and "See it framed" question |
|
|
Hi Dan,
I just bought the Dynamic Picture Frame program. At last after trying everything else, you have this program to save my hide on a very complicated job. However, I need some help.
The documentation and the webchat doesn't explain a few things, that I would like to see in a support document. Am I missing something?
Is 'example.php' what we use to initialize the action? It seems that the call for a URL is in that file and not the 'pframe.php' file.
In modifying with my unique images, the file did not respond and I believe it has something to do with that. (I wrote my changes using Dreamweaver and posted them, but when I called up the file, the only one that shows is 'example.php' is that supposed to happen?)
Also, you mention that the URL 'call' can be replaced with images. I find nowhere in the support document on how to do that.
What I want to do is have my viewers choose an image, then a frame, then see it framed. How do we attach the program to the image chosen as a default like when we call a URL from the dialogue box in 'example.php.' I don't get it.
Please either explain this or, if I can get it down, I would gladly write your documentation for you as a trade.
Help!
Thanks, _________________ A Green |
|
Back to top |
|
 |
Dan Admin / Developer

Joined: 19 Feb 2001 Posts: 2057
|
Posted: Thu Jul 20, 2006 2:02 am Post subject: |
|
|
Hi,
Look at readme.txt in the 'documentation' folder. It provides sample code for including the script in another page, which example.php is an example of.
In the readme example, $img_url is a hard coded value. Alternatively, it can be received through form input, such as in example.php.
Cheers,
Dan |
|
Back to top |
|
 |
green19 Window Shopper

Joined: 20 Jul 2006 Posts: 10 Location: Woodland Hills
|
Posted: Wed Aug 23, 2006 3:57 am Post subject: Using your documentation |
|
|
In your readme file you state to place this in a php file.
What is the format? Do I set up a blank php file and just show this? Do I add it into the example.php? If I do, where on the page do I place this?
include("$DOCUMENT_ROOT/pframe.php");
$img_url = "skippy.gif";
$width = 100;
$height = 150;
$tpl = "ice_blue";
echo picture_frame($img_url, $width, $height, $tpl);
Also, is there a way to use images instead of text? I would like to have a pull-down menu with images to select for submit instead of text values.
Thanks for your help. _________________ A Green |
|
Back to top |
|
 |
Dan Admin / Developer

Joined: 19 Feb 2001 Posts: 2057
|
Posted: Wed Aug 23, 2006 10:07 am Post subject: |
|
|
It can go pretty much anywhere in any *.php file. Just depends where you want it to show up in the page, assuming it's sharing the page with other stuff.
Quote: | Also, is there a way to use images instead of text? I would like to have a pull-down menu with images to select for submit instead of text values. |
I don't know of any way to do that... An alternative would be to tile little thumnail previews on the page, allowing the visitor to click on each one to be taken to the full image and frame.
Cheers,
Dan |
|
Back to top |
|
 |
green19 Window Shopper

Joined: 20 Jul 2006 Posts: 10 Location: Woodland Hills
|
Posted: Mon Aug 28, 2006 8:55 pm Post subject: Thumbnails and the dynamic frame |
|
|
Dan,
If I create thumbnails to be linked to be taken to the full image and that thumbnail shows the dynamic frame I want to use, what is the correct syntax and where would it be placed in the script?
Thanks.
Dan wrote: | It can go pretty much anywhere in any *.php file. Just depends where you want it to show up in the page, assuming it's sharing the page with other stuff.
Quote: | Also, is there a way to use images instead of text? I would like to have a pull-down menu with images to select for submit instead of text values. |
I don't know of any way to do that... An alternative would be to tile little thumnail previews on the page, allowing the visitor to click on each one to be taken to the full image and frame.
Cheers,
Dan |
_________________ A Green |
|
Back to top |
|
 |
Dan Admin / Developer

Joined: 19 Feb 2001 Posts: 2057
|
Posted: Mon Aug 28, 2006 11:15 pm Post subject: |
|
|
A hyperlink and form submission pass the same variable elements, so you can always figure it out by looking at the source code of the form. You would end up with something like:
http://domain.com/script.php?tpl=rainbow&img_url=http://domain.com/images/image.jpeg
The picture frame script will take whatever $tpl (frame template) and $img_url (image URL) variables you pass it, whether it be a link or form.
Cheers,
Dan |
|
Back to top |
|
 |
green19 Window Shopper

Joined: 20 Jul 2006 Posts: 10 Location: Woodland Hills
|
Posted: Tue Aug 29, 2006 5:35 am Post subject: Linking images |
|
|
Dan,
Your suggestion worked. Now I need to know how to create a link that either works only once, or will repeat the original link.
When I click on the linked image, I get the results I want. If I try a different frame then it works with the new frame, however, when I click on the image link I created again (after trying an installed frame) I get the image of the link framed by the template I installed on that link. How do you fix that?
Thanks again.
Dan wrote: | A hyperlink and form submission pass the same variable elements, so you can always figure it out by looking at the source code of the form. You would end up with something like:
http://domain.com/script.php?tpl=rainbow&img_url=http://domain.com/images/image.jpeg
The picture frame script will take whatever $tpl (frame template) and $img_url (image URL) variables you pass it, whether it be a link or form.
Cheers,
Dan |
_________________ A Green |
|
Back to top |
|
 |
Dan Admin / Developer

Joined: 19 Feb 2001 Posts: 2057
|
Posted: Tue Aug 29, 2006 2:44 pm Post subject: |
|
|
Sorry, I don't understand the question/situation.
Cheers,
Dan |
|
Back to top |
|
 |
green19 Window Shopper

Joined: 20 Jul 2006 Posts: 10 Location: Woodland Hills
|
Posted: Tue Aug 29, 2006 2:57 pm Post subject: Linking images |
|
|
Hi Dan,
I will try to explain in more detail
I created an image link that invokes the routine for framing.
I made a thumbnail and linked it to work on the main framing page which would be your example.php page.
When I click on the link, it frames the chosen artwork.
When I click on it again, it replaces the chosen artwork with a copy of the thumbnail, then it frames the thumbnail.
If I put two image links up and click on one of them, it frames the chosen artwork but then the image link (thumbnail) disappears.
If I click on the remaining thumbnail it again displays the thumbnail in place of the artwork and then frames it.
Does this make sense?
How do I correct that?
Thanks.
Dan wrote: | Sorry, I don't understand the question/situation.
Cheers,
Dan |
_________________ A Green |
|
Back to top |
|
 |
Dan Admin / Developer

Joined: 19 Feb 2001 Posts: 2057
|
Posted: Tue Aug 29, 2006 3:33 pm Post subject: |
|
|
Quote: | When I click on it again, it replaces the chosen artwork with a copy of the thumbnail, then it frames the thumbnail.
If I put two image links up and click on one of them, it frames the chosen artwork but then the image link (thumbnail) disappears.
If I click on the remaining thumbnail it again displays the thumbnail in place of the artwork and then frames it. |
From that part, it sounds like you've got something going on with the way you coded the thumbnail links. The thumbnail should never be getting passed to the full image and frame unless you have it mistakenly specified as so. Is there a page I can look at to try and make sense of it?
Cheers,
Dan |
|
Back to top |
|
 |
green19 Window Shopper

Joined: 20 Jul 2006 Posts: 10 Location: Woodland Hills
|
Posted: Tue Aug 29, 2006 4:56 pm Post subject: Trying to make sense of this |
|
|
Dan,
This is a test page so it is rough looking. I will have about 16 links total with 16 thumbnails.
Please try going to:
http://strivingartists.com/FRAME_TOP/TEST_FOUR.php
I made changes to referring pages, jppframe instead of pframe, etc. But run the page and click on the links (they look like frame corners) and watch what happens.
A Green
------------------------------
"From that part, it sounds like you've got something going on with the way you coded the thumbnail links. The thumbnail should never be getting passed to the full image and frame unless you have it mistakenly specified as so. Is there a page I can look at to try and make sense of it?
Cheers,
Dan" _________________ A Green |
|
Back to top |
|
 |
Dan Admin / Developer

Joined: 19 Feb 2001 Posts: 2057
|
Posted: Wed Aug 30, 2006 11:02 am Post subject: |
|
|
I wasn't able to connect to the server at first, but I can see it now.
There's actually a pretty simple explanation to what's going on. In the second page (I didn't realize you weren't using the same page for sending and receiving), you're passing a frame image in place of a photo for subsequent clicks.
...img_url=http://strivingartists.com/4.png
as opposed to:
...img_url=http://strivingartists.com/catalog/Floral/photos/photo8.jpg
Cheers,
Dan |
|
Back to top |
|
 |
green19 Window Shopper

Joined: 20 Jul 2006 Posts: 10 Location: Woodland Hills
|
Posted: Wed Aug 30, 2006 5:01 pm Post subject: Making sense. |
|
|
Dan,
Duh?! This stupidity of mine is due to working on this for over 12 hours straight.
I really appreciate your help and I love this program.
Thanks so much. _________________ A Green |
|
Back to top |
|
 |
Dan Admin / Developer

Joined: 19 Feb 2001 Posts: 2057
|
Posted: Wed Aug 30, 2006 8:00 pm Post subject: |
|
|
No problem. Sometimes it just takes a fresh set of eyes to catch the obvious.
Cheers,
Dan |
|
Back to top |
|
 |
green19 Window Shopper

Joined: 20 Jul 2006 Posts: 10 Location: Woodland Hills
|
Posted: Wed Sep 13, 2006 1:39 am Post subject: Outputting an image |
|
|
Dan,
Now I have created a new problem.
I have created thumbnails that output the correct framing to a pre-chosen image that I use as a default in the pframe file.
Now I want to show a separate page of thumbnails (art pieces) that when clicked on, will output to a new page that can then be framed using the dynamic frame.
When I try to do this, the image does not output to the next page.
What can I do? _________________ A Green |
|
Back to top |
|
 |
|