Created
January 26, 2011 21:49
-
-
Save skipjac/797549 to your computer and use it in GitHub Desktop.
This hides a pinned if the user is logged but displays it if it's a Anonymous user
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="userNamewidget"> | |
</div> | |
<script> | |
$j(document).ready(function() { | |
if('{{current_user.name}}' == 'Anonymous user'){ $j('div#pinned-entry-57062').show();} | |
else | |
{ $j('div#pinned-entry-57062').hide(); } | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
create a custom widget and add the code changing the number to the number of the forum topic id