1 頁 (共 1 頁)

[新手問題]虛擬貨幣不能安裝

發表於 : 2003-11-09 21:26
傻仔1個
問題外掛:虛擬貨幣\r
參考連結:http://phpbb-tw.net/phpbb/viewtopic.php ... %B3f%B9%F4
http://phpbb-tw.net/phpbb/viewtopic.php?t=16130

使用版本:phpbb plus1.3
網站位置:我想我能安裝也不成功...不用網址吧?@@
狀況描述: 由於plus不是用subsilver.....
所以viewtopic...入面的東東大部分也是不一樣...有些更是不存在...... :cry:而且我是一位新手
所以跟本無從入手.........
有沒有人有在plus1.3安裝虛擬的經驗?....
or有人知道解決方法?.... :cry:

plus1.3與簡易虛擬貨幣教學不同的地方:


\n

viewtopic:

代碼: 選擇全部

// 
// Go ahead and pull all data for this topic 
// 
$sql = "SELECT u.username, u.user_id, u.user_posts, u.user_from, u.user_website, u.user_email, u.user_icq, u.user_aim, u.user_yim, u.user_regdate, u.user_msnm, u.user_viewemail, u.user_rank, u.user_sig, u.user_sig_bbcode_uid, u.user_avatar, u.user_avatar_type, u.user_allowavatar, u.user_allowsmile, u.user_allow_viewonline, u.user_session_time, p.*,  pt.post_text, pt.post_subject, pt.bbcode_uid
跟本沒有u.userxxxxx
只要用u.*代替(這只是我的猜想)
因此我跟本不知道在where放入"u.user_money "+_+

/include/functions_post.php :

代碼: 選擇全部

// 
// Update post stats and details 
// 
function update_post_stats(&$mode, &$post_data, &$forum_id, &$topic_id, &$post_id, &$user_id) 
{ 
   global $db; 
   $sign = ($mode == 'delete') ? '- 1' : '+ 1'; 
最後的一行跟本不存在,
我應不應該自行加上?_?

代碼: 選擇全部

if ($post_data['first_post']) 
         { 
            $forum_update_sql .= ', forum_topics = forum_topics - 1'; 
         } 
         else 
         { 
            $topic_update_sql .= 'topic_replies = topic_replies - 1'; 
            $sql = "SELECT MAX(post_id) AS last_post_id 
               FROM " . POSTS_TABLE . " 
               WHERE topic_id = $topic_id"; 

代碼: 選擇全部

 $sql = "UPDATE " . USERS_TABLE . " 
         SET user_posts = user_posts $sign 
         WHERE user_id = $user_id"; 
跟本不存在...
我只能發現一些相似的code...可是我又不能edit...
因為教學是要我把這2個code換成另一些code+_+


希望各位大大多多幫忙....thanks

發表於 : 2003-11-09 21:47
alexpan
建議你
http://nt66.com.tw/LineII/index.php
http://scottstudio.adsldns.org/index.php
這2個網站去逛逛,你會有意想不到的收穫......
我本身也是新手^^"~至於去不去也在於你^^"

發表於 : 2003-11-09 22:36
傻仔1個
thanks@@~

but...
http://scottstudio.adsldns.org/index.php
這個網站究竟是什麼?@@

發表於 : 2003-11-10 07:14
alexpan
一個也是有很多Mod的網站,但是他好像有改一下,不過.....
他的站跑的很慢,你是不是以為進不去,沒有等他跑完就關掉了阿^^"

[轉貼]這是我的經驗,獻給同好

發表於 : 2004-02-06 21:25
l122kk
cash mod 2.0.2
給phpbb plus1.3用
依照所付說明修改
但有幾個地方必需注意,才適合plus1.3

注意1.

#
#-----[ OPEN ]------------------------------------------
#
viewtopic.php

#
#-----[ FIND ]------------------------------------------
#
$sql = "SELECT u.username, u.user_id, u.user_posts,

#
#-----[ BEFORE, ADD ]------------------------------------------
#
$cash_data = array();
$cash_field = "";
if ( !$board_config['cash_disable'] )
{
$sql = "SELECT cash_dbfield, cash_name, cash_image, cash_imageurl
FROM " . CASH_TABLE . "
WHERE cash_enabled = 1 AND cash_postdisplay = 1
ORDER BY cash_order ASC";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, "Could not obtain Cash Mod information.", '', __LINE__, __FILE__, $sql);
}
while ( $row = $db->sql_fetchrow($result) )
{
$cash_data[] = $row;
$cash_field .= $row['cash_dbfield'] . ", ";
}
}

#
#-----[ FIND ]------------------------------------------
#
$sql = "SELECT u.username, u.user_id, u.user_posts,

#
#-----[ IN-LINE FIND ]------------------------------------------
#
u.user_allowsmile,

#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
# Note: there should *not* be a comma after $cash_field, just a space
#
$cash_field

#

以上更正為

找尋:
//
// Go ahead and pull all data for this topic
//
下面數行有
$sql = "SELECT u.*, p.*, pt.post_text, pt.post_subject, pt.bbcode_uid
FROM " . POSTS_TABLE . " p, " . USERS_TABLE . " u, " . POSTS_TEXT_TABLE . " pt
WHERE p.topic_id = $topic_id
$limit_posts_time
AND pt.post_id = p.post_id
AND u.user_id = p.poster_id
ORDER BY p.post_time $post_time_order
LIMIT $start, ".$board_config['posts_per_page'];
在前面嵌入
$cash_data = array();
$cash_field = "";
if ( !$board_config['cash_disable'] )
{
$sql = "SELECT cash_dbfield, cash_name, cash_image, cash_imageurl
FROM " . CASH_TABLE . "
WHERE cash_enabled = 1 AND cash_postdisplay = 1
ORDER BY cash_order ASC";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, "Could not obtain Cash Mod information.", '', __LINE__, __FILE__, $sql);
}
while ( $row = $db->sql_fetchrow($result) )
{
$cash_data[] = $row;
$cash_field .= $row['cash_dbfield'] . ", ";
}
}


注意二:

#-----[ OPEN ]------------------------------------------
#
templates/subSilver/viewtopic_body.tpl

#
#-----[ FIND ]------------------------------------------
#
<td width="150" align="left" valign="top" class="{postrow.ROW_CLASS}"><span class="name"><a name="{postrow.U_POST_ID}"></a><b>{postrow.POSTER_NAME}</b></span><br /><span class="postdetails">{postrow.POSTER_RANK}<br />{postrow.RANK_IMAGE}{postrow.POSTER_AVATAR}<br /><br />{postrow.POSTER_JOINED}<br />{postrow.POSTER_POSTS}<br />{postrow.POSTER_FROM}</span><br /></td>

#
#-----[ REPLACE WITH ]------------------------------------------
#
<td width="150" align="left" valign="top" class="{postrow.ROW_CLASS}"><span class="name"><a name="{postrow.U_POST_ID}"></a><b>{postrow.POSTER_NAME}</b></span><br /><span class="postdetails">{postrow.POSTER_RANK}<br />{postrow.RANK_IMAGE}{postrow.POSTER_AVATAR}<br /><br />{postrow.POSTER_JOINED}<br />{postrow.POSTER_POSTS}<br />{postrow.POSTER_FROM}
<!-- BEGIN cashrow -->
<br />{postrow.cashrow.CASH_NAME}: {postrow.cashrow.CASH_AMOUNT}
<!-- END cashrow -->
</span><br /></td>


以上這段,plus或許變了,所以只要尋找
{postrow.RANK_IMAGE}{postrow.POSTER_AVATAR}
這些變數在一起就可以了
再把
<!-- BEGIN cashrow -->

{postrow.cashrow.CASH_NAME}: {postrow.cashrow.CASH_AMOUNT}
<!-- END cashrow -->
放在最後一個變數之後,<img......>之前就可以了。


注意3

#-----[ OPEN ]------------------------------------------
#
templates/subSilver/profile_view_body.tpl


#
#-----[ FIND ]------------------------------------------
#
<td> <b><span class="gen">{INTERESTS}</span></b></td>
</tr>


以上這段只要找到{INTERESTS}就可以照做了

注意4
最後按照「天霜」大大發表的
這篇「Cash Mod安裝於P.C.P的改法」修改就大功告成。
我不敢盗連,故自己搜尋關鍵字即可\r

附註:
若你的php版本小於4.2,可能要把
functions_cash.php
admin_cash_settings.php
這兩個檔內的floatval變數換為doubleval這變數才能運行。

發表於 : 2004-02-07 10:46
william91
plus 問題請到分站問:
http://plus.phpbb-tw.net

發表於 : 2004-02-07 11:10
StickyKid
william91 寫:plus 問題請到分站問:
http://plus.phpbb-tw.net
分站葛屁了喔~XD
你都不看新聞的嘛 :mrgreen: