Pligg is Ajax unfriendly

Recently developers at Pligg released a module that would allow you to add this effect to your Pligg install.  However, the module should have undergone some testing or perhaps 1 moment of thought.

Amazes me that these so-called “developers” didn’t realize that this effect as like most if not all Moo-tools effects will not work with Prototype which Pligg uses for most of its ajax effects including “Editinplace”.

The only way to use this module release is to disable Editinplace etc… from the admin panel which will disable Scriptaculous as well.

Heres what I use on News Dots, its a similar effect and can be altered via CSS:

after <body {$body_args}>;

<div id=”user-menu”><p>
{if $user_authenticated eq true}
{*{#PLIGG_Visual_Welcome_Back#}<img src=”{$Current_User_Avatar_ImgSrc}” alt=”Avatar” align=”absmiddle”/>*} <a href=”{$URL_userNoVar}”>{$user_logged_in}</a> |
{if $isadmin eq 1} <a href=”{$URL_admin}”> {#PLIGG_Visual_Header_AdminPanel#}</a> | {/if}
<a href=”{$URL_logout}”> {#PLIGG_Visual_Logout#}</a> |
<a id=”addBookmarkContainer”></a>
{else}
<a href=”javascript:Effect.toggle(’login-form’,'appear’);”>{#PLIGG_Visual_Login_Title#}</a> |
<a href=’{$URL_register}’>{#PLIGG_Visual_Register#}</a> |
<a id=”addBookmarkContainer”></a>
{/if}

</p>
</div>
<div id=”login-top”><div id=”login-form” style=”display:none;”>
<form action=”{$my_base_url}{$my_pligg_base}/login.php” method=”post”>
<label>Username:</label>
<input type=” text” class=”text” name=”username” tabindex=”1″ id=”uname” value=”" />
<label>Password:</label>
<input type=”password” class=” text text” name=”password” id=”upassword” tabindex=”2″/>
<label>Remember:</label> <input type=”checkbox” name=”persistent” id=”uremember” class=” checkbox” tabindex=”3″/>
<input type=”submit” value=”Login” class=” submit button” tabindex=”4″ />
<input type=”hidden” name=”processlogin” value=”1″ />
</form>
</div>
</div>

if you use the same div ids, be sure to add them to your CSS with the styling of your choice.

The code will make the login form appear below the link, if you want the form to appear above the link, simple reverse the two.  This code uses builtin ajax coding already part of the Pligg script.

While I like the fact the developers are trying to advance the Pligg system, they need to conduct testing and investigating prior to releasing modules that the average Pligg user will assume has been.

If you enjoyed this post, make sure you subscribe to my RSS feed!

2 Comments »

  1. avatar AJAX coding school » Blog Archive » AJAX Code [2008-09-22 03:40:40] Says:

    [...] Pligg is Ajax unfriendly By Geoserv The code will make the login form appear below the link, if you want the form to appear above the link, simple reverse the two. This code uses builtin ajax coding already part of the Pligg script. While I like the fact the developers … Pliggs - http://www.pliggs.com [...]

  2. avatar [BLOCKED BY STBV] Vote for this article at blogengage.com Says:

    Pligg is Ajax unfriendly…

    Pligg cannot beused with Moo-tools like the developers seem to think it can be….

RSS feed for comments on this post. TrackBack URL

Leave a comment