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)
-   -   Gallery Database Script (https://gfy.com/showthread.php?t=52212)

Choker 02-27-2002 05:43 PM

Gallery Database Script
 
Does anyone know where I can find a script that I can dump gallery urls into, and have the gallery links on my tgp pull up random galleries from the script. Sort of like cashforgalleries does with their galleries. With a big enough database of galleries, I would never have to update my tgp again. Thanks for the help

amadman 02-27-2002 05:48 PM

Make one :o)

I have been working in that direction myself.

-=HOAX=- 02-27-2002 05:49 PM

We're developing a tool to allow webmasters to draw from the xxx.com/tgp database should be ready soon...

Choker 02-27-2002 05:55 PM

Thanks, but I want to set up my own database, and pull up the galleries I put in it myself

blunt 02-27-2002 06:09 PM

.

amadman 02-27-2002 06:22 PM

thanks blunt!

That helps me also!!!

Choker 02-27-2002 06:37 PM

Blunt, thanks so much man, but I can't get it to work

blunt 02-27-2002 06:50 PM

yeah, i deleted it by accident when i went to edit it :)

PHP Code:

<?PHP

$filName 
"./galleries.txt";

$arry file($filName);
$randNum rand(0,sizeof($arry)-1);

header("Location: "$arry[$randNum]);

?>

it works fine.
put your links in a text file 1 per line, name it galleies.txt .
save the above as whatever.php , put them in the same folder.

no probs, enjoy

Choker 02-27-2002 06:59 PM

Thanks a million Blunt. That will do for now, what I would like is a full script with admin, set cookies so the surfer doesn't see the same gallery twice, and a full database instead of using text pages. But what you gave will do for now. Thanks man

Naughty 02-27-2002 08:44 PM

Quote:

Originally posted by -=HOAX=-
We're developing a tool to allow webmasters to draw from the xxx.com/tgp database should be ready soon...
We already have that, TGP1 version coming VERY soon too
www.tgp2gallerypool.com

playa 02-27-2002 09:18 PM

check out
www.cleangalleries.net

i got a shit load galleries in there,,, the script is a super fast dedicated server,,,


hit me up if you got any ?'s

38147712

Lexxx 02-27-2002 09:56 PM

Thanks a lot guys... you really were helpful.:thumbsup

JasonB 02-28-2002 04:34 PM

Blunt,
I setup the script & put 454 galleries in the .txt file, but when i click the .php link it pulls the same gallery about 99% of the time.

I tried reducing the # of galleries in the .txt file to about 220, but it still pulled the same few galleries most of the time.

Is there a way to make it randomize more?

Brujah 02-28-2002 04:41 PM

seed the random number generator, and try mt functions

Code:

&lt;?php

  $fileName*=*"./galleries.txt";

  mt_srand( (double) microtime() * 1000000 );
  $a*=*file($fileName);
  $randNum*=*mt_rand( 0, sizeof($a)-1 );

  header( "Location: ".*$a[$randNum] );
?&gt;


JasonB 02-28-2002 04:52 PM

Awesome. That worked perfect. Thanks!


All times are GMT -7. The time now is 12:39 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123