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)
-   -   Script question: Code that pulls my galleries with descriptions from a file (https://gfy.com/showthread.php?t=90009)

justsexxx 11-24-2002 06:18 AM

Script question: Code that pulls my galleries with descriptions from a file
 
IS this possible?

I already know a script which gets random galleries from a txt file. You add this into a php script, and everytime a surfer clicks the link, a random url is picked.

But what I want now, is almost the same, but then WITH description...IS this possible? And not a random description, but one special made for THAt gallery.

so to be clearer(I hope) I want this

amateur.txt

http://www.url1.com Horny biatch
http://www.url2.com Drunk amateur sucking
http://www.url3.com Quashe fucking an amateur

etc

Now when my page loads it displays

Quashe fucking an amateur
Drunk amateur sucking
Horny biatch


and when it is loaded again it displays for example

Drunk amateur sucking
Quashe fucking an amateur
Horny biatch

it doesn't have to be different every time when the page is loaded, it is also okay if it can be changed once a day by pressing a button or so by me

Any idea where I have to look>?

Andre


__________________

SimonBalk 11-24-2002 06:49 AM

I can make it for you. contact me if you want more details

AcidMax 11-24-2002 06:58 AM

That can be done in two minutes with PHP using simple file opening procedures and pulling a random line from the text file.

If you need help contact me on ICQ: 70930467.

Andy

darksoul 11-24-2002 07:30 AM

just in case its not solved yet: 157717888

justsexxx 11-24-2002 07:35 AM

used this one

Code:


<table border="0" cellspacing="0" cellpadding="0">
<script language="JavaScript">
var across = 1;
var down  = 3;
var before = '<td align="left"><a href="';
var after  = '</a></td>';

var pix = new Array(
'/cgi-bin/ucj/c.cgi?url=http://www.url1.com">desc 1',
'/cgi-bin/ucj/c.cgi?url=http://www.url2.com">desc 2',
'/cgi-bin/ucj/c.cgi?url=http://www.url3.com">desc 3',
'/cgi-bin/ucj/c.cgi?url=http://www.url4.com">desc 4'
);
for(var a=0; a<down; a++){
document.write("<tr>");
for(var i=0; i<across; i++){
var cnum = Math.round((pix.length-1)*Math.random());

document.write(before+pix[cnum]+after);

size = pix.length;

for (var j=0; j<=size; j++)
pix[j] = ((j == cnum) ? "delete" : pix[j]);
for (var k=cnum; k<size-1; k++)
if (k != size) pix[k] = pix[k+1];
pix.length = size-1;
}
document.write("</tr>");
}
</script>
</table>

Thnx all

Andre

justsexxx 11-24-2002 07:38 AM

for seome reason even after adding [code ] before and the close tag after the code, it keeps displaying the output.

www.thumbtgp.com/code.txt for the script

Andre


All times are GMT -7. The time now is 05:37 AM.

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