[Web Gallery] Page Extension

S
Posted By
shmk
Jun 16, 2004
Views
477
Replies
10
Status
Closed
I tried to modify the predefined gallery but have a problem: the only 2 extensions supported is .htm and .html but i need .php How can resolve this thing ?

Thx

Must-have mockup pack for every graphic designer 🔥🔥🔥

Easy-to-use drag-n-drop Photoshop scene creator with more than 2800 items.

S
shmk
Jun 17, 2004
No one can ask my question ?
I simple need "something" for edit the file webgallery.8li in photoshop/plugin/adobephotoshoponly/automatic/ and adding the extension .php
L
LenHewitt
Jun 17, 2004
shmk,

I simple need "something" for edit the file webgallery.8li <<

Plugins are binary files. You can’t ‘just edit’ binary files. You have to edit the source code and re-compile.

However, you CAN do a global edit on the HTML files using something like TextPad’s find and replace, and rename the extensions to PHP.

However, as the files do not contain any PHP code, why do you need to change the extension anyway? Why invoke the PHP interpreter to just spew out the HTML that is already written in the file?
MM
Mac_McDougald
Jun 17, 2004
However, as the files do not contain any PHP code, why do you need to change the extension anyway?

Was also gonna be my question…

M
S
shmk
Jun 18, 2004
However, as the files do not contain any PHP code, why do you need to change the extension anyway?

Becuase I’m using PHPNuke and I have edited the gallery basic files adding php-code to support overall variable of my site like $bgcolor and $textcolor.
L
LenHewitt
Jun 18, 2004
support overall variable of my site like $bgcolor and $textcolor<<

Take a look at the help files under:
Customizing Web photo gallery styles

You can do that without using PHP
S
shmk
Jun 19, 2004
I looked ad the Help File but I haven’t found anything that talk how take variable from database (like mySQL).
I need that when the user open the Gallery found somthing like "Welcome $user" and all customized (color, dimension etc.) based on user preferences.

If you know some specific help file to link I’ll be really happy 🙂

Thx 4 your Patience
ShMk
L
LenHewitt
Jun 19, 2004
Shmk,

No, I don’t believe you will be able to do that from Web Gallery.

Personally, in the circumstances you describe, I wouldn’t use web gallery at all. It’s very easy to generate the same thing entirely in PHP.

There’s a very simple example of doing so at
http://www.novasport.co.uk/play/gallery/index.php4

The image filenames in the above site are saved in a simple flat text file (that site does not use a database) and the number of rows and columns for the thumbnails are held in variables. PHP’s GetImageSize() is used to determine the required size of the pop-up window.
DM
Don_McCahill
Jun 19, 2004
Is there some reason you can’t just rename the files from htm to php in windows?
DM
dave_milbut
Jun 20, 2004
I thought that don, but aren’t there ref’s to those files in links spread across the files? he’d have to edit the files themselves and do something like a replace all.
DM
Don_McCahill
Jun 20, 2004
Could be Dave. I’ve never used the gallery myself.

Master Retouching Hair

Learn how to rescue details, remove flyaways, add volume, and enhance the definition of hair in any photo. We break down every tool and technique in Photoshop to get picture-perfect hair, every time.

Related Discussion Topics

Nice and short text about related topics in discussion sections