Adam Green
Twitter API Consultant
adam@140dev.com
781-879-2960
@140dev

Free Source Code – Twitter Display: twitter_display_config.php

The only value you need to fill in here is AJAX_URL. The other configuration options for the Twitter display plugin are already here, so you don’t have to change them before using the code. These options control things like the display of link titles, number of tweets displayed, and the various pieces of text that appear in a tweet list.

All literal text appearing in the tweet list is in this file. You can completely localize the code for a language other than English with these options.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
/**
* twitter_display_config.php
* Configuration options for the Twitter display plugin
* Latest copy of this code: http://140dev.com/free-twitter-api-source-code-library/
* @author Adam Green <140dev@gmail.com>
* @license GNU Public License
* @version BETA 0.30
*/

// URL for site.js to call the framework with Ajax 
// You MUST fill this in with the correct URL for the 140dev code
// For example, if the code is at http://mydomain.com/twitter_display/
// change to define('AJAX_URL', 'http://mydomain.com/twitter_display/');
define('AJAX_URL', '*****');

// Number of tweets displayed when the tweet list is first displayed
// and when the View More button is clicked
define('TWEET_DISPLAY_COUNT', 30);

// Text for View More button
define ('MORE_BUTTON', 'tweets displayed - View More');

// Title for hashtag links
define('HASHTAG_TITLE', 'View tweets for tag: ');

// Title for user mention links
define('USER_MENTION_TITLE', 'View tweets by user: ');

// Title for tweet date
define('TWEET_DISPLAY_TITLE', 'View this tweet on Twitter.com');

// Number of seconds between checking server for new tweet count
define('NEW_COUNT_REFRESH', 30);

// Message for new tweet count at top of tweet list
define('NEW_TWEET_MESSAGE', 
  '1 new tweet available. <a href="index.html">Refresh</a> to see it.');	
define('NEW_TWEETS_MESSAGE', 
  ' new tweets available. <a href="index.html">Refresh</a> to see them.');		
?>

streaming_framework