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 11-24-2002, 06:18 AM   #1
justsexxx
Too lazy to set a custom title
 
Join Date: Aug 2001
Location: The Netherlands
Posts: 13,723
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


__________________
__________________
Questions?

ICQ: 125184542
justsexxx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-24-2002, 06:49 AM   #2
SimonBalk
Confirmed User
 
Join Date: Jul 2002
Location: The Netherlands
Posts: 197
I can make it for you. contact me if you want more details
__________________
SimonBalk is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-24-2002, 06:58 AM   #3
AcidMax
Confirmed User
 
Join Date: May 2002
Location: MI
Posts: 1,827
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
__________________
Latest MMA news. http://www.mmawrapup.com
AcidMax is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-24-2002, 07:30 AM   #4
darksoul
Confirmed User
 
darksoul's Avatar
 
Join Date: Apr 2002
Location: /root/
Posts: 4,997
just in case its not solved yet: 157717888
__________________
1337 5y54|)m1n: 157717888
BM-2cUBw4B2fgiYAfjkE7JvWaJMiUXD96n9tN
Cambooth
darksoul is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-24-2002, 07:35 AM   #5
justsexxx
Too lazy to set a custom title
 
Join Date: Aug 2001
Location: The Netherlands
Posts: 13,723
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
__________________
Questions?

ICQ: 125184542

Last edited by justsexxx; 11-24-2002 at 07:37 AM..
justsexxx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-24-2002, 07:38 AM   #6
justsexxx
Too lazy to set a custom title
 
Join Date: Aug 2001
Location: The Netherlands
Posts: 13,723
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
__________________
Questions?

ICQ: 125184542
justsexxx 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.