NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page Listing posts in alphabetical order on my Blog

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 10-07-2006, 03:48 PM THREAD STARTER               #1 (permalink)
NamePros Member
Join Date: Feb 2005
Posts: 82
hitman is an unknown quantity at this point
 



Listing posts in alphabetical order on my Blog


Hi there!

I'm using Blogger and I'd like to have a list of all the posts on my blog in alphabetical order.
More precisely, it would be an independant link in the side-menu which would direct users to a post (just like when they click on "Previous Posts", posts are shown individually) that will show them the alphabetical list.

How can this be done? I'd really appreciate if someone could help a newbie.
hitman is offline  
Old 10-11-2006, 08:00 PM THREAD STARTER               #2 (permalink)
NamePros Member
Join Date: Feb 2005
Posts: 82
hitman is an unknown quantity at this point
 



Anyone? Anybody knows how to do web programming?
hitman is offline  
Old 10-12-2006, 01:36 PM   #3 (permalink)
NamePros Member
 
GoDesign's Avatar
Join Date: Oct 2006
Posts: 167
GoDesign is an unknown quantity at this point
 



If you're using PHP this might do it:

Code:
<?
$array = file("/path/to/your/list/of/blogs/bloglinks.php");
shuffle($array);
for ($i=0; $i<10; $i++) {
$miniarray[$i] = $array[$i];
}
sort($miniarray);
for ($i=0; $i<count($miniarray); $i++) {
echo $miniarray[$i];
}
?>
which is from here . i do recommend reading that source page before playing with that code, just to make sure it's what you're after.
GoDesign is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Liquid Web Smart Servers  
All times are GMT -7. The time now is 12:30 PM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger