Would you consider making the following addition to the code for those of us who display the contributor name in the block? It brings the code in line with the centerblock code, which you already have this way.
functions.inc, line 671, original:
Text Formatted Code
if (!$dbquote = DB_query("SELECT Quotes, Quoted FROM {$_DQ_TABLES['dailyquote_quotes']} WHERE Status='1' ORDER BY rand() LIMIT 1")){
$retval .= $LANG_DAILYQUOTE['randomerror'];
COM_errorLog("An error occured while retrieving your quote",1);
} else {
list ($Quotes, $Quoted) = DB_fetchArray($dbquote);
if (!empty($Quotes)){
$retval = "<p align="left">"";
$retval .= $Quotes;
$retval .= ""</p>" . LB;
$retval .= "<p align="right"><em>";
$retval .= $Quoted;
$retval .= "</em></p>";
}
}
functions.inc, line 671, new:
Text Formatted Code
if (!$dbquote = DB_query("SELECT Quotes, Quoted, q.UID, username FROM {$_DQ_TABLES['dailyquote_quotes']} q, {$_TABLES['users']} gl WHERE Status='1' AND q.UID=gl.uid ORDER BY rand() LIMIT 1")){
$retval .= $LANG_DAILYQUOTE['randomerror'];
COM_errorLog("An error occured while retrieving your quote",1);
} else {
list ($Quotes, $Quoted, $uid, $username) = DB_fetchArray($dbquote);
if (!empty($Quotes)){
$retval = "<p align="left">"";
$retval .= $Quotes;
$retval .= ""</p>" . LB;
$retval .= "<p align="right"><em>";
$retval .= $Quoted;
$retval .= "</em></p>";
// $retval .= "<p style="text-align: right; font-size: 8pt;">";
// $retval .= $LANG_DAILYQUOTE['subm_by'] . " " . $username;
// $retval .= "</p>";
}
}
Thanks for your consideration. Notice that the actual display code is commented out, just like in the centerblock's thtml file.
Otherwise, 1.0 looks good so far. It'll be put through a few paces over the next couple days.