vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   New Posting Features - WS vBulletin Tweet Poster (https://vborg.vbsupport.ru/showthread.php?t=236278)

PreciseDemise 01-24-2011 09:46 PM

Not sure whether anyone has made the Dev aware of this, but it now ignores the Forum Limiter (vB 4.1.0 PL2) and is tweeting from EVERY forum, including those with restricted access. Very not cool.

tr03bor 01-25-2011 10:30 AM

Hi,

I use the RSS feeder built into Vbulletin.

How can I enable this MOD to post to twitter when a RSS feed is posted on my forum?

Thanks

Mosh 01-25-2011 10:37 AM

Quote:

Originally Posted by PreciseDemise (Post 2154053)
Not sure whether anyone has made the Dev aware of this, but it now ignores the Forum Limiter (vB 4.1.0 PL2) and is tweeting from EVERY forum, including those with restricted access. Very not cool.

It does work as advertised. I use it on my forum and it is uses vBulletin 4.1.0 PL2 and it does not ignore forum exclusions.... also, more than 200 people have updated to this version since it was released in November 2010, and not a single one has come back with having this issue, and if it was an issue it would have been reported long before now.

Your issue is probably going to be either AdminCP settings not configured correctly, another hack conflicting with this one and causing the issue or you have made alterations to this hack that cause it to not work.

So, with that out of the way, lets start with you posting a screenshot of your AdminCP setting for this hack (with the API information removed for security purposes) and we will take it from there.

Mosh 01-25-2011 10:40 AM

Quote:

Originally Posted by tr03bor (Post 2154269)
Hi,

I use the RSS feeder built into Vbulletin.

How can I enable this MOD to post to twitter when an RSS feed is post on my forum?

Thanks

If you read the Frequently Asked Questions section in the first post, this hack does not support that, and will not be updated to do that in later versions. So, that will be something you will need to look into yourself.

tr03bor 01-25-2011 10:41 AM

Quote:

Originally Posted by Mosh (Post 2154273)
If you read the Frequently Asked Questions section in the first post, this hack does not support that, and will not be updated to do that in later versions. So, that will be something you will need to look into yourself.

Hi,

I understand that, thought you might be able to point me in the right direction?

Thanks

Mosh 01-25-2011 10:49 AM

Quote:

Originally Posted by tr03bor (Post 2154274)
Hi,

I understand that, thought you might be able to point me in the right direction?

Thanks

Without investigating how RSS feeds work and which file hooks are available where, and as I am not really interested in adding this, and having too little free time to investigate things I am interested in, then I can not really point you in the right direction... hence I advised you that you need to look at it yourself... maybe another member will be able to give you a hint.

to_die4 01-28-2011 03:56 PM

Absolutely fantastic, thank you very much Mosh, working perfectly on 4.1.1, this is superb, thank you again. :)

*ps, nominated for MOTM ;)

Mosh 01-29-2011 12:14 AM

Update: v4.0.6
-- Changed: Hack name
-- Updated: Installation/Upgrade/Removal Instructions file
-- Updated: Screenshots
-- Fixed: New Threads, Replies & Quick Replies in twitter enabled forums are only tweeted when they will not end up on the moderation queue
-- Fixed: Hashtags now work in vBulletin v3.8.x (hack tested and working.... not tested on v3.7.x nor v3.6.x but should also work)
-- Added: Install code to ensure all server requirements are met and all folders and files have been uploaded before the hack will install
-- Added: AdminCP Options to allow for both User & AdminCP defined Hashtags for new threads in twitter enabled forums
-- Added: Two plugins to aid in diagnosing problems with this hack (disabled by default)

res6cue 01-29-2011 12:30 AM

Quote:

Originally Posted by Mosh (Post 2155902)
-- Fixed: New Threads, Replies & Quick Replies in twitter enabled forums are only tweeted when they will not end up on the moderation queue

Awesome, many thanks for that fix! :up:

Videx 01-29-2011 12:41 AM

I don't think it was a great idea to take the word "twitter" out of the title. Since adding it, the mod was much easier to find in a search.

tokenyank 01-31-2011 02:10 PM

Hi Mosh - Quick question in hopes this is in scope of your support!

I've just installed YOURLS on a 4 letter domain I managed to get to create my own shortening service as shortening services die, I'd rather run my own to ensure that links in the wild are maintained rather than 404'd.

YOURLS doesn't require auth and allows a get/post api call to access the service:
Quote:

Secure passwordless API call

YOURLS allows API calls the old fashioned way, using username and password parameters. If you're worried about sending your credentials into the wild, you can also make API calls without using your login or your password, using a secret signature token.

Your secret signature token: <SECRET API EDITED OUT> (It's a secret. Keep it secret)

This signature token can only be used with the API, not with the admin interface.

*
Usage of the signature token

Simply use parameter signature in your API requests. Example:

http://mums.ws/yourls-api.php?signature=<SECRET API EDITED OUT>&action=...

I've just tried to add the service into your mod and not working - I'm hoping you might be able to shed a bit of light on the subject?

What I've done is changed all instances of the cURL from:
Code:

elseif ($vbulletin->options['ms_vbtwitter_use_url_shortening'] == 3)
                        {
                                $tinyurl = curl_init();
                                curl_setopt($tinyurl, CURLOPT_URL, 'http://tinyurl.com/api-create.php?url=' .  $baseURL);
                                curl_setopt($tinyurl, CURLOPT_RETURNTRANSFER, 1);
                                $shortURL = curl_exec($tinyurl);
                                curl_close($tinyurl);
                        }
                        else
                        {
                                $metamark = curl_init();
                                curl_setopt($metamark, CURLOPT_URL, 'http://metamark.net/api/rest/simple?long_url=' .  $baseURL);
                                curl_setopt($metamark, CURLOPT_RETURNTRANSFER, 1);
                                $shortURL = curl_exec($metamark);
                                curl_close($metamark);
                        }

to:
Code:

elseif ($vbulletin->options['ms_vbtwitter_use_url_shortening'] == 4)
                        {
                                $metamark = curl_init();
                                curl_setopt($metamark, CURLOPT_URL, 'http://metamark.net/api/rest/simple?long_url=' .  $baseURL);
                                curl_setopt($metamark, CURLOPT_RETURNTRANSFER, 1);
                                $shortURL = curl_exec($metamark);
                                curl_close($metamark);
                        }
                        else
                        {
                                $mums = curl_init();
                                curl_setopt($mums, CURLOPT_URL, 'http://mums.ws/yourls-api.php?signature=<SECRET API EDITED OUT>&action=' .  $baseURL);
                                curl_setopt($mums, CURLOPT_RETURNTRANSFER, 1);
                                $shortURL = curl_exec($mums);
                                curl_close($mums);
                        }

And the piped from:
Code:

<optioncode>select:piped
0|No url shortening
1|bit.ly url shortening
2|is.gd url shortening
3|TinyURL url shortening
4|Metamark url shortening</optioncode>

to:
Code:

<optioncode>select:piped
0|No url shortening
1|bit.ly url shortening
2|is.gd url shortening
3|TinyURL url shortening
4|Metamark url shortening
5|mums url shortening</optioncode>

XML imports without problem, settings store with no problem, and NEWTHREAD creation without problem - however it doesn't Tweet the new thread to Twitter.

I'm not a php guru, but from going through your mod, it seemed to me that is was all I needed to change however since it is failing, I guess I was wrong...

Could you perhaps either help me get this working or add a provision in the next update to allow installations of YOURLS to be handled for those of us who want to use our own shorteners?

Thanks Mosh, I apprecaite your help in advance!

8thos 02-01-2011 02:56 AM

Works great!!!

pete_brady 02-01-2011 05:42 AM

Quote:

Originally Posted by tokenyank (Post 2156906)
a provision in the next update to allow installations of YOURLS to be handled for those of us who want to use our own shorteners?

Thanks Mosh, I apprecaite your help in advance!

this would indeed be awesome

Mosh 02-01-2011 10:32 AM

Quote:

Originally Posted by tokenyank (Post 2156906)
Hi Mosh - Quick question in hopes this is in scope of your support!

I've just installed YOURLS on a 4 letter domain I managed to get to create my own shortening service as shortening services die, I'd rather run my own to ensure that links in the wild are maintained rather than 404'd.

YOURLS doesn't require auth and allows a get/post api call to access the service:


I've just tried to add the service into your mod and not working - I'm hoping you might be able to shed a bit of light on the subject?

What I've done is changed all instances of the cURL from:
Code:

elseif ($vbulletin->options['ms_vbtwitter_use_url_shortening'] == 3)
                        {
                                $tinyurl = curl_init();
                                curl_setopt($tinyurl, CURLOPT_URL, 'http://tinyurl.com/api-create.php?url=' .  $baseURL);
                                curl_setopt($tinyurl, CURLOPT_RETURNTRANSFER, 1);
                                $shortURL = curl_exec($tinyurl);
                                curl_close($tinyurl);
                        }
                        else
                        {
                                $metamark = curl_init();
                                curl_setopt($metamark, CURLOPT_URL, 'http://metamark.net/api/rest/simple?long_url=' .  $baseURL);
                                curl_setopt($metamark, CURLOPT_RETURNTRANSFER, 1);
                                $shortURL = curl_exec($metamark);
                                curl_close($metamark);
                        }

to:
Code:

elseif ($vbulletin->options['ms_vbtwitter_use_url_shortening'] == 4)
                        {
                                $metamark = curl_init();
                                curl_setopt($metamark, CURLOPT_URL, 'http://metamark.net/api/rest/simple?long_url=' .  $baseURL);
                                curl_setopt($metamark, CURLOPT_RETURNTRANSFER, 1);
                                $shortURL = curl_exec($metamark);
                                curl_close($metamark);
                        }
                        else
                        {
                                $mums = curl_init();
                                curl_setopt($mums, CURLOPT_URL, 'http://mums.ws/yourls-api.php?signature=<SECRET API EDITED OUT>&action=' .  $baseURL);
                                curl_setopt($mums, CURLOPT_RETURNTRANSFER, 1);
                                $shortURL = curl_exec($mums);
                                curl_close($mums);
                        }

And the piped from:
Code:

<optioncode>select:piped
0|No url shortening
1|bit.ly url shortening
2|is.gd url shortening
3|TinyURL url shortening
4|Metamark url shortening</optioncode>

to:
Code:

<optioncode>select:piped
0|No url shortening
1|bit.ly url shortening
2|is.gd url shortening
3|TinyURL url shortening
4|Metamark url shortening
5|mums url shortening</optioncode>

XML imports without problem, settings store with no problem, and NEWTHREAD creation without problem - however it doesn't Tweet the new thread to Twitter.

I'm not a php guru, but from going through your mod, it seemed to me that is was all I needed to change however since it is failing, I guess I was wrong...

Could you perhaps either help me get this working or add a provision in the next update to allow installations of YOURLS to be handled for those of us who want to use our own shorteners?

Thanks Mosh, I apprecaite your help in advance!

I will look into this at the weekend and we shall see. However, I am not promising anything at this stage... so, you will have to wait and see.

tokenyank 02-01-2011 10:33 AM

That's all a guy can ask for! Thanks Mosh!

GooWood 02-04-2011 02:12 AM

This is the 2nd thread to tweet mod i have used. Had problems at the start figured it out thankfully. Nothing to do with this mod. There was a left over bit of code from the old mod that didn't:up: work. I have to say I love this thread and it will be helping me out a lot with the news on my site. So thank you and once again wonderful addon. :up:

demonfatal 02-05-2011 02:57 AM

For any reason I am not able to get it working with vB4.1.1
I tried a lot of times and no success all seem set correctly...
I am confused, Mosh can you assist by PM please?

Mosh 02-05-2011 04:43 AM

Quote:

Originally Posted by demonfatal (Post 2158937)
For any reason I am not able to get it working with vB4.1.1
I tried a lot of times and no success all seem set correctly...
I am confused, Mosh can you assist by PM please?

I do not provide support via PM (see the first post for more information), and I also do not provide support for people who have not clicked Mark as Installed.

demonfatal 02-05-2011 03:43 PM

Quote:

Originally Posted by Mosh (Post 2158951)
I do not provide support via PM (see the first post for more information), and I also do not provide support for people who have not clicked Mark as Installed.

I uninstalled it since I was not able to get it working...
But I clicked installed now...can you help please?

Mosh 02-05-2011 09:02 PM

Quote:

Originally Posted by demonfatal (Post 2159079)
I uninstalled it since I was not able to get it working...
But I clicked installed now...can you help please?

Lets start by you telling me where it is failing, be as detailed as possible, because without knowing where the problems are occurring I can not begin to troubleshoot your issue.

sendur 02-07-2011 11:54 AM

Works like a charm! Very nice mod!

tokenyank 02-16-2011 11:00 AM

A couple weeks have gone by and thought I'd push my luck and see if you've had a chance to see if there is a way to integrate YOURLS into your mod Mosh? I understand if you don't want to add the funcationality pre-built into the mod as not everyone will want to (or can) install YOURLS themselves, but if you could have a quick look at what YOURLS needs to use the api and throw us a bone on how to integrate it ourselves, I'd appreciate it! :)

Thanks Mosh!

StarBuG 02-16-2011 06:22 PM

Thanks, works perfect :)

oddmud 02-22-2011 02:10 PM

Any way for the links created on twitter to take you to the last post instead of the first post of the thread when showing replies? Right now it takes you to the first post each time, and you have to sift through the thread to find the last one. Wouldn't it be better for SEO purposes it it took you to the latest post with the newest information to index?

Videx 02-22-2011 03:15 PM

Quote:

Originally Posted by oddmud (Post 2165429)
Any way for the links created on twitter to take you to the last post instead of the first post of the thread when showing replies?

Any tweet should take you to the exact post that generated the tweet, not to the last post in the thread. Or the first.
Personally I would never tweet all replies as anyone can already get this information by subscribing to the thread if they're interested. Too many tweets and they'll just stop paying attention to the feed. And it would quickly become impossible to pick out the new threads among all the replies.

oddmud 02-22-2011 03:22 PM

Quote:

Originally Posted by Videx (Post 2165459)
Any tweet should take you to the exact post that generated the tweet, not to the last post in the thread. Or the first.
Personally I would never tweet all replies as anyone can already get this information by subscribing to the thread if they're interested. Too many tweets and they'll just stop paying attention to the feed. And it would quickly become impossible to pick out the new threads among all the replies.

It's not for users, it's for bots. The site is small right now, and twitter is helping it grow rapidly within the SEO realm.

Also it DOES NOT take you to the exact post made, it takes you to the thread URL, which gives you the first post, and not the latest post.

Videx 02-22-2011 04:50 PM

I understand; I was agreeing with you (though making a slight correction).

However, if you're just spamming Twitter hoping bots will visit, it should make no difference where the twit links, as long as it brings them to your site. This too we're going to differ on because I find our forum sometimes overloaded with bots/guests and have taken steps to cut down on them.

oddmud 02-22-2011 08:31 PM

Quote:

Originally Posted by Videx (Post 2165506)
I understand; I was agreeing with you (though making a slight correction).

However, if you're just spamming Twitter hoping bots will visit, it should make no difference where the twit links, as long as it brings them to your site. This too we're going to differ on because I find our forum sometimes overloaded with bots/guests and have taken steps to cut down on them.

If you take them to the link/page with the new post, it's going to read that post, with new information. Instead of coming to the first page with information it's already read before.

I understand wanting to cut down on them when your board is of a certain size. But it's definitely helping increase traffic for the time being. :)

Videx 02-22-2011 10:36 PM

Quote:

Originally Posted by oddmud (Post 2165577)
If you take them to the link/page with the new post, it's going to read that post, with new information. Instead of coming to the first page with information it's already read before.

Isn't that what PubSubHubBub for vBulletin 4.x - Realtime Indexation of New Threads! is for?

MoreLinux 02-28-2011 06:42 PM

Installed on VB 4.1.2 and works nicely.

RustyAU 03-03-2011 07:12 PM

Had this installed on two separate VB forums, both running 4.1.0 and it was working great.... until the end of January where it just seems to have....stopped working....

I've just upgraded to vBB 4.1.2 and the new 4.0.6, but thus far, it simply doesn't seem to be working any more...

Don't recall making any changes, and sadly, I seem to be getting no error messages to explain why it's not working...

Any clues?

Videx 03-03-2011 07:36 PM

Are you on a shared server? Have you contacted your host about any recent changes they may have done?

yahooooh 03-06-2011 02:55 AM

Couldn't resolve host 'api.bit.ly' on line

Amenadiel 03-06-2011 01:41 PM

I have a custom user field for the twitter profile. Is it possible for each user to tweet from their account when they create a thread, if and only if the custom field is not blank?

Tweeting everything from my forum account would be pretty spammy.

Mosh 03-06-2011 09:23 PM

Quote:

Originally Posted by yahooooh (Post 2170030)
Couldn't resolve host 'api.bit.ly' on line

Can you expand on this please? Like a full error message, then I may be able to help out.

Mosh 03-06-2011 09:23 PM

Quote:

Originally Posted by Amenadiel (Post 2170173)
I have a custom user field for the twitter profile. Is it possible for each user to tweet from their account when they create a thread, if and only if the custom field is not blank?

Tweeting everything from my forum account would be pretty spammy.

No, this hack does not have that functionality.

StarBuG 03-08-2011 10:53 AM

Hi

I have a question / suggestion:
When tweeting replies hashtags defined via the ACP are currently not send but they should.
Is there a way to add ACP defined hashtags to the end of the reply tweets?

Mosh 03-08-2011 08:31 PM

Quote:

Originally Posted by StarBuG (Post 2170875)
Hi

I have a question / suggestion:
When tweeting replies hashtags defined via the ACP are currently not send but they should.
Is there a way to add ACP defined hashtags to the end of the reply tweets?

Not current, but it should not too difficult to add... so if there is enough interest shown, I am willing to add the feature in to a future version.

StarBuG 03-08-2011 09:08 PM

Sounds great, thanks.

so far I edited the Re phrase and placed my hashtag in front of it but that is only a quick fix and does not look that good :)

Videx 03-08-2011 10:56 PM

I might be willing to vote for it if I could be convinced there's a need. But since I don't crowd my twit feed with replies - what a holy mess that would be - I doubt I would ever use hashtags at all.


All times are GMT. The time now is 06:24 PM.

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.02066 seconds
  • Memory Usage 1,870KB
  • 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
  • (8)bbcode_code_printable
  • (18)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