| Author |
Message |
pan Involved


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 |
|
|
|
 |
pan Involved


Joined: Jul 25, 2006 Posts: 354
|
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. |
|
|
|
 |
nuken RavenNuke(tm) Development Team

Joined: Mar 11, 2007 Posts: 1536 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? |
|
|
|
 |
neralex Worker


Joined: Aug 22, 2007 Posts: 197 Location: Germany
|
Posted:
Sat Nov 13, 2010 6:14 am |
|
|
|
 |
pan Involved


Joined: Jul 25, 2006 Posts: 354
|
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 |
|
|
|
 |
pan Involved


Joined: Jul 25, 2006 Posts: 354
|
Posted:
Mon Nov 15, 2010 6:50 pm |
|
nuken i have pm'd you what you wanted |
|
|
|
 |
pan Involved


Joined: Jul 25, 2006 Posts: 354
|
Posted:
Tue Nov 16, 2010 4:49 am |
|
|
|
 |
nuken RavenNuke(tm) Development Team

Joined: Mar 11, 2007 Posts: 1536 Location: North Carolina
|
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. |
|
|
|
 |
pan Involved


Joined: Jul 25, 2006 Posts: 354
|
Posted:
Tue Nov 16, 2010 3:39 pm |
|
I don't want it to display a single post
I want it to link to a single post instead of the whole threads page
eg. |
|
|
|
 |
pan Involved


Joined: Jul 25, 2006 Posts: 354
|
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? |
|
|
|
 |
nuken RavenNuke(tm) Development Team

Joined: Mar 11, 2007 Posts: 1536 Location: North Carolina
|
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. |
|
|
|
 |
pan Involved


Joined: Jul 25, 2006 Posts: 354
|
Posted:
Tue Nov 16, 2010 5:33 pm |
|
|
|
 |
nuken RavenNuke(tm) Development Team

Joined: Mar 11, 2007 Posts: 1536 Location: North Carolina
|
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. |
|
|
|
 |
nuken RavenNuke(tm) Development Team

Joined: Mar 11, 2007 Posts: 1536 Location: North Carolina
|
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 . ' |
|
|
|
|
 |
pan Involved


Joined: Jul 25, 2006 Posts: 354
|
Posted:
Tue Nov 16, 2010 5:47 pm |
|
yea i thought that's what it was meant to do in the first place |
|
|
|
 |
unicornio Involved


Joined: Aug 13, 2009 Posts: 432
|
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. |
|
|
|
 |
nuken RavenNuke(tm) Development Team

Joined: Mar 11, 2007 Posts: 1536 Location: North Carolina
|
Posted:
Wed Nov 17, 2010 5:03 am |
|
they have a twitter one on that site too. |
|
|
|
 |
unicornio Involved


Joined: Aug 13, 2009 Posts: 432
|
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,
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.  |
|
|
|
 |
unicornio Involved


Joined: Aug 13, 2009 Posts: 432
|
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" |
|
|
|
|
 |
neralex Worker


Joined: Aug 22, 2007 Posts: 197 Location: Germany
|
Posted:
Fri Nov 19, 2010 7:08 am |
|
it does not work.
display in twitter: |
|
|
|
 |
nuken RavenNuke(tm) Development Team

Joined: Mar 11, 2007 Posts: 1536 Location: North Carolina
|
Posted:
Fri Nov 19, 2010 7:15 am |
|
does it show "yoursite" or does it actually show the correct site name? |
|
|
|
 |
nuken RavenNuke(tm) Development Team

Joined: Mar 11, 2007 Posts: 1536 Location: North Carolina
|
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 . '" |
|
|
|
|
 |
neralex Worker


Joined: Aug 22, 2007 Posts: 197 Location: Germany
|
Posted:
Fri Nov 19, 2010 7:25 am |
|
the sitename is correct but the url was breaked after "...name=Forums". all chars after this, was not show in twitter.
twitter:
| Code: | | Check out this post, http://www.yoursite.com/modules.php?name=Forums |
the readme placed here:
|
|
|
|
 |
nuken RavenNuke(tm) Development Team

Joined: Mar 11, 2007 Posts: 1536 Location: North Carolina
|
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. |
|
|
|
 |
kenno Worker


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 |
|
|
|
 |
|
|
|
|