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: Thu Nov 11, 2010 7:23 pm Reply with quote

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
 
View user's profile Send private message
pan







PostPosted: Thu Nov 11, 2010 7:37 pm Reply with quote

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: 2024
Location: North Carolina

PostPosted: Fri Nov 12, 2010 6:49 am Reply with quote

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?

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



Joined: Aug 22, 2007
Posts: 1772

PostPosted: Sat Nov 13, 2010 6:14 am Reply with quote

RavensScripts
 
View user's profile Send private message
pan







PostPosted: Mon Nov 15, 2010 6:37 pm Reply with quote

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







PostPosted: Mon Nov 15, 2010 6:50 pm Reply with quote

nuken i have pm'd you what you wanted
 
pan







PostPosted: Tue Nov 16, 2010 4:49 am Reply with quote

Anyone know the answer?
 
nuken







PostPosted: Tue Nov 16, 2010 10:11 am Reply with quote

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







PostPosted: Tue Nov 16, 2010 3:39 pm Reply with quote

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. [ Only registered users can see links on this board! Get registered or login! ]
 
pan







PostPosted: Tue Nov 16, 2010 5:27 pm Reply with quote

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







PostPosted: Tue Nov 16, 2010 5:31 pm Reply with quote

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







PostPosted: Tue Nov 16, 2010 5:33 pm Reply with quote

NUKEN U FIXED IT!

WOOOOT
 
nuken







PostPosted: Tue Nov 16, 2010 5:38 pm Reply with quote

Awesome. Your idea makes a lot of sense. A long topic would be hard to find the correct post in.
 
nuken







PostPosted: Tue Nov 16, 2010 5:43 pm Reply with quote

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







PostPosted: Tue Nov 16, 2010 5:47 pm Reply with quote

yea i thought that's what it was meant to do in the first place
 
hicuxunicorniobestbuildpc
The Mouse Is Extension Of Arm



Joined: Aug 13, 2009
Posts: 1122

PostPosted: Wed Nov 17, 2010 2:49 am Reply with quote

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.
 
View user's profile Send private message
nuken







PostPosted: Wed Nov 17, 2010 5:03 am Reply with quote

they have a twitter one on that site too.
 
hicuxunicorniobestbuildpc







PostPosted: Wed Nov 17, 2010 4:04 pm Reply with quote

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, [ Only registered users can see links on this board! Get registered or login! ]

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
 
hicuxunicorniobestbuildpc







PostPosted: Wed Nov 17, 2010 5:25 pm Reply with quote

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







PostPosted: Fri Nov 19, 2010 7:08 am Reply with quote

it does not work.
display in twitter: [ Only registered users can see links on this board! Get registered or login! ]
 
nuken







PostPosted: Fri Nov 19, 2010 7:15 am Reply with quote

does it show "yoursite" or does it actually show the correct site name?
 
nuken







PostPosted: Fri Nov 19, 2010 7:24 am Reply with quote

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







PostPosted: Fri Nov 19, 2010 7:25 am Reply with quote

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: [ Only registered users can see links on this board! Get registered or login! ]
 
nuken







PostPosted: Fri Nov 19, 2010 8:27 am Reply with quote

It seems twitter has something against & in a url. I will look in to it when i have more time.
 
kenno
Worker
Worker



Joined: Jul 26, 2009
Posts: 117
Location: Scunthorpe, UK

PostPosted: Sat Aug 06, 2011 6:06 am Reply with quote

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
 
View user's profile Send private message
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 ©