ayoungh's Profile
Reputation: 93
Excellent
- Group:
- Members
- Active Posts:
- 2,014 (3.06 per day)
- Joined:
- 06-August 10
- Profile Views:
- 12,468
- Last Active:
Yesterday, 10:20 PM- Currently:
- Offline
My Information
- Member Title:
- Web Guru
- Age:
- 23 years old
- Birthday:
- November 5, 1988
- Gender:
-
Male
- Location:
- London
- Interests:
- Web/Graphic Design. HTML/CSS. PHP, Python, New Technology and Online tech e.g. jQuery, google wave etc
Contact Information
- E-mail:
- Click here to e-mail me
- Website URL:
-
http://ayoungh.co.uk
- Skype:
-
ayoung_h
Users Experience
- Experience:
- Intermediate
- Area of Expertise:
- I'm Learning
Latest Visitors
-
Dojcinovski 
17 May 2012 - 19:34 -
Anusha 
03 May 2012 - 05:14 -
Kevin82 
02 May 2012 - 19:55 -
j05hr 
22 Apr 2012 - 15:57 -
jacksaidwhat 
17 Apr 2012 - 09:38 -
brightonmike 
05 Apr 2012 - 10:10 -
AlexsDesign 
19 Mar 2012 - 00:16 -
wesh.co.uk 
16 Mar 2012 - 18:50 -
weboutsourcin... 
15 Feb 2012 - 07:36 -
CMR 
02 Feb 2012 - 15:49
Posts I've Made
-
In Topic: What are you working on - Sneak Peek?
24 April 2012 - 12:55 PM
alzer81, on 23 March 2012 - 10:27 AM, said:havent been here in a while!
been updating bits n pieces of my portfolio last night. added a nice little dribbble feed at the bottom: http://www.alanpower.net
Me either...Your works looking top notch as always
-
In Topic: wordpress foreach - getting links from the database
17 March 2012 - 09:58 AM
Spitfire, on 14 March 2012 - 08:40 PM, said:Sorry, I totally misunderstood what you meant in the original post. Not quite sure what I was thinking with that last bit of code! It should have been:
foreach ($links as $key => $link) { $linkurl=$link->link_url; $linkname=$link->link_name; echo (($key % 2 == 0) ? '<ul><li><a href="'.$linkurl.'" target="_blank"><h5>'.$linkname.'</h5></a></li>' : '<li><a href="'.$linkurl.'" target="_blank"><h5>'.$linkname.'</h5></a></li></ul>'); }
However, that's a very quick and dirty way of doing it which will go wrong if there isn't an even number of links in the array. Something like this would be better:
$total = count($links); foreach ($links as $key => $link) { $linkurl=$link->link_url; $linkname=$link->link_name; if($key % 2 == 0){ echo "<ul>\n"; } echo "<li><a href=\"".$linkurl."\" target=\"_blank\"><h5>".$linkname."</h5></a></li>\n"; if($key % 2 == 1 || ($key + 1) == $total){ echo "</ul>\n"; } }
Perfect, Appreciate it
-
In Topic: wordpress foreach - getting links from the database
14 March 2012 - 07:48 PM
The only problem with the above is that I dont get 2 list items to each ul? -
In Topic: wordpress foreach - getting links from the database
12 March 2012 - 07:32 PM
-
In Topic: Going Freelance? Currently Freelance?
11 March 2012 - 07:28 PM
Glowbridge, on 16 July 2011 - 08:39 PM, said:I spent a very long time looking for the right ToDo/Task Management software. Nothing seemed to fit the bill. I use several devices, several OS' and nothing seemed to be both easily accessed and edited across different platforms AND generally well designed/useable.
That was until I found Wunderlist.
Made by a small German startup, it's free, it runs on all the major platforms (including mobile), It syncs your tasks to the cloud, it looks pretty great and it also has a bunch of great features without getting bogged down in options/buttons etc.
The only issue I have had with it is that it seems to stop the shutdown of OSX. Other than that, brilliant.
I use the new wunderkit by the makers of wunderlist
Friends
-

BlueDreamer
-

Lewwy
-

pea
-

welshhuw
-

bocaj
-

Loxley
-

waynede
-

Faevilangel
-

DyslexiaDanny
-

jacksaidwhat
-

mteam
-

jheg
-

Shaun Chil...
-

charliesai...
-

SEOSheffield
-

andyl
-

Daz
-

Michael Ro...
-

Frost Tear
-

Jock
-

Ash Scott
-

cavking
-

charlotte....
-

Synjyn
-

Alex O'Connor
-

PHP Developer
-

Krannky
-

iksol
-

nooraljamali
-

wedesignso...
-

jessedterry
-

THallDesign
-

WebDev_Tank
-

JPR-UK
-

RobbieD90
-

Rital
-

ricrod
-

Jayware33
-

WebCatch
-

kingy da k...
-

Web_techno...
-

candice
-

GeordieLass
-

AlecIsh
-

Kerli_Brakit
-

PhilipMCli...
-

urbanelementz
-

oakleaves
-

Aaron_WebDev
-

steffcarri...
Showing 50 random friends of 73 (View all)
Help




Find My Content
Display name history
Comments
kingy da killa
15 Dec 2011 - 12:52kingy da killa
15 Nov 2011 - 13:27woohoo
oakleaves
07 Nov 2011 - 11:16kingy da killa
12 Oct 2011 - 11:36i need to loose my belly man :( got quite stocky top half but beer belly lol
kingy da killa
12 Oct 2011 - 10:10target is 85kg by xmas :)
kingy da killa
12 Sep 2011 - 14:55kingy da killa
12 Sep 2011 - 10:03kingy da killa
09 Sep 2011 - 10:39Ill let you know next week what Im on haha going gym loads atm (hopefully sticks like that) Ima try beat your weight bench! muahaha this is insentive for you to bench higher 2 lol
kingy da killa
08 Sep 2011 - 09:20ive just started gym last week and im benching 20 :( last year i could 50 pisstake lol
owell trianing very hard till summer
kingy da killa
08 Sep 2011 - 08:43kingy da killa
05 Aug 2011 - 12:57MikeChipshop
04 May 2011 - 10:53kingy da killa
03 May 2011 - 13:24Kerli_Brakit
12 Mar 2011 - 23:07kingy da killa
07 Feb 2011 - 14:44