New articles Năng lực quản lý: nhân tố thứ năm     ♥ Lựa chọn mục tiêu cuộc đời     ♥ 10 bí quyết cân bằng công việc và gia đình     ♥ Cô đơn trên mạng     ♥ Chứng khoán: Giấc mơ và ác mộng     ♥ Tám     ♥ Những tính năng của blog VnVista     ♥ Các mạng xã hội thống trị Google     ♥ Điều gì tạo nên một giám đốc công nghệ thông tin giỏi?     ♥ Cố gắng xóa bỏ những ấn tượng xấu     ♥ Cần một cách làm ăn mới     ♥ Tiếp thị hướng đến doanh nhân     ♥ Đưa cửa hàng thật lên chợ ảo     ♥ Bí quyết quản lý các nhân viên trẻ     ♥ Một số câu hỏi phỏng vấn “đặc biệt” của Microsoft     ♥ 4 bài học thành công trong kinh doanh     ♥ Tạo dựng hình ảnh một cô gái trẻ chuyên nghiệp     ♥ Góc “khác” của thế giới online đêm     ♥ Phong cách người Mỹ     ♥ Chỉ nghĩ đến tiền cũng làm người ta ích kỷ     
New blog entries Chuông cửa ControlCam: "Mắt thần"      ♥ Savor Success: Cafely's Instant Vietnamese Coffee      ♥ office interiors      ♥ Sales Operations      ♥ Top 3 màn hình LED trong nhà ưa chuộng hàng đầu      ♥ Lắp đặt màn hình LED hội trường uy tín      ♥ Đi du lịch Hàn Quốc Bao nhiêu tiền      ♥ So sánh Màn Hình LED P3 và P2.5 Trong Nhà      ♥ Tư vấn lắp đặt màn hình LED tại tỉnh Thanh Hóa      ♥ Khái niệm về bản kiểm điểm      ♥ 小牧市 お宮参り 写真      ♥ Trải nghiệm âm thanh đỉnh cao cùng HIKVISION      ♥ 探偵 大分      ♥ Tìm hiểu xét nghiệm gene hemophilia là gì? Thời gi      ♥ Thủ tục giải trình với cơ quan thuế chi tiết      ♥ ノースフェイス 通販      ♥ Stepmother Gifts - 60+ Gift Ideas for 2024      ♥ Trẻ sơ sinh thiếu G6PD có nguy hiểm không? Việc bố      ♥ Kê khai thuế GTGT trên tờ khai 01/GTGT      ♥ 探偵 大分      

[ Liệt Kê ] · Bình Thường · Tách Biệt+

Hình nền cho post


Tacaza
post Dec 23 2005, 04:01 PM
Gửi vào: #1


Group Icon

The chALLeNgER
**********
Thành viên: 1
Nhập: 3-July 05
Bài viết: 3,022
Tiền mặt: 1,210
Thanked: 1571
Cấp bậc: 43
------
Giới tính: Male
Sinh nhật: 3 Tháng 4 - 1983
Đến từ: Hà Nội
------
Xem blog
Bạn bè: 253 (Xem)
Thêm vào nhóm bạn bè
Gửi thiệp điện tử
Trang thông tin





1. Nhập đoạn SQL sau vào AdminCP hay phpMyAdmin và chạy:

SQL
alter table ibf_members add prankpost_background varchar(128) not null ;


2. Mở /sources/sql/mysql_queries.php
Tìm:

CODE

   function topics_get_posts( $a )
   {
    # topics.php
   
    return "SELECT p.*,



Thay bằng:

CODE

   function topics_get_posts( $a )
   {
    # topics.php
   
    return "SELECT p.*,m.prankpost_background,


Tìm:

CODE

   function topics_get_posts_with_join( $a )
   {
    # topics.php
   
    return "SELECT p.*,


Thay bằng:

CODE

   function topics_get_posts_with_join( $a )
   {
    # topics.php
   
    return "SELECT p.*,m.prankpost_background,



3. Mở /sources/Admin/ad_member.php

Tìm (trong function member_do_edit_form() ):

CODE

 $ibforums->html .= $ibforums->adskin->add_td_row( array( "<b>Avatar Size</b>" ,
                            $ibforums->adskin->form_input("avatar_size", $mem['avatar_size'])
                            )      );


Thêm vào sau:

CODE

 $ibforums->html .= $ibforums->adskin->add_td_row( array( "<b>Member Post Prank Background</b>" ,
           $ibforums->adskin->form_input("prankpost_background", $mem['prankpost_background'])
             )     );



Tìm trong function member_do_edit():


CODE

 $DB->do_update( 'members', array (
           'restrict_post'   => $restrict_post,
           'mgroup'       => $ibforums->input['mgroup'],
           'title'        => $ibforums->input['title'],
           'language'     => $ibforums->input['language'],
           'skin'         => $ibforums->input['skin'],
           'hide_email'   => $ibforums->input['hide_email'],
           'email_pm'     => $ibforums->input['email_pm'],
           'email'        => $ibforums->input['email'],


Thay bằng:

CODE

 $DB->do_update( 'members', array (
           'restrict_post'   => $restrict_post,
           'mgroup'       => $ibforums->input['mgroup'],
           'title'        => $ibforums->input['title'],
           'language'     => $ibforums->input['language'],
           'skin'         => $ibforums->input['skin'],
           'hide_email'   => $ibforums->input['hide_email'],
           'email_pm'     => $ibforums->input['email_pm'],
           'email'        => $ibforums->input['email'],
           'prankpost_background'        => $ibforums->input['prankpost_background'],


Mở topics.php

Tìm:

CODE

function parse_member( $member=array() )
{
 global $ibforums, $std, $DB;



Thêm dưới:

CODE

       // BEGIN PRANK-POST HACK
 if ($member['prankpost_background'])
 {
  $member['prankpost_style'] = "  style=\"background:url({$member['prankpost_background']}); \" ";
 }
 else
 {
  $member['prankpost_style'] = "";
 }
       // END PRANK-POST HACK




Vào acp --> Skin manager --> Edit Skin Templates HTML --> RenderRow

Tìm:

CODE

     </td>
     <td width='100%' valign='top' class='{$post['post_css']}'>
       <!-- THE POST {$post['pid']} -->


Thay bằng:

CODE

     </td>
     <td width='100%' valign='top' class='{$post['post_css']}'  {$author['prankpost_style']} >
       <!-- THE POST {$post['pid']} -->


Save lại

Để chỉnh background của ai, vào acp --> manage member --> edit member profile, sẽ có thêm phần prank background image gì đó


--------------------
Nhóm bạn bè:


dung_buong_tay

tamhonngoc_536

uchinhuong

MTTH

xuxusp2

Xem tất cả


--------------------

Sao không là mặt trời, gieo hạt nắng vô tư?


 
Nếu bạn thấy bài viết này vi phạm nội quy forum, hãy click nút này:
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
 
Reply to this topicStart new topicStart Poll
Trả Lời



Thank you! Reply to this topicTopic OptionsStart new topic
 

Bản Rút Gọn Bây giờ là: 29th April 2024 - 02:26 PM
Home | Mạng xã hội | Blog | Thiệp điện tử | Tìm kiếm | Thành viên | Sổ lịch