Results 1 to 8 of 8

Thread: files only available to members

  1. #1
    Join Date
    Mar 2008
    Posts
    6

    Default files only available to members

    hi - I want to have a system whereby only paid members can download stuff but guests and other members can view all the posts but not download the files.

    Instead of having a download link they get a message to "upgrade"

    I have seen it in operation and I thought it was vbadvanced. Any ideas ?

    Here's what I want to do:

    http://www.forumshelp.com/forums/f117/blue-steel-893/

    and they are running vbadvanced...

  2. #2
    Join Date
    Jan 2004
    Location
    Georgia, USA
    Posts
    34,466

    Default Re: files only available to members

    That looks more like the hack vbulletin.org is using for their mods section. You could do about the same thing though by setting your permissions to not allow guests to download attachments. Then if you want to show a message instead of the thumbnails/links on the "Show Entry" page, you could add a new plugin to the 'vba_dyna_showentry_attachmentloop' hook location with the following code:
    PHP Code:
    $show['attachlink'] = $vba_dyna->check_cat_perms('canviewattach'$attach); 
    Then you can edit your 'adv_dyna_showentry_attachments' template and use some code that looks something like this to display your message:
    Code:
    <if condition="$show['attachlink']">
    Default template code here
    <else />
    Your message for guests here
    </if>

  3. #3
    Join Date
    Mar 2008
    Posts
    6

    Default Re: files only available to members

    That's it - I want it to be like the vbulletin.org mods section....

    May I ask how I "add a new plugin" ? - I can do the rest of the php work

    Thanks for your time.

  4. #4
    Join Date
    Jan 2004
    Location
    Georgia, USA
    Posts
    34,466

    Default Re: files only available to members

    Admin CP => Plugins & Products => Add New Plugin

  5. #5
    Join Date
    Mar 2008
    Posts
    6

    Default Re: files only available to members

    yes, I found that... but what do I put in there ?

  6. #6
    Join Date
    Jul 2004
    Location
    Copenhagen
    Posts
    741

    Default Re: files only available to members

    Quote Originally Posted by leeds1 View Post
    yes, I found that... but what do I put in there ?
    Se php code i post 2

  7. #7
    Join Date
    Mar 2008
    Posts
    6

    Default Re: files only available to members

    thank you - that worked perfectly

  8. #8
    Join Date
    Aug 2005
    Location
    Durham, UK
    Posts
    177

    Default

    Thank you for this
    Sim Fans UK - Sims downloads and discussion

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. VBa files
    By Pirat3 in forum Pre-Installation Questions
    Replies: 4
    Last Post: 02-21-2008, 08:19 PM
  2. Module files
    By chet in forum "How Do I..." Questions
    Replies: 3
    Last Post: 12-27-2005, 12:20 PM
  3. Files
    By jwhysleep in forum "How Do I..." Questions
    Replies: 7
    Last Post: 08-05-2005, 08:48 PM
  4. Adding .php files
    By Pooh in forum "How Do I..." Questions
    Replies: 2
    Last Post: 07-31-2005, 02:31 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •