GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Webmaster Q & Fuckin' A (https://gfy.com/forumdisplay.php?f=27)
-   -   What's the easiest way to do this in wordpress? (https://gfy.com/showthread.php?t=689796)

tabasco 12-25-2006 12:53 AM

What's the easiest way to do this in wordpress?
 
I've got 20 or so thumbnail images in my sidebar that link to sponsers. I want to randomize the order in which they appear on each page load.

fris 12-25-2006 10:56 AM

i think their is a random plugin, or you could just write a mini php script and call it from the sidebar

WebDoodlesUSA 12-25-2006 09:59 PM

Yeah, there are a ton of "randomness" plugins. I'm sure there HAS to be one to fit this. plugins.wordpress.org i think.

Babaganoosh 12-25-2006 10:05 PM

It doesn't need to be a "plug-in." Write a few lines of php to randomize an array containing your thumbs & links. Then use a php include to show the results in a sidebar.

tabasco 12-25-2006 10:44 PM

Quote:

Originally Posted by Babaganoosh (Post 11594290)
It doesn't need to be a "plug-in." Write a few lines of php to randomize an array containing your thumbs & links. Then use a php include to show the results in a sidebar.

Can you spell it out for me? I've got no idea how to write something like that.

AsianRain 12-26-2006 04:27 AM

Quote:

Originally Posted by tabasco (Post 11589826)
I've got 20 or so thumbnail images in my sidebar that link to sponsers. I want to randomize the order in which they appear on each page load.

Pretty simple to do. First create a category called "sidebar links." When you create the category, select the 'sort order' as "random." Next, associate all your links with this category and they should all appear in a random order. Good luck, AR+

Hentaikid 12-26-2006 12:24 PM

Yeah you can make a link category, associate image with each link, put it in the sidebar with "getlinks_byname" or whatever the call is and set the category to random, look it up on the codex for the details

Hentaikid 12-26-2006 12:39 PM

Yeah you can make a link category, associate image with each link, put it in the sidebar with "getlinks_byname" or whatever the call is and set the category to random, look it up on the codex for the details


All times are GMT -7. The time now is 09:17 AM.

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