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)
-   -   Show Thread Enhancements - Submit threads, blogs, articles to facebook, twitter, myspace and others - addtoany (https://vborg.vbsupport.ru/showthread.php?t=235702)

TrailRecon 02-11-2010 10:00 PM

Submit threads, blogs, articles to facebook, twitter, myspace and others - addtoany
 
1 Attachment(s)
Just thought I would share a way I found for your members to submit threads to any social networking site like facebook, Twitter, digg...any of them!


-----------------------------------------------------------------------------------------

To add this code, you will need to edit your "ShowThread" template.


Go to: Admincp>Styles & Templates>Style manager>Edit templates>Show Thread templates>SHOWTHREAD


In the SHOWTHREAD template, Find:
Code:

<div id="thread_controls" class="thread_controls">
<div>



And below that, add this code:
Code:

<a class="a2a_dd" href="http://www.addtoany.com/share_save"><img src="http://static.addtoany.com/buttons/share_save_171_16.png" width="171" height="16" border="0" alt="Share/Bookmark"/></a><script type="text/javascript">a2a_show_title=1;a2a_num_services=14;</script><script type="text/javascript" src="http://static.addtoany.com/menu/page.js"></script>

If you would like to customize the button code, go to www.addtoany.com


Anyway, that is it! very simple, light weight and effective! Enjoy! :)




Here you will find a demo --> CLICK HERE



https://vborg.vbsupport.ru/attachmen...8&d=1265998303









EDIT:

If you would like to add this to the CMS articles, see post #8 HERE

If you would like to add this to blogs, see post #16 HERE








.

COL NIL SATIS 02-12-2010 04:32 PM

Mate thats class..installed nice and easily ..looks a1..cheers pal

TrailRecon 02-12-2010 04:54 PM

Quote:

Originally Posted by COL NIL SATIS (Post 1980897)
Mate thats class..installed nice and easily ..looks a1..cheers pal

Thanks for the kind words! Glad you enjoy it! :)

KProjects 02-12-2010 07:13 PM

Cool - thanks!

Just added to: TwilightRumors.com (wife's site) ;)

GrossKopf 02-12-2010 07:59 PM

Fantastic mod! I've got it installed.

whitedd 02-12-2010 08:48 PM

..is this work in CMS,if I whant to share a article?...

WriteToEnlight 02-12-2010 10:29 PM

Quote:

Originally Posted by whitedd (Post 1981030)
..is this work in CMS,if I whant to share a article?...

I'd like to have this in the cms also

TrailRecon 02-13-2010 12:04 AM

1 Attachment(s)
Quote:

Originally Posted by whitedd (Post 1981030)
..is this work in CMS,if I whant to share a article?...


That is a great idea!

I added it to the article pages!

Here is a DEMO: CLICK HERE

If you wanna do it this same way...


Go to the "vbcms_content_article_page" template

Find:
Code:

<vb:if condition="$comment_block">
                        <div class="article_rating_container">
                                    <a href="{vb:raw page_url}#comments"  rel="nofollow">{vb:raw comment_count} <vb:if condition="$comment_count == '1'">{vb:rawphrase comment}<vb:else />{vb:rawphrase comments}</vb:if></a>
                                <img src="{vb:raw vboptions.bburl}/{vb:stylevar imgdir_misc}/comment.png" alt="{vb:rawphrase comments}" border="0" />
                        </div>
                      </vb:if>
                </div>



And below that </div> tag add the button code:
Code:

<a class="a2a_dd" href="http://www.addtoany.com/share_save"><img src="http://static.addtoany.com/buttons/share_save_171_16.png" width="171" height="16" border="0" alt="Share/Bookmark"/></a><script type="text/javascript">a2a_show_title=1;a2a_num_services=14;</script><script type="text/javascript" src="http://static.addtoany.com/menu/page.js"></script>


Just did some testing on my site but in a bunch of configurations it appears to be trouble free



https://vborg.vbsupport.ru/external/2010/10/14.jpg

djmac 02-15-2010 05:14 AM

This is a great MOD job well done. How can I add this to my BLOG. I added it to the CMS BINGO! Works great.

zonaenlinea 02-15-2010 12:31 PM

thank prefect

cloferba 02-15-2010 03:29 PM

not way to show this on all replies..and share what message i want?

TrailRecon 02-15-2010 06:38 PM

Quote:

Originally Posted by djmac (Post 1982678)
This is a great MOD job well done. How can I add this to my BLOG. I added it to the CMS BINGO! Works great.

I dont use the blogs but I could take a look at them. I just wont be able to test it to see if it is trouble free. I will be able to take a look at it this evening at get back to you

TrailRecon 02-15-2010 06:39 PM

Quote:

Originally Posted by cloferba (Post 1983047)
not way to show this on all replies..and share what message i want?

Sorry, I am unclear what exactly you are asking

eMike 02-15-2010 07:52 PM

Thanks for this :)

basskiller 02-15-2010 08:28 PM

thanks!!!

TrailRecon 02-15-2010 09:04 PM

Quote:

Originally Posted by djmac (Post 1982678)
This is a great MOD job well done. How can I add this to my BLOG. I added it to the CMS BINGO! Works great.


Go to the "blog_show_entry" template.

Find:
Code:

{vb:raw bookmarksites}
add the code DIRECTLY before that (after <p class="bookmarks">)

One thing to note, this will only display in that location if bookmarks are turned ON in the admin cp settings. If bookmarks are turned on I think it looks best there




If you would like to have this button in the blogs but DO NOT want to have the bookmarks turned on, you would need to move it outside that conditional statement. So instead...

find:
Code:

<div class="blogcontrol fly">
and add the code right after it

cloferba 02-16-2010 01:34 PM

Quote:

Originally Posted by TrailRecon (Post 1983174)
Sorry, I am unclear what exactly you are asking

i want to share a reply (not the thread) through my facebook or twitter account...

this mod only submit threads to facebook, but no replies?

TrailRecon 02-16-2010 05:31 PM

Quote:

Originally Posted by cloferba (Post 1983759)
i want to share a reply (not the thread) through my facebook or twitter account...

this mod only submit threads to facebook, but no replies?

That is correct, this particular one only will share the page you are on. It will share the thread, blog or article...but not an individual post out of the page.

I will start looking into a way to share individual posts but this one won't do it

cloferba 02-18-2010 12:15 PM

Quote:

Originally Posted by TrailRecon (Post 1983907)
I will start looking into a way to share individual posts but this one won't do it

this is very important, think about important information that is only on a reply of a thread... it will be useful to share it, but it is only a reply...so user cant :(

greenchicken 02-20-2010 07:49 PM

very very nice... thanks

GeorgeB85 02-20-2010 09:18 PM

Is there a way it could link to the thread that you are using the mod for. Meaning if I am in one thread, and I click say "twitter" I noticed it only posts my forums name and a link to the website, but didn't mention nothing about the thread.

TrailRecon 02-20-2010 09:53 PM

Quote:

Originally Posted by GeorgeB85 (Post 1987628)
Is there a way it could link to the thread that you are using the mod for. Meaning if I am in one thread, and I click say "twitter" I noticed it only posts my forums name and a link to the website, but didn't mention nothing about the thread.

where did you put the button? In the location in the instructions it will paste in the name of the thread. If it is in a different location it may not

GeorgeB85 02-20-2010 10:22 PM

Quote:

Originally Posted by TrailRecon (Post 1987651)
where did you put the button? In the location in the instructions it will paste in the name of the thread. If it is in a different location it may not

I found the issue. I was using a custom code from the site that uses the mod. I used your mod, and now it works.

is_it_me 02-21-2010 11:34 AM

Brillant - so easy to install on my vb4.02 test site.

Tested it to twitter & facebook with a thread headed 'Please ignore - test only' and not only did it work, but needless to say dozens of people clicked on the link - lol. :D

Thanks very much for this. :)

ComoEstaEso-com 02-22-2010 11:41 AM

Quote:

Originally Posted by TrailRecon (Post 1983270)
Go to the "blog_show_entry" template.

Find:
Code:

{vb:raw bookmarksites}
add the code DIRECTLY before that (after <p class="bookmarks">)

One thing to note, this will only display in that location if bookmarks are turned ON in the admin cp settings. If bookmarks are turned on I think it looks best there

Thanks for this!
Installed and it looks great! :)

Question:
Where do I turn on the bookmarks in vB?
I searched, yet can't find it.

Thanks for the work! Much appreciated :) :)

TrailRecon 02-22-2010 07:18 PM

In the admin CP, along the left side menu, click on the one called settings to expand it. one of the sub menus is "social Bookmarking manager"

is_it_me 02-23-2010 08:06 AM

Is there anyway this could be used for events listed in the calendars?

This would be well handy as my site is a local community what's on site.

Thanks in advance for any help. :)

cloferba 02-24-2010 03:17 PM

how can i customize language?

instead of show Share/Save i want to show "SHARE THIS POST"

Instructions to translate this button are the next:
Quote:

var a2a_config = a2a_config || {};
// de
// German / Deutsch
a2a_config.localize = {
Share: "Teilen",
Save: "Sichern",
Subscribe: "Abonnieren",
Email: "E-Mail",
Bookmark: "Lesezeichen",
ShowAll: "Alle anzeigen",
ShowLess: "Weniger anzeigen",
FindServices: "Finde Dienste",
FindAnyServiceToAddTo: "Finde deinen Bookmarkdienst",
PoweredBy: "Unterst?tzt von",
ShareViaEmail: "Teile via E-Mail",
SubscribeViaEmail: "Abonniere via E-Mail",
BookmarkInYourBrowser: "Lesezeichen im Browser setzen",
BookmarkInstructions: "Benutze die Tasten Ctrl+D oder Cmd+D um die Seite zu speichern",
AddToYourFavorites: "Als Favorit setzen",
SendFromWebOrProgram: "Sende die Seite von der Website oder einem Programm aus",
EmailProgram: "E-Mail-Programm"
};
but i dont know where i must add this code! :S

on faq its not explained...

somebody can help me?

TrailRecon 02-24-2010 05:44 PM

what language do you want?

TrailRecon 02-24-2010 06:10 PM

I appologize, I can not wait any longer for a response...I will be back later.

I think this will give you the idea about how to manually do the language

Code:

<a class="a2a_dd" href="http://www.addtoany.com/share_save">
    <img src="http://static.addtoany.com/buttons/share_save_171_16.png" border="0" alt="Share"/>
</a>

<script type="text/javascript">
a2a_config = {
 
    num_services: 10,
    show_title: 1
};

// de
// German / Deutsch
a2a_config.localize = {
  Share: "Teilen",
  Save: "Sichern",
  Subscribe: "Abonnieren",
  Email: "E-Mail",
  Bookmark: "Lesezeichen",
  ShowAll: "Alle anzeigen",
  ShowLess: "Weniger anzeigen",
  FindServices: "Finde Dienste",
  FindAnyServiceToAddTo: "Finde deinen Bookmarkdienst",
  PoweredBy: "Unterst?tzt von",
  ShareViaEmail: "Teile via E-Mail",
  SubscribeViaEmail: "Abonniere via E-Mail",
  BookmarkInYourBrowser: "Lesezeichen im Browser setzen",
  BookmarkInstructions: "Benutze die Tasten Ctrl+D oder Cmd+D um die Seite zu speichern",
  AddToYourFavorites: "Als Favorit setzen",
  SendFromWebOrProgram: "Sende die Seite von der Website oder einem Programm aus",
  EmailProgram: "E-Mail-Programm"
};

</script>

<script type="text/javascript" src="http://static.addtoany.com/menu/page.js"></script>


However, there is a MUCH simpler way to change the language, Go to the customize button here:
http://www.addtoany.com/buttons/

You will see a selection for "more options" After clicking that you can choose your language and will not need to fill it out manually.

I have not had a chance to look into changing the text on the button. I do not know that it is possible...but feel free to look. You will l need to read through their FAQ and maybe search the web. you prolly have to host their js or API files locally to do that but you may first want to look into their TOS before doing so.

cloferba 02-25-2010 01:57 AM

i know i can change language, but what i need is to change the button text "Share/Save" to something more "friendly"

so..no way to change that :(

ComoEstaEso-com 02-25-2010 05:38 PM

Quote:

Originally Posted by TrailRecon (Post 1989049)
In the admin CP, along the left side menu, click on the one called settings to expand it. one of the sub menus is "social Bookmarking manager"

Thank you!
Thanks for your work!!

QuickQuestion:
I just went to 'share' a thread via Facebook, and the information that appeared in Facebook was pointing to my website address... yet there was no text of the thread, or a direct link to the thread.
Just a link to the website's homepage.

Do I have something mis-configured?
Thanks for the help TrailRecon... it is very much appreciated!! :up::up:

TrailRecon 02-25-2010 05:41 PM

Quote:

Originally Posted by cloferba (Post 1990891)
i know i can change language, but what i need is to change the button text "Share/Save" to something more "friendly"

so..no way to change that :(


Yes...you can.

It is simply an image. See this part of the code

Code:

<img src="http://static.addtoany.com/buttons/share_save_171_16.png" border="0" alt="Share"/>
it points to the image of the button. I checked their TOS and they support new buttns and ask if you make a new one to share it here

http://www.flickr.com/groups/addtoany_buttons/pool/


So in other words. yes, create a new image for the button. Host it wherever you choose then change the code above to point to the location of the newly created button

TrailRecon 02-25-2010 05:44 PM

Quote:

Originally Posted by ComoEstaEso-com (Post 1991394)
Thank you!
Thanks for your work!!

QuickQuestion:
I just went to 'share' a thread via Facebook, and the information that appeared in Facebook was pointing to my website address... yet there was no text of the thread, or a direct link to the thread.
Just a link to the website's homepage.
:

Thanks comoestaeso!

Does this sound like what you experienced? If not, let me know and I will look at what is happening

Quote:

Why doesn't Facebook use the page title and how can I set the image Facebook uses?

Facebook does link sharing a little differently than most other services. Facebook uses the Meta Description of a shared page instead of the page's title or the title you have set for your AddToAny sharing widget. To change the description or image on Facebook, you will need to modify your pages. For information on setting the description and image that Facebook uses, see http://wiki.developers.facebook.com/...ying_Meta_Tags.


ComoEstaEso-com 02-25-2010 05:58 PM

Quote:

Originally Posted by TrailRecon (Post 1991399)
Thanks comoestaeso!

Does this sound like what you experienced? If not, let me know and I will look at what is happening

Thanks again for all your support!

I'm going to get on that, and will update later tonight (running out the door at the moment).
Will follow-up on how it went :)

Have a great day!!

-- AJ :)
.

TrailRecon 02-25-2010 06:11 PM

Quote:

Originally Posted by ComoEstaEso-com (Post 1991406)
Thanks again for all your support!

I'm going to get on that, and will update later tonight (running out the door at the moment).
Will follow-up on how it went :)

Have a great day!!

-- AJ :)
.

Sounds good! Let me know if that was not it ad I will be happy to help if I can

is_it_me 02-27-2010 09:18 AM

Quote:

Originally Posted by is_it_me (Post 1989466)
Is there anyway this could be used for events listed in the calendars?

This would be well handy as my site is a local community what's on site.

Thanks in advance for any help. :)

Any ideas, anyone?

TrailRecon 02-27-2010 10:16 PM

Quote:

Originally Posted by is_it_me (Post 1989466)
Is there anyway this could be used for events listed in the calendars?

This would be well handy as my site is a local community what's on site.

Thanks in advance for any help. :)


soryy, bit of a rush right now but this should work well for you.


Navigate to your CALENDAR template:

find:
Code:

<body>
{vb:raw header}
{vb:raw navbar}

<div id="pagetitle">

and directly beneath that ad this code:
Code:

<span style="float: right;"><a class="a2a_dd" href="http://www.addtoany.com/share_save"><img src="http://static.addtoany.com/buttons/share_save_171_16.png" width="171" height="16" border="0" alt="Share/Bookmark"/></a><script type="text/javascript">a2a_show_title=1;a2a_num_services=14;</script><script type="text/javascript" src="http://static.addtoany.com/menu/page.js"></script></span>

problem is, this button grabs the page title...not the content such as posts which is how it treats calendar events. So this will put the button on the page but if a user clicks it, it will only auto fill out the comment as the page titkle and they would have to type the comment they like...i do not think there is a way (with this mod) to have the event title captured by the button buut I can look into it when I have some more time

stl7997 02-27-2010 10:46 PM

Nice! This will be a great addition to any forum! Thanks for the find!

Jabong82 02-27-2010 11:22 PM

Any way to make this work for albums and groups?


All times are GMT. The time now is 02:07 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.01676 seconds
  • Memory Usage 1,858KB
  • 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
  • (11)bbcode_code_printable
  • (21)bbcode_quote_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
  • (40)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