Script help please:

Hello all,
I downloaded a php image script after trying many many alternatives.

It suits me very well for my needs, very easy to install.

Just a couple of things i would like to change but no idea how to do it!
The script can be modified… freely.

When uploaded it shows folders but i want to use my own thumbnails for the folders plus add some html to replace a few things. But the forum will not let me post the script… exeeded character allowance.

Well, if you want help with folders and icons for folders, just post the small area that displays the folders.

If you wish to sent the entire project to one of us, you can do that thru normal emails. But, if you show us just a small bit of code where you are having problems, we can help…

Hi ErnieAlex,
Thanks for your reply, much appreciated.

Who would i address a normal email to?
Sorry for appearing clueless on the forum rules etc but i am :’(
Bill.

Well, first, if you downloaded a free script, perhaps you should tell us what it is. We can not help you without seeing some code to fix. Also, if it is from a free download website, you could just post the site here and we can look at it on that site.

But, if you have code that is working, but, you want to change some section of it, just post that section here in this message. To do this, you select that section of the code in your editor and COPY it, then press the PHP tag above and place that copied code between the PHP tags. It will look like this when finished:
[php]
Some code…
[/php]
One this is in place, you can press the PREVIEW button to see what it will look like to us. Then, you can edit it or POST it.

We will be very glad to help you, but, we need to know what you want help with. If you want personal help you can do this by sending someone a Personal-Message (PM), but, the whole idea is to show the problem and solution so that others may learn, too. Hope that makes sense…

Thanks again,
The forum will not let me post links, because i am new i imagine.
I can’t post the section i want to change because i don’t know what section it is :frowning:
The only way i can think of is sending two small images which will let you see.
Images 1 and 2 relates to the following… …ooops sorry it won’t let me do that either :-\

The script is called Sif and is at hotscriptsdotcom/category/scripts/php/scripts-programs/image-galleries/page:7/

There are 3 things i would like to change if possible.

1/ Use my own thumbs on the index page rather than folder icons.

2/ On the gallery page i would like to change the text from Folder: sif ~ etc to my own wording.

3/ Be able to add some html, put links in back to my home page and maybe a header.

Thanks again.

On page 7 of hotscripts.com, there were a long list of gallery scripts. Which one, by name, are you talking about. We can look it at for you and see if we can help you…

I did put the name of the script in my last post… it is called Sif… on page seven.
Or maybe try this… manchesterpicturesdotcom/sif/index.php
Thanks again.

Okay, I have the SIF code now. I will look at it for you and post later today…

Okay, I had some time to look at the SIF project. It looks like a nice simple photo page.
The section you are looking to change is the function ReturnPic($picture)…

It that section, a picture is displayed from a variable $picture which contains a number 1 to 6.
This function loads the actual 64-bit encoded picture into a variable and then displays it as an image.

You would need to change this section to something like this:
[php]
function ReturnPic($picture){
$picture=intval($picture);
$pictures=array(“pix1.jpg”,“pix2.jpg”,“pix3.jpg”,“pix4.jpg”,“pix5.jpg”,“pix6.jpg”);
echo("");
}
[/php]
How this new code works: There are 6 pictures that are used in their code. So, you will have to create
6 that match. I am not sure which are which, that is your chore. You take your 6 images and place them
in a folder which I called “images”. Then, change the above array to match the names of the 6 pictures.
Note the names are the entire name including the extenstion. Then, when the code calls for picture#4,
the new code will pull that picture and place on the page using the image tag. I did not have time to test
this, but, am sure it will work for you.

Good luck, let us know the results…

Hi again,
You have been very understanding and patient.
I really appreciate you taking the time to help but it looks like my search goes on looking for a script.

The reason being i do not have a clue what your reply meant… i am good at golf though :smiley:
Thanks again,
Bill.

Bill, that SIF script is a one-page photo display program. If you place it in the same folder as all of your pictures, and then run it, the code will display thumbnails of all the photos you have. Then, it shows sub-folders and let’s you go into them. It has the pictures for the folders and whatever inside the code and the code that I gave you would let you use your own versions. This is what you asked for.

There are a ton of nice scripts out there for photo displays. But, they all take a bit of programming to get them to work. Or at least some time configuring where the pictures are, etc…

We can still help if you need us… Good luck, Ernie…

Hi Ernie,
I have tried my best to do what you suggested.
It has removed the folder icons but is now just text.
I put six images in a folder named images and renamed them to pix1 pix2 and so on.
All that has done is make the script create another folder called images and shows them… as another album but it is a step in the right direction, thanks.
See here… manchesterpicturesdotcom/sif
Thanks again,
Bill.

Bill, sorry, I have been gone for a few days… I will test that script tonight for you and come up with some answers for you. Most likely I will be able to look at it in about an hour or two…

Okay, Bill, I set up a folder with SIF in it and stuck in a couple folders with pictures in all of them to see how it works. Looks straight forward. Well, since the program pulls the directory of where the program is stored and all folders inside of that, you would have to store the program’s pictures in a folder higher up and use “…/images” and store them outside of the gallery folder. Did that make sense?

So, using the original code from SIF, I created a folder called “gallery” and put some pictures in it. I created a second folder in that folder called “moreImages”, so it was like “gallery/moreImages”. And, placed SIF in the “gallery” folder. So, when I run SIF, it shows a blue folder for the “moreImages” folder and thumbnails of all of the pictures I put there.

Is it the blue folder you wish to change?

Hi again Ernie,
I know you are trying hard to help.

Not sure if it is the ‘blue folder’ or not.
It is a great little script but as i asked you before instead of the script on the index page showing folder images for each gallery i just want to use my own.

I did what you said in your post on May 25, 2012, 12:29:08 PM that got rid of the folder images but left just text as the gallery links manchesterpicturesdotcom/sif/index.php

Okay, I see your sample page.

Am I correct that you want to remove the titles and place an image in there instead?
I think that can be done.

Yes,
That is excactly what i am trying to do.
Thanks.
Bill

Hi Ernie,
Any luck with the script?
Bill

Bill, sorry, been taking care of my sick mother… Did you ever get the pictures to work correctly?
In your last post, you posted a link that shows the picture, but, the name of the picture is a folder,
not a picture. So, it looks like you just are not pointing to the correct picture for your folders.

If you didn’t solve it, let us know. I have some free time soon to help…

Hi again Ernie,
Sorry to hear about your Mother.

I have made a few changes, mainly in the style sheet and added some links.

But i still cannot figure out how to change file name links into thumbnail links (see image)
When i look at the page source after uploading to my site it looks completely different than when i view it localy in my editor manchesterpicturesdotcom/sif/index.php
Any help would be great,
Bill.

Sponsor our Newsletter | Privacy Policy | Terms of Service