內容簡介
新增一個類似於 [download file=”path_to_file”] 短代碼,將一個表單嵌入文章中,在顯示下載連結之前先詢問讀者的電子郵件地址。非常適合在您的網站上宣傳白皮書和其他數字資產。
實際網站示範:http://www.strangerstudios.com/blog/2010/07/ss-downloads-wordpress-plugin/(原文未提供中文網址)
這個外掛分成三個部分來運作。
使用短代碼在您的網頁上添加這個表單。
檢查(使用會話變數)用戶是否提供了電子郵件地址,然後顯示電子郵件捕獲表單或下載連結的邏輯。
提供一個安全的檔案下載腳本。它在傳送檔案之前檢查相同的會話變數。檔案可以位於網頁目錄外或從上傳文件夾等位置提供,網址已模糊化處理。
您可以通過從外掛 /css/ 和 /templates/ 資料夾中複製文件到您活動的主題資料夾中來更改電子郵件和下載表單的外觀。請將文件重新命名為 ssd-original_file_name.php/css(例如 ssd-download.php 或 ssd-ss-downloads.css),然後根據需要進行編輯。
外掛標籤
開發者團隊
原文外掛簡介
Adds a short code like [download file=”path_to_file”] that embeds a form in the post asking for an email address before showing a link to a file for download. Great for promoting white papers and other digital assets on your site.
Live demo: http://www.strangerstudios.com/blog/2010/07/ss-downloads-wordpress-plugin/
The plugin works in 3 parts.
The short code to add the form to your pages.
The logic to check (using session variables) if the user has provided an email address before showing either the email capture form or the download link.
A script to serve files securely. It checks for the same session variable before delivering the file. Files can be located outside the web directory or servered from the uploads folder, etc, with an obfuscated URL.
The look of the email and download forms can be changed by copying files from the /css/ and /templates/ folder of the plugin into your active theme folder. Rename the files ssd-original_file_name.php/css (e.g. ssd-download.php or ssd-ss-downloads.css) and edit as needed.
