PDA

View Full Version : Editing file.php


didjital
11-21-2006, 03:41 PM
I'm getting a good amount of traffic into file.php from Google Images.

When you click an image and it opens a new window, file.php?n=###&w=o is shown in the address bar.

How can I edit this file so I can neatly put some adsense next to it with perhaps some content? I'd almost like to have the authors name and description on that page along with the adsense.

Any help in where to edit that file to place content would be appreciated.

Thanks.

Morgan
11-21-2006, 11:52 PM
The file.php file generates images to display. There is no HTML in the file.php output. For instance, you see an image on screen when the following type of IMG tag is in the PhotoPlog HTML:
Content visible to registered users only.
Also, when you click to view the original image, you see the image itself. If you are looking at the original image, right click and view the page source. What you'll see is the binary content of the image, no HTML to modify.

That said, you could modify the file.php file to output an HTML page when w=o is in the query string. First find the following line and add the bits in blue bold:
Content visible to registered users only.
Then after the following:
Content visible to registered users only.
Add something like the following:
Content visible to registered users only.
However you want to tweak it is up to you, as coding custom mods is really outside the realm of support. :)

didjital
12-01-2006, 05:08 PM
Thanks for the help Morgan, much appreciated.