Chợ Cao Bằng trực tuyến
Nếu bạn chưa là thành viên của chocaobang.forumotion.com, hãy đăng kí để được nhiều quyền ưu tiên hơn nhé...
Chúc bạn một ngày vui vẻ !
Chợ Cao Bằng trực tuyến
Nếu bạn chưa là thành viên của chocaobang.forumotion.com, hãy đăng kí để được nhiều quyền ưu tiên hơn nhé...
Chúc bạn một ngày vui vẻ !
Chợ Cao Bằng trực tuyến
Bạn có muốn phản ứng với tin nhắn này? Vui lòng đăng ký diễn đàn trong một vài cú nhấp chuột hoặc đăng nhập để tiếp tục.
Chợ Cao Bằng trực tuyến


 
Trang ChínhTrang Chính  Latest imagesLatest images  Tìm kiếmTìm kiếm  Đăng kýĐăng ký  Đăng Nhập  

Share | 
 

 Thêm các đoạn mã ,nút thank vào forumotion.com

Xem chủ đề cũ hơn Xem chủ đề mới hơn Go down 
Tác giảThông điệp
tuyetkha82
Thành viên mới
Thành viên mới
tuyetkha82

Tổng số bài gửi : 209
Points : 536
Reputation : 1
Join date : 01/01/2009
Age : 41

Thêm các đoạn mã ,nút thank vào forumotion.com Vide
Bài gửiTiêu đề: Thêm các đoạn mã ,nút thank vào forumotion.com   Thêm các đoạn mã ,nút thank vào forumotion.com EmptySun Dec 27, 2009 2:03 pm

If phpbb2 templates have been modified, here are the modifications that have been made for each new features. If one of the templates below hasn’t been modified, no need to make any changes : they are already made.

For the modifications : Admin panel > Display > Templates.


* Members list

o memberlist_body

+ Replace :


Code:
  <tr>
                      <th class="thCornerL" nowrap="nowrap" height="25">#</th>
                      <th class="thTop" nowrap="nowrap">{L_PM}</th>
                      <th class="thTop" nowrap="nowrap">{L_USERNAME}</th>
                      <!-- BEGIN switch_th_group -->
                      <th class="thTop" nowrap="nowrap">{L_GROUPS}</th>
                      <!-- END switch_th_group -->
                      <th class="thTop" nowrap="nowrap">{L_FROM}</th>
                      <th class="thTop" nowrap="nowrap">{L_JOINED}</th>
                      <th class="thTop" nowrap="nowrap">{L_VISITED}</th>
                      <th class="thTop" nowrap="nowrap">{L_POSTS}</th>
                      <th class="thCornerR" nowrap="nowrap">{L_WEBSITE}</th>
                      </tr>
                      <!-- BEGIN memberrow -->
                      <tr>
                      <td class="{memberrow.ROW_CLASS}" align="center"><span class="gen"> {memberrow.ROW_NUMBER} </span></td>
                      <td class="{memberrow.ROW_CLASS}" align="center"> {memberrow.PM_IMG} </td>
                      <td class="{memberrow.ROW_CLASS}" align="center"><span class="gen"><a class="gen" href="{memberrow.U_VIEWPROFILE}">{memberrow.USERNAME}</a></span></td>
                      <!-- BEGIN switch_td_group -->
                      <td class="{memberrow.ROW_CLASS}" align="center"><span class="gen">{memberrow.GROUPS}</span></td>
                      <!-- END switch_td_group -->
                      <td class="{memberrow.ROW_CLASS}" align="center" valign="middle"><span class="gen">{memberrow.FROM}</span></td>
                      <td class="{memberrow.ROW_CLASS}" align="center" valign="middle"><span class="gensmall">{memberrow.JOINED}</span></td>
                      <td class="{memberrow.ROW_CLASS}" align="center" valign="middle"><span class="gensmall">{memberrow.LASTVISIT}</span></td>
                      <td class="{memberrow.ROW_CLASS}" align="center" valign="middle"><span class="gen">{memberrow.POSTS}</span></td>
                      <td class="{memberrow.ROW_CLASS}" align="center"> {memberrow.WWW_IMG} </td>
                      </tr>
                      <!-- END memberrow -->


By :

Code:

                      <tr>
                      <th class="thCornerL" nowrap="nowrap" height="25">#</th>
                      <th class="thTop" nowrap="nowrap">{L_AVATAR}</th>
                      <th class="thTop" nowrap="nowrap">{L_USERNAME}</th>
                      <!-- BEGIN switch_th_group -->
                      <th class="thTop" nowrap="nowrap">{L_GROUPS}</th>
                      <!-- END switch_th_group -->
                      <th class="thTop" nowrap="nowrap">{L_INTERESTS}</th>
                      <th class="thTop" nowrap="nowrap">{L_JOINED}</th>
                      <th class="thTop" nowrap="nowrap">{L_VISITED}</th>
                      <th class="thTop" nowrap="nowrap">{L_POSTS}</th>
                      <th class="thTop" nowrap="nowrap">{L_PM}</th>
                      <th class="thCornerR" nowrap="nowrap">{L_WEBSITE}</th>
                      </tr>
                      <!-- BEGIN memberrow -->
                      <tr>
                      <td class="{memberrow.ROW_CLASS}" align="center"><span class="gen">&nbsp;{memberrow.ROW_NUMBER}&nbsp;</span></td>
                      <td class="{memberrow.ROW_CLASS}" align="center"><div class="avatar mini"><a href="{memberrow.U_VIEWPROFILE}">{memberrow.AVATAR_IMG}</a></div></td>
                      <td class="{memberrow.ROW_CLASS}" align="center"><span class="gen"><a class="gen" href="{memberrow.U_VIEWPROFILE}">{memberrow.USERNAME}</a></span></td>
                      <!-- BEGIN switch_td_group -->
                      <td class="{memberrow.ROW_CLASS}" align="center"><span class="gen">{memberrow.GROUPS}</span></td>
                      <!-- END switch_td_group -->
                      <td class="{memberrow.ROW_CLASS}" align="center" valign="middle"><span class="gen">{memberrow.INTERESTS}</span></td>
                      <td class="{memberrow.ROW_CLASS}" align="center" valign="middle"><span class="gensmall">{memberrow.JOINED}</span></td>
                      <td class="{memberrow.ROW_CLASS}" align="center" valign="middle"><span class="gensmall">{memberrow.LASTVISIT}</span></td>
                      <td class="{memberrow.ROW_CLASS}" align="center" valign="middle"><span class="gen">{memberrow.POSTS}</span></td>
                      <td class="{memberrow.ROW_CLASS}" align="center">&nbsp;{memberrow.PM_IMG}&nbsp;</td>
                      <td class="{memberrow.ROW_CLASS}" align="center">&nbsp;{memberrow.WWW_IMG}&nbsp;</td>
                      </tr>
                      <!-- END memberrow -->


* Multi-quote

o viewtopic_body

+ Add at beginning of the file :


Code:
  <script type="text/javascript">
                      //<![CDATA[
                      var multiquote_img_off = '{JS_MULTIQUOTE_IMG_OFF}';
                      var multiquote_img_on = '{JS_MULTIQUOTE_IMG_ON}';
                      //]]>
                      </script>


+ At beginning of the line containing :


Code:
 {postrow.displayed.QUOTE_IMG} {postrow.displayed.EDIT_IMG} {postrow.displayed.DELETE_IMG} {postrow.displayed.IP_IMG} {postrow.displayed.REPORT_IMG}

Add :

Code:

                      {postrow.displayed.MULTIQUOTE_IMG}



* Thanks

o viewtopic_body

+ At beginning of the line containing:

Code:

                      {postrow.displayed.QUOTE_IMG} {postrow.displayed.EDIT_IMG} {postrow.displayed.DELETE_IMG} {postrow.displayed.IP_IMG} {postrow.displayed.REPORT_IMG}

Add :

Code:

                      {postrow.displayed.THANK_IMG}



* Vote

o viewtopic_body

+ Replace :

Code:

                      <tr>
                      <td colspan="2"><span class="postbody"><!-- google_ad_section_start -->{postrow.displayed.MESSAGE}<!-- google_ad_section_end -->{postrow.displayed.SIGNATURE}</span><span class="gensmall">{postrow.displayed.EDITED_MESSAGE}</span></td>
                      </tr>

By :

Code:

                      <tr>
                      <td colspan="2">
                        <!-- BEGIN switch_vote_active -->
                        <div class="vote gensmall">
                        <!-- BEGIN switch_vote -->
                        <div class="vote-button"><a href="{postrow.displayed.switch_vote_active.switch_vote.U_VOTE_PLUS}">+</a></div>
                        <!-- END switch_vote -->
                     
                        <!-- BEGIN switch_bar -->
                        <div class="vote-bar" title="{postrow.displayed.switch_vote_active.L_VOTE_TITLE}">
                          <!-- BEGIN switch_vote_plus -->
                          <div class="vote-bar-plus" style="height:{postrow.displayed.switch_vote_active.switch_bar.switch_vote_plus.HEIGHT_PLUS}px;"></div>
                          <!-- END switch_vote_plus -->
                     
                          <!-- BEGIN switch_vote_minus -->
                          <div class="vote-bar-minus" style="height:{postrow.displayed.switch_vote_active.switch_bar.switch_vote_minus.HEIGHT_MINUS}px;"></div>
                          <!-- END switch_vote_minus -->
                        </div>
                        <!-- END switch_bar -->
                     
                        <!-- BEGIN switch_no_bar -->
                        <div title="{postrow.displayed.switch_vote_active.L_VOTE_TITLE}" class="vote-no-bar">----</div>
                        <!-- END switch_no_bar -->
                     
                        <!-- BEGIN switch_vote -->
                        <div class="vote-button"><a href="{postrow.displayed.switch_vote_active.switch_vote.U_VOTE_MINUS}">-</a></div>
                        <!-- END switch_vote -->
                        </div>
                        <!-- END switch_vote_active -->
                     
                        <span class="postbody">
                        <!-- google_ad_section_start -->
                        {postrow.displayed.MESSAGE}
                        <!-- google_ad_section_end -->
                        {postrow.displayed.SIGNATURE}
                        </span>
                        <span class="gensmall">{postrow.displayed.EDITED_MESSAGE}</span>
                      </td>
                      </tr>


* Profile fields

o viewtopic_body

+ Replace :

Code:

                      <td class="{postrow.displayed.ROW_CLASS}" valign="top" width="150">
                      <span class="name"><a name="{postrow.displayed.U_POST_ID}"></a><strong>{postrow.displayed.POSTER_NAME}</strong></span><br />
                      <span class="postdetails poster-profile">
                        {postrow.displayed.POSTER_RANK}<br />
                        {postrow.displayed.RANK_IMAGE}{postrow.displayed.POSTER_AVATAR}<br /><br />
                        {postrow.displayed.POSTER_GENDER}
                        {postrow.displayed.ZODIAC_IMG}
                        {postrow.displayed.CHINESE_IMG}<br />
                        {postrow.displayed.POSTER_AGE_INT} {postrow.displayed.POSTER_AGE}
                        {postrow.displayed.POSTER_JOINED_INT} {postrow.displayed.POSTER_JOINED}
                        {postrow.displayed.POSTER_POSTS_INT} {postrow.displayed.POSTER_POSTS}
                        {postrow.displayed.POSTER_FROM_INT} {postrow.displayed.POSTER_FROM}
                        {postrow.displayed.POSTER_HOBBIES_INT} {postrow.displayed.POSTER_HOBBIES}
                        {postrow.displayed.POSTER_HUMOR_INT} {postrow.displayed.POSTER_HUMOR}
                        {postrow.displayed.POSTER_PERSONALIZED_PROFILE} {postrow.displayed.POSTER_RPG}
                      </span><br />
                      <img src="http://2img.net/i/fa/vide.gif" alt="" style="width: 150px; height: 1px;" />
                      </td>

By :

Code:

                      <td class="{postrow.displayed.ROW_CLASS}" valign="top" width="150" style="background-color:#{postrow.displayed.THANK_BGCOLOR};">
                      <span class="name"><a name="{postrow.displayed.U_POST_ID}"></a><strong>{postrow.displayed.POSTER_NAME}</strong></span><br />
                        <span class="postdetails poster-profile">
                        {postrow.displayed.POSTER_RANK}<br />
                        {postrow.displayed.RANK_IMAGE}{postrow.displayed.POSTER_AVATAR}<br /><br />
                        <!-- BEGIN profile_field -->
                        {postrow.displayed.profile_field.LABEL}{postrow.displayed.profile_field.CONTENT}{postrow.displayed.profile_field.SEPARATOR}
                        <!-- END profile_field -->
                        {postrow.displayed.POSTER_RPG}
                      </span><br />
                      <img src="http://2img.net/i/fa/vide.gif" alt="" style="width: 150px; height: 1px;" />
                      </td>


o profile_view_body

+ Replace :

Code:

                      <tr>
                        <td align="right" valign="middle" nowrap="nowrap"><span class="gen">{L_LOCATION}: </span></td>
                        <td><b><span class="gen">{LOCATION}</span></b></td>
                      </tr>
                      <tr>
                        <td align="right" valign="middle" nowrap="nowrap"><span class="gen">{L_WEBSITE}: </span></td>
                        <td><span class="gen"><b>{WWW}</b></span></td>
                      </tr>
                      <tr>
                        <td align="right" valign="middle" nowrap="nowrap"><span class="gen">{L_OCCUPATION}: </span></td>
                        <td><b><span class="gen">{OCCUPATION}</span></b></td>
                      </tr>
                      <tr>
                        <td align="right" valign="top" nowrap="nowrap"><span class="gen">{L_INTERESTS}: </span></td>
                        <td><b><span class="gen">{INTERESTS}</span></b></td>
                      </tr>
                      <tr>
                        <td valign="top" align="right" nowrap="nowrap"><span class="gen">{L_GENDER}: </span></td>
                        <td> <b><span class="gen">{GENDER}</span></b></td>
                      </tr>
                      <tr>
                        <td valign="top" align="right" nowrap="nowrap"><span class="gen">{L_BIRTHDAY}: </span></td>
                        <td><b><span class="gen">{BIRTHDAY} {ZODIAC_IMG}{CHINESE_IMG}</span></b></td>
                      </tr>
                      <!-- BEGIN switch_profile_fields -->
                        <tr>
                        <td colspan="2" class="catLeft" align="center"><b><span class="gen">
                          <form action="profile.forum?mode=viewprofile&u={USER_ID}" method="post">
                          <input type="hidden" name="userid" value="{USER_ID}" />
                          {L_PROFILE_FIELDS}</span></b>
                        </td>
                        </tr>
                        <!-- BEGIN field -->
                        <tr>
                        <td class="gensmall row1" align="right"><span>{switch_profile_fields.field.NAME}:</span></td>
                        <td class="gensmall row2" valign="middle"><span>{switch_profile_fields.field.OBJECT}</span><br /></td>
                        </tr>
                        <!-- END field -->
                        <!-- BEGIN show_submit -->
                        <tr>
                        <td class="gensmall row1" align="right"></td>
                        <td class="gensmall row2" valign="middle"><input type="submit" value="{L_MODIFY}" name="modify_profilefields" class="liteoption" /><br /></td>
                        </tr>
                        <!-- END show_submit -->
                        </form>
                      <!-- END switch_profile_fields -->

By :

Code:

                      <!-- BEGIN profile_field -->
                      <tr>
                      <td width="40%" align="right" valign="middle" nowrap="nowrap"><span class="gen">{profile_field.LABEL}&nbsp;</span></td>
                      <td width="60%" width="100%"><b><span class="gen">{profile_field.CONTENT}</span></b></td>
                      </tr>
                      <!-- END profile_field -->

+ Replace :

Code:

                      <tr>
                      <td class="row1" valign="top" height="{S_CONTACT_HEIGHT}">
                      <table width="100%" border="0" cellspacing="1" cellpadding="0">
                      {L_EMAIL_ADDRESS}
                      {EMAIL_IMG}
                      <tr>
                        <td align="right" valign="middle" nowrap="nowrap"><span class="gen">{L_PM}:</span></td>
                        <td class="row1" valign="middle"><b><span class="gen">{PM_IMG}</span></b></td>
                      </tr>
                      {L_MESSENGER}
                      {MSN_IMG}
                      {L_YAHOO}
                      {YIM_IMG}
                      {L_AIM}
                      {AIM_IMG}
                      {L_ICQ_NUMBER}
                     
                        <td class="row1">
                      <script type="text/javascript">
                      <!--
                      if ( navigator.userAgent.toLowerCase().indexOf('mozilla') != -1 && navigator.userAgent.indexOf('5.') == -1 && navigator.userAgent.indexOf('6.') == -1 ) {
                      document.write(' {ICQ_IMG}');
                      } else {
                      document.write('<table cellspacing="0" cellpadding="0" border="0"><tr><td nowrap="nowrap"><div style="position:relative;height:18px"><div style="position:absolute">{ICQ_IMG}</div><div style="position:absolute;left:3px;top:-1px">{ICQ_STATUS_IMG}</div></div></td></tr></table>');
                      }
                      //-->
                      </script>
                      <noscript>
                      {ICQ_IMG}
                      </noscript>
                      {L_SKYPE}
                      {SKYPE_IMG}
                        </td>
                      </tr>
                     
                      <!-- BEGIN switch_admin_user_comment_active -->
                      <tr>
                        <td align="right" valign="middle" nowrap="nowrap" width="10%">
                        <span class="gen">{L_COMMENTS} :</span><br /><span class="gensmall">{L_MODS_AND_ADMINS}</span>
                        </td>
                        <td class="row1" valign="middle" width="90%">
                        <table align="center">
                          <tr>
                          <td>
                          <form action="{S_PROFILE_ACTION}" method="post" name="user_comment">
                            <input type="hidden" value="update_admin_user_comment" name="mode" />
                            <input type="hidden" value="{USER_ID}" name="userid" />
                            <textarea class="post" name="admin_user_comment_text" rows="8" cols="30">{ADMIN_USER_COMMENT}</textarea>
                            <br />
                            <input type="submit" class="mainoption" name="user_comment_maj" value="{L_UPDATE}" />
                          </form>
                          </td>
                          </tr>
                        </table>
                     
                        </td>
                      </tr>
                     
                      <!-- END switch_admin_user_comment_active -->
                        </table>
                        </td>
                      </tr>

By :

Code:

                      <tr>
                        <td class="row1" valign="top" height="{S_CONTACT_HEIGHT}">
                        <table width="100%" border="0" cellspacing="1" cellpadding="0">
                          <!-- BEGIN contact_field -->
                          <tr>
                          <td width="40%" align="right" valign="middle" nowrap="nowrap"><span class="gen">{contact_field.LABEL}</span></td>
                          <td width="60%" valign="middle"><b><span class="gen">{contact_field.CONTENT}</span></b></td>
                          </tr>
                          <!-- END contact_field -->
                          <!-- BEGIN switch_admin_user_comment_active -->
                          <tr>
                          <td align="right" valign="middle" nowrap="nowrap" width="50%">
                            <span class="gen">{L_COMMENTS} :</span><br /><span class="gensmall">{L_MODS_AND_ADMINS}</span>
                          </td>
                          <td class="row1" valign="middle">
                            <table align="center">
                            <tr>
                              <td>
                              {ADMIN_USER_COMMENT}
                              </td>
                            </tr>
                            </table>
                          </td>
                          </tr>
                          <!-- END switch_admin_user_comment_active -->
                        </table>
                        </td>
                      </tr>

Về Đầu Trang Go down
https://bannga.forumvi.net
guest
Khách viếng thăm
avatar


Thêm các đoạn mã ,nút thank vào forumotion.com Vide
Bài gửiTiêu đề: 43   Thêm các đoạn mã ,nút thank vào forumotion.com EmptySun Jan 31, 2010 6:30 pm

Báo cáo bác admin, em làm tương tự trong phần thêm nút thank nhưng lực bất tòng tâm.
Về Đầu Trang Go down
tuyetkha82
Thành viên mới
Thành viên mới
tuyetkha82

Tổng số bài gửi : 209
Points : 536
Reputation : 1
Join date : 01/01/2009
Age : 41

Thêm các đoạn mã ,nút thank vào forumotion.com Vide
Bài gửiTiêu đề: Re: Thêm các đoạn mã ,nút thank vào forumotion.com   Thêm các đoạn mã ,nút thank vào forumotion.com EmptyTue Feb 02, 2010 9:35 pm

guest đã viết:
Báo cáo bác admin, em làm tương tự trong phần thêm nút thank nhưng lực bất tòng tâm.
HÌnh như chỉ thank được chủ topic thôi, nhưng mà cái hình nút thank bé tí tẹo , chức năng này cũng không hay cho lắm...
Về Đầu Trang Go down
https://bannga.forumvi.net
Sponsored content




Thêm các đoạn mã ,nút thank vào forumotion.com Vide
Bài gửiTiêu đề: Re: Thêm các đoạn mã ,nút thank vào forumotion.com   Thêm các đoạn mã ,nút thank vào forumotion.com Empty

Về Đầu Trang Go down
 

Thêm các đoạn mã ,nút thank vào forumotion.com

Xem chủ đề cũ hơn Xem chủ đề mới hơn Về Đầu Trang 
Trang 1 trong tổng số 1 trang

Permissions in this forum:Bạn không có quyền trả lời bài viết
Chợ Cao Bằng trực tuyến :: Chợ mua bán Cao Bằng :: THÔNG BÁO - TIN TỨC :: Hướng dẫn sử dụng Forum-