PHP Web Host - Quality Web Hosting For All PHP Applications Clan Themes! We make clans look good!!
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
pan
Involved
Involved


Joined: Jul 25, 2006
Posts: 354

PostPosted: Thu Nov 11, 2010 7:23 pm Reply with quote Back to top

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


Joined: Jul 25, 2006
Posts: 354

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

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.
View user's profile Send private message
nuken
RavenNuke(tm) Development Team


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

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

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?
View user's profile Send private message Send e-mail Visit poster's website
neralex
Worker
Worker


Joined: Aug 22, 2007
Posts: 197
Location: Germany

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

RavensScripts
View user's profile Send private message Visit poster's website
pan
Involved
Involved


Joined: Jul 25, 2006
Posts: 354

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

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


Joined: Jul 25, 2006
Posts: 354

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

nuken i have pm'd you what you wanted
View user's profile Send private message
pan
Involved
Involved


Joined: Jul 25, 2006
Posts: 354

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

Anyone know the answer?
View user's profile Send private message
nuken
RavenNuke(tm) Development Team


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

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

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.
View user's profile Send private message Send e-mail Visit poster's website
pan
Involved
Involved


Joined: Jul 25, 2006
Posts: 354

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

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 to the forums!
View user's profile Send private message
pan
Involved
Involved


Joined: Jul 25, 2006
Posts: 354

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

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?
View user's profile Send private message
nuken
RavenNuke(tm) Development Team


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

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

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.
View user's profile Send private message Send e-mail Visit poster's website
pan
Involved
Involved


Joined: Jul 25, 2006
Posts: 354

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

NUKEN U FIXED IT!

WOOOOT
View user's profile Send private message
nuken
RavenNuke(tm) Development Team


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

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

Awesome. Your idea makes a lot of sense. A long topic would be hard to find the correct post in.
View user's profile Send private message Send e-mail Visit poster's website
nuken
RavenNuke(tm) Development Team


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

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

This is the change if anyone needs it:

Code:
viewtopic%26p%3D' . $tweet_url . '


to:

Code:
viewtopic%26p%3D' . $tweet_url . '%23' . $tweet_url . '
View user's profile Send private message Send e-mail Visit poster's website
pan
Involved
Involved


Joined: Jul 25, 2006
Posts: 354

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

yea i thought that's what it was meant to do in the first place
View user's profile Send private message
unicornio
Involved
Involved


Joined: Aug 13, 2009
Posts: 432

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

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
RavenNuke(tm) Development Team


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

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

they have a twitter one on that site too.
View user's profile Send private message Send e-mail Visit poster's website
unicornio
Involved
Involved


Joined: Aug 13, 2009
Posts: 432

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

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 to the 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
View user's profile Send private message
unicornio
Involved
Involved


Joined: Aug 13, 2009
Posts: 432

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

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


Joined: Aug 22, 2007
Posts: 197
Location: Germany

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

it does not work.
display in twitter:
Only registered users can see links on this board!
Get registered or login to the forums!
View user's profile Send private message Visit poster's website
nuken
RavenNuke(tm) Development Team


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

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

does it show "yoursite" or does it actually show the correct site name?
View user's profile Send private message Send e-mail Visit poster's website
nuken
RavenNuke(tm) Development Team


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

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

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 . '"
View user's profile Send private message Send e-mail Visit poster's website
neralex
Worker
Worker


Joined: Aug 22, 2007
Posts: 197
Location: Germany

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

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 to the forums!
View user's profile Send private message Visit poster's website
nuken
RavenNuke(tm) Development Team


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

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

It seems twitter has something against & in a url. I will look in to it when i have more time.
View user's profile Send private message Send e-mail Visit poster's website
kenno
Worker
Worker


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

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

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

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

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum