View Single Post
  #4 (permalink)  
Old 05-01-2008, 07:51 AM
ashishhbti's Avatar
ashishhbti ashishhbti is offline
Casual Pligger
 
Join Date: Jul 2007
Location: India
Posts: 38
Thanks: 0
Thanked 9 Times in 5 Posts
Check this.



{php}

$random_row = mysql_fetch_row(mysql_query("SELECT link_id FROM ".table_links." WHERE link_status='published' ORDER BY rand() LIMIT 1"));
$randomLinkId = $random_row['link_id'];

$link = new Link;

// Edit this line here to change the story
// to figure out what number a story is, hover your mouse over the votebox for the story
// you'll see javascript:vote(A, B, C, 'D', E)
// the 2nd number (B) will be the number you enter below
// a better version of this module will come with Pligg V1.0


$link->id=$randomLinkId ;



$link->read();
$link->print_summary('summary');

{/php}
Reply With Quote