User Tools

Site Tools


faq

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
faq [2018/03/13 16:41]
admin [Skimming 101]
faq [2018/03/16 17:40] (current)
admin [Direct Out Links]
Line 141: Line 141:
  
  
-===== Direct Out Links =====+====== Script Update version 1 -> 2 ======
  
-Direct Links example+First branch of the script (1.X) is not supported any more and in 2016 we moved to the new version 2. If you have a site running version 1 you can move to version 2 
  
 +  - Install version 2 at the same domain where version 1 is  (You'​ll need a new DB)
 +  - SSH to scj/bin and run php scj_1to2_db_converter.php
  
-<​code>​ +Script will ask where version 1 is and copy all the data
-<​html>​ +
-<​body>​ +
-<script src='/​scj/​includes/​js/​jquery.js'></​script>​ +
-<​script>​ +
- $(document).ready(function(){ +
- $('​a[jsvar=out]'​).each(function(){ +
- var href = '/​out.php?​url='​ + $(this).attr('​href'​);​ +
- $(this).attr('​href',​ href); +
- }); +
- }); +
-</​script>​+
  
 +Check that everything'​s ok. You can use direct links like http://​your_domain/​version2/​tube/?​group_name=... and so on
  
-<a jsvar='​out'​ href='​http://​gallery.com/'>​ out link </a> <​br>​ +And switch to the new version.
-<a href='​http://​gallery.com/'>​ direct link </​a>​ +
- +
-</​body>​ +
-</​html>​ +
-</​code>​ +
faq.txt · Last modified: 2018/03/16 17:40 by admin