Extension:MyTwitter: Difference between revisions
Appearance
Content deleted Content added
Mainframe98 (talk | contribs) That doesn't belong there. If you have questions, use the talk page. Undo revision 2215285 by 126.15.137.191 (talk) |
|||
| Line 37: | Line 37: | ||
==Usage== |
==Usage== |
||
On a Mediawiki page, use <code><twitter/></code> tag. You can use <code><twitter>ERRORMESSAGE</twitter></code> for showing an error message in case of errors. The built-in css code works only on the Main page. |
On a Mediawiki page, use <code><twitter/></code> tag. You can use <code><twitter>ERRORMESSAGE</twitter></code> for showing an error message in case of errors. The built-in css code works only on the Main page. |
||
-> How do I set up? |
|||
==Website== |
==Website== |
||
Revision as of 11:33, 14 August 2016
Release status: beta |
|
|---|---|
| Implementation | Tag |
| Description | Show twitter widget in mediawiki, using Ralph's MyTwit class. |
| Author(s) | Ralph Slooten, 페네트- (페네트-talk) |
| Latest version | 1.0 (2016-07-14) |
| MediaWiki | 1.16 |
|
|
| Licence | MIT License |
| Download | MyTwitter.zip or this page |
| Example | Wikichan web page |
MyTwitter is a Mediawiki extension to embed a Twitter comments into a web page, using Ralph Slooten's MyTwit class. This extension needs Twitter's Oauth and curl commands. License is MIT-style license (http://opensource.org/licenses/MIT).
MyTwit
MyTwit is a PHP class used to embed a Twitter user's public comments into a web page. It keeps it's own cache, and (by default) updates only every 10 minutes when the page is loaded to prevent overloading twitter (and possibly getting banned). As of version 0.5, it uses an in-built Oauth and curl to fetch feeds.
Installation
- Optionally, you may download using git:
cd /path/to/your/wiki/ cd extensions/ git clone https://github.com/wiki-chan/MyTwitter.git
- Download and place the file(s) in a directory called
MyTwitterin yourextensions/folder. - Add the following code at the bottom of your LocalSettings.php file:
wfLoadExtension( 'MyTwitter' );
- After install, you should install
php5-curlorphp7.0-curl.
Done – Navigate to Special:Versionon your wiki to verify that the extension is successfully installed.
Usage
On a Mediawiki page, use <twitter/> tag. You can use <twitter>ERRORMESSAGE</twitter> for showing an error message in case of errors. The built-in css code works only on the Main page.
Website
- http://www.axllent.org/code/mytwit/ (MyTwit class)
- https://github.com/wiki-chan/MyTwitter (This extension)
- http://wiki-chan.net/ (Example)
