![]() |
| | #11 | |
| 浩瀚星空站長 | 引用:
不過我比較喜歡用cmps就是了。開發簡單。 新的vBPortal還沒試過。之前他都會去修改核心資料庫的東西。讓我很頭痛。 | |
| | |
| | #12 |
| Senior Member 註冊日期: 2005-05-13 住址: 無
文章: 156
|
一下子已使用vbPortal 3年到期了. 剛好在到期前一天去挖到最新vbPortal Version 3.6.4 3.6.4 是用來對應 vBulletin 3.6.7 若是 3.6.7前面的版本就用vbPortal 3.6.3 版本 這回vbPortal 3.6.4 大幅度修改語言檔. 2個language文件夾內的語言檔全由一個vbportal-phrases.xml取代 vbPortal 已變成 vBulletin 的影子... 雖然我已將vbPortal 3.6.4 中文化約97%但有些用語很不順. 所以我先提供原文檔案給大家研究... 幫朋友架的論壇入口軟體就是用vbPortal 3.6.4 http://www.a8car.com/ |
| | |
| | #13 | |
| Member 註冊日期: 2005-04-29 住址: 虛空論壇
文章: 36
| 引用:
__________________ 不知道為什麼,我很喜歡黑夜, 我總是喜歡在夜裡想事情...... 喜歡喝著酒,或許感慨,或許無奈....... 可能拿著吉他,彈著我們喜歡的歌, 唱給那個曾經甜蜜現在卻已遙不可及的人......... -- By 台北 -- 阿修羅 | |
| | |
| | #14 |
| Senior Member 註冊日期: 2005-05-13 住址: 無
文章: 156
| 哈..老弟我也是隨著你的VBPortal中文化一直演變至今.你算是我的老師啦... photopost 與 VBPortal 整合方式 區塊管理 >> 預設中央區塊 >> 增加新的區塊 增加新的區塊 (設置內文) 區塊類型 php 標題 虛空像簿 顯示順序 0 模板 是 限制結果 0 自訂碼 (如下) //$link = mysql_connect ("localhost", "$dbuserid", "$dbuserpassword") or die('I cannot connect to the database.'); //mysql_select_db ("pp_database")or die("Could not select photopost database"); $forumpath = "/主機姐對路徑/forums"; (如 /home/aeigcarc/public_html/forums) $photopath = "/主機姐對路徑/photopost"; (如 /home/aeigcarc/public_html/photopost) $photourl = "http://虛空網址/photopost"; $forumurl = "http://虛空網址/forums"; $datapath = "http://虛空網址/photopost/data"; $ppprefix = "pp_"; (vb的前綴) // 顯示相片數 $num_display = 8; // 列數 (每一列顯示相片幾張) $columns = 4; // which type of images do you want to show (random, most_view, latest) $q_switch = "random"; // == END CONFIGURATION == //////////////////////////////////////////////////////////////////////////// if ( !isset($ViewPerm) ) { $mygroups = $bbuserinfo['usergroupid']; if ( $bbuserinfo['membergroupids'] != "" ) $mygroups .= ",".$bbuserinfo['membergroupids']; $grouparr = explode( ",", $mygroups ); $query = "SELECT id,ugnoview FROM {$ppprefix}categories"; $resultb = mysql_query($query); $ViewPerm = array(); while ( list( $catugid, $ugnoview ) = mysql_fetch_row($resultb) ) { $noview=0; $ViewPerm[$catugid] = 1; $allnoview = explode( ",", $ugnoview ); foreach ($allnoview as $key) { if (in_array($key, $grouparr) ) { $noview=1; } } if ( $noview == 0 ) { $ViewPerm[$catugid]=0; } } mysql_free_result( $resultb ); } function pp_get_ext( $filename ) { return substr($filename, strrpos($filename,".")); } function pp_is_image( $filename ) { $retval = 0; $mediatypes = array( ".jpg", ".gif", ".png", ".bmp" ); $ext = pp_get_ext( $filename ); if ( in_array(strtolower($ext), $mediatypes) ) $retval = 1; return( $retval ); } // // Featured Photos Code // Follow down to End Feature Photos Code // switch ($q_switch) { case "most_view": $query = "SELECT p.id,p.user,p.userid,p.cat,p.bigimage,p.height,p.width,c.catname,c.photos,c.posts FROM {$ppprefix}photos p LEFT JOIN {$ppprefix}categories c ON c.id = p.cat WHERE c.cattype = 'c' AND p.storecat = 0 OR c.private = 'no' ORDER BY views DESC"; break; case "latest": $query = "SELECT p.id,p.user,p.userid,p.cat,p.bigimage,p.height,p.width,c.catname,c.photos,c.posts FROM {$ppprefix}photos p LEFT JOIN {$ppprefix}categories c ON c.id = p.cat WHERE c.cattype = 'c' AND p.storecat = 0 OR c.private = 'no' ORDER BY date DESC"; break; default: $query = "SELECT p.id,p.user,p.userid,p.cat,p.bigimage,p.height,p.width,c.catname,c.photos,c.posts FROM {$ppprefix}photos p LEFT JOIN {$ppprefix}categories c ON c.id = p.cat WHERE c.cattype = 'c' AND p.storecat = 0 OR c.private = 'no' ORDER BY RAND()"; } $result = mysql_query($query); $counted = 0; $countcol = 0; $featured = ""; while (list($pid,$puser,$puserid,$pcat,$photo,$height,$width,$catname,$cphotos,$cposts) = mysql_fetch_row($result)) { if ( pp_is_image($photo) ) { $temp_user = $puserid; $catname = stripslashes($catname); if ( $height > $width ) $mthumb = "<img src=\"{$photourl}/images/overlay-roundp.gif\" height=\"96\" width=\"76\" border=\"0\" alt=\"\" />"; else $mthumb = "<img src=\"{$photourl}/images/overlay-round.gif\" height=\"76\" width=\"96\" border=\"0\" alt=\"\" />"; // One box for each feature $featured .= <<<PPPRINT <td align="center" valign="top" class="alt2"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td style="background-repeat: no-repeat; background-position: center;" bgcolor="#222222" background="{$datapath}/{$pcat}/thumbs/$photo"><a href="{$photourl}/showphoto.php?photo={$pid}">$mthumb</a></td> </tr> </table> <table border="0" style="border-collapse: collapse" width="100%"> <tr> <td></td> <td align="center" width="120"> <font size="1" face="verdana,arial">由 {$puser} 發表<br /></font> </td> </td> <td></td> </tr> </table> </td> PPPRINT; $counted++; $countcol++; } // If we've reached our limit, quit if ( $counted == $num_display ) break; // If we need to end the column, do so. if ( $countcol == $columns ) { $featured .= <<<PPPRINT </tr> <tr> PPPRINT; $countcol = 0; } } @mysql_free_result($result); // Add on the ending tag $featured .= "</tr>"; // First part is for the featured photos // $photopostfeature not holds the Featured Photos box and $photopostcats (set below) holds the // gallery list $photopostfeature = <<<PPPRINT <table cellpadding="0" cellspacing="0" border="0" width="100%" align="center"> <tr> <td> <table cellpadding="$stylevar[cellpadding]" cellspacing="1" border="0" width="100%"> $featured </table> </td> </tr> <tr><td colspan="3"><div class="blockfooter"><a href="/photopost/index.php" title="More Photos From The Gallery">更多像片...</a></div></td></tr> </table> PPPRINT; echo "$photopostfeature"; mysql_select_db ("Data_base_name_"); |
| | |
| | #15 |
| Member 註冊日期: 2005-04-29 住址: 虛空論壇
文章: 36
| 嘿嘿..........a6859老哥我成功咧~ 不過照您的方式在我網站無法正常使用,所以我有稍微改了一下,因為我Photopost使用的資料庫是跟VBB是分離的,所以要另外抓Mysql連結~ 在這邊順便說一下修改法,其實很簡單啦,把頭兩行的: PHP 代碼: PHP 代碼: 什麼??還不行?? 那麼把這一行: PHP 代碼: ※P.S:這個修改法我可以轉貼到虛空裡面嗎...............
__________________ 不知道為什麼,我很喜歡黑夜, 我總是喜歡在夜裡想事情...... 喜歡喝著酒,或許感慨,或許無奈....... 可能拿著吉他,彈著我們喜歡的歌, 唱給那個曾經甜蜜現在卻已遙不可及的人......... -- By 台北 -- 阿修羅 |
| | |
| | #16 |
| Senior Member 註冊日期: 2005-05-13 住址: 無
文章: 156
| |
| | |
| | #17 |
| Member 註冊日期: 2005-04-29 住址: 虛空論壇
文章: 36
| 感恩喔.........我已經貼過去了,還望您可以將您這一陣子以來所之對VBPortal的外掛改法全都分享出來~~~XX DD有沒有將photopost區塊顯示在論壇首頁的修改法呢...............^^
__________________ 不知道為什麼,我很喜歡黑夜, 我總是喜歡在夜裡想事情...... 喜歡喝著酒,或許感慨,或許無奈....... 可能拿著吉他,彈著我們喜歡的歌, 唱給那個曾經甜蜜現在卻已遙不可及的人......... -- By 台北 -- 阿修羅 此篇文章於 2007-07-22 03:59 AM 被 阿修羅 編輯. |
| | |