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)
-   -   can someone hook me up with a simple code to do this... (https://gfy.com/showthread.php?t=546576)

StickyGreen 11-30-2005 08:11 PM

can someone hook me up with a simple code to do this...
 
there is one list of links and each time the site loads the order of the links is randomized?

bjjb 11-30-2005 09:38 PM

Doesnt blogroll in wordpress do that? or is it only in the template I have ? I have no idea. I know my blogroll links change around every time i load my blog. So its in the code somewhere

divinity 11-30-2005 09:41 PM

what language you want it in?

latinasojourn 11-30-2005 09:47 PM

Quote:

Originally Posted by StickyGreen
there is one list of links and each time the site loads the order of the links is randomized?

very common:

google or yahoo "random link script"

StickyGreen 11-30-2005 09:48 PM

Quote:

Originally Posted by latinasojourn
very common:

google or yahoo "random link script"

i know it's real common, that's why i was hoping someone here could share the one they use...

divinity 11-30-2005 10:19 PM

I always just code my own when I get to it. little bit of php to read a list of links from a text file into a url, randomize it, loop through and print it out..

paterson3713 11-30-2005 10:27 PM

icq me and i'll hook you up, i'm bored.

divinity 11-30-2005 10:28 PM

untested, but fwiw...

$urls = array();
$urls[] = "http://www.google.com";
$urls[] = "http://www.gfy.com";
etc...
shuffle($urls); //to randomize

foreach($urls as $link) {
print "<a href=\"".$link."\">$link</a><br>";
}


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

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