document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. // common/twitter.php
  2. // edit function theme_retweet
  3. // demo --> http://tuitme.tk
  4.  
  5. function theme_retweet($status)
  6. {
  7.     //this code
  8.         $rtsyntax = setting_fetch(\'rtsyntax\', \'RT [User]: [Content]\');
  9.     $replace = array(
  10.         "[User]" => "@{$status->user->screen_name}",
  11.         "[Content]" => "{$status->text}",);
  12.     $text = str_replace(array_keys($replace),array_values($replace),$rtsyntax);
  13.         $length = function_exists(\'mb_strlen\') ? mb_strlen($text,\'UTF-8\') : strlen($text);
  14.         $from = substr($_SERVER[\'HTTP_REFERER\'], strlen(BASE_URL));
  15.  
  16.  
  17.  
  18. // common/settings.php
  19.  
  20. function settings_page($args) {
  21.         if ($args[1] == \'save\') {
  22.                 ....
  23.         ....
  24.         ....
  25.         ....
  26.         //this code
  27.            $settings[\'rtsyntax\'] = $_POST[\'rtsyntax\'];
  28.  
  29. //add
  30.     ....
  31.     $content .= \'</select></p><p>Mode:<br /><select name="browser">\';
  32.         $content .= theme(\'options\', $modes, $GLOBALS[\'current_theme\']);
  33.     //this code
  34.         $content .= \'<p><label>RT Syntax:<br /><input type="text" id="rtsyntax" name="rtsyntax" value="\'.setting_fetch(\'rtsyntax\', \'RT [User]: [Content]\').\'" maxlength="140" size="25" class="linput" /></label><br /><span class="texts">Default RT Syntax: RT [User]: [Content]</span></p><hr />\';
  35.     ....
  36.     ....
');