Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules
Author Message
pan
Involved
Involved



Joined: Jul 25, 2006
Posts: 354

PostPosted: Sat Nov 06, 2010 8:01 pm Reply with quote

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 Smile

thanks
 
View user's profile Send private message
jakec
Site Admin



Joined: Feb 06, 2006
Posts: 3048
Location: United Kingdom

PostPosted: Sun Nov 07, 2010 6:18 am Reply with quote

There is a Facebook share in Social Bookmarks.
 
View user's profile Send private message
nuken
RavenNuke(tm) Development Team



Joined: Mar 11, 2007
Posts: 2024
Location: North Carolina

PostPosted: Sun Nov 07, 2010 10:18 am Reply with quote

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.

_________________
Tricked Out News 
View user's profile Send private message Send e-mail Visit poster's website
pan







PostPosted: Mon Nov 08, 2010 2:27 am Reply with quote

jakec wrote:
There is a Facebook share in Social Bookmarks.


is this an addon or something?
 
neralex
Site Admin



Joined: Aug 22, 2007
Posts: 1772

PostPosted: Mon Nov 08, 2010 4:31 am Reply with quote

NukeSEO Social Bookmarking: [ Only registered users can see links on this board! Get registered or login! ]

Facebook Developers: [ Only registered users can see links on this board! Get registered or login! ]
 
View user's profile Send private message
pan







PostPosted: Mon Nov 08, 2010 6:36 pm Reply with quote

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







PostPosted: Tue Nov 09, 2010 4:36 pm Reply with quote

There is a post to facebook forums mod that posts the individual post to a persons facebook.
[ Only registered users can see links on this board! Get registered or login! ]
 
pan







PostPosted: Tue Nov 09, 2010 4:58 pm Reply with quote

oh wow thanks - i'll give it a go!
 
pan







PostPosted: Tue Nov 09, 2010 5:14 pm Reply with quote

nuken wrote:
There is a post to facebook forums mod that posts the individual post to a persons facebook.
[ Only registered users can see links on this board! Get registered or login! ]

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







PostPosted: Tue Nov 09, 2010 5:19 pm Reply with quote

in RavenNuke it looks more like this

Code:


<td nowrap="nowrap" valign="top">{postrow.QUOTE_IMG} {postrow.EDIT_IMG}
 
pan







PostPosted: Tue Nov 09, 2010 5:35 pm Reply with quote

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







PostPosted: Tue Nov 09, 2010 5:36 pm Reply with quote

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







PostPosted: Tue Nov 09, 2010 5:40 pm Reply with quote

I got the script working Very Happy

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







PostPosted: Tue Nov 09, 2010 5:59 pm Reply with quote

What do I need to revert to fix the link there?
 
nuken







PostPosted: Tue Nov 09, 2010 6:02 pm Reply with quote

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







PostPosted: Tue Nov 09, 2010 6:12 pm Reply with quote

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







PostPosted: Tue Nov 09, 2010 6:21 pm Reply with quote

Send me the original themes/YOUR_THEME/forums/viewtopic_body.tpl and I will look at it
 
pan







PostPosted: Tue Nov 09, 2010 6:23 pm Reply with quote

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>&nbsp;&nbsp;&nbsp;<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%">&nbsp;<a href="{U_INDEX}">{L_INDEX}</a>
&raquo; <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}:&nbsp;&nbsp;</td>
<td>{S_SELECT_POST_DAYS}&nbsp;</td>
<td>{S_SELECT_POST_ORDER}&nbsp;&nbsp;</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>&nbsp;&nbsp;&nbsp;<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">&nbsp;<a href="{U_INDEX}">{L_INDEX}</a> &raquo; <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







PostPosted: Tue Nov 09, 2010 6:27 pm Reply with quote

what theme are you using?
 
pan







PostPosted: Tue Nov 09, 2010 6:32 pm Reply with quote

fisubice
 
nuken







PostPosted: Tue Nov 09, 2010 6:35 pm Reply with quote

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>&nbsp;&nbsp;&nbsp;<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%">&nbsp;<a href="{U_INDEX}">{L_INDEX}</a>
&raquo; <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}&nbsp;</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}:&nbsp;&nbsp;</td>
<td>{S_SELECT_POST_DAYS}&nbsp;</td>
<td>{S_SELECT_POST_ORDER}&nbsp;&nbsp;</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>&nbsp;&nbsp;&nbsp;<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">&nbsp;<a href="{U_INDEX}">{L_INDEX}</a> &raquo; <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







PostPosted: Tue Nov 09, 2010 6:50 pm Reply with quote

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







PostPosted: Tue Nov 09, 2010 6:54 pm Reply with quote

Thank you veru much for your help!!!!!
 
nuken







PostPosted: Tue Nov 09, 2010 6:55 pm Reply with quote

I'm glad it worked. Sorry it took me so long to understand what was wrong.... Long day at work.
 
pan







PostPosted: Tue Nov 09, 2010 6:59 pm Reply with quote

No problems at all; we got there in the end.

And I'm glad my users can now like posts!
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©