vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Integration with vBulletin - vBTwitter (https://vborg.vbsupport.ru/showthread.php?t=204694)

masterweb 08-02-2009 05:00 PM

I installed it without problems but each time i try to twitt a thread i'm redirected to a page with the following:


Quote:

Woah there!

This page is no longer valid. It looks like someone already used the token information you provided. Please return to the site that sent you to this page and try again ? it was probably an honest mistake.

Any help pls?

gniuzvb 08-04-2009 01:46 PM

Thanks for this great mod. I quickly glanced thru the past 38 pages, but can't seem to find this. Sorry if is repost.

Is there any settings that once a user submitted tweeter authorization, all his subsequent posts and threads are send to tweeter? That will be better instead of waiting for user action to tweet.

Something similar with facebook connect user, where all the threads and replies are posted to facebook profile.

Thanks

Verionia 08-04-2009 09:46 PM

How can I get the number of users who tweeted the thread or the tweet this button with the stats?

HiPhone 08-05-2009 08:35 PM

ive a problem. i have installed teh tool ive made the key`s on twitter. first time i`ve clickt the twitter button the alow / deny page from twitter appears. after that the tool did nothing. there are no posts on twitter now when i click the twitter button.

King Kovifor 08-08-2009 01:37 AM

Quote:

Originally Posted by mykkal (Post 1860203)
oh wait i see. you said 1.1. when does 1.1 have an eta? Sorry i asked you out of order. i really thought this was it.

No, 1.1 doesn't have an ETA.

Quote:

Originally Posted by masterweb (Post 1860208)
I installed it without problems but each time i try to twitt a thread i'm redirected to a page with the following:





Any help pls?

It seems like you are revoking permissions on Twiter's end, or it is attempting to redirect you. reinstall?

Quote:

Originally Posted by gniuzvb (Post 1861216)
Thanks for this great mod. I quickly glanced thru the past 38 pages, but can't seem to find this. Sorry if is repost.

Is there any settings that once a user submitted tweeter authorization, all his subsequent posts and threads are send to tweeter? That will be better instead of waiting for user action to tweet.

Something similar with facebook connect user, where all the threads and replies are posted to facebook profile.

Thanks

No, there is no auto-tweet.

Quote:

Originally Posted by Verionia (Post 1861466)
How can I get the number of users who tweeted the thread or the tweet this button with the stats?

There is currently no way.

Quote:

Originally Posted by HiPhone (Post 1862154)
ive a problem. i have installed teh tool ive made the key`s on twitter. first time i`ve clickt the twitter button the alow / deny page from twitter appears. after that the tool did nothing. there are no posts on twitter now when i click the twitter button.

Are you sure you set it up correctly?

anadd 08-09-2009 10:40 AM

I have reinstalled and reuploaded everything. I still get this message as well:
Woah there!
This page is no longer valid. It looks like someone already used the token information you provided. Please return to the site that sent you to this page and try again … it was probably an honest mistake.

King Kovifor 08-10-2009 01:18 AM

Quote:

Originally Posted by anadd (Post 1863982)
I have reinstalled and reuploaded everything. I still get this message as well:
Woah there!
This page is no longer valid. It looks like someone already used the token information you provided. Please return to the site that sent you to this page and try again ? it was probably an honest mistake.

hm... that's rather odd. And something I have never come across before...

Biker_GA 08-10-2009 04:33 AM

I got that when I had "registered" twice on Twitter. Removed the modification and reinstalled, all was good.

sensimilla 08-12-2009 08:23 AM

Quote:

Originally Posted by King Kovifor (Post 1864301)
hm... that's rather odd. And something I have never come across before...

Ive got same error, Ill try to reinstall again.

King Kovifor 08-13-2009 03:39 AM

Quote:

Originally Posted by Biker_GA (Post 1864359)
I got that when I had "registered" twice on Twitter. Removed the modification and reinstalled, all was good.

hm?

rjerina 08-13-2009 04:22 AM

I tried searching but didn't find anything, but instead of storing password or prompting for a password, how do sites like Twitpic etc authenticate? They somehow pick up your authentication to twitter and they just work, I assume with something through the API.

Forgive me if this was posted already. I am interested in this but don't want to store any passwords unencrypted if possible and very little use integration.

johnbmtl 08-13-2009 03:16 PM

When I click on the link in th euser options "Setup integration by clicking here."

I get the following from the twitter site:

Woah there!
This page is no longer valid. It looks like someone already used the token information you provided. Please return to the site that sent you to this page and try again … it was probably an honest mistake.

Did I miss something in the installation?

------------------
Update: Yes I did miss something in the installation.
The instructions to register an OAuth Application which appear under the Upgrading instructions also apply to new installations.

Everything works fine now.

ClipBucket 08-13-2009 09:35 PM

To post the title for threads to Twitter, edit tweet.php
Find the section that starts with:

PHP Code:

if($_GET['do'] == 'thread')



Find:

PHP Code:

$twitter->OAuthRequest('https://twitter.com/statuses/update.xml', array('status' => $vbphrase['twitter_checkout'] . $vbulletin->options['bburl'] . '/tt.php?i=' $vbulletin->GPC['id']), 'POST'); 


Change to:

PHP Code:

$thread $db->query_first("SELECT title FROM " TABLE_PREFIX "thread WHERE threadid = " $vbulletin->GPC['id']);
$twitter->OAuthRequest('https://twitter.com/statuses/update.xml', array('status' => $thread['title'] .' - '$vbulletin->options['bburl'] . '/tt.php?i=' $vbulletin->GPC['id']), 'POST'); 


This only works when Twittering a thread.
I have not looked into sending post titles yet, though it should also be trivial.

ClipBucket 08-13-2009 09:43 PM

This is not tested.

To post the title for posts to Twitter, edit tweet.php
Find the section that starts with:

PHP Code:

if($_GET['do'] == 'post')



Find:

PHP Code:

$twitter->OAuthRequest('https://twitter.com/statuses/update.xml', array('status' => $thread['title'] .' - '$vbulletin->options['bburl'] . '/tp.php?i=' $vbulletin->GPC['id'] . '&c=' $vbulletin->GPC['c']), 'POST'); 


Change to:

PHP Code:

        $post $db->query_first("SELECT title FROM " TABLE_PREFIX "post WHERE postid = " $vbulletin->GPC['id']);
        
$twitter->OAuthRequest('https://twitter.com/statuses/update.xml', array('status' => $post['title'] .' - '$vbulletin->options['bburl'] . '/tp.php?i=' $vbulletin->GPC['id'] . '&c=' $vbulletin->GPC['c']), 'POST'); 


King Kovifor 08-13-2009 10:44 PM

Quote:

Originally Posted by rjerina (Post 1866286)
I tried searching but didn't find anything, but instead of storing password or prompting for a password, how do sites like Twitpic etc authenticate? They somehow pick up your authentication to twitter and they just work, I assume with something through the API.

Forgive me if this was posted already. I am interested in this but don't want to store any passwords unencrypted if possible and very little use integration.

Well, this doesn't prompt for a password. And twit pic, does. If you go to their site, they prompt for a username / password.

Quote:

Originally Posted by johnbmtl (Post 1866530)
When I click on the link in th euser options "Setup integration by clicking here."

I get the following from the twitter site:

Woah there!
This page is no longer valid. It looks like someone already used the token information you provided. Please return to the site that sent you to this page and try again ? it was probably an honest mistake.

Did I miss something in the installation?

------------------
Update: Yes I did miss something in the installation.
The instructions to register an OAuth Application which appear under the Upgrading instructions also apply to new installations.

Everything works fine now.

Guess I missed something their. *wonders why I screwed that up*.

Quote:

Originally Posted by ClipBucket (Post 1866772)
To post the title for threads to Twitter, edit tweet.php
Find the section that starts with:

PHP Code:

if($_GET['do'] == 'thread')



Find:

PHP Code:

$twitter->OAuthRequest('https://twitter.com/statuses/update.xml', array('status' => $vbphrase['twitter_checkout'] . $vbulletin->options['bburl'] . '/tt.php?i=' $vbulletin->GPC['id']), 'POST'); 


Change to:

PHP Code:

$thread $db->query_first("SELECT title FROM " TABLE_PREFIX "thread WHERE threadid = " $vbulletin->GPC['id']);
$twitter->OAuthRequest('https://twitter.com/statuses/update.xml', array('status' => $thread['title'] .' - '$vbulletin->options['bburl'] . '/tt.php?i=' $vbulletin->GPC['id']), 'POST'); 


This only works when Twittering a thread.
I have not looked into sending post titles yet, though it should also be trivial.

Quote:

Originally Posted by ClipBucket (Post 1866776)
This is not tested.

To post the title for posts to Twitter, edit tweet.php
Find the section that starts with:

PHP Code:

if($_GET['do'] == 'post')



Find:

PHP Code:

$twitter->OAuthRequest('https://twitter.com/statuses/update.xml', array('status' => $thread['title'] .' - '$vbulletin->options['bburl'] . '/tp.php?i=' $vbulletin->GPC['id'] . '&c=' $vbulletin->GPC['c']), 'POST'); 


Change to:

PHP Code:

        $post $db->query_first("SELECT title FROM " TABLE_PREFIX "post WHERE postid = " $vbulletin->GPC['id']);
        
$twitter->OAuthRequest('https://twitter.com/statuses/update.xml', array('status' => $post['title'] .' - '$vbulletin->options['bburl'] . '/tp.php?i=' $vbulletin->GPC['id'] . '&c=' $vbulletin->GPC['c']), 'POST'); 


I thank you for writing this, but it has the problems within itself. It doesn't do character checking. Which is what I have done extensively for the next version.

ClipBucket 08-13-2009 10:57 PM

Quote:

Originally Posted by King Kovifor (Post 1866810)
I thank you for writing this....

Thanks & thanks for the original hack.

Quote:

Originally Posted by King Kovifor (Post 1866810)
...but it has the problems within itself. It doesn't do character checking. Which is what I have done extensively for the next version.

It should be trivial to escape the characters.
I just threw this together quick to see if it would work.

King Kovifor 08-13-2009 11:51 PM

Yes, I have several shortening steps. It first checks it using a full URL, then shortens the URL, then the title. It should work rather well. I am stuck with v1.1 because I came to depend on AJAX a lot and my AJAX developer left. :(

ClipBucket 08-14-2009 12:14 AM

Depending on AJAX for what exactly?
By character checking, I'm assuming you meant for checking the title length?

I recommend you put the code on a service like OpenSVN, Google Code or GitHub.
PM me credentials for commit access & I will assist w/ coding.

ClipBucket 08-14-2009 12:21 AM

OK, well I just setup the project on Google Code.
Join Google Code & send me your username, so that I can give you ownership of the project.

King Kovifor 08-14-2009 03:53 AM

Quote:

Originally Posted by ClipBucket (Post 1866848)
Depending on AJAX for what exactly?
By character checking, I'm assuming you meant for checking the title length?

I recommend you put the code on a service like OpenSVN, Google Code or GitHub.
PM me credentials for commit access & I will assist w/ coding.

v1.1 is drastically different, and includes AJAX throughout the new features.

Quote:

Originally Posted by ClipBucket (Post 1866849)
OK, well I just setup the project on Google Code.
Join Google Code & send me your username, so that I can give you ownership of the project.

Technically, since my project isn't open source, that would be copyright infringement, but, I will just politely ask you to remove it. I have the files in a SVN repository over at CodeSpaces, it is just different as my code isn't open source. If you would like to help, please PM me.

ClipBucket 08-14-2009 04:31 AM

1 Attachment(s)
Quote:

Originally Posted by King Kovifor (Post 1866943)
Technically, since my project isn't open source, that would be copyright infringement....

LOL, LOL, LOL.....

Quote:

Originally Posted by King Kovifor (Post 1866943)
....but, I will just politely ask you to remove it.

The project has been scheduled for deletion from Google Code.

https://vborg.vbsupport.ru/external/2009/08/65.jpg

Quote:

Originally Posted by King Kovifor (Post 1866943)
I have the files in a SVN repository over at CodeSpaces, it is just different as my code isn't open source. If you would like to help, please PM me.

That's great, but what's the point in private SVN when the public release allows everyone to view & edit every line?
Maybe I missed something here?

King Kovifor 08-14-2009 11:23 AM

Quote:

Originally Posted by ClipBucket (Post 1866961)
LOL, LOL, LOL.....


The project has been scheduled for deletion from Google Code.

https://vborg.vbsupport.ru/attachmen...1&d=1250227705


That's great, but what's the point in private SVN when the public release allows everyone to view & edit every line?
Maybe I missed something here?

I thank you for removing the code. :) A private SVN is because this project isn't open source. Also, in terms of visible source, you have the problems of non-licensed users gaining access. And, if you would like an example of this, look @ vBulletin. That too is visible-source, but why don't we have access to the SVN repository? This is why I use my own private SVN server. And any developer on any of my project gains access.

ClipBucket 08-14-2009 03:43 PM

Quote:

Originally Posted by King Kovifor (Post 1867088)
A private SVN is because this project isn't open source. Also, in terms of visible source, you have the problems of non-licensed users gaining access.

OK, I won't debate how this approach is an epic failure.
A few Google keywords will tell you that.

Back to the topic, what area(s) besides AJAX require assistance?

King Kovifor 08-16-2009 02:12 AM

Basically, not much. I could handle the rest, but I am an epic fail at AJAX. Like I said, if you would like to help, please PM me.

bmckinley 08-17-2009 02:08 AM

VBTwitter 1.0.3 worked fine when I was on vb3.8.3, since I installed 3.8.4, and updated to vbTwitter 1.0.4, have lost some function.

Still good on Oauth etc, but the "Tweet This" does not show up by the thread post number on each post. All I have is the "Tweet This Thread" in the postbit dropdown.

Any ideas??

King Kovifor 08-17-2009 04:07 AM

It seems like it lost the default code. I'll see if I can find it (but you can add it manually).

SymbioteK 08-17-2009 05:05 AM

Only able to tweet posts, not threads which is a major bummer.

King Kovifor 08-17-2009 10:40 PM

Quote:

Originally Posted by SymbioteK (Post 1868922)
Only able to tweet posts, not threads which is a major bummer.

You can tweet threads. It's under "Thread Tools"

JacquiiDesigns 08-18-2009 07:56 AM

Quote:

Originally Posted by King Kovifor (Post 1868899)
It seems like it lost the default code. I'll see if I can find it (but you can add it manually).

I did a fresh install on 3.8.3 - I also do not see the "Tweet This" link by the post number - So I too will like the manual code if possible!

Anyway - thanks for the modification Jeremy - it's very VERY nice - adds an awesome functionality for those of us really promoting the social network sharing!

Installed!

Jacquii.

King Kovifor 08-18-2009 12:56 PM

Here's the tweet this code:
HTML Code:

<a href="tweet.php?do=post&amp;id=$post[postid]&amp;c=$post[postid]">$vbphrase[twitter_post]</a>

bmckinley 08-18-2009 01:30 PM

Do I dare ask where to stick it??? ;) ...

...Thanks, updated and working fine.

JacquiiDesigns 08-19-2009 04:01 AM

Thanks very much Jeremy! Works perfectly ;)

@bmckinley find
HTML Code:

<if condition="$show['postcount']">#<a href="showpost.php?$session[sessionurl]p=$post[postid]&amp;postcount=$post[postcount]" target="new" rel="nofollow" id="postcount$post[postid]" name="$post[postcount]"><strong>$post[postcount]</strong></a></if>
And add the manual code before or after, depending on where you want the Tweet This link to show ;)

Jacquii.

JacquiiDesigns 08-19-2009 07:12 AM

[high]* JacquiiDesigns nominates vBTwitter for MOTM!
[/high]

I think the hack should be called vBTweet - but that's merely semantics LOL
Thanks again for the share ;)

Jacquii.

King Kovifor 08-19-2009 01:05 PM

Quote:

Originally Posted by JacquiiCooke (Post 1870239)
Thanks very much Jeremy! Works perfectly ;)

@bmckinley find
HTML Code:

<if condition="$show['postcount']">#<a href="showpost.php?$session[sessionurl]p=$post[postid]&amp;postcount=$post[postcount]" target="new" rel="nofollow" id="postcount$post[postid]" name="$post[postcount]"><strong>$post[postcount]</strong></a></if>
And add the manual code before or after, depending on where you want the Tweet This link to show ;)

Jacquii.

Quote:

Originally Posted by JacquiiCooke (Post 1870291)
[high]* JacquiiCooke nominates vBTwitter for MOTM!
[/high]

I think the hack should be called vBTweet - but that's merely semantics LOL
Thanks again for the share ;)

Jacquii.

Thanks. And the name is derived as it becomes a bridge between vBulletin and Twitter. But, if it wasn't for their attempting to protect their name, I would have asked everyone to keep it in the name of the app.

nickson 08-22-2009 08:29 AM

everything was installed properly.... but the moment i try to tweet any thread... it goes to following URL which is https://twitter.com/oauth/authorize?oauth_token= and then it says following error:

Code:

Woah there!
This page is no longer valid. It looks like someone already used the token information you provided. Please return to the site that sent you to this page and try again ? it was probably an honest mistake.


cerulean 08-22-2009 03:24 PM

Whenever I click the Tweet this link it brings up a message asking if I should allow access, I say yes and it errors out saying webpage is not found. I am using vBulletin 3.8.2.

It seems to be doing this on the call back url. I have it entered correctly.

This only happens right after install, all other attempts to tweet just reload the page with no errors.

Never mind, got it working, thanks anyway.

King Kovifor 08-24-2009 05:42 PM

Quote:

Originally Posted by nickson (Post 1872039)
everything was installed properly.... but the moment i try to tweet any thread... it goes to following URL which is https://twitter.com/oauth/authorize?oauth_token= and then it says following error:

Code:

Woah there!
This page is no longer valid. It looks like someone already used the token information you provided. Please return to the site that sent you to this page and try again ? it was probably an honest mistake.


Did you set up an OAuth application?

nickson 08-25-2009 01:56 AM

Quote:

Originally Posted by King Kovifor (Post 1873555)
Did you set up an OAuth application?


I signed up and put the the customer and sexcret key into my admin panel.. is that u mean or theres something more am i supposed to do?

King Kovifor 08-25-2009 02:52 AM

No. It doesn't work after you did that?

Tom_S 08-25-2009 04:22 PM

I went to this link http://twitter.com/oauth_clients and it only gave me access to a normal application which I filled out for access. No app for secrets or keys.


All times are GMT. The time now is 01:10 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02244 seconds
  • Memory Usage 1,909KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (3)bbcode_html_printable
  • (12)bbcode_php_printable
  • (28)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete