Saturday, February 24, 2007

ezLogin 0.31

Thanks David for writing in, his comment is here.    He has done a widgetized [tag]plugin[/tag] version.    John said it here that he was look for a plugin to work with widget.

If you are using 0.31 then you may like to do some little adjustments to the look of it.

At around line 70, you'll see below

if ($numcomments):
$return .= ""
$return .= sprintf(__('(%s) comments in moderation'), number_format($numcomments));
$return .= " »
"
else: $return .= "no comments in moderation";
endif;
$return .= ""

The closing tag /ul is placed after "endif".   It is better this way in fact

$return .= ""
if ($numcomments):
$return .= ""
$return .= sprintf(__('(%s) comments in moderation'), number_format($numcomments));
$return .= " »
"
else: $return .= "no comments in moderation";
endif;
echo $return;

The text or link about comment moderation is then placed outside the unordered listing on a separate line.


WARNING: don't copy from the box above as codes are not displayed correctly above.

3 comments:

  1. I can't seem to get the plugin working with widget.. It only displays Login

    ReplyDelete
  2. Is it possible to add a tag in this code, such that certain contain will only appear after the user logged in? Eg. I want to add links that appears to users only after they logged in, is there anyway that I could do that? =)

    ReplyDelete
  3. It would be even better if it can be customized to display links that are specific to users only.. So that I can customize my blog for different frenz to view =D

    ReplyDelete