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)
-   -   Best Free TGP Gallery Rotator? (https://gfy.com/showthread.php?t=411955)

riddler 01-03-2005 02:52 PM

Best Free TGP Gallery Rotator?
 
I'm looking for a free TGP gallery rotator, Not sure how hard it would be for me to code something in php to work beside autogallery but I want to see if there is any free ones out right now :)

Lycanthrope 01-03-2005 03:04 PM

random.php
-----------------------------------------------
<?
$delim = "\n";
$cryfile = "galleries.txt";
$fp = fopen($cryfile, "r");
$contents = fread($fp, filesize($cryfile));
$cry_arr = explode($delim,$contents);
fclose($fp);
srand((double)microtime()*1000000);
$cry_index = (rand(1, sizeof($cry_arr)) - 1);
$herecry = $cry_arr[$cry_index];
echo $herecry;
?>
-----------------------------------------------

galleries.txt
-----------------------------------------------
<a href="gallery1.url">Gallery 1 Description</a>
<a href="gallery2.url">Gallery 2 Description</a>
<a href="gallery3.url">Gallery 3 Description</a>
etc...
-----------------------------------------------

Then just call them:

php
<? include ("random.php"); ?>
ssh
<!--#include virtual="random.php"-->

or try http://www.gallerybooster.com

or see sig for Gallery Admin :Graucho
Not free, but few great scripts are

riddler 01-03-2005 03:06 PM

heh, nice, i was looking at prices, since this is just for hosted galleries i didnt wanna spend anything until i seen if its worth keeping up.

xclusive 01-03-2005 04:35 PM

Quote:

Originally Posted by Lycanthrope
random.php
-----------------------------------------------
<?
$delim = "\n";
$cryfile = "galleries.txt";
$fp = fopen($cryfile, "r");
$contents = fread($fp, filesize($cryfile));
$cry_arr = explode($delim,$contents);
fclose($fp);
srand((double)microtime()*1000000);
$cry_index = (rand(1, sizeof($cry_arr)) - 1);
$herecry = $cry_arr[$cry_index];
echo $herecry;
?>
-----------------------------------------------

galleries.txt
-----------------------------------------------
<a href="gallery1.url">Gallery 1 Description</a>
<a href="gallery2.url">Gallery 2 Description</a>
<a href="gallery3.url">Gallery 3 Description</a>
etc...
-----------------------------------------------

Then just call them:

php
<? include ("random.php"); ?>
ssh
<!--#include virtual="random.php"-->

or try http://www.gallerybooster.com

or see sig for Gallery Admin :Graucho
Not free, but few great scripts are

Thanks very helpful

Alex 01-03-2005 04:36 PM

Comus 2% skim


All times are GMT -7. The time now is 09:57 PM.

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