[問題]UCP/個人資料/興趣 的欄位
我是看完這篇後試著自己去改看看將該欄位(甚至是自訂欄位)顯示在私人訊息之中。
首先我先試著改下面這個檔
/styles/prosilver/template/ucp_pm_viewmessage.html
發現只需要將
代碼: 選擇全部
<!-- IF AUTHOR_JOINED --><dd><strong>{L_JOINED}:</strong> {AUTHOR_JOINED}</dd><!-- ENDIF -->於是我在其下方加入
代碼: 選擇全部
<!-- IF postrow.POSTER_OCCUPATION--><dd><strong>{L_OCCUPATION}:</strong> {AUTHOR__OCCUPATION}</dd><!-- ENDIF -->
<!-- IF postrow.POSTER_INTERESTS--><dd><strong>{L_INTERESTS}:</strong> {AUTHOR__INTERESTS}</dd><!-- ENDIF -->
<!-- IF postrow.POSTER_STUDENT_ID--><dd><strong>{L_STUDENT_ID}:</strong> {AUTHOR__STUDENT_ID}</dd><!-- ENDIF -->
<!-- IF postrow.POSTER_NAME--><dd><strong>{L_NAME}:</strong> {AUTHOR__NAME}</dd><!-- ENDIF -->另外再開啟修改
/includes/ucp/ucp_pm_viewmessage.php
找到
代碼: 選擇全部
'AUTHOR_FROM' => (!empty($user_info['user_from'])) ? $user_info['user_from'] : '',代碼: 選擇全部
'AUTHOR_OCCUPATION' => (!empty($user_info['user_occ'])) ? $user_info['user_occ'] : '',
'AUTHOR_INTERESTS' => (!empty($user_info['user_interests'])) ? $user_info['user_interests'] : '',
'AUTHOR_STUDENT_ID' => (!empty($user_info['user_student_id'])) ? $user_info['user_student_id'] : '',
'AUTHOR_NAME' => (!empty($user_info['user_name'])) ? $user_info['user_name'] : '',做完以上修改並清除快取後,卻沒有如預期般在私人訊息中出現該有欄位顯示。
請問各位前輩我是哪裡做錯了?還是少改什麼檔案呢?


