拡張ユビキタスの情報にもURLコピー追加 thread.class.phpの274-314辺りの* ■元スレURLを返すを function getMotoThread($original = false) { global $_conf; // 強制指定 if ($mode == '2ch') { return $motothre_url = "http://{$this->host}/test/read.cgi/{$this->bbs}/{$this->key}/{$this->ls}"; } // まちBBS if (P2Util::isHostMachiBbs($this->host)) { $motothre_url = "http://{$this->host}/bbs/read.pl?BBS={$this->bbs}&KEY={$this->key}"; // まちびねっと } elseif (P2Util::isHostMachiBbsNet($this->host)) { $motothre_url = "http://{$this->host}/test/read.cgi?bbs={$this->bbs}&key={$this->key}"; // JBBSしたらば } elseif (P2Util::isHostJbbsShitaraba($this->host)) { $host_bbs_cgi = preg_replace('{(jbbs\.shitaraba\.com|jbbs\.livedoor\.com|jbbs\.livedoor\.jp)}', '$1/bbs/read.cgi', $this->host); $motothre_url = "http://{$host_bbs_cgi}/{$this->bbs}/{$this->key}/{$this->ls}"; //$motothre_url = "http://{$this->host}/bbs/read.cgi?BBS={$this->bbs}&KEY={$this->key}"; // 2ch系 } elseif (P2Util::isHost2chs($this->host)) { // PC if (empty($_conf['ktai']) || $original) { $motothre_url = "http://{$this->host}/test/read.cgi/{$this->bbs}/{$this->key}/{$this->ls}"; // 携帯 } else { if (P2Util::isHostBbsPink($this->host)) { $motothre_url = "http://{$this->host}/test/r.i/{$this->bbs}/{$this->key}/{$this->ls}"; } else { $mail = urlencode($_conf['my_mail']); $motothre_url = "http://c.2ch.net/test/--3!mail={$mail}/{$this->bbs}/{$this->key}/{$this->ls}"; } } // その他 } else { $motothre_url = "http://{$this->host}/test/read.cgi/{$this->bbs}/{$this->key}/{$this->ls}"; } return $motothre_url; } に差し替える。 info.phpの218-229辺りを $motothre_url = $aThread->getMotoThread(); if (P2Util::isHost2chs($aThread->host)) { $motothre_org_url = $aThread->getMotoThread(true); } else { $motothre_org_url = $motothre_url; } if (isset($title_msg)) { $hc['title'] = $title_msg; } else { $hc['title'] = "info - {$hc['ttitle_name']}"; } に 332あたりの if (!$_conf['ktai']) { if (isset($info_msg)) { echo "".$info_msg."\n"; } else { echo " \n"; } } の下に // 携帯コピペ用フォーム if (!empty($_conf['ktai'])) { echo getCopypaFormHt($motothre_org_url, $hd['ttitle_name']); } を追加、365以下を //=============================================== // ■関数 //=============================================== /** * スレ情報HTMLを表示する */ function print_info_line($s, $c_ht) { global $_conf; // 携帯 if (!empty($_conf['ktai'])) { echo "{$s}: {$c_ht}
"; // PC } else { echo "{$s} {$c_ht}\n"; } } /** * スレタイとURLのコピペ用のフォームを取得する */ function getCopypaFormHt($url, $ttitle_name_hd) { $url_hd = htmlspecialchars($url); $s = $_SERVER['HTTPS'] ? 's' : ''; $me_url = "http{$s}://" . $_SERVER['HTTP_HOST'] . $_SERVER['SCRIPT_NAME']; // $_SERVER['REQUEST_URI'] $htm = << EOP; // //
return $htm; } ?> に差し替え 外部URLを省略させない。 showthreadk.class.php $link = "{$link_title}"; を $link = "{$str}";