Page Index Toggle Pages: [1] 2 
Topic Tools
Hot Topic (More than 10 Replies) facebook and similar buttons (Read 2,775 times)
gape
Junior Member
**
Offline



Posts: 76
facebook and similar buttons
Nov 26th, 2010 at 12:38pm
Post Tools
how would i put those to every post on my forum?
so users of facebook and similars could directly 'quote' a text from forum to their comunity?

btw
im still using YaBB 2.3
upgrading will not fix this for me i supose
« Last Edit: Nov 26th, 2010 at 12:39pm by gape »  
Back to top
 
IP Logged
 
Captain John
Ex Member


Re: facebook and similar buttons
Reply #1 - Nov 26th, 2010 at 4:45pm
Post Tools
  
Back to top
 
IP Logged
 
gape
Junior Member
**
Offline



Posts: 76
Re: facebook and similar buttons
Reply #2 - Nov 29th, 2010 at 10:48am
Post Tools
Quote:

mhm
i need facebook - is much more popular ...
this on link is for 2.4
stable is 2.5

but
there are simpler solutions
4ex
http://www.addthis.com/

with this i just need to know where to insert their code
i just need it to display with every post if possible
dont even need it on recent posts and similar ...
« Last Edit: Nov 29th, 2010 at 11:21am by gape »  
Back to top
 
IP Logged
 
tonyvic
Full Member
***
Offline



Posts: 132
Location: Sussex, UK

None
Re: facebook and similar buttons
Reply #3 - Nov 29th, 2010 at 12:16pm
Post Tools
gape wrote on Nov 26th, 2010 at 12:38pm:
upgrading will not fix this for me i supose            

Most certainly, it is available in 2.5

Tony
  
Back to top
WWW  
IP Logged
 
gape
Junior Member
**
Offline



Posts: 76
Re: facebook and similar buttons
Reply #4 - Nov 29th, 2010 at 1:47pm
Post Tools
tonyvic wrote on Nov 29th, 2010 at 12:16pm:
gape wrote on Nov 26th, 2010 at 12:38pm:
upgrading will not fix this for me i supose             

Most certainly, it is available in 2.5

Tony

those butons are in 2.5?
i was looking for it in features but did not find it ...

this is the thing to be done then ...


hope u did not mean this
Quote:
# Ability to add ICQ, AIM, YIM, MSN, Google Talk, Skype/VoIP, MySpace, FaceBook and website URL
« Last Edit: Nov 29th, 2010 at 2:31pm by gape »  
Back to top
 
IP Logged
 
Captain John
Ex Member


Re: facebook and similar buttons
Reply #5 - Nov 29th, 2010 at 3:31pm
Post Tools
gape wrote on Nov 29th, 2010 at 1:47pm:
hope u did not mean this
Quote:
# Ability to add ICQ, AIM, YIM, MSN, Google Talk, Skype/VoIP, MySpace, FaceBook and website URL


Yes .. see attachment from screenshot of users profile.  Entering the info, would place a button under every message and within the users profile.  
« Last Edit: Nov 29th, 2010 at 3:32pm by »  

ContactInfo.jpg ( 49 KB | 53 Downloads )
ContactInfo.jpg
Back to top
 
IP Logged
 
gape
Junior Member
**
Offline



Posts: 76
Re: facebook and similar buttons
Reply #6 - Dec 10th, 2010 at 3:22pm
Post Tools
Quote:
gape wrote on Nov 29th, 2010 at 1:47pm:
hope u did not mean this
Quote:
# Ability to add ICQ, AIM, YIM, MSN, Google Talk, Skype/VoIP, MySpace, FaceBook and website URL


Yes .. see attachment from screenshot of users profile.  Entering the info, would place a button under every message and within the users profile.  

huh
i c
this is not what im looking for
i want to display few buttons that enable ppl to like, share or tweet (... or similar) one particular post to their friends
something like they offer
http://www.addthis.com/
but integrated in yabb and aware of what a post is ...
(so it would not end up in sharing url (the whole page) or something similar)
  
Back to top
 
IP Logged
 
Derek Barnstorm
Support Team
YaBB Next Team
Development Team
Beta Testers
****
Offline



Posts: 1,269
Location: United Kingdom

None
Re: facebook and similar buttons
Reply #7 - Dec 10th, 2010 at 7:16pm
Post Tools
Hi,

Have a look at this for using AddThis with YaBB:

http://www.carsten-dalgaard.dk/cgi-bin/yabb2/YaBB.pl?num=1292008138

I can't find a decent place to put the button for individual posts though, so it's just for bookmarking topics I'm afraid...
« Last Edit: Dec 10th, 2010 at 7:35pm by Derek Barnstorm »  
Back to top
 
IP Logged
 
Captain John
Ex Member


Re: facebook and similar buttons
Reply #8 - Dec 10th, 2010 at 8:15pm
Post Tools
« Last Edit: Dec 10th, 2010 at 8:16pm by »  
Back to top
 
IP Logged
 
Jet Li
Legacy Dev Team
Development Team
****
Offline



Posts: 6,588
Location: Hong Kong
Re: facebook and similar buttons
Reply #9 - Dec 11th, 2010 at 10:14am
Post Tools
@ gape

you can ask Carsten to make as a mod. He use it on his forum.

http://www.carsten-dalgaard.dk/cgi-bin/yabb2/YaBB.pl?board=request

Attached some screenshot how looks like. I have make 2 likes from 2 topics.
« Last Edit: Dec 11th, 2010 at 10:15am by Jet Li »  

ratingtopic-fb-like.png ( 52 KB | 59 Downloads )
ratingtopic-fb-like.png
topic-fb-like.png ( 22 KB | 60 Downloads )
topic-fb-like.png

PM me for YaBB Installation Service
Back to top
WWWGTalkFacebook  
IP Logged
 
gape
Junior Member
**
Offline



Posts: 76
Re: facebook and similar buttons
Reply #10 - Dec 11th, 2010 at 2:52pm
Post Tools
looks nice
could it be done for individual posts?
so person can like the post - as oposed to the whole topic

is there a reason why all implementations are on topic level? the reason i do not see yet?
  
Back to top
 
IP Logged
 
Derek Barnstorm
Support Team
YaBB Next Team
Development Team
Beta Testers
****
Offline



Posts: 1,269
Location: United Kingdom

None
Re: facebook and similar buttons
Reply #11 - Dec 12th, 2010 at 2:10am
Post Tools
gape wrote on Dec 11th, 2010 at 2:52pm:
could it be done for individual posts?

Of cause... Can you tell me 'exactly' what you want though please. Do you want a Facebook 'Like' button, AddThis, or something else?

Can you give me a screenshot with an arrow pointing to where you want it to be displayed too please?

I sort of know what you mean, but if you can 'show' me exactly where you want it and what you want, I'll try my best to help you.

If you've seen it being used elsewhere, then post a link to the website that you have seen it on, so I can see what you mean...
« Last Edit: Dec 12th, 2010 at 2:19am by Derek Barnstorm »  
Back to top
 
IP Logged
 
gape
Junior Member
**
Offline



Posts: 76
Re: facebook and similar buttons
Reply #12 - Dec 13th, 2010 at 7:58pm
Post Tools
hope this helps
http://pozitivke.net/
on every article - u can see the buttons ...

if it does not help - i will do the pic ... its done
i would like those buttons to apear in either place - not both

(btw i have checked the 'notified of replies' but i do not get emails)
  

Capture_003.PNG ( 25 KB | 54 Downloads )
Capture_003.PNG
Back to top
 
IP Logged
 
Derek Barnstorm
Support Team
YaBB Next Team
Development Team
Beta Testers
****
Offline



Posts: 1,269
Location: United Kingdom

None
Re: facebook and similar buttons
Reply #13 - Dec 14th, 2010 at 12:33am
Post Tools
Okay. Yep - that helps.

I haven't got a 2.3 board handy, but I'm pretty sure that the edits you need to search for wouldn't have changed.

Bear in mind I have only tested very quickly though and the buttons will appear on 'all' boards.

I've always found it tricky finding the right place to display bookmark buttons in the post area, and they're a little more over to the right than you asked for, but give this a go and see what you think...

In Sources/Display.pl find:

Code (Perl)
Select All
        $posthandelblock =~ s/({|<)yabb quote(}|>)/$template_quote/g; 


And add this before:

Code (Perl)
Select All
        $addthispost = qq~
<!-- AddThis Button BEGIN -->
<div class="addthis_toolbox addthis_default_style" style="float: right; display: inline;">
<a class="addthis_button_facebook"></a>
<a class="addthis_button_email"></a>
<a class="addthis_button_favorites"></a>
<a class="addthis_button_print"></a>
<span class="addthis_separator">|</span>
<a href="http://www.addthis.com/bookmark.php?v=250" addthis:url="$scripturl?num=$viewnum/$counter#$counter" addthis:title="$msub" class="addthis_button_expanded">More</a>
</div>
<script type="text/javascript">var addthis_config = {"data_track_clickback":true};</script>
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js"></script>
<!-- AddThis Button END -->
        ~;
        $outblock =~ s/({|<)yabb addthispost(}|>)/$addthispost/g; 


Then in Templates/default/Display.template find:

Code
Select All
			{yabb contactlist} &nbsp; 


And replace with:

Code
Select All
			{yabb contactlist} &nbsp; {yabb addthispost} 


Then in Templates/yabb21/Display.template find:

Code
Select All
			<yabb contactlist> &nbsp; 


And replace with:

Code
Select All
			<yabb contactlist> &nbsp; <yabb addthispost> 


Hope that's of some help to you...
  
Back to top
 
IP Logged
 
gape
Junior Member
**
Offline



Posts: 76
Re: facebook and similar buttons
Reply #14 - Dec 16th, 2010 at 4:54pm
Post Tools
i tried on fresh 2.5

i kinda found
Quote:
In Sources/Display.pl find:

but is not the same line - looks ok doh

but
Quote:
Then in Templates/default/Display.template find:

i did not find ...
{yabb contactlist}
but, there is a
$contactlist = qq~




and i did find
<yabb contactlist> &nbsp;
in
Quote:
Templates/yabb21/Display.template



and if i chooze the 21 template - i can see the buttons TonguePP

tyvm
testing now ...



can u debug what went wrong with default template?


and
i noticed only your code for buttons works nicely - is displayed in same line with buttons - if i go and get new code - it jumps down to new line


furthermore i realized that addthis accepts only title and url of the site when calling socilas
ofc i would like to pass to them at least portion of the text from post ...
do i make any sense?

anyway - now that i (kinda) know how i will try some more tweaking ...
couse i have seen websites that pass the title and the portion of article to facebook and other socials ... some can even send pictures
Roll Eyes
« Last Edit: Dec 16th, 2010 at 5:56pm by gape »  
Back to top
 
IP Logged
 
Page Index Toggle Pages: [1] 2 
Topic Tools