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)
-   -   Show Thread Enhancements - Add Facebook to Social Bookmarks (https://vborg.vbsupport.ru/showthread.php?t=218424)

Cloud_Strife 07-11-2009 10:00 PM

Add Facebook to Social Bookmarks
 
1 Attachment(s)
Hello. This is my first official template modification release.

What is it?
This template modification will allow you to add Facebook to your site Social Bookmarks. This will help your users to publish threads to Facebook and expand your forums to Facebook Users.

Installation Time?
~ Approximately 2 Minutes

Installation Wizard:
Step 1:
Go to Styles & Templates -> Style Manager ->Edit Templates -> Show Thread Templates -> showthread_bookmarksite

Replace the existing content with:
Code:

<li class="smallfont" style="width:20%; min-width:160px; float:$stylevar[left]; margin-top:$stylevar[cellpadding]px">
    <if condition="$bookmarksite['iconpath']">
        <a href="$bookmarksite[link]" target="socialbookmark"><img src="$stylevar[imgdir_misc]/$bookmarksite[iconpath]" border="0" alt="<phrase 1="$bookmarksite[title]">$vbphrase[submit_thread_to_x]</phrase>" class="inlineimg" /></a>
    </if>
    <a href="$bookmarksite[link]" target="socialbookmark" style="text-decoration:none">$bookmarksite[title]</a>
</li>

(In red color the modification)

Step 2:
Go to vBulletin Options -> Social Bookmarking Manager -> Add New Social Bookmarking Site
Title: Facebook
Icon: bookmarksite_facebook.gif
Link: http://www.facebook.com/sharer.php?u={URL}&amp;title={TITLE}
Display Order: The Number You Want
Active: Yes (To have this enabled)

Step 3:

Upload icon (Icon in attachment):
If you use vBulletin default Style -> Upload it to: images/misc
If you use non-vBulletin default Style -> Upload it to: template_root/misc

It's Done! You can share your threads through Facebook with million of online people.
Thank you.

abdulbasitsaeed 07-12-2009 11:59 AM

Thank you VERY MUCH for this simple modification.

It worked like a charm! (v 3.8.3). :)

bigtime 07-13-2009 03:16 AM

Great. Thank you.

bmckinley 07-17-2009 03:40 AM

Thanks.

stickyslicks 07-18-2009 02:49 PM

Thank you, this is very nice!

Cloud_Strife 07-31-2009 10:52 PM

Thank you! It's easy and very useful!

SpottySocks 08-04-2009 10:23 PM

Great mod, would love to use it but where's the icon? =/

Nevermind, got it. =)

Saint_I_Am 08-05-2009 01:27 PM

What is the difference between this one and this one --> https://vborg.vbsupport.ru/showthread.php?t=206189

Blacura 08-06-2009 08:44 PM

Where are the icons for this ad-on??????

yamahapaul 08-16-2009 12:14 PM

The icon doesn't show, I'm on 3.8.4, maybe this is the reason?


All times are GMT. The time now is 02:14 AM.

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.04793 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
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete