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 2015-01-09 18:55:21

dereklro
Member
Registered: 2014-08-08
Posts: 37

Possible to inject the uploader's name into the title of the video?

If a user uploads a video under their account, or I as the admin assign new videos to a particular user name, I would like the user name to show up as part of the title (example: JesseJo's HOT Tanning Session - user-name). Is this possible?


logo.png

Offline

#2 2015-01-10 07:50:52

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

Re: Possible to inject the uploader's name into the title of the video?

Its possible, if you modify the code, but not by default.


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

Offline

#3 2015-01-10 08:19:35

dereklro
Member
Registered: 2014-08-08
Posts: 37

Re: Possible to inject the uploader's name into the title of the video?

What code do I modify if you don't mind me asking?


logo.png

Offline

#4 2015-01-10 17:29:33

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

Re: Possible to inject the uploader's name into the title of the video?

Edit modules/video/components/upload.php and change:

'title'         => $title,

with:

'title'         => $title.' - '.$_SESSION['username'],

Please also disable anonymous uploading from Admin -> Video -> Config -> Upload


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

Offline

#5 2015-01-11 00:51:31

dereklro
Member
Registered: 2014-08-08
Posts: 37

Re: Possible to inject the uploader's name into the title of the video?

Very nice! Thank you.


logo.png

Offline

Board footer

Powered by FluxBB