Difference between revisions of "Revenue Sharing Groups"

From TITAN Wiki
Jump to: navigation, search
(Created page with "There are four Revenue Sharing group policies in Titan: * Classic * Automatic Groups * Custom Groups * Automatic + Custom Groups ==Classic== There are no gro...")
 
m
Line 4: Line 4:
 
* Custom Groups
 
* Custom Groups
 
* Automatic + Custom Groups
 
* Automatic + Custom Groups
 +
 +
[[File:Titanlocalhost.png|thumb|450px|Titan Script running on localhost]]
 +
'''Running Titan Script on localhost''' - running your Titan Script locally on your computer.
 +
 +
It gives you the opportunity to modify script files and see the changes immediately. It is extremely useful when you make script/template customizations. You can easily make all changes in your script files and test them at the same time. If everything works fine, you can upload the files to your server, so the changes are effective.
 +
 +
When running your Titan Script on localhost, you are connected to your server (not local) SQL databases. Therefore all database changes you make on localhost, will be instantly applied to your official website.
 +
 +
==  Tutorial ==
 +
=== Download Titan Script files via FTP ===
 +
[[How to use FTP Client?|Connect to your server via FTP]], go to the [[root directory]] and download all files.
 +
=== Download and install Visual Studio Community 2015 ===
 +
Go to https://www.visualstudio.com/products/free-developer-offers-vs, download Visual Studio Community and follow the installation wizzard. Once installed, run Visual Studio. A welcome page will prompt you to Sign in. Press "Not now, maybe later''"'' to continue.
 +
<gallery>
 +
DownloadVS1.png|Download VS
 +
DownloadVS2.png|Install VS: step 1
 +
</gallery>
 +
=== Run Titan locally ===
 +
Open Visual Studio, go to ''File → Open → Web Site...'' and select the folder with files downloaded in the previous step. Press ''Ctrl + F5''. After a few seconds/minutes, your website should open in a browser.
 +
<gallery>
 +
VSOpenWebsite.png|Open Website: step 1
 +
VSOpenWebsite2.png|Open Website: step 2
 +
VSSolutionExplorer.png|View: Solution Explorer
 +
</gallery>
 +
==== Enable detailed error messages (optional) ====
 +
You can [[Detailed error messages|enable detailed error messages]] on your locally hosted Titan Script. It will make your troubleshooting process easier.
 +
 +
== Troubleshooting ==
 +
 +
If you followed previous steps correctly, the only reason for an error would be a wrong connection string. In Visual Studio, go to  ''View → Solution Explorer''. Open Web.config in the [[root directory]] and search for the tag that starts with:
 +
 <add name="ClientDbString"
 +
If the connectionString attribute points to a localDB/localhost, log into your account on  https://usetitan.com, go to ''Dashboard → Your Domains'' and copy your connection string from the CS column. Return to Web.config, replace connection string, press ''Ctrl + s'' to save and ''Ctrl + F5'' to run Titan Script again.
 +
<gallery>
 +
VSConnectionString.png|Web.config connectionString
 +
UseTitanConnectionString.png|UseTitan connectionString
 +
</gallery>
 +
  
 
==Classic==
 
==Classic==
 
There are no groups in the Revenue Sharing system. The amount of money users receive each day depends on the amount of money available in [[Profit Distribution|Revenue Sharing Daily Pool or the Fixed Amount]] (''Admin Panel → Revenue Sharing → Profit distribution''). All users who purchased AdPacks receive the same amount of money every day.
 
There are no groups in the Revenue Sharing system. The amount of money users receive each day depends on the amount of money available in [[Profit Distribution|Revenue Sharing Daily Pool or the Fixed Amount]] (''Admin Panel → Revenue Sharing → Profit distribution''). All users who purchased AdPacks receive the same amount of money every day.

Revision as of 17:52, 23 August 2016

There are four Revenue Sharing group policies in Titan:

  • Classic
  • Automatic Groups
  • Custom Groups
  • Automatic + Custom Groups
Titan Script running on localhost

Running Titan Script on localhost - running your Titan Script locally on your computer.

It gives you the opportunity to modify script files and see the changes immediately. It is extremely useful when you make script/template customizations. You can easily make all changes in your script files and test them at the same time. If everything works fine, you can upload the files to your server, so the changes are effective.

When running your Titan Script on localhost, you are connected to your server (not local) SQL databases. Therefore all database changes you make on localhost, will be instantly applied to your official website.

Tutorial

Download Titan Script files via FTP

Connect to your server via FTP, go to the root directory and download all files.

Download and install Visual Studio Community 2015

Go to https://www.visualstudio.com/products/free-developer-offers-vs, download Visual Studio Community and follow the installation wizzard. Once installed, run Visual Studio. A welcome page will prompt you to Sign in. Press "Not now, maybe later" to continue.

Run Titan locally

Open Visual Studio, go to File → Open → Web Site... and select the folder with files downloaded in the previous step. Press Ctrl + F5. After a few seconds/minutes, your website should open in a browser.

Enable detailed error messages (optional)

You can enable detailed error messages on your locally hosted Titan Script. It will make your troubleshooting process easier.

Troubleshooting

If you followed previous steps correctly, the only reason for an error would be a wrong connection string. In Visual Studio, go to View → Solution Explorer. Open Web.config in the root directory and search for the tag that starts with:

 <add name="ClientDbString"

If the connectionString attribute points to a localDB/localhost, log into your account on https://usetitan.com, go to Dashboard → Your Domains and copy your connection string from the CS column. Return to Web.config, replace connection string, press Ctrl + s to save and Ctrl + F5 to run Titan Script again.


Classic

There are no groups in the Revenue Sharing system. The amount of money users receive each day depends on the amount of money available in Revenue Sharing Daily Pool or the Fixed Amount (Admin Panel → Revenue Sharing → Profit distribution). All users who purchased AdPacks receive the same amount of money every day.