Setup Smartcj Correctly

happydg
Posts: 412
Joined: Mon Jul 08, 2013 2:22 pm

Setup Smartcj Correctly

Post 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.
admin
Site Admin
Posts: 37994
Joined: Wed Sep 10, 2008 11:43 am

Re: Setup Smartcj Correctly

Post by admin »

Sure, what would you like to hide exactly?
Don't forget to run script update
happydg
Posts: 412
Joined: Mon Jul 08, 2013 2:22 pm

Re: Setup Smartcj Correctly

Post 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.
admin
Site Admin
Posts: 37994
Joined: Wed Sep 10, 2008 11:43 am

Re: Setup Smartcj Correctly

Post 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
Don't forget to run script update
happydg
Posts: 412
Joined: Mon Jul 08, 2013 2:22 pm

Re: Setup Smartcj Correctly

Post 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?
admin
Site Admin
Posts: 37994
Joined: Wed Sep 10, 2008 11:43 am

Re: Setup Smartcj Correctly

Post 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
Don't forget to run script update
happydg
Posts: 412
Joined: Mon Jul 08, 2013 2:22 pm

Re: Setup Smartcj Correctly

Post by happydg »

4) What would be that rewrite rule code exactly?
admin
Site Admin
Posts: 37994
Joined: Wed Sep 10, 2008 11:43 am

Re: Setup Smartcj Correctly

Post 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
Don't forget to run script update
resellerhostings
Posts: 1
Joined: Fri Jan 22, 2016 10:46 am

Re: Setup Smartcj Correctly

Post 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/';
happydg
Posts: 412
Joined: Mon Jul 08, 2013 2:22 pm

Re: Setup Smartcj Correctly

Post 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.
Post Reply