Extension talk:SendToTwitter2

for configuration help or consulting, feel free to contact me at http://www.wikiexpert.com/contact

--Phalseid 19:24, 8 December 2009 (UTC)

I needed to change this line in the LocalSettings:

$wgSendToTwitterWikiURL      = 'http://www.yourdomain.com/wiki/'; #don't forget trailing slash!

to this

$wgSendToTwitterWikiURL      = 'http://www.yourdomain.com/wiki/index.php?title=';

in order for this extension to work.

--LCaruana 18:25, 9 February 2010 (UTC)


 * probably depends if you are using prettyurls or not --Phalseid 17:58, 18 February 2010 (UTC)

Same Error As "SendToTwitter"
PHP Fatal error: Call to undefined function curl_init in /var/www/htdocs/extensions/SendToTwitter2/SendToTwitter2.php on line 65

Any ideas? Thanks --John Thomson 02:57, 2 March 2010 (UTC)
 * You likely don't have CURL enabled on your webspace --Frantik 15:54, 3 March 2010 (UTC)


 * Hi Frantik - That did it! Bit of a "doh" moment there.  Thanks very much, I appreciate your help!! --John Thomson 23:27, 3 March 2010 (UTC)

Send to Twitter and Captcha allows TwitterSpam
I enabled SendToTwitter2 this evening, and within minutes I received a tweet where the summary was "Accutane", it was promptly followed by a similar tweet. Seeing nothing in my RecentChanges, I tried the following:


 * 1) I logged out of my wiki
 * 2) I attempted to edit a page and added a comment
 * 3) I was prompted to enter my captchas, but by that point, STT2 had already fired, and the tweet was sent.

Relevant captcha config:

// Fix the default captcha behaviour $wgGroupPermissions['*'           ]['skipcaptcha'] = false; $wgGroupPermissions['user'        ]['skipcaptcha'] = true; $wgGroupPermissions['autoconfirmed']['skipcaptcha'] = true; $wgGroupPermissions['bot'         ]['skipcaptcha'] = true; // registered bots $wgGroupPermissions['sysop'       ]['skipcaptcha'] = true; # $wgCaptchaTriggers['edit']         = true; $wgCaptchaTriggers['create']       = true; $wgCaptchaTriggers['createaccount'] = true;

For the time being, I disabled captcha and disabled anonymous edits altogether. It's not an important feature for me anyways. --John Thomson 23:35, 3 March 2010 (UTC)
 * Hi John, try this solution which is mentioned on the original SendToTwitter page: Extension:SendToTwitter and let me know if it solves your problem.  I'm not using a captcha on my site so I'm not sure. --Frantik 18:11, 6 March 2010 (UTC)

Hide to anonymous users & YOURLS integration
This is a great tool for my wiki. If anyone is interested, I added a few modifications. First, if you want to hide the SendToTwitter checkbox to anonymous users (which I highly recommend!) you can just change these two lines (around 111 or so) from this: to this:

Next, if you have a YOURLS installation for custom short links, you can replace the line that queries the URL shortener's API (around line 67 or so) from this: to this (replace the stuff in caps to your own info):

And that's it! I hope that may be helpful to someone. I've recently started using Ping.fm to send certain updates to multiple social networks simultaneously, and it should be pretty simple to modify this extension to send to Ping.fm instead of Twitter. If I end up making those modifications, I'll post an example here. —Pensapedia 15:35, 19 March 2010 (UTC)