Bạn ghé thăm diễn đàn lần đầu? hãy đăng ký ngay bây giờ để tham gia.
  • Đăng nhập:

Chào mừng bạn đến với ITVNN FORUM - Diễn đàn công nghệ thông tin.

Nếu đây là lần đầu tiên bạn tham gia diễn đàn, xin mời bạn xem phần Hỏi/Ðáp để biết cách dùng diễn đàn. Để có thể tham gia thảo luận bạn phải đăng ký làm thành viên, click vào đây để đăng ký.


  • Partner Area
    • ITVNN HOSTING - Thiết kế website, Cung cấp Domain, Hosting, VPS Việt Nam Anh Hùng - Thông tin truyền thông
kết quả từ 1 tới 1 trên 1
Tăng kích thước phông chữ Giảm kích thước phông chữ
  1. #1
    PhucSD's Avatar

    Trạng thái
    Offline
    Họ tên
    Nguyễn Hữu Phúc
    Tham gia ngày
    Jan 2011
    Thành viên thứ
    37119
    Đến từ
    Quy Nhơn, Bình Định
    Tuổi
    28
    Giới tính
    Bài gởi
    701
    Level: 43 [?]
    Experience: 3,407,044
    Next Level: 3,609,430
    Cảm ơn 73
    Cảm ơn 316 lần / 199 Bài viết

    Default Paypal Donation Sidebar Block  

    I don't take any credit for this I just modified a cms widget
    to work as a sidebar block for us who don't have the suite
    tested on vB 4.13

    Original Widget, I removed the login part

    Code: 
    http://www.vbteam.info/vb-4-0-x-addons-and-template-modifications/36672-widget-welcome-user-paypal-donations.html
    Instructions:

    Upload upload folder to forum root then go into Forum & Moderators/
    Forum Block Manager and create new custom Block

    1. Title: Welcome

    2. Description:
    Block for Welcome User and PayPal Donations.
    3. Content Type: HTML

    Add Code:

    Code: 
    <div class="cms_widget">
    	<div class="block">
    		<div class="cms_widget_header">
    		
    		</div>
    		<div class="cms_widget_content" align="center">
    		<vb:if condition="$show['member']">
    			<ul class="isuser">
    <div align="center">If you like our website and want to give something back, you can make a donation. All donations are Welcome.
    <br /><br />
    <form action="https://www.paypal.com/cgi-bin/webscr" target="_blank" method="post">
      <div>
     <input type="hidden" name="cmd" value="_xclick" />
     <input type="hidden" name="business" value="XXXXX@PaypalEmail.com" />
      <input type="hidden" name="item_name" value="Donations to www.YourSiteHere.com!!!"/>
      <input type="hidden" name="no_note" value="1" />
      <input type="hidden" name="currency_code" value="USD" />
      <input type="hidden" name="tax" value="0" />$ 
      <select name="amount">
        <option value="5.00">5.00</option>
        <option value="10.00">10.00</option>
        <option value="15.00">15.00</option>
        <option value="20.00">20.00</option>
        <option value="25.00">25.00</option>
      </select>
      </div>
    <br />
    Select a preferred amount of the donation, and then click the donate button.
    <br /><br />
    <fieldset>
    <input type="image" src="http://www.vbteam.info/images/cms/widget-paypal-donation.png" title="Pay via PayPal" alt="Pay via PayPal" />
    </fieldset>
       </form>
    </div>
    Change:
    Code: 
    <input type="hidden" name="business" value="XXXXX@PaypalEmail.com" />
    To Your email.

    Change:

    Code: 
    <input type="hidden" name="item_name" value="Donations to www.YourSiteHere.com!!!"/>
      <input type="hidden" name="no_note" value="1" />
    Take out the reference addy to here:

    Code: 
    <input type="image" src="http://www.vbteam.info/images/cms/widget-paypal-donation.png" title="Pay via PayPal" alt="Pay via PayPal" />
    v.v...

    screen of Block:


    File Kèm Theo File Kèm Theo


 

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Vbb 4.1.5 loi khi code sidebar and block
    By dragon80 in forum Hỏi đáp & Thảo luận
    Trả lời: 0
    Bài mới gởi: 03-12-2011, 01:59 PM
  2. Hỏi về Forum Sidebar and Block Options
    By chi pheo return in forum Hỏi đáp & Thảo luận
    Trả lời: 0
    Bài mới gởi: 27-11-2011, 10:50 AM
  3. Lỗi Forum sidebar and block options
    By shinichi7211 in forum Hỏi đáp & Thảo luận
    Trả lời: 5
    Bài mới gởi: 19-05-2011, 03:16 PM
  4. Add custom sidebar block
    By s0ct0j0c in forum Add-ons and Modifications
    Trả lời: 0
    Bài mới gởi: 21-04-2011, 07:45 PM
  5. Add an RSS feed block to the sidebar
    By s0ct0j0c in forum Add-ons and Modifications
    Trả lời: 0
    Bài mới gởi: 21-04-2011, 07:31 AM

Tags for this Thread

Bookmarks

Quuyền Hạn Của Bạn

  • Bạn không thể tạo chủ đề mới
  • Bạn không thể trả lời bài viết
  • Bạn không thể gửi file đính kèm
  • Bạn không thể chỉnh sửa bài viết
  •