vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Miscellaneous Hacks - Bookmarks in one button (like Addthis) (https://vborg.vbsupport.ru/showthread.php?t=210291)

sugresmax 04-03-2009 10:00 PM

Bookmarks in one button (like Addthis)
 
1 Attachment(s)
This hack moves Social Bookmarks to popupmenu like AddThis button.

Open SHOWTHREAD template and find
Code:

<!-- toolbar -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" style="border-bottom-width:0px">
<tr>
        <td class="tcat" width="100%">
                <div class="smallfont">
                <if condition="$show['firstunreadlink']">
                        <a href="$firstunread"><img class="inlineimg" src="$stylevar[imgdir_button]/firstnew.gif" alt="$vbphrase[view_first_unread]" border="0" /></a>
                        <a href="$firstunread"><strong>$vbphrase[view_first_unread]</strong></a>
                </if>
                &nbsp;
                </div>
        </td>

And below add:
Code:

<if condition="$bookmarksites">
<td class="vbmenu_control">
            <a id="bookmark" href="#bookmark"><img src="$stylevar[imgdir_misc]/bookmarks.gif" border="0"</a>
            <script type="text/javascript">
            <!--
            vbmenu_register("bookmark",true);
            //-->
            </script>

<div class="vbmenu_popup" id="bookmark_menu" style="display:none">
        <table border="0" cellpadding="0" cellspacing="0"  width=490pxalign="center">
        <tr>
                <td class="alt2" style="padding-top:0px"><div style="clear:both"></div><ul style="list-style-type:none; margin:0px; padding:0px">$bookmarksites</ul><div style="clear:both"></div></td>
        </tr>
        </table>
</td>
</if>

Then you must add some "bookmarks.gif" button picture in your forums [imgdir_misc] dir.

You can try this at http://www.megaxit.ru

Jasem 04-04-2009 02:06 PM

thank you!

Installed

alqloob alsahya 04-04-2009 02:10 PM

1 Attachment(s)
Thank you my brother, but thes icon to your wonderful topic

thank"s again :)

pein87 04-05-2009 08:05 PM

1 Attachment(s)
Installed works great heres english button with psd/xcf files for both gimp and photoshop.

zefyx 04-07-2009 11:35 PM

Quote:

Originally Posted by pein87 (Post 1784544)
Installed works great heres english button with psd/xcf files for both gimp and photoshop.

Thanks!

M-Tuning 04-10-2009 07:50 PM

Nice, too bad I don't have any more room left for this button.

mykkal 07-03-2009 01:09 PM

but how do you add new ones? I would like to add a facebook icon.

also there is a lot of space in between each row of bookmarks. Do you know how I can make it tighter?

SİMAR 07-03-2009 06:29 PM

Gut Schon

TECNOANIMEX 12-05-2009 01:20 AM

Very Thanks men :D


All times are GMT. The time now is 06:50 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01081 seconds
  • Memory Usage 1,730KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete