Author |
Message |
pan
Involved
![Involved Involved](modules/Forums/images/ranks/4stars.gif)
![](modules/Forums/images/avatars/cb3876054d99124b4f395.png)
Joined: Jul 25, 2006
Posts: 354
|
Posted:
Thu Nov 11, 2010 7:23 pm |
|
For some reason the buttons aren't working for the particular post, they only use a link to the entire thread.
Have I done something wrong? I want the facebook 'like' to be for that particular post
ie. viewtopic&p=151874#1519844 <- that being the post number |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
pan
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Thu Nov 11, 2010 7:37 pm |
|
And I got banned almost instantly on that sgtlegend.com site for an unknown reason now my ip range is blocked or something, so I can't get support from that site. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
nuken
RavenNuke(tm) Development Team
![](modules/Forums/images/avatars/3234de284ee21bd39eecd.jpg)
Joined: Mar 11, 2007
Posts: 2024
Location: North Carolina
|
Posted:
Fri Nov 12, 2010 6:49 am |
|
So, you want the link to go back to just the specified post and not the topic page that the post is a part of?
Or do you have an issue with the link being directed to the wrong post? |
_________________ Only registered users can see links on this board! Get registered or login! |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
neralex
Site Admin
![](modules/Forums/images/avatars/201442295664a46e4575d46.jpg)
Joined: Aug 22, 2007
Posts: 1775
|
Posted:
Sat Nov 13, 2010 6:14 am |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
pan
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Nov 15, 2010 6:37 pm |
|
nuken wrote: | So, you want the link to go back to just the specified post and not the topic page that the post is a part of?
Or do you have an issue with the link being directed to the wrong post? |
I have it on every post so someone can 'like' that post and the link directs to that post (ie. my previous post)
At the moment it just links to the thread no matter which post you click 'like' on |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
pan
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Nov 15, 2010 6:50 pm |
|
nuken i have pm'd you what you wanted |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
pan
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Nov 16, 2010 4:49 am |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
nuken
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Nov 16, 2010 10:11 am |
|
As far as I know, there is no way to display a single post in phpbb2. There may be a mod out there that does that. If you can pull up the post individually, you would just need to change the link back code to match. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
pan
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Nov 16, 2010 3:39 pm |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
pan
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Nov 16, 2010 5:27 pm |
|
This is the code:
Code:$tweet_url = ($postrow[$i]['post_id']);
$facebook_img = '<a href="http://www.facebook.com/sharer.php?u=http%3A%2F%2FWWW.YOURSITEHERE.COM%2Fmodules.php%3Fname%3DForums%26file%3Dviewtopic%26p%3D' . $tweet_url . '" target="_blank"><img src="' . $images['icon_facebook'] . '" alt="' . $lang['facebook_this'] . '" border="0" /></a>';
|
Shouldn't there be a way to make it remember which post you're talking about? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
nuken
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Nov 16, 2010 5:31 pm |
|
I sent you a pm. I tested the changes on my site and they seemed to work correctly. Give it a try and let me know if it works like you needed it to. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
pan
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Nov 16, 2010 5:33 pm |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
nuken
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Nov 16, 2010 5:38 pm |
|
Awesome. Your idea makes a lot of sense. A long topic would be hard to find the correct post in. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
nuken
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Nov 16, 2010 5:43 pm |
|
This is the change if anyone needs it:
Code:viewtopic%26p%3D' . $tweet_url . '
|
to:
Code:viewtopic%26p%3D' . $tweet_url . '%23' . $tweet_url . '
|
|
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
pan
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Nov 16, 2010 5:47 pm |
|
yea i thought that's what it was meant to do in the first place |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
hicuxunicorniobestbuildpc
The Mouse Is Extension Of Arm
![](modules/Forums/images/avatars/5ed231554a8492e2e09da.gif)
Joined: Aug 13, 2009
Posts: 1123
|
Posted:
Wed Nov 17, 2010 2:49 am |
|
thank you very much nuken for this mod nuken but is it possible to make a twitter mod? Should we modify the same files? thanks in advance. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
nuken
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Nov 17, 2010 5:03 am |
|
they have a twitter one on that site too. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
hicuxunicorniobestbuildpc
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Nov 17, 2010 4:04 pm |
|
Ok, I found it already and I made the mod. Everything is working fine but can we made the same modification as you suggested above with twitter
Quote: | viewtopic%26p%3D' . $tweet_url . '%23' . $tweet_url . ' |
Edit:I noticed we should mod twitter too because I get this
Check out this post, http://www.yousite.com/modules.php?name=Forums
It won't post a specific post but just the your website's forum.
I made the same modification above but it doesn't show the specific forum to tweet.
Search for
Code:forums.html%26file=viewtopic%26t=' . $tweet_url . ' via @realsnipers"
|
Replace with
Code:forums.html%26file=viewtopic%26t=' . $tweet_url . '%23' . $tweet_url . '"
|
This is for twitter. I don't know how to fix it yet. ![Sad](modules/Forums/images/smiles/icon_sad.gif) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
hicuxunicorniobestbuildpc
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Nov 17, 2010 5:25 pm |
|
Try this and let me know please
Search for
Code:forums.html%26file=viewtopic%26t=' . $tweet_url . ' via @unicornio"
|
Replace with
Code:forums.html%26file=viewtopic%26p=' . $tweet_url . ' via @unicornio"
|
|
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
neralex
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri Nov 19, 2010 7:08 am |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
nuken
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri Nov 19, 2010 7:15 am |
|
does it show "yoursite" or does it actually show the correct site name? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
nuken
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri Nov 19, 2010 7:24 am |
|
Here is the correct code to get the tweet to send back to your post. This site uses the rewrite rules for the forums links so you will have to remove the space between the F and the o in this link before it will work right.
Code:modules.php?name=F orums%26file=viewtopic%26p=' . $tweet_url . '%23' . $tweet_url . '"
|
|
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
neralex
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri Nov 19, 2010 7:25 am |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
nuken
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri Nov 19, 2010 8:27 am |
|
It seems twitter has something against & in a url. I will look in to it when i have more time. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
kenno
Worker
![Worker Worker](modules/Forums/images/ranks/3stars.gif)
![](modules/Forums/images/avatars/Cartoons/Cartoons_-_Pink_Panther.gif)
Joined: Jul 26, 2009
Posts: 117
Location: Scunthorpe, UK
|
Posted:
Sat Aug 06, 2011 6:06 am |
|
Does anyone have any sort of "Like Mod" where instead of it posting anything back to any social network site like Facebook or Twitter etc, it just lists the names of users who have liked that particular post, basically similar to facebook.
I have seen a similar mod on your site Nuken, where users can Thank a topic and it lists who has thanked, but this wont thank the post itself only the topic.
I was hoping to somehow modify that and change it to Like which I think would work to some effect, but it is way over my ability to even install that let alone edit it to accomplish what I need it to do.
So does anyone know of anything else I could use ?
Thanks Kenno |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
|