![]() |
Any more kind souls with PHP knowledge?
Me again :Oh crap
I am using this: http://www.hotscripts.com/listing/au...e-gallery-1-2/ But it displays the thumbs in a random order. I need them to be in alphabetical order... Is there a simple snippet of code to do that? Or can you recommend another class that grabs all images in a folder and creates thumbs/links to the pictures :) Thank you! |
Quote:
this will select everything from galleries and order it by date, descending Find that and you can usually find why its displaying code the way it is. Of course it could be another function further in the code |
Thanks! However it's not a database function.
Here is what I meant: http://www.swexicorp.com/heather/members/sample.php Would need the images in the gallery to go in order, 1, 2, 3... |
plenty of php people on here
|
|
I down loaded it it seems to be loading alphabetically for me, All I did was load some images in to the folder and named them alphabetically asdf, bfer, cgrt, defg.
Let me see I may have another script for you. bird |
Quote:
|
upload the script to your server as .txt, and post the url here, but like someone suggested earlier, just need to probably insert a natsort line in the right place...
|
Thanks Killswitch :) that's a very cool function. I wasn't able to put it in the right place but will be useful for me in the future!
@ Bird: not working here :( thought it might be because they're numbers, the filenames here are Untitled-1.jpg etc, http://www.swexicorp.com/heather/members/sample.php but they appear in a random order down here... Here is the script: http://www.swexicorp.com/heather/mem...eryBuilder.txt and here is the sample page in txt: http://www.swexicorp.com/heather/members/sample.txt (folder, folder again, thumbnail folder, width, height, amount of pics per row, whether they should open in a new page or not) |
There is nothing in the script that orders them by any means, You need to just name the pictures. A ,A-1,A-2,B-1,C, C-1,D-1,D-2
Quote:
|
Thing is files are alphabetically named (in the galleries I will use 001, 002... and in the sample A, B, C, D, E) but they load for me in random order anyway :( it kinda sucks because the girl is spreading in one picture and fully clothed in the next :Oh crap
if only I could figure out how to use databases with this, lol... Thanks for all the help :) |
I know there is a bunch of gallery scripts that don't need a DB. I used this one before give it a try..
http://mobiquio.com/adult/bird-gallery.zip I have some other ones but have to search for them. BRB |
Thank you! Checked it and it looks good (opera identified it as a widget for some reason O_O) although it wouldn't quite work for me :( problem is that this one file would be used to output all the galleries within the site. I will toy with the natsort function.
Thank you very much :) |
ok i found it
heres the one you want to use... http://mobiquio.com/adult/gallery download here: http://mobiquio.com/adult/gallery/1-gal.zip |
I have no clue but bump for ya. Swexicorp what a great name :D
|
Thanks a lot Bird! :) I really appreciate it
Quote:
|
All times are GMT -7. The time now is 10:28 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123