Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 02-20-2009, 12:35 PM   #1
AnniKN
Confirmed User
 
AnniKN's Avatar
 
Industry Role:
Join Date: Feb 2008
Location: South of the border
Posts: 1,682
Any more kind souls with PHP knowledge?

Me again

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!
AnniKN is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-20-2009, 12:39 PM   #2
Bored
Confirmed User
 
Bored's Avatar
 
Join Date: Feb 2002
Location: Canada
Posts: 1,011
Quote:
Originally Posted by AnniKN View Post
Me again

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
__________________
If Satan Wore a Hairpeice, there would be HELL TOUPEE!!
HTML Porn
pbbc fo li
Bored is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-20-2009, 12:46 PM   #3
AnniKN
Confirmed User
 
AnniKN's Avatar
 
Industry Role:
Join Date: Feb 2008
Location: South of the border
Posts: 1,682
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...
AnniKN is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-20-2009, 12:50 PM   #4
HorseShit
Too lazy to set a custom title
 
Join Date: Dec 2004
Posts: 17,513
plenty of php people on here
HorseShit is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-20-2009, 12:50 PM   #5
Killswitch - BANNED FOR LIFE
Guest
 
Posts: n/a
http://www.php.net/natsort
  Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-20-2009, 12:59 PM   #6
Bird
Confirmed User
 
Bird's Avatar
 
Join Date: Jan 2005
Location: Stockton
Posts: 4,365
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
__________________
ICQ:268731675
Bird is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-20-2009, 01:03 PM   #7
marcjacob
Confirmed User
 
marcjacob's Avatar
 
Join Date: Jun 2003
Location: England
Posts: 1,063
Quote:
Originally Posted by Killswitch View Post
I wasnt aware of that, but thats incredibly useful to me. Thanks very very much
marcjacob is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-20-2009, 01:03 PM   #8
woj
<&(©¿©)&>
 
woj's Avatar
 
Industry Role:
Join Date: Jul 2002
Location: Chicago
Posts: 47,882
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...
__________________
Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000
Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager
Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager

Last edited by woj; 02-20-2009 at 01:04 PM..
woj is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-20-2009, 01:14 PM   #9
AnniKN
Confirmed User
 
AnniKN's Avatar
 
Industry Role:
Join Date: Feb 2008
Location: South of the border
Posts: 1,682
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 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-20-2009, 01:22 PM   #10
Bird
Confirmed User
 
Bird's Avatar
 
Join Date: Jan 2005
Location: Stockton
Posts: 4,365
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 View Post
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)
__________________
ICQ:268731675
Bird is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-20-2009, 01:29 PM   #11
AnniKN
Confirmed User
 
AnniKN's Avatar
 
Industry Role:
Join Date: Feb 2008
Location: South of the border
Posts: 1,682
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

if only I could figure out how to use databases with this, lol...

Thanks for all the help
AnniKN is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-20-2009, 01:44 PM   #12
Bird
Confirmed User
 
Bird's Avatar
 
Join Date: Jan 2005
Location: Stockton
Posts: 4,365
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
__________________
ICQ:268731675
Bird is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-20-2009, 01:52 PM   #13
AnniKN
Confirmed User
 
AnniKN's Avatar
 
Industry Role:
Join Date: Feb 2008
Location: South of the border
Posts: 1,682
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
AnniKN is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-20-2009, 02:15 PM   #14
Bird
Confirmed User
 
Bird's Avatar
 
Join Date: Jan 2005
Location: Stockton
Posts: 4,365
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
__________________
ICQ:268731675
Bird is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-20-2009, 02:17 PM   #15
The Duck
Adult Content Provider
 
The Duck's Avatar
 
Industry Role:
Join Date: May 2005
Location: Europe
Posts: 18,243
I have no clue but bump for ya. Swexicorp what a great name :D
__________________
Skype Horusmaia
ICQ 41555245
Email [email protected]
The Duck is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-20-2009, 02:31 PM   #16
AnniKN
Confirmed User
 
AnniKN's Avatar
 
Industry Role:
Join Date: Feb 2008
Location: South of the border
Posts: 1,682
Thanks a lot Bird! I really appreciate it

Quote:
Originally Posted by kandah View Post
I have no clue but bump for ya. Swexicorp what a great name :D
:D thanks!
AnniKN is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.