Author |
Message |
pan
Involved
Joined: Jul 25, 2006
Posts: 354
|
Posted:
Sat Nov 06, 2010 8:01 pm |
|
How can I implement it so someone can 'like' a post and it shows up on their facebook?
I had a search without much like; please point me in the right direction or confirm whether it's possible or not
thanks |
|
|
|
|
jakec
Site Admin
Joined: Feb 06, 2006
Posts: 3048
Location: United Kingdom
|
Posted:
Sun Nov 07, 2010 6:18 am |
|
There is a Facebook share in Social Bookmarks. |
|
|
|
|
nuken
RavenNuke(tm) Development Team
Joined: Mar 11, 2007
Posts: 2024
Location: North Carolina
|
Posted:
Sun Nov 07, 2010 10:18 am |
|
addthis.com has a nice one that includes the facebook like as well as twitter. You would just need to include their script where you want it. |
_________________ Only registered users can see links on this board! Get registered or login! |
|
|
|
pan
|
Posted:
Mon Nov 08, 2010 2:27 am |
|
jakec wrote: | There is a Facebook share in Social Bookmarks. |
is this an addon or something? |
|
|
|
|
neralex
Site Admin
Joined: Aug 22, 2007
Posts: 1775
|
Posted:
Mon Nov 08, 2010 4:31 am |
|
|
|
|
pan
|
Posted:
Mon Nov 08, 2010 6:36 pm |
|
and that all works fine with RNuke?
Has anyone seen implemented into ravennuke where you can like a post and that single post is liked on someones facebook account? |
|
|
|
|
nuken
|
Posted:
Tue Nov 09, 2010 4:36 pm |
|
|
|
|
pan
|
Posted:
Tue Nov 09, 2010 4:58 pm |
|
oh wow thanks - i'll give it a go! |
|
|
|
|
pan
|
Posted:
Tue Nov 09, 2010 5:14 pm |
|
Code:/************************Open***************************/
themes/YOUR_THEME/forums/viewtopic_body.tpl
Find:
<td valign="top" align="right" nowrap="nowrap">{postrow.QUOTE_IMG} {postrow.EDIT_IMG} {postrow.DELETE_IMG} {postrow.IP_IMG} {postrow.REPORT_IMG}</td>
In line find:
{postrow.QUOTE_IMG}
Before add:
{postrow.FACEBOOK_IMG}
|
I can't find this in ravennuke, I can't get that mod to work? |
|
|
|
|
nuken
|
Posted:
Tue Nov 09, 2010 5:19 pm |
|
in RavenNuke it looks more like this
Code:
<td nowrap="nowrap" valign="top">{postrow.QUOTE_IMG} {postrow.EDIT_IMG}
|
|
|
|
|
|
pan
|
Posted:
Tue Nov 09, 2010 5:35 pm |
|
I've edited something and it's ruining my forum
This line is meant to look how?
Code:<td class="gensmall" align="right" valign="bottom"><a href="{U_VIEW_NEWER_TOPIC}">{L_VIEW_NEXT_TOPIC}</a><br />
<a href="{U_VIEW_OLDER_TOPIC}">{L_VIEW_PREVIOUS"nowrap">{postrow.QUOTE_IMG} {postrow.EDIT_IMG} _TOPIC}</a><br />
<strong>{S_WATCH_TOPIC}</strong></td>
|
|
|
|
|
|
nuken
|
Posted:
Tue Nov 09, 2010 5:36 pm |
|
Code:<td class="gensmall" align="right" valign="bottom"><a href="{U_VIEW_NEWER_TOPIC}">{L_VIEW_NEXT_TOPIC}</a><br />
<a href="{U_VIEW_OLDER_TOPIC}">{L_VIEW_PREVIOUS"nowrap">{postrow.FACEBOOK_IMG} {postrow.QUOTE_IMG} {postrow.EDIT_IMG} _TOPIC}</a><br />
<strong>{S_WATCH_TOPIC}</strong></td>
|
|
|
|
|
|
pan
|
Posted:
Tue Nov 09, 2010 5:40 pm |
|
I got the script working
but above my forum on the right hand side it's like this :S
Code:View next topic
"{L_VIEW_PREVIOUS"nowrap"> _TOPIC}
Watch this topic for replies
|
|
|
|
|
|
pan
|
Posted:
Tue Nov 09, 2010 5:59 pm |
|
What do I need to revert to fix the link there? |
|
|
|
|
nuken
|
Posted:
Tue Nov 09, 2010 6:02 pm |
|
If you want it on that side, the code should look something like this:
Code:
{L_VIEW_PREVIOUS"nowrap">{postrow.FACEBOOK_IMG} _TOPIC}
|
I have not tested it, but it should work. |
|
|
|
|
pan
|
Posted:
Tue Nov 09, 2010 6:12 pm |
|
Comes up like this now (above open threads):
Code:View next topic
{L_VIEW_PREVIOUS"nowrap"}> _TOPIC}
Watch this topic for replies
|
From this:
<a href="{U_VIEW_OLDER_TOPIC}"> {L_VIEW_PREVIOUS"nowrap"}> {postrow.QUOTE_IMG} {postrow.EDIT_IMG} _TOPIC}</a><br /> |
|
|
|
|
nuken
|
Posted:
Tue Nov 09, 2010 6:21 pm |
|
Send me the original themes/YOUR_THEME/forums/viewtopic_body.tpl and I will look at it |
|
|
|
|
pan
|
Posted:
Tue Nov 09, 2010 6:23 pm |
|
If I had the original I could just replace what I've done
The facebook module works, I just changed a bit of code I shouldn't have..
I just need to know how the line above is meant to look.
Code:<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td class="nav" valign="top"><a class="maintitle" href="{U_VIEW_TOPIC}" title="{TOPIC_TITLE}">{TOPIC_TITLE}</a><br />
{PAGINATION}</td>
<td class="gensmall" align="right" valign="bottom"><a href="{U_VIEW_NEWER_TOPIC}">{L_VIEW_NEXT_TOPIC}</a><br />
<a href="{U_VIEW_OLDER_TOPIC}"> {L_VIEW_PREVIOUS"nowrap}" {postrow.QUOTE_IMG} {postrow.EDIT_IMG} _TOPIC}</a><br />
<strong>{S_WATCH_TOPIC}</strong></td>
</tr>
</table>
<table width="100%" cellspacing="2" cellpadding="2" border="0">
<tr>
<td nowrap="nowrap"><a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" border="0" alt="{L_POST_NEW_TOPIC}" title="{L_POST_NEW_TOPIC}" height="25" width="82" /></a> <a href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" border="0" alt="{L_POST_REPLY_TOPIC}" title="{L_POST_REPLY_TOPIC}" height="25" width="82" /></a></td>
<td class="nav" width="100%"> <a href="{U_INDEX}">{L_INDEX}</a>
» <a href="{U_VIEW_FORUM}" title="{FORUM_NAME}">{FORUM_NAME}</a></td>
</tr>
</table>
{POLL_DISPLAY}
<table class="forumline" width="100%" cellspacing="1" cellpadding="3" border="0">
<tr>
<th width="150" height="28">{L_AUTHOR}</th>
<th width="100%">{L_MESSAGE}</th>
</tr>
<!-- BEGIN postrow -->
<tr>
<td valign="top" class="{postrow.ROW_CLASS}" rowspan="2"><span class="name"><a name="{postrow.U_POST_ID}"></a><strong>{postrow.POSTER_NAME}</strong></span><br />
<span class="postdetails">{postrow.POSTER_RANK}<br />
{postrow.RANK_IMAGE}<br />
{postrow.POSTER_AVATAR}<br /><br />
{postrow.POSTER_JOINED}<br />
{postrow.POSTER_POSTS}<br />
{postrow.POSTER_FROM}<br />
{postrow.REPUTATION}<br /></span>
<img src="themes/fisubice/forums/images/spacer.gif" alt="" width="150" height="1" />
</td>
<td class="{postrow.ROW_CLASS}" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" class="postdetails"><a href="{postrow.U_MINI_POST}"><img src="{postrow.MINI_POST_IMG}" width="12" height="9" alt="{postrow.L_MINI_POST_ALT}" title="{postrow.L_MINI_POST_ALT}" border="0" /></a>{L_POSTED}:
{postrow.POST_DATE}</td>
<td nowrap="nowrap" valign="top">{postrow.FACEBOOK_IMG} {postrow.QUOTE_IMG} {postrow.EDIT_IMG} <a href="#top"><img src="themes/fisubice/forums/images/icon_up.gif" width="16" height="18" border="0" alt="{L_BACK_TO_TOP}" title="{L_BACK_TO_TOP}" /></a>
{postrow.DELETE_IMG} {postrow.IP_IMG}</td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td valign="top" class="postbody">
<hr />
{postrow.MESSAGE}</td>
</tr>
<tr>
<td height="40" valign="bottom" class="genmed">{postrow.SIGNATURE}<span class="gensmall">{postrow.EDITED_MESSAGE}</span></td>
</tr>
</table>
</td>
</tr>
<tr>
<td valign="bottom" nowrap="nowrap" class="{postrow.ROW_CLASS}"> {postrow.PROFILE_IMG}
{postrow.PM_IMG} {postrow.EMAIL_IMG} {postrow.WWW_IMG} {postrow.AIM_IMG} {postrow.YIM_IMG}
{postrow.MSN_IMG} {postrow.ICQ_IMG}</td>
</tr>
<tr>
<td class="spacerow" colspan="2" height="1"><img src="themes/fisubice/forums/images/spacer.gif" alt="" width="1" height="1" /></td>
</tr>
<!-- END postrow -->
<tr>
<td class="cat" colspan="2" height="28">
<form method="post" action="{S_POST_DAYS_ACTION}">
<table cellspacing="0" cellpadding="0" border="0" align="center">
<tr>
<td class="gensmall">{L_DISPLAY_POSTS}: </td>
<td>{S_SELECT_POST_DAYS} </td>
<td>{S_SELECT_POST_ORDER} </td>
<td><input type="submit" value="{L_GO}" class="catbutton" name="submit" /></td>
</tr>
</table>
</form>
</td>
</tr>
</table>
<table width="100%" cellspacing="2" cellpadding="2" border="0">
<tr>
<td nowrap="nowrap"><a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" border="0" alt="{L_POST_NEW_TOPIC}" title="{L_POST_NEW_TOPIC}" height="25" width="82" /></a> <a href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" border="0" alt="{L_POST_REPLY_TOPIC}" title="{L_POST_REPLY_TOPIC}" height="25" width="82" /></a></td>
<td width="100%" class="nav"> <a href="{U_INDEX}">{L_INDEX}</a> » <a href="{U_VIEW_FORUM}">{FORUM_NAME}</a></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td class="nav" valign="top">{PAGINATION}<br />
<br />
{JUMPBOX}<br />
<br />
{S_TOPIC_ADMIN}<br />
{QUICK_REPLY_FORM}</td>
<td class="gensmall" align="right" valign="top"><strong>{S_WATCH_TOPIC}</strong><br />
<a href="{U_VIEW_NEWER_TOPIC}">{L_VIEW_NEXT_TOPIC}</a><br />
<a href="{U_VIEW_OLDER_TOPIC}">{L_VIEW_PREVIOUS_TOPIC}</a><br />
{S_AUTH_LIST}</td>
</tr>
</table>
<br />
<!-- BEGIN similar -->
<table width="85%" cellspacing="1" cellpadding="4" border="0" align="center" class="forumline">
<tr>
<td class="catHead" colspan="6"><span class="genmed"><b>{similar.L_SIMILAR}</b></span></td>
</tr>
<tr>
<th colspan="2">{similar.L_TOPIC}</th>
<th>{similar.L_AUTHOR}</th>
<th>{similar.L_FORUM}</th>
<th>{similar.L_REPLIES}</th>
<th>{similar.L_LAST_POST}</th>
</tr>
<!-- BEGIN topics -->
<tr>
<td class="row1" align="center"><span class="genmed"><img src="{similar.topics.FOLDER}" border="0" alt="{similar.topics.ALT}" title="{similar.topics.ALT}" /></span></td>
<td class="row1" width="30%">{similar.topics.NEWEST}<span class="gensmall">{similar.topics.TYPE}</span> <span class="topictitle">{similar.topics.TOPICS}</span></td>
<td class="row1" width="10%"><span class="genmed">{similar.topics.AUTHOR}</span></td>
<td class="row1"><span class="genmed">{similar.topics.FORUM}</span></td>
<td class="row1" width="15%" align="center"><span class="genmed">{similar.topics.REPLIES}</span></td>
<td class="row1"><span class="genmed">{similar.topics.POST_TIME} {similar.topics.POST_URL}</span></td>
</tr>
<!-- END topics -->
</table>
<!-- END similar -->
|
|
|
|
|
|
nuken
|
Posted:
Tue Nov 09, 2010 6:27 pm |
|
what theme are you using? |
|
|
|
|
pan
|
Posted:
Tue Nov 09, 2010 6:32 pm |
|
|
|
|
nuken
|
Posted:
Tue Nov 09, 2010 6:35 pm |
|
Try this:
Code:<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td class="nav" valign="top"><a class="maintitle" href="{U_VIEW_TOPIC}" title="{TOPIC_TITLE}">{TOPIC_TITLE}</a><br />
{PAGINATION}</td>
<td class="gensmall" align="right" valign="bottom"><a href="{U_VIEW_NEWER_TOPIC}">{L_VIEW_NEXT_TOPIC}</a><br />
<a href="{U_VIEW_OLDER_TOPIC}">{L_VIEW_PREVIOUS_TOPIC}</a><br />
<strong>{S_WATCH_TOPIC}</strong></td>
</tr>
</table>
<table width="100%" cellspacing="2" cellpadding="2" border="0">
<tr>
<td nowrap="nowrap"><a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" border="0" alt="{L_POST_NEW_TOPIC}" title="{L_POST_NEW_TOPIC}" height="25" width="82" /></a> <a href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" border="0" alt="{L_POST_REPLY_TOPIC}" title="{L_POST_REPLY_TOPIC}" height="25" width="82" /></a></td>
<td class="nav" width="100%"> <a href="{U_INDEX}">{L_INDEX}</a>
» <a href="{U_VIEW_FORUM}" title="{FORUM_NAME}">{FORUM_NAME}</a></td>
</tr>
</table>
{POLL_DISPLAY}
<table class="forumline" width="100%" cellspacing="1" cellpadding="3" border="0">
<tr>
<th width="150" height="28">{L_AUTHOR}</th>
<th width="100%">{L_MESSAGE}</th>
</tr>
<!-- BEGIN postrow -->
<tr>
<td valign="top" class="{postrow.ROW_CLASS}" rowspan="2"><span class="name"><a name="{postrow.U_POST_ID}"></a><strong>{postrow.POSTER_NAME}</strong></span><br />
<span class="postdetails">{postrow.POSTER_RANK}<br />
{postrow.RANK_IMAGE}<br />
{postrow.POSTER_AVATAR}<br /><br />
{postrow.POSTER_JOINED}<br />
{postrow.POSTER_POSTS}<br />
{postrow.POSTER_FROM}</span><br />
<img src="themes/fisubice/forums/images/spacer.gif" alt="" width="150" height="1" />
</td>
<td class="{postrow.ROW_CLASS}" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" class="postdetails"><a href="{postrow.U_MINI_POST}"><img src="{postrow.MINI_POST_IMG}" width="12" height="9" alt="{postrow.L_MINI_POST_ALT}" title="{postrow.L_MINI_POST_ALT}" border="0" /></a>{L_POSTED}:
{postrow.POST_DATE}</td>
<td nowrap="nowrap" valign="top">{postrow.FACEBOOK_IMG} {postrow.QUOTE_IMG} {postrow.EDIT_IMG} <a href="#top"><img src="themes/fisubice/forums/images/icon_up.gif" width="16" height="18" border="0" alt="{L_BACK_TO_TOP}" title="{L_BACK_TO_TOP}" /></a>
{postrow.DELETE_IMG} {postrow.IP_IMG}</td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td valign="top" class="postbody">
<hr />
{postrow.MESSAGE}</td>
</tr>
<tr>
<td height="40" valign="bottom" class="genmed">{postrow.SIGNATURE}{postrow.ATTACHMENTS}<span class="gensmall">{postrow.EDITED_MESSAGE} </span></td>
</tr>
</table>
</td>
</tr>
<tr>
<td valign="bottom" nowrap="nowrap" class="{postrow.ROW_CLASS}"> {postrow.PROFILE_IMG}
{postrow.PM_IMG} {postrow.EMAIL_IMG} {postrow.WWW_IMG} {postrow.AIM_IMG} {postrow.YIM_IMG}
{postrow.MSN_IMG} {postrow.ICQ_IMG}</td>
</tr>
<tr>
<td class="spacerow" colspan="2" height="1"><img src="themes/fisubice/forums/images/spacer.gif" alt="" width="1" height="1" /></td>
</tr>
<!-- END postrow -->
<tr>
<td class="cat" colspan="2" height="28">
<form method="post" action="{S_POST_DAYS_ACTION}">
<table cellspacing="0" cellpadding="0" border="0" align="center">
<tr>
<td class="gensmall">{L_DISPLAY_POSTS}: </td>
<td>{S_SELECT_POST_DAYS} </td>
<td>{S_SELECT_POST_ORDER} </td>
<td><input type="submit" value="{L_GO}" class="catbutton" name="submit" /></td>
</tr>
</table>
</form>
</td>
</tr>
</table>
<table width="100%" cellspacing="2" cellpadding="2" border="0">
<tr>
<td nowrap="nowrap"><a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" border="0" alt="{L_POST_NEW_TOPIC}" title="{L_POST_NEW_TOPIC}" height="25" width="82" /></a> <a href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" border="0" alt="{L_POST_REPLY_TOPIC}" title="{L_POST_REPLY_TOPIC}" height="25" width="82" /></a></td>
<td width="100%" class="nav"> <a href="{U_INDEX}">{L_INDEX}</a> » <a href="{U_VIEW_FORUM}">{FORUM_NAME}</a></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td class="nav" valign="top">{PAGINATION}<br />
<br />
{JUMPBOX}<br />
<br />
{S_TOPIC_ADMIN}<br />
{QUICK_REPLY_FORM}</td>
<td class="gensmall" align="right" valign="top"><strong>{S_WATCH_TOPIC}</strong><br />
<a href="{U_VIEW_NEWER_TOPIC}">{L_VIEW_NEXT_TOPIC}</a><br />
<a href="{U_VIEW_OLDER_TOPIC}">{L_VIEW_PREVIOUS_TOPIC}</a><br />
{S_AUTH_LIST}</td>
</tr>
</table>
<br />
<!-- BEGIN similar -->
<table width="85%" cellspacing="1" cellpadding="4" border="0" align="center" class="forumline">
<tr>
<td class="catHead" colspan="6"><span class="genmed"><b>{similar.L_SIMILAR}</b></span></td>
</tr>
<tr>
<th colspan="2">{similar.L_TOPIC}</th>
<th>{similar.L_AUTHOR}</th>
<th>{similar.L_FORUM}</th>
<th>{similar.L_REPLIES}</th>
<th>{similar.L_LAST_POST}</th>
</tr>
<!-- BEGIN topics -->
<tr>
<td class="row1" align="center"><span class="genmed"><img src="{similar.topics.FOLDER}" border="0" alt="{similar.topics.ALT}" title="{similar.topics.ALT}" /></span></td>
<td class="row1" width="30%">{similar.topics.NEWEST}<span class="gensmall">{similar.topics.TYPE}</span> <span class="topictitle">{similar.topics.TOPICS}</span></td>
<td class="row1" width="10%"><span class="genmed">{similar.topics.AUTHOR}</span></td>
<td class="row1"><span class="genmed">{similar.topics.FORUM}</span></td>
<td class="row1" width="15%" align="center"><span class="genmed">{similar.topics.REPLIES}</span></td>
<td class="row1"><span class="genmed">{similar.topics.POST_TIME} {similar.topics.POST_URL}</span></td>
</tr>
<!-- END topics -->
</table>
<!-- END similar -->
|
|
|
|
|
|
pan
|
Posted:
Tue Nov 09, 2010 6:50 pm |
|
Thanks. I just needed to change this:
<a href="{U_VIEW_OLDER_TOPIC}">{L_VIEW_PREVIOUS"nowrap">{postrow.QUOTE_IMG} {postrow.EDIT_IMG} _TOPIC}</a><br />
to this:
<a href="{U_VIEW_OLDER_TOPIC}">{L_VIEW_PREVIOUS_TOPIC} {postrow.QUOTE_IMG} {postrow.EDIT_IMG}</a><br /> |
|
|
|
|
pan
|
Posted:
Tue Nov 09, 2010 6:54 pm |
|
Thank you veru much for your help!!!!! |
|
|
|
|
nuken
|
Posted:
Tue Nov 09, 2010 6:55 pm |
|
I'm glad it worked. Sorry it took me so long to understand what was wrong.... Long day at work. |
|
|
|
|
pan
|
Posted:
Tue Nov 09, 2010 6:59 pm |
|
No problems at all; we got there in the end.
And I'm glad my users can now like posts! |
|
|
|
|
|