Advertisement
pusatdata

WP-Plugin: WP Secure Link

Mar 4th, 2016
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.79 KB | None | 0 0
  1. WP Secure Links Documentation
  2.  
  3. WP Secure Links helps you place secure links to downloadable files on WordPress Pages and Posts. After You install the plugin you can use the slink short tags to create secure links to your downloadable files.
  4.  
  5. Creating A Secure Link
  6.  
  7. 1. Create A Page or Edit an existing WordPress Page to add the Secure Download Links.
  8.  
  9. 2. Use the “Slink" Short tag in WordPress Editor to create a secure link.
  10.  
  11. [slink url=""]My Download File[/slink]
  12. where
  13.  
  14. url – is Actual, Absolute Downloadable File URL.
  15.  
  16. Optional Parameters Are
  17.  
  18. class – css class
  19.  
  20. id – css id
  21.  
  22. name – Fake Name of File
  23.  
  24. title – Title Tag
  25.  
  26. onclick – any custom javascript function you want add to secure link onclick event
  27.  
  28. users – Single username whom you want to allow access to the file or multiple comma seperated usernames
  29.  
  30. roles – Single user role whom you want to allow access to the file or multiple comma seperated user roles
  31.  
  32. message = Message you want to show in place of secure link for users who do not have access to the secure download link.
  33.  
  34. Example With All Paramters (Allowing Access to 2 usernames in this case):
  35.  
  36. [slink url="http://wpsecurelinks.sixthlife.net/sec_files/sampledoc.doc" name="My Secret Download File" id="afile" class="linktext" title="A Sample Download" onclick="myjavascriptfn(this);" users="firstuser,seconduser" message="Access to Selected Users"] My Download File [/slink]
  37.  
  38. Example With All Paramters (Allowing Access to 2 user roles in this case):
  39.  
  40. [slink url="http://wpsecurelinks.sixthlife.net/sec_files/sampledoc.doc" name="My Secret Download File" id="afile" class="linktext" title="A Sample Download" onclick="myjavascriptfn(this);" roles="firstrole,secondrole" message="Access to Subscribers and Contributors only"] My Download File [/slink]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement