![]() |
![]() |
![]() |
||||
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 |
Confirmed User
Join Date: Apr 2003
Location: Earth
Posts: 2,059
|
![]() How do I format the blogroll into two columns - create 2 css classes, 1 for each column?
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Now choke yourself!
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']); } Code:
$array = array("one","two","three","four","five"); foreach ($array as $value) { echo "<div class =".thisrow("pie").">$value</div>"; }
__________________
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 | |
Too lazy to set a custom title
Industry Role:
Join Date: Aug 2002
Posts: 55,359
|
Quote:
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence. ![]() WP Stuff |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Join Date: Apr 2003
Location: Earth
Posts: 2,059
|
thnx guys
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |