vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Miscellaneous Hacks - Social-Bar in CMS-articles step-by-step (https://vborg.vbsupport.ru/showthread.php?t=278237)

Kraxell 02-07-2012 11:00 PM

Social-Bar in CMS-articles step-by-step
 
1 Attachment(s)
This is a userwish.

With this little modification you can add a sharebar in your articles.

1. Go to Addthis.com and get a code (you can register for analyse in future but you dont must do it)
2. You get a code like this:

HTML Code:

<!-- AddThis Button BEGIN -->
<div class="addthis_toolbox addthis_default_style ">
<a class="addthis_button_preferred_1"></a>
<a class="addthis_button_preferred_2"></a>
<a class="addthis_button_preferred_3"></a>
<a class="addthis_button_preferred_4"></a>
<a class="addthis_button_compact"></a>
<a class="addthis_counter addthis_bubble_style"></a>
</div>
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=ra-YOUR-ID"></script>
<!-- AddThis Button END -->

3. Go to template vbcms_content_article_page
4. Find
HTML Code:

                <div class="fullwidth">               
<vb:if condition="$show['fb_likebutton']">
                                <div>{vb:raw fblikebutton}</div>

5. Add below:
HTML Code:

<b />
Your Addthis-Code

Now it must look like:

HTML Code:

                <div class="fullwidth">
                        <vb:if condition="$show['fb_likebutton']">
                                <div>{vb:raw fblikebutton}</div>
                                <br />
                                <!-- AddThis Button BEGIN -->
<div class="addthis_toolbox addthis_default_style ">
<a class="addthis_button_preferred_1"></a>
<a class="addthis_button_preferred_2"></a>
<a class="addthis_button_preferred_3"></a>
<a class="addthis_button_preferred_4"></a>
<a class="addthis_button_compact"></a>
<a class="addthis_counter addthis_bubble_style"></a>
</div>
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=ra-YOUR-ID"></script>
<!-- AddThis Button END -->
                        </vb:if>

If you like it, rate, install and nominate it :)

DirtyJones 02-08-2012 04:56 PM

Aweome!!

TalkVirginia 02-09-2012 06:56 PM

Thanks! Nice work!

Kraxell 02-10-2012 09:00 AM

Your welcome :)

magrabe 02-11-2012 05:14 PM

nice

How do we add to the Forums

TalkVirginia 02-11-2012 05:47 PM

Quote:

Originally Posted by Kraxell (Post 2298176)
Your welcome :)

Dude, I just took a look at your site. You need English translation on there. ;)

Kraxell 02-12-2012 09:42 AM

Its a german website for german people :)


Quote:

How do we add to the Forums
Where exactly?

magrabe 02-12-2012 11:22 AM

Quote:

Originally Posted by Kraxell (Post 2298798)
Its a german website for german people :)




Where exactly?

In the final content of the Post
https://vborg.vbsupport.ru/external/2012/02/30.jpg

and forum home

https://vborg.vbsupport.ru/external/2012/02/31.jpg

thax

Kraxell 02-12-2012 11:51 AM

Take a look at this:
https://vborg.vbsupport.ru/showthread.php?t=259176

magrabe 02-12-2012 01:00 PM

Thax


All times are GMT. The time now is 07:40 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.03876 seconds
  • Memory Usage 1,743KB
  • 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
  • (4)bbcode_html_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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