Not signed in (Sign In)

Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorPieperLy
    • CommentTimeSep 21st 2008 edited
     
    hi memic,

    you have on your site memic.net on right top corner a nice bookmark button.
    how can i build a bookmarkbutton in my site. can you post the code here?

    thanks
    @all have a nice week
    uwe
    •  
      CommentAuthormemic.a
    • CommentTimeSep 22nd 2008
     
    Hi PieperLy,

    You can get a bookmark button like this on http://www.addthis.com
    You must register to get the code for your bookmark button.
    • CommentAuthorPieperLy
    • CommentTimeSep 22nd 2008
     
    okay, thanks...i do so.

    have a nice week, greetings from germany
    PieperLy
    • CommentAuthorPieperLy
    • CommentTimeSep 23rd 2008
     
    hi memic,

    how can i use javascript in php?
    have insert in album.php, but syntax from javascript isn't good for php, so i have errormessage "unexpectet t_string"

    album.php:
    <?php
    plogger_get_header();

    print '<div id="thumbnail_container">';
    if (plogger_has_pictures()) {
    print '<div id="overlay">&nbsp;</div>';
    print '<ul class="slides">';

    print ' <div style="width: 100%; margin-top:-25px; height: 10px id="pagination">
    <table style="width: 100%;">
    <tr>

    <td style="text-align:left;">



    <!-- AddThis Button BEGIN -->
    <script type="text/javascript">addthis_pub = 'OldSkoolMan';</script>
    <a href="http://www.addthis.com/bookmark.php" onmouseover="return addthis_open(this, '', '[URL]', '[TITLE]')" onmouseout="addthis_close()" onclick="return addthis_sendto()"><img src="http://s9.addthis.com/button1-addthis.gif" width="125" height="16" border="0" alt="" /></a><script type="text/javascript" src="http://s7.addthis.com/js/152/addthis_widget.js"></script>
    <!-- AddThis Button END -->



    </td>
    <td style="text-align:right;padding-right:50px">'.plogger_pagination_control().'</td>

    </tr>
    </table>
    </div>';

    while(plogger_has_pictures()) {
    plogger_load_picture();
    // display thumbnails within album
    // generate XHTML with thumbnail and link to picture view.
    ....


    have you a solution for this problem?
    thanks
    PieperLy
    •  
      CommentAuthormemic.a
    • CommentTimeSep 23rd 2008
     
    Hi,

    you should escape the ' with \'

    Try to change the code like this

    <!-- AddThis Button BEGIN -->
    <script type="text/javascript">addthis_pub = \'OldSkoolMan\';</script>
    <a href="http://www.addthis.com/bookmark.php" onmouseover="return addthis_open(this, \'\', \'[URL]\', \'[TITLE]\')" onmouseout="addthis_close()" onclick="return addthis_sendto()"><img src="http://s9.addthis.com/button1-addthis.gif" width="125" height="16" border="0" alt="" /></a><script type="text/javascript" src="http://s7.addthis.com/js/152/addthis_widget.js"></script>
    <!-- AddThis Button END -->
    • CommentAuthorPieperLy
    • CommentTimeSep 23rd 2008
     
    ok, thanks, that works...
    reagards from germany
    uwe