Adult Script Pro Community Forums

The forum is here for legacy reasons. No new posts will be created. User registration is disabled! If you have any questions, please email us or check https://www.adultscriptpro.com for more details!

You are not logged in.

#1 2011-10-27 17:08:58

Pornogoddess
Member
From: NY
Registered: 2011-01-12
Posts: 183
Website

Registered users only able to download?

Is there a way to make it so that only registered users can download videos?

Offline

#2 2011-10-27 18:59:04

Coscast
Member
From: Germany
Registered: 2010-10-03
Posts: 546

Re: Registered users only able to download?

Not without changing the code/permission system. So maybe Adrian will comment this.


sgt-halfsize-banner.jpg

Offline

#3 2011-10-27 19:17:37

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: Registered users only able to download?

It is very easy to change and i could add this in the next version. Want me to send you the code to change video_view.tpl.php right now? (i think i changed it for a few people before, seems like its a popular request).


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#4 2011-10-27 19:20:15

Coscast
Member
From: Germany
Registered: 2010-10-03
Posts: 546

Re: Registered users only able to download?

Is this a IF usergroup = blabla {gogogogo show downloadlink} in video view ?


sgt-halfsize-banner.jpg

Offline

#5 2011-10-27 20:50:31

Pornogoddess
Member
From: NY
Registered: 2011-01-12
Posts: 183
Website

Re: Registered users only able to download?

Would love if you could send me the code. :-) Or - post it here for others to take from as well.

Offline

#6 2011-10-27 22:14:35

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: Registered users only able to download?

Edit templates/your-template/video_view.tpl.php and find this line:

<?php if ($this->video['embed_code'] == '' && ($this->vcfg['download'] === 1 && $this->video['allow_download'] == '1')): ?>

replace with:

<?php if ($this->video['embed_code'] == '' && VAuth::loggedin() && ($this->vcfg['download'] === 1 && $this->video['allow_download'] == '1')): ?>

Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

Board footer

Powered by FluxBB