Ok so yesterday was my birthday and i got a iPod, you know the new one that plays video and photos and such! YEA! I know it’s sweet. My wife made me a cool cake and she ordered pizza (my favorite). Well ok I’m done bragging now its back to putting music on the Pod.
After a long period of time it seams as though I have finally stopped tinkering with the new site. Well there are some things I still want to change bug I have all of my old content in WordPress now and have figures out how to make Gallery2 work for me. My next step is to move all the files of the site around and I hope that won’t mess anything up!!
Let’s create a file lister that will go perfect with an upload script that will come later on. First well make a variable ($maindir) this is the location on your web server you want to list.
Now we us another variable ($mydir) and give it a opendir handle, now opendir is to be used with closdir as well, so remember this.
We also don’t want to show all the files, so we create another variable ($exlude) we make it an array and put in things like the name of the file or anyfile you dont want listed, in this example we will use index.php.
This is really quite basic so there isn’t much to explain the header sends a raw HTTP header to the browser, the out come with this is a redirect.
< ?php header("Location: http://www.domain.com"); ?>
For more information on the header function see php.net.
First I have to explain a bit of how this works. We use what’s called a URL query string, You have probably scene something like this “index.php?name=test” Were it says name is referring to the case statement. In any other example, if u were to put hello $name and use the URL file.php?name=James then the out put would be “hello James”?.
So in this case name will be the case you wish to communicate with and the page you wish to view is tutorials thus we use index.php?name=tutorials, in my case I use 2 one for content and one for sub-nav. To do this we use the & character to indicate that there is a second variable or case statement that we can’t to communicate with.
We can create porcelain much the same as we created glass, with of course a few changes. We are going to do some basic modeling to give the scene something to render. I find its best to have a lot of curves to show off the material. Things like vases work great. For more information on Porcelain see Wikipedia.
Glass can give you a tone of creative and interesting objects to make. Using caustics in conjunction can make some really interesting results as well. For more information on glass see Wikipedia.
Caustics is something that has interested me for a long time and it took me a surprisingly long time to figure out how to do with efficiently with Brazil. My first attempts took hours to render and when I had a look in the Brazil Gallery I saw that the images only took a few min to render and that wasn’t on a super computer so I began to look into it a bit more. And this is what I came up with.
All I want is to figures our how to make gallery2 work with WordPress, seams simple looking at all the other sites out there that are using it, but I’m not grasping something. It sort of works but it looks like garbage.
My main problem is I cant find any definitive information on creating a theme for gallery2, and any themes I do use don’t seam to over ride the main screen of the gallery so there for I’m back in the beginning.
HELP….
I have been reading way to many different things, PHP books, CSS articles theory and my head is swimming with ideas now. I’m finding that WordPress is more complicated to modify that I originally had planned. I would like to adapt it to my own needs have a good competent gallery run without needed to have a external program.