Open: includes/ucp/ucp_profile.php
คำค้นหา
เพิ่มหลังคำค้นหา
โค้ด: เลือกทั้งหมด
// BEGIN xfire mod
$user->add_lang('mods/xfire');
// END xfire mod
คำค้นหา
โค้ด: เลือกทั้งหมด
'msn' => request_var('msn', $user->data['user_msnm']),
เพิ่มหลังคำค้นหา
โค้ด: เลือกทั้งหมด
// BEGIN xfire mod
'xfire' => request_var('xfire', (!empty($user->data['user_xfire'])) ? $user->data['user_xfire'] : ''),
'xfire_style' => request_var('xfire_style', (!empty($user->data['user_xfire_style'])) ? $user->data['user_xfire_style'] : ''),
// END xfire mod
คำค้นหา
เพิ่มหลังคำค้นหา
โค้ด: เลือกทั้งหมด
// BEGIN xfire mod
'xfire' => array('string', true, 4, 25),
// END xfire mod
คำค้นหา
เพิ่มหลังคำค้นหา
โค้ด: เลือกทั้งหมด
// BEGIN xfire mod
'user_xfire' => $data['xfire'],
'user_xfire_style' => $data['xfire_style'],
// END xfire mod
คำค้นหา
เพิ่มหลังคำค้นหา
โค้ด: เลือกทั้งหมด
// BEGIN xfire mod
'XFIRE' => $data['xfire'],
'XFIRE_STYLE' => $data['xfire_style'],
'XFIRE_EXPLAIN' => sprintf($user->lang['XFIRE_EXPLAIN'], '<a href="' . append_sid("{$phpbb_root_path}faq.$phpEx") . '">', '</a>'),
// END xfire mod
Open: language/en/help_faq.php
คำค้นหา
โค้ด: เลือกทั้งหมด
1 => 'To find your list of attachments that you have uploaded, go to your User Control Panel and follow the links to the attachments section.'
),
เพิ่มหลังคำค้นหา
โค้ด: เลือกทั้งหมด
array(
0 => '--',
1 => 'XFire'
),
array(
0 => 'What is XFire?',
1 => '<a href="http://www.xfire.com">XFire</a> is a free gaming tool that automatically keeps track of when and where gamers are playing PC games online and lets their friends join them easily. It doesn’t matter which online game your friends are playing, which server browser they are using, or which gaming service they’re playing on. Xfire is intelligent enough to recognize where your friends are at any time.',
),
array(
0 => 'How can I add users to my XFire account?',
1 => 'You can add users to your XFire account by simply clicking on the links found when viewing a registered users profile.'
),
Open: styles/prosilver/imageset/imageset.cfg
คำค้นหา
โค้ด: เลือกทั้งหมด
img_icon_contact_msnm = icon_contact_msnm.gif*20*20
เพิ่มหลังคำค้นหา
โค้ด: เลือกทั้งหมด
img_icon_contact_xfire = icon_contact_xfire.gif*20*20
Open: styles/prosilver/template/memberlist_view.html
คำค้นหา
เพิ่มก่อนคำค้นหา
โค้ด: เลือกทั้งหมด
<!-- IF XFIRE -->
<div class="panel bg1">
<div class="inner"><span class="corners-top"><span></span></span>
<h3>{L_XFIRE}</h3>
<div class="postbody">
<div class="xfire" style="border-top:none; margin-top: 0;"><a href="http://profile.xfire.com/{XFIRE}"><img src="http://miniprofile.xfire.com/bg/{XFIRE_STYLE}/type/0/{XFIRE}.png" width="440" height="111" alt="" /></a><br /><div style="font-size: 1em;"><a href="xfire:add_friend?user={XFIRE}">{L_ADD_XFIRE_USER}</a> | <a href="http://www.xfire.com/download/">{L_DOWNLOAD_XFIRE}</a></div></div>
</div>
<span class="corners-bottom"><span></span></span></div>
</div>
<!-- ENDIF -->
Open: styles/prosilver/template/ucp_profile_profile_info.html
คำค้นหา
โค้ด: เลือกทั้งหมด
<dl>
<dt><label for="msn">{L_UCP_MSNM}:</label></dt>
<dd><input type="text" name="msn" id="msn" maxlength="255" value="{MSN}" class="inputbox" /></dd>
</dl>
เพิ่มหลังคำค้นหา
โค้ด: เลือกทั้งหมด
dl>
<dt><label for="xfire">{L_XFIRE}:</label><br /><span>{XFIRE_EXPLAIN}</span></dt>
<dd><input type="text" name="xfire" id="xfire" maxlength="25" value="{XFIRE}" class="inputbox" /></dd>
</dl>
<dl>
<dt><label>{L_XFIRE_STYLE}:</label><br /><span>{L_XFIRE_STYLE_EXPLAIN}</span></dt>
<dd>
<label for="xfire_style1"><input type="radio" name="xfire_style" id="xfire_style1" value="1" style="margin: 2px;"<!-- IF XFIRE_STYLE eq 1 --> checked="checked"<!-- ENDIF --> /> {L_XFIRE_SHADOW}</label>
<label for="xfire_style2"><input type="radio" name="xfire_style" id="xfire_style2" value="2" style="margin: 2px;"<!-- IF XFIRE_STYLE eq 2 --> checked="checked"<!-- ENDIF --> /> {L_XFIRE_COMBAT}</label>
<label for="xfire_style3"><input type="radio" name="xfire_style" id="xfire_style3" value="3" style="margin: 2px;"<!-- IF XFIRE_STYLE eq 3 --> checked="checked"<!-- ENDIF --> /> {L_XFIRE_SCIFI}</label>
<label for="xfire_style4"><input type="radio" name="xfire_style" id="xfire_style4" value="4" style="margin: 2px;"<!-- IF XFIRE_STYLE eq 4 --> checked="checked"<!-- ENDIF --> /> {L_XFIRE_FANTASY}</label>
<label for="xfire_style5"><input type="radio" name="xfire_style" id="xfire_style5" value="5" style="margin: 2px;"<!-- IF XFIRE_STYLE eq 5 --> checked="checked"<!-- ENDIF --> /> {L_XFIRE_WOW}</label>
<label for="xfire_style6"><input type="radio" name="xfire_style" id="xfire_style6" value="6" style="margin: 2px;"<!-- IF XFIRE_STYLE eq 6 --> checked="checked"<!-- ENDIF --> /> {L_XFIRE_DEFAULT}</label>
</dd>
</dl>
Open: styles/prosilver/template/viewtopic_body.html
คำค้นหา
คำค้นหาในบรรทัด
เพิ่มหลังคำค้นหาในบรรทัด
คำค้นค้นหา
โค้ด: เลือกทั้งหมด
<!-- IF postrow.U_MSN --><li class="msnm-icon"><a href="{postrow.U_MSN}" onclick="popup(this.href, 550, 320); return false;" title="{L_MSNM}"><span>{L_MSNM}</span></a></li><!-- ENDIF -->
เพิ่มหลังคำค้นหา
โค้ด: เลือกทั้งหมด
<!-- IF postrow.U_XFIRE --><li class="xfire-icon"><a href="http://profile.xfire.com/{postrow.U_XFIRE}" title="{L_XFIRE}"><span>{L_XFIRE}</span></a></li><!-- ENDIF -->
Open: styles/prosilver/theme/buttons.css
คำค้นหา
โค้ด: เลือกทั้งหมด
.msnm-icon, .msnm-icon a { background: none top left no-repeat; }
เพิ่มหลังคำค้นหา
โค้ด: เลือกทั้งหมด
.xfire-icon, .xfire-icon a { background: none top left no-repeat; }
คำค้นหา
โค้ด: เลือกทั้งหมด
ul.profile-icons li.msnm-icon { width: {IMG_ICON_CONTACT_MSNM_WIDTH}px; height: {IMG_ICON_CONTACT_MSNM_HEIGHT}px; }
เพิ่มหลังคำค้นหา
โค้ด: เลือกทั้งหมด
ul.profile-icons li.xfire-icon { width: {IMG_ICON_CONTACT_XFIRE_WIDTH}px; height: {IMG_ICON_CONTACT_XFIRE_HEIGHT}px; }
Open: styles/prosilver/theme/colours.css
คำค้นหา
เพิ่มก่อนคำค้นหา
โค้ด: เลือกทั้งหมด
.xfire a, .xfire a:visited, .xfire a:hover, .xfire a:active {
background-color: transparent;
}
คำค้าหา
โค้ด: เลือกทั้งหมด
.msnm-icon, .msnm-icon a { background-image: url("{IMG_ICON_CONTACT_MSNM_SRC}"); }
เพิ่มหลังคำค้นหา
โค้ด: เลือกทั้งหมด
.xfire-icon, .xfire-icon a { background-image: url("{IMG_ICON_CONTACT_XFIRE_SRC}"); }
เรียบร้อยแล้วไปที่เรียก url เข้าไปที่
domail.com/xfire_install.php
ลบ cahce โดยการ refresh templates เข้าไปที่
ACP:
ACP ==> Styles ==>Template==>Refresh your templates.