WordPress.org

Ready to get started?Download WordPress

Forums

Remove Bookmarklet div (2 posts)

  1. valiot
    Member
    Posted 10 years ago #

    Can anyone tell me how to remove the block at the bottom of the posting window with the bookmarklet information?

  2. Mark Jaquith
    WordPress Lead Dev
    Posted 10 years ago #

    open up "wp-admin/post.php" and take out this code:
    <div class="wrap">
    <?php _e('<h3>WordPress bookmarklet</h3>
    You can drag the following link to your links bar or add it to your bookmarks and when you "Press it" it will open up a popup window with information and a link to the site you&#8217re currently browsing so you can make a quick post about it. Try it out:') ?>

    <?php
    $bookmarklet_height= (get_settings('use_trackback')) ? 460 : 420;
    if ($is_NS4 || $is_gecko) {
    ?>
    = 0){Q=getSelection();}else{Q=document.selection?document.selection.createRange().text:document.getSelection();}void(window.open('<?php echo get_settings('siteurl') ?>/wp-admin/bookmarklet.php?text='+escape(Q)+'&popupurl='+escape(location.href)+'&popuptitle='+escape(document.title),'<?php _e('WordPress bookmarklet') ?>','scrollbars=yes,width=600,height=460,left=100,top=150,status=yes'));"><?php printf(__('Press It - %s'), get_settings('blogname')); ?>
    <?php
    } else if ($is_winIE) {
    ?>
    /wp-admin/bookmarklet.php?text='+escape(Q)+'<?php echo $bookmarklet_tbpb ?>&popupurl='+escape(location.href)+'&popuptitle='+escape(document.title),'bookmarklet','scrollbars=yes,width=600,height=<?php echo $bookmarklet_height ?>,left=100,top=150,status=yes'));btw.focus();"><?php printf(__('Press it - %s'), get_settings('blogname')); ?>
    <script type="text/javascript" language="JavaScript">
    <!--
    function oneclickbookmarklet(blah) {
    window.open ("profile.php?action=IErightclick", "oneclickbookmarklet", "width=500, height=450, location=0, menubar=0, resizable=0, scrollbars=1, status=1, titlebar=0, toolbar=0, screenX=120, left=120, screenY=120, top=120");
    }
    // -->
    </script>

    One-click bookmarklet:

    click here
    <?php
    } else if ($is_opera) {
    ?>
    /wp-admin/bookmarklet.php?popupurl='+escape(location.href)+'&popuptitle='+escape(document.title)+'<?php echo $bookmarklet_tbpb ?>','bookmarklet','scrollbars=yes,width=600,height=<?php echo $bookmarklet_height ?>,left=100,top=150,status=yes'));"><?php printf(__('Press it - %s'), get_settings('blogname')); ?>
    <?php
    } else if ($is_macIE) {
    ?>
    /wp-admin/bookmarklet.php?text='+escape(document.getSelection())+'&popupurl='+escape(location.href)+'&popuptitle='+escape(document.title)+'<?php echo $bookmarklet_tbpb ?>','bookmarklet','scrollbars=yes,width=600,height=<?php echo $bookmarklet_height ?>,left=100,top=150,status=yes'));btw.focus();"><?php printf(__('Press it - %s'), get_settings('blogname')); ?>
    <?php
    }
    ?>

    </div>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.