GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Any more kind souls with PHP knowledge? (https://gfy.com/showthread.php?t=889139)

AnniKN 02-20-2009 12:35 PM

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!

Bored 02-20-2009 12:39 PM

Quote:

Originally Posted by AnniKN (Post 15527638)
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!

Without looking at the code is hard to tell, however, I would look to find where and how its probing the database. SELECT * FROM galleries ORDER BY date DESC
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

AnniKN 02-20-2009 12:46 PM

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...

HorseShit 02-20-2009 12:50 PM

plenty of php people on here

Killswitch - BANNED FOR LIFE 02-20-2009 12:50 PM

http://www.php.net/natsort

Bird 02-20-2009 12:59 PM

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

marcjacob 02-20-2009 01:03 PM

Quote:

Originally Posted by Killswitch (Post 15527745)

I wasnt aware of that, but thats incredibly useful to me. Thanks very very much :thumbsup :thumbsup

woj 02-20-2009 01:03 PM

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...

AnniKN 02-20-2009 01:14 PM

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)

Bird 02-20-2009 01:22 PM

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:

Originally Posted by AnniKN (Post 15527843)
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)


AnniKN 02-20-2009 01:29 PM

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 :)

Bird 02-20-2009 01:44 PM

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

AnniKN 02-20-2009 01:52 PM

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 :)

Bird 02-20-2009 02:15 PM

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

The Duck 02-20-2009 02:17 PM

I have no clue but bump for ya. Swexicorp what a great name :D

AnniKN 02-20-2009 02:31 PM

Thanks a lot Bird! :) I really appreciate it

Quote:

Originally Posted by kandah (Post 15528072)
I have no clue but bump for ya. Swexicorp what a great name :D

:D thanks!


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