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 05-02-2009, 01:26 AM   #1
MasterBlow
Confirmed User
 
MasterBlow's Avatar
 
Join Date: Apr 2003
Location: Earth
Posts: 2,059
Wordpress PHP

How do I format the blogroll into two columns - create 2 css classes, 1 for each column?
__________________
MasterBlow is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-02-2009, 02:05 AM   #2
GrouchyAdmin
Now choke yourself!
 
GrouchyAdmin's Avatar
 
Industry Role:
Join Date: Apr 2006
Posts: 12,085
You can do it the hard way if you really want, but render blogroll links allows pre, and post wrapping. If you need the logic to that, here's some an ancient routine I made in about 2004, it will return 'row1' or 'row2' by default - you ca specify the assigned variable you want displayed by naming it:

Code:
// This simple creature returns a numeric of 1, or 2, based upon the
// global index for $gl['row']; You may set the prefix for this, or if passed as a boolean of TRUE for a secondary param; it will reset to '1'
// -----------------
function thisrow($name=FALSE, $reset=FALSE){
  global $gl;
  $name = (isset($name)) ? $name : "row"
  $gl['__row'] = ($reset) ? 1 : (($gl['__row']++%2) + 1);
  return($name . $gl['__row']);
}
Here's a sample:

Code:
$array = array("one","two","three","four","five");
foreach ($array as $value) {
  echo "<div class =".thisrow("pie").">$value</div>";
}
__________________
GrouchyAdmin is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-02-2009, 03:52 AM   #3
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,359
Quote:
Originally Posted by MasterBlow View Post
How do I format the blogroll into two columns - create 2 css classes, 1 for each column?
http://wordpress.org/extend/plugins/wp-multicollinks/
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-02-2009, 09:44 AM   #4
MasterBlow
Confirmed User
 
MasterBlow's Avatar
 
Join Date: Apr 2003
Location: Earth
Posts: 2,059
thnx guys
__________________
MasterBlow 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.