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 10-18-2009, 10:57 AM   #1
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,229
wordpress tip: spice up your tag cloud

This will take your tag cloud and use random colors, instead of 1 color which is the default output.

add this to your themes functions.php file

Code:
function colorcloud($text) {
     $text = preg_replace_callback('|<a (.+?)>|i', 'colorcallback', $text);
     return $text;
}

function colorcallback($matches) {
     $text = $matches[1];
     $color = dechex(rand(0,16777215));
     $pattern = '/style=(\'|\")(.*)(\'|\")/i';
     $text = preg_replace($pattern, "style=\"color:#{$color};$2;\"", $text);
     return "<a $text>";
}

add_filter('wp_tag_cloud', 'colorcloud', 1);
and in your sidebar place the wp_tag_cloud() function.

Code:
<?php wp_tag_cloud('smallest=8&largest=24&number=50'); ?>
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-18-2009, 10:59 AM   #2
kmanrox
aka K-Man
 
kmanrox's Avatar
 
Industry Role:
Join Date: Oct 2001
Location: The Gutter
Posts: 29,282
good stuff fris.. i thought u were going to recommend the cumulus plugin lol
__________________
Crypto HODLr
Crypto mining
Angel investor
kmanrox is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-18-2009, 12:37 PM   #3
Jdoughs
Confirmed User
 
Jdoughs's Avatar
 
Industry Role:
Join Date: Mar 2004
Location: Great White North
Posts: 5,794
Quote:
Originally Posted by kmanrox View Post
good stuff fris.. i thought u were going to recommend the cumulus plugin lol
Just a note about that cumulus plugin, if you use it, make sure to noindex the directory with all the flash clips, I had a site I used it on a couple months ago and it indexed and cached all the flash files from that pluging (about 200 extra junk pages or files listed in the engine)
__________________
LinkSpun - Premier Adult Link Trading Community - ICQ - 464/\281/\250
Be Seen By New Webmasters/Affiliates * Target out webmasters/affiliates based on niches your sites are for less than $20 a month.
AmeriNOC - Proudly hosted @ AmeriNOC!
Jdoughs is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-18-2009, 01:32 PM   #4
Elli
Reach for those stars!
 
Industry Role:
Join Date: Apr 2003
Location: Vancouver, BC
Posts: 17,991
Here I thought tag clouds were outdated already... is it just me who finds them annoying?
Elli is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-18-2009, 01:34 PM   #5
Jdoughs
Confirmed User
 
Jdoughs's Avatar
 
Industry Role:
Join Date: Mar 2004
Location: Great White North
Posts: 5,794
Quote:
Originally Posted by Elli View Post
Here I thought tag clouds were outdated already... is it just me who finds them annoying?
The tag clouds are one of the most clicked areas on my traffic blogs. I guess it all depends on how effective they are done, and how they are utilized on page.
__________________
LinkSpun - Premier Adult Link Trading Community - ICQ - 464/\281/\250
Be Seen By New Webmasters/Affiliates * Target out webmasters/affiliates based on niches your sites are for less than $20 a month.
AmeriNOC - Proudly hosted @ AmeriNOC!
Jdoughs is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-18-2009, 02:25 PM   #6
Elli
Reach for those stars!
 
Industry Role:
Join Date: Apr 2003
Location: Vancouver, BC
Posts: 17,991
Quote:
Originally Posted by Jdoughs View Post
The tag clouds are one of the most clicked areas on my traffic blogs. I guess it all depends on how effective they are done, and how they are utilized on page.
Woah, really? Hmm.. .maybe I'll have to give them another shot
Elli is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-18-2009, 03:38 PM   #7
VforVendetta
Confirmed User
 
VforVendetta's Avatar
 
Join Date: Mar 2006
Posts: 2,525
thanks!! Good tip!
__________________
Free the world
VforVendetta is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-18-2009, 03:54 PM   #8
Zyzz
So Fucking Banned!
 
Zyzz's Avatar
 
Industry Role:
Join Date: Jul 2006
Location: Fuuuaark
Posts: 5,223
Useful snippet adds a refreshing look to the sidebar!
Zyzz is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-18-2009, 03:58 PM   #9
$5 submissions
I help you SUCCEED
 
$5 submissions's Avatar
 
Industry Role:
Join Date: Nov 2003
Location: The Pearl of the Orient Seas
Posts: 32,195
Quote:
Originally Posted by Elli View Post
Here I thought tag clouds were outdated already... is it just me who finds them annoying?
Judging from my own sites, tag clouds get clicked a lot. Easy to scan. Scan and click.
$5 submissions is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-18-2009, 05:26 PM   #10
TeenSluts
Confirmed User
 
TeenSluts's Avatar
 
Join Date: Mar 2006
Posts: 1,966
thank you
TeenSluts is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-18-2009, 05:28 PM   #11
closer
Confirmed User
 
closer's Avatar
 
Industry Role:
Join Date: Sep 2005
Location: ICQ :: 34739932 :: Les Pays-Bas
Posts: 1,707
Great Tip fris
__________________

HOT DOMAIN NAMES FOR SALE:
EUROPEAN: MACHO.FRKINKY.ESSEXTOONS.CO.UKDOT COMS: DJSEX.COMFAQBOX.COMWEBCAMSTV.COMSEXTWEET.COMPORNVOUCHER.COMGAYBF.COM | GAYBFF.COMGAYSEXDATE.COM | GAYSEXDATING.COM
closer 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.