Page 1 of 3

Setup Smartcj Correctly

Posted: Fri Jan 22, 2016 11:47 pm
by happydg
Hello,

Are there some steps/tweaking to setup Smartcj so google doesn't know i'm using smartcj script?

Because i got all my smartcj domains banned by google a while back.

Thank you.

Re: Setup Smartcj Correctly

Posted: Tue Jan 26, 2016 3:33 am
by admin
Sure, what would you like to hide exactly?

Re: Setup Smartcj Correctly

Posted: Tue Jan 26, 2016 12:20 pm
by happydg
1) I would like to hide the cookie to Google. Is mD5 the better way?

2) I would like to hide the directory, after changing the name, can i put a htpasswrd on the "new scj" directory?

3) Can i delete rot_in file? Will it affect rotation?

4) In the template, should i only put <!--SCJ_COUNT_VIEWS--> or do i also need to have <!--SCJ_INCLUDE--> ?

Thank you.

Re: Setup Smartcj Correctly

Posted: Tue Jan 26, 2016 3:43 pm
by admin
1. Yes, there's an option for this in settings
I don't know whether it's better for Google or not...

2. Sure

3. You can rename it as well

4. Both of you want to count hits

Re: Setup Smartcj Correctly

Posted: Tue Jan 26, 2016 3:53 pm
by happydg
3) If i change name for scj/cgi/rot_in.php for example to scj/cgi/ratin.php, Do i need to change let it know somewhere in the settings/config? Where exactly?

4) Can i delete scj_pro.lic from my root?

5) Can i delete scjwebmaster.php?

Re: Setup Smartcj Correctly

Posted: Tue Jan 26, 2016 11:21 pm
by admin
3. Yes, when you add code with rotin.php you have to change the name of the file of course
4. No, but you can hide it with a rewrite rule

5. Yes

Re: Setup Smartcj Correctly

Posted: Wed Jan 27, 2016 12:15 pm
by happydg
4) What would be that rewrite rule code exactly?

Re: Setup Smartcj Correctly

Posted: Thu Jan 28, 2016 2:31 am
by admin
Sorry I can not treat it right now.
There are 2 ways
1. Remind me in a week and I'll write it
2. Ask admin to write it for you, it's not a complicated task

Re: Setup Smartcj Correctly

Posted: Wed Feb 03, 2016 11:51 am
by resellerhostings
is this the lines i change or is there more lines i need to change
// create config

$tr = array();
$tr['__DB_HOST__'] = $mysql_host;
$tr["__DB_USER__"] = $mysql_user;
$tr["__DB_PASSWORD__"] = $mysql_pass;
$tr["__DB_NAME__"] = $mysql_name;
$tr["__PHP_PATH__"] = $php_path;
$tr["__ADMIN_EMAIL__"] = $admin_email;
$tr["__PATH_TO_LOG__"] = $scj_path . 'logs/';

Re: Setup Smartcj Correctly

Posted: Wed Feb 03, 2016 5:49 pm
by happydg
4) Could you please give me this url rewrite code? Admin couldn't write it.

6) Here http://smartcj.com/wiki/doku.php?id=new_rotation_hints About "How to change links /gallery/cool/index.html?123x45x678" "Option 3 if you want completely another style":

6a) Should i put

Code: Select all

<?php $my_var = explode('x', '<!--THUMB_LINK-->'); ?>
in the subtemplate?
6b) Should i put

Code: Select all

if (isset($_GET['a'])) {
$_GET['link'] = 'images/' . $_GET['a'] . 'x' . $_GET['b'] . 'x' . $_GET['c'];
}
in common.php of the root, or common.php of scj/cgi?
6c) If i put

Code: Select all

if (isset($_GET['y'])) {
$_GET['link'] = 'images/' . $_GET['a'] . 'x' . $_GET['b'] . 'x' . $_GET['c'];
}
Then the url should be http://www.domain.com/tag/<!--TAG_NAME- ... =$my_var[2]?>

7) I uploaded the default htaccess from /scj/tube/ and pasted it in the root. Should i change all /scj/cgi/out.php paths to /out.php paths?

Thank you.