Check out the FREE chatroom mod for IPB 3.x

>  BookmarkIt
Short Description
Adds bookmark icons to social networking sites (Digg, Del.icio.us and others) within each post, blog or Inviki article

Detailed Description


This is a modification to display bookmark submission icons for your choices from the following popular social networking bookmark sites:

* BlinkBits
* BlogMarks
* Del.icio.us
* Digg
* Facebook
* Fark
* Furl
* Google
* Ma.gnolia
* Meneame
* NetVouz
* Newsvine
* RawSugar
* Reddit
* Scuttle
* Shadows
* Simpy
* Slashdot
* Spurl
* StumbleUpon
* Technorati
* Vidaup
* Wists
* YahooMyWeb

Installation instructions are given to add the icons to any (or all) of:

* Forum posts
The icons can be set to be visible in only the first post of a topic, in the first post on each page of a topic, or in every post of a topic
* IP.Blog blog entries
* Inviki article manager articles

Other changes in this version are:

* Checks for MinervaSEO and makes the icon images compatible if it's installed.
Download

>  BookmarkIt, User Contributed Files
File Information
Date Submitted: September 24, 2007
Downloads: 906
Downloads Per Day: 0.8435
Views: 3,535
Compatibility: Invision Power Board v2.2 & 2.3
File Version: v1.3.0
File Size: 118.224 KBytes
Last Updated: October 11 2007, 01:52 PM
Demo Link: Click Here.
Allow Upgrades w/o Your Permission?: No
Upgrade Terms for this Submission: None
Support Topic: Click Here
Report File: Report Broken Mod
File Rating
BadOkGoodGreatExcellent(4.4/5 (5 votes)
Please login to vote.
(you must login to be able to cast your vote)

User Comments (View Topic)
March 27 2009, 12:30 PM
by gtman55
Any way to put a border around the bookmark bar?
March 8 2009, 03:11 AM
by V_I_R_U_S
I have come Up with the solution..thanks to all
March 4 2009, 06:43 AM
by V_I_R_U_S
I am getting the following error after performing the modification:

CODE
Parse error: syntax error, unexpected ';', expecting T_FUNCTION in /home/abc/public_html/forum/sources/action_public/topics.php on line 2611


I just only edited the TOPICS.PHP..i did not edit the blog n wiki file

rest of the edits were done successfully

Any help would be highly appreciated.

Thanks in advance
October 9 2008, 10:01 AM
by PePiPoo
My apologies for the lack of response to problems reportred here - for some reason "Track this topic" hasn't been notifying me of new posts.

QUOTE (1hothairycuban @ May 29 2008, 09:00 PM) <{POST_SNAPBACK}>
I tried installing it but i cant find this last part.




CODE
Open Topic View -> Render Row

Find:
            <!-- REPORT / UP -->

Add Below:
            <!-- BOOKMARKIT LINK BAR -->
            <div id="bookmarkit" style="float: left;">{$this->ipsclass->vars[ 'bookmarkit_linkbar' ]}</div>

Save Template Bit



i cant find <!-- REPORT / UP --> has anybody had this problem??? i have uploaded and done everything the instructiosn say,
my board version is 2.3.2

can anybody help me???



If you're using the default skins (or slightly modified versions of them) then you should be able to find that comment in there. Of course if you're using a custom or heavily modded skin then you're going to have to find an appropriate place in your skin's template bit to insert the code, if necessary using a bit of trial and error. If it helps here's some more of the default 2.2.0 skin's code around that insertion point up to the end of the template bit:
CODE
       <td width="100%" valign="top" class="{$post['post_css']}" id='post-main-{$post['pid']}'>
            <!-- THE POST {$post['pid']} -->
            <div class="postcolor" id='post-{$post['pid']}'>
                {$post['post']}
                {$post['edit_by']}
                <if="$post['post_edit_reason'] != ''">
                    <div class='post-edit-reason'>
                        {$this->ipsclass->lang['reason_for_edit']}: {$post['post_edit_reason']}
                    </div>
                </if>
                <!--IBF.ATTACHMENT_{$post['pid']}-->
            </div>
            
            {$post['signature']}
            <!-- THE POST -->        
        </td>
    </tr>
    <tr>
        <td class="formbuttonrow" nowrap="nowrap">
            <div style='text-align:left'><a href="java script:scroll(0,0);"><{P_UP}></a>{$post['report_link']}</div>
        </td>
        <td class="formbuttonrow" nowrap="nowrap">
            <!-- PM / EMAIL / WWW / MSGR -->
            <div style="float: left;">
                &nbsp;
            </div>
            <!-- REPORT / UP -->

<!-- BOOKMARKIT LINK BAR -->
<div style="float: left;">{$this->ipsclass->vars[ 'bookmarkit_linkbar' ]}</div>

             <div align="right">
                 {$post['delete_button']}{$post['edit_button']}<a href="#" onclick="multiquote_add({$post['pid']}); return false;" title="{$this->ipsclass->lang['mq_title']}">{$post['mq_start_image']}</a><a href="{$this->ipsclass->base_url}act=Post&amp;CODE=02&amp;f={$this->ipsclass->input['f']}&amp;t={$this->ipsclass->input['t']}&amp;qpid={$post['pid']}" title="{$this->ipsclass->lang['tt_reply_to_post']}"><{P_QUOTE}></a>
             </div>
         </td>
    </tr><tr>
    <td class="catend" colspan="2">
    <!-- no content -->
    </td>
</tr>
</table>
<if="$post['edit_button']!=''">
<script type='text/javascript'>
//<![CDATA[
if ( ajax_loaded && use_enhanced_js )
{
menu_build_menu( 'edit-but-{$post['pid']}',
    new Array(  img_item + " <a title='{$this->ipsclass->lang['edit_full_desc']}' href='{$this->ipsclass->base_url}act=post&amp;do=edit_post&amp;f={$post['forum_id']}&amp;t={$post['topic_id']}&amp;p={$post['pid']}&amp;st={$this->ipsclass->input['st']}'>{$this->ipsclass->lang['edit_full_title']}</a>",
                img_item + " <a href='#' title='{$this->ipsclass->lang['edit_quick_desc']}' onclick='return ajax_prep_for_edit({$post['pid']}, event);'>{$this->ipsclass->lang['edit_quick_title']}</a>" ) );
}
//]]>
</script>
</if>
May 29 2008, 09:00 PM
by 1hothairycuban
I tried installing it but i cant find this last part.




CODE
Open Topic View -> Render Row

Find:
            <!-- REPORT / UP -->

Add Below:
            <!-- BOOKMARKIT LINK BAR -->
            <div id="bookmarkit" style="float: left;">{$this->ipsclass->vars[ 'bookmarkit_linkbar' ]}</div>

Save Template Bit



i cant find <!-- REPORT / UP --> has anybody had this problem??? i have uploaded and done everything the instructiosn say,
my board version is 2.3.2

can anybody help me???
April 27 2008, 02:50 AM
by Shawn "The Cowboy"
awesome mod.
March 14 2008, 03:11 AM
by Josh_TGF
EDIT: thanks to terabyte, you can easily get this working on IPB v2.3.4 with ease. I have tried and am using it and it works like a charm.

In the topics.php edit you just need to add another bracket at the end of the edit like so
BEFORE
QUOTE
// BOOKMARKIT v1.3.0: Construct a button bar to submit bookmarks for this post to social networking bookmark sites
if ( $this->ipsclass->vars[ 'bookmarkit_enable' ] )
{
if ( ( $this->ipsclass->vars[ 'bookmarkit_visibility' ] == 'All' ) OR
( $this->ipsclass->vars[ 'bookmarkit_visibility' ] == 'Topic' AND $this->topic[ 'topic_firstpost' ] == $row[ 'pid' ] ) OR
( $this->ipsclass->vars[ 'bookmarkit_visibility' ] == 'Page' AND $row[ 'post_count' ] - intval( $this->ipsclass->input[ 'st' ] ) == 1 ) )
{
// Substitute actual URL and title of this post for the placeholders
$bm_link = urlencode( $this->ipsclass->base_url . 'showtopic=' . $this->topic['tid'] . '&view=findpost&p=' . $row[ 'pid' ] ) ;
$bm_title = urlencode( $this->topic [ 'title' ] ) ;
$this->ipsclass->vars[ 'bookmarkit_linkbar' ] = str_replace( array( '<--LINK-->', '<--TITLE-->' ), array( $bm_link, $bm_title ), $this->ipsclass->vars[ 'bookmarkit_template' ] ) ;
} else {
$this->ipsclass->vars[ 'bookmarkit_linkbar' ] = '' ;
}


AFTER
QUOTE
// BOOKMARKIT v1.3.0: Construct a button bar to submit bookmarks for this post to social networking bookmark sites
if ( $this->ipsclass->vars[ 'bookmarkit_enable' ] )
{
if ( ( $this->ipsclass->vars[ 'bookmarkit_visibility' ] == 'All' ) OR
( $this->ipsclass->vars[ 'bookmarkit_visibility' ] == 'Topic' AND $this->topic[ 'topic_firstpost' ] == $row[ 'pid' ] ) OR
( $this->ipsclass->vars[ 'bookmarkit_visibility' ] == 'Page' AND $row[ 'post_count' ] - intval( $this->ipsclass->input[ 'st' ] ) == 1 ) )
{
// Substitute actual URL and title of this post for the placeholders
$bm_link = urlencode( $this->ipsclass->base_url . 'showtopic=' . $this->topic['tid'] . '&view=findpost&p=' . $row[ 'pid' ] ) ;
$bm_title = urlencode( $this->topic [ 'title' ] ) ;
$this->ipsclass->vars[ 'bookmarkit_linkbar' ] = str_replace( array( '<--LINK-->', '<--TITLE-->' ), array( $bm_link, $bm_title ), $this->ipsclass->vars[ 'bookmarkit_template' ] ) ;
} else {
$this->ipsclass->vars[ 'bookmarkit_linkbar' ] = '' ;
}
}


Hope that fixes the problem for those of you on IPB v2.3.4 smile2.gif

And please thank terabyte as he was the one who told me smile2.gif
February 20 2008, 02:48 AM
by sford999
QUOTE (darkbreed @ Jan 26 2008, 11:46 AM) <{POST_SNAPBACK}>
Yes I agree.. and it works very good with 2.3.x I use it on that myself.

Just wish the above mentioned features were added... it is a very useful and great tool!

If someone knows how I can manually add these features by editing the code etc let me know, also let me know regarding my question on how to make a similar thing for my webpage.


I found this http://www.bookmarkz.net/post/post.php which looks pretty good, only thing is that it is hosted as a jacascript on their servers, and I would like to have everything on my own server without being dependent on third parties..

Such as that mod this topic is about, works great, and is stand alone wihout any need of being connected to other sites in order to work.


Since no ones supporting this, I`ve gone with the idea posted above.
February 17 2008, 12:47 PM
by zabberwan
However, I still have a remaining question and that is: how can I tamper the vertical alignment of the icon bar? as there is only one setting for padding and this is for the distance between the icons on the left and right. Is there somewhere I can fix the vertical alignment as on most of my skins the icon bar seems to tend towards the top of the space in the render row? I would want it centered so that it can be aligned with other icons like PM or email. If one had some way to insert the padding for the top and bottom as well then one could move it up or down accordingly.

Look forward to some instructions.. thanks!

zabberwan
February 17 2008, 03:50 AM
by zabberwan
It is resolved now. It was the missing curly bracket at the end of the edit code.

Thank you and that mod is a real hoot!

zabberwan


Invision Skins · IPB Skins