Skip to content

Promoted Videos And Channels Plugin

YouPHPTube edited this page Apr 20, 2018 · 9 revisions

PromoteVideos Plugin

For this plugin you must enable the YPTWallet plugin and within this plugin, check the enablePlugin_YPTWalletPayPal option.

The basic for this plugin is that each user will have a wallet now and the system administrator can change the wallet value of any user.

Use PayPal to add credits

There is also an option to automatic add more credit into the wallets through PayPal

To use PayPal you will need an account and acquire your ClientID and your ClientSecret

You should use the new Developer Portal to create your Apps and get sandbox and live credentials for each: https://developer.paypal.com/

  1. As before - log in to your PayPal account at: https://developer.paypal.com
  2. PayPal, like everyone else, Wants to show ads. So you may have to look around to actually get to the developer website. Just keep looking until you get to where it has "Log in" at the top.
  3. Once logged in click on the "Dashboard".
  4. Once to the Dashboard click on the "My Account" FIRST- BEFORE anything else.
  5. Once to the "My Account" part make sure you can do everything (ie: there are GREEN check marks in both columns. Or if you don't want to do some things - make sure they are NOT check marked.)
  6. To activate (or Enable) something just click on the link and follow what it says to do.
  7. Once through with that click on the "My Apps" link on the left. If you are no longer where you can do that then go back to #2 above and start over.
  8. Once on the "My Apps" page; click on the link to "Create App".
  9. This will ask you to name the app and select an account to develop the app with.
  10. Once through putting in all of that information - you are through and PayPal will give you all of the information you need.

About the plugin

By default this plugin already comes with my paypal sandbox settings, where you can use it to test the operation, since this account is not true, and any credit card number will be accepted.

  • American Express 378282246310005
  • American Express 371449635398431
  • American Express Corporate 378734493671000
  • Australian BankCard 5610591081018250
  • Diners Club 30569309025904
  • Diners Club 38520000023237
  • Discover 6011111111111117
  • Discover 6011000990139424
  • MasterCard 5555555555554444
  • MasterCard 5105105105105100
  • Visa 4111111111111111
  • Visa 4012888888881881
  • Visa 4222222222222

Note : Even though this number has a different character count than the other test numbers, it is the correct and functional number.

To enable real payments.

check a disableSandbox option and replace the values ​​of your ClientID and your ClientSecret with your account payment values

The Video and Placement promotion plugin works as follows.

Each your way can promote your videos or channels

Where to find the Form to enable as promotions

  1. In the video management section you have a star button
  2. On your channel page, you have a button written.

In any of those options will pop up a form, you may choose a start date and time (must be greater than the current date and time) and an end date (logically greater than the start date)

One field with the amount you want to invest in the period. The amount invested will be calculated by the amount of hours your video will be promoted.

On the right side of the form you can see and the times that are promoted and the value per hour of promotion.

The main page will display the videos and channels with offers for that period, an order that will be deployed in decreasing terms according to the hourly value, so the highest bidder for video promotion will show up first on the homepage under the promoted videos list. This is followed by the next highest bidder and so on to the last.

Where the site credits goes?

It can just disappear or you can set a main wallet to receive all credits from the site , just set the mainWallet_user_id option, that must be the same user_id on the database, for example, Every time some one promote a video, those credits I want to go to the admin account, the admin account on users database is the ID=1, so I will put the number 1 on the mainWallet_user_id option

Clone this wiki locally