Wordpress is compatible with PamelaWare

After some initial worries, it looks like Wordpress 2.5 and PamelaWare 0.9x are compatible.

The only thing that breaks, is that the Wordpress login page designers just *had* to change the color of the login page to be dark text on a light background, compared to the earlier versions where the text was white and the background was dark.

You have to edit admin.pw.php to fix this, as I didn’t want to include the entire .css file every time the login page was loaded — look for a function called pw_loginform_link, and replace the html portion with this:

<hr />
<a href="<?php echo PW_SECUREPLUGINURL . '/' . PW_PLUGIN; ?>/login/infocard-login.php"
        alt="<?php pw_utils::screenPrint('Infocard Login'); ?>"
        style="border: 0; color: #000">
       <?php pw_utils::screenPrint('Login or Register using an Information Card'); ?>
       <br/>
       <img src="<?php echo PW_IMGURL; ?>/infocard_60x42.png"
              style="padding:10px; border: 0" />
 </a>
 &nbsp;
<a alt="<?php echo __('What is this?'); ?>"
        style="border-bottom: none; color: #fff"
        href="http://pamelaproject.com/">
         <?php echo __('(what is this?)'); ?>
</a>

1 comment so far ↓

#1 Mike Jones on 05.05.08 at 8:43 pm

Thanks for posting the fix.

Actually, I had to change the #fff to also to #000 to have it appear correctly.

What are the __ characters for in the echo statements? They appear to cause an underscore or dash to be displayed before the (what is this?) but I don’t know why it’s there. Is it just extra characters in the php file or does it serve a purpose?

You must log in to post a comment.