tháng 12 2016

Remove Templateism Credit Link

For bloggers who use template-is issues you may have noticed that some songs are very beautiful , very well optimized , with an impressive load speed , a design smart enough etc etc etc etc

HERE YOU CAN SEE IN OUR TEMPLATE... WE REMOVED IT... 

But for those fussy seo there's a catch , you can not remove footer links from template-is templates , as these links are edited , the blog, after a few seconds makes a redirect to the homepage of the author of the blogger skin
http://RemoveCreditLink.blogspot.com/

This for many webmasters who use these templates , a problem facing a penalty from google

I 'm using one of those templates in one of my blogs, but obviously do not like having links in the footer , in fact I do not like having many outbound links , but I came out with this template challenge ( hehe ) search template and I realized that the bottom line was the part that has java script :

 Einstein said it best intelligence but I do not need tools to do things, or something said , I do not remember , but hey the point is that the first idea that occurred to me was to spend that code for Hex Decoder unfortunately does not work , for which the template is broken , look at other blogs and mentioned along about id = ' myCONTENT '> to replacing it , that deleting it etc etc etc , none of that worked

Well if you have a template of template-is and want to change / remove the footer links , let's get down !

Log into your blog template >>> >>>> edit html and removes all this code:

http://grandtheftbay.tk/

Make sure to remove from <script type='text/javascript'> and to </script>

If you Couldn't  find the code in the image, it means the code is hided in javascript find this code and remove it your done here :: <script src='https://btemplateism.googlecode.com/files/blogger_pagenavi_min.js' type='text/javascript'/>

and delete the Script below this script that now i entered here...!

<script type='text/javascript'>
var Template-isSummary = {
    displayimages: true,
    imagePosition: &#39;left&#39;,
    Widthimg: 420,
    Heightimg: 200,
    noThumb: &#39;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZ-9nbmatBO9SFcajZy82ZkRCVUPwMOKJbWoACJ4nxkB_KDVWvz7jtFThO0jR6UWpzybS1og5xs091K6esX_XO8waj4avZD9EQBRtVpLtVwPhYLOZnRH4saJ7gSPIRC9RZ1-ATncbV-1o/s1600/no-thumb.jpg&#39;,
    SummaryWords: 60,
    wordsNoImg: 60,
    skipper: 0,
    DisplayHome: true,
    DisplayLabel: true
};
</script>

From Here To :: 
//<![CDATA[

//]]> ::Here 

and don't delete the next script k.

 Then
 Save it Enjoy::


IF
STEP :1
Step:1 Go to blog Dashboard>Template>Edit HTML.

Step:2 Search the code
//<![CDATA[

Step:3 There are many such codes.Find one which looks like this
(please see picture as shown in blog )

Step:4 Select the code just bellow
  //<![CDATA[ to //]]> as shown in picture

Step:5 Now delete the selected code and replace the following script

<script type='text/javascript'>
var Template-isSummary = {
    displayimages: true,
    imagePosition: &#39;left&#39;,
    Widthimg: 420,
    Heightimg: 200,
    noThumb: &#39;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZ-9nbmatBO9SFcajZy82ZkRCVUPwMOKJbWoACJ4nxkB_KDVWvz7jtFThO0jR6UWpzybS1og5xs091K6esX_XO8waj4avZD9EQBRtVpLtVwPhYLOZnRH4saJ7gSPIRC9RZ1-ATncbV-1o/s1600/no-thumb.jpg&#39;,
    SummaryWords: 60,
    wordsNoImg: 60,
    skipper: 0,
    DisplayHome: true,
    DisplayLabel: true
};
</script>

Step 2:
<div id='copyright'>
<p>Copyright &#169; 2013 Remove Credit Link. Designed by <a
href='http://www.facebook.com/https://www.facebook.com/pages/Remove-Credit-Link/187485321447761 id='mycontent'>Remove Credit Link
Magar</a></p>
                        </div><!--copyright-->
                </div><!--footer-bottom-->

</div><!--footer-bottom-->

Step:6 Search the word mycontent and change it with any word you may
like such as Remove Credit Link
Step:7 Now change or remove credit link as you desired.
Step:8 Save the template.

       Keep Visiting Here...
Sau tầm 1 tháng nhận kèo gửi mail thuê cho bạn mình, lượng mail gửi hàng ngày là 2k mail/ngày, theo tháng thì khoảng 50~60k mail/tháng, mà nó nói nó thuê bên ngoài với giá là 600k/tháng, mình nhân lúc rảnh rỗi cũng bảo để mình làm cho,nhận kèo này kiếm thêm nên mới tìm hiểu cách gửi mail marketing sao cho rẻ nhất, nhanh nhất,
Để gửi mail Marketing mình đã tìm hiểu nhiều nơi, nhiều nhà cung cấp dịch vụ free,nhưng kết luận lại 1 điều là chẳng có gì miễn phí 100% cả, bạn đều phải trả phí dù ít dù nhiều, và mình đã lỡ tinh vi nhận lời làm với bạn mình rồi thì không thể nuốt lời được, quân tử nhất ngôn mà. vầy nên mình đã tìm đủ cách để gửi mail. đây là cách mình làm

Công cụ bạn cần chuẩn bị:

1. Tài khoản amazon SES để gửi mail giá rẻ, với giá 1$/10k mail => vâyj với 60k mail/tháng thì mất khoảng 6$ (tầm 140k, vậy coi như mình lời được 450k rồi, và để có kinh nghiệm nên vẫn cần làm), để gửi mail bằng tài khoản Amazon SES bạn cần lưu ý các vấn đề sau:
    Lưu ý khi gửi mail bằng tài khoản Amazon:
          - Để gửi mail bằng Amazon SES cần phải có 1 công cụ (tool) hỗ trợ gửi mail (cái này bình thường bạn sẽ phải mất thêm phí cho các phần mềm, nhưng mình sẽ chỉ bạn 1 phần mềm làm việc này miễn phí)
          - Amazon SES chỉ có thể gửi mail đến các tài khoảng mail đuôi @gmail.com không hỗ trợ gửi mail đến các mail có đuôi @tencongty hay @yahoo ..... vậy nên bạn cần phải chuyển sang dùng 1 dịch vụ khác để gửi mail (cái này không quan trọng, vì chúng ta chỉ cần quan tâm làm sao gửi mail vào hộp Inbox của Gmail thôi, còn mấy cái @tencongty thường họ sẽ không có bộ lọc spam như gmail nên không lo, có thể dùng dịch vụ hỗ trợ trung gian cũng được không lo
- Amazon cũng rất nghiêm ngặt trong việc bạn lạm dụng hệ thống của họ để đi Spam mail, nên họ cũng có nhiều luật lệ, trước khi gửi mail cần phải kiểm tra mail sống hay chết để loại bỏ những mail bị trả về do mail chết và ảnh hưởng đến tài khoản gửi mail của mình.


2.
Hẳn khi bạn cài Mailwizz trên server Nginx sẽ gặp nhiều khó khăn và vướng mắc, mỗi người có cái vướng khác nhau, nhưng bạn nên tự giải quyết vướng mắc của mình,mình cũng tự giải quyết vướng mắc đó, mình lục tung cả forum của mailwizz lên để giải quyết lỗi Unable to resolve the request "customer/index.php".Mình đã rất vui khi cài đặt các bước trước đó thành công,nhưng bước cuối cùng lạikhông đăng nhập được.



Đầu tiên mình đọc bài hướng dẫn https://kb.mailwizz.com/articles/nginx-server-basic-configuration-for-mailwizz/ và làm theo,













Nginx server basic configuration for mailwizz


If you need a very advanced/optimised nginx configuration, you’ll find one here, otherwise below sample should do it for the simplest use cases.
Please note that the below configuration is going to use php-fpm for what is worth.
1
/etc/nginx/nginx.conf
1
# For more information on configuration, see:
#   * Official English Documentation: http://nginx.org/en/docs/
#   * Official Russian Documentation: http://nginx.org/ru/docs/
user  nginx;
worker_processes  1;
error_log  /var/log/nginx/error.log;
#error_log  /var/log/nginx/error.log  notice;
#error_log  /var/log/nginx/error.log  info;
pid        /run/nginx.pid;
events {
    worker_connections  1024;
}
http {
    include       /etc/nginx/mime.types;
    default_type  application/octet-stream;
    log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
                      '$status $body_bytes_sent "$http_referer" '
                      '"$http_user_agent" "$http_x_forwarded_for"';
    access_log  /var/log/nginx/access.log  main;
    sendfile        on;
    #tcp_nopush     on;
    #keepalive_timeout  0;
    keepalive_timeout  65;
    #gzip  on;
    # Load modular configuration files from the /etc/nginx/conf.d directory.
    # See http://nginx.org/en/docs/ngx_core_module.html#include
    # for more information.
    include /etc/nginx/conf.d/*.conf;
    index   index.html index.htm;
    #root /usr/share/nginx/html;
  # this is the section that matters for mailwizz.
    server {
     listen      80;
     server_name domain.com;
     root        /usr/share/nginx/html;
     location / {
         if (!-e $request_filename){
         rewrite ^(/)?api/.*$ /api/index.php;
         }
         if (!-e $request_filename){
         rewrite ^(/)?customer/.*$ /customer/index.php;
         }
         if (!-e $request_filename){
         rewrite ^(/)?backend/.*$ /backend/index.php;
         }
         if (!-e $request_filename){
         rewrite ^(.*)$ /index.php;
         }
         index  index.html index.htm index.php;
     }
     #error_page  404              /404.html;
     # redirect server error pages to the static page /50x.html
     #
     error_page   500 502 503 504  /50x.html;
     # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
     #
     location ~ \.php$ {
         fastcgi_split_path_info  ^(.+\.php)(.*)$;
         fastcgi_param  PATH_INFO        $fastcgi_path_info;
         fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
         include fastcgi_params;
         fastcgi_pass   127.0.0.1:9000;
         fastcgi_index  index.php;
         fastcgi_read_timeout 600s;
         fastcgi_send_timeout 600s;
     }
     # deny access to .htaccess files, if Apache's document root
     # concurs with nginx's one
     #
     location ~ /\.ht {
         deny  all;
     }
   }
}


Nếu cách trên bạn vẫn không fix được lỗi thì làm thêm cách bên dưới

Bạn nên thử theo cách dưới đây, mình sửa file /etc/nginx/conf.d/domain-cua-ban.conf
và thêm đoạn đầu tiên Had to add the below như bên dưới và đã đăng nhập được




Just a update the server runs nginx and the config file needs to be edited

Found the required lines here:



Had to add the below
Code:
    if (!-e $request_filename){
    rewrite customer/.* /customer/index.php;
    }
    if (!-e $request_filename){
    rewrite backend/.* /backend/index.php;
    }
    if (!-e $request_filename){
    rewrite api/.* /api/index.php;
    }
    if (!-e $request_filename){
    rewrite ^(.*)$ /index.php;
    }

FULL nginx file below
Code:
server {
    listen 80;
    listen 443 ssl;
    server_name mailwizz.dev;
    root "/home/vagrant/Code/mailwizz";

    index index.html index.htm index.php;

    charset utf-8;

    location / {
        try_files $uri $uri/ /index.php?$query_string;
    }

    location = /favicon.ico { access_log off; log_not_found off; }
    location = /robots.txt  { access_log off; log_not_found off; }

    access_log off;
    error_log  /var/log/nginx/mailwizz.dev-error.log error;

    sendfile off;

    client_max_body_size 100m;

    if (!-e $request_filename){
        rewrite customer/.* /customer/index.php;
    }

    if (!-e $request_filename){
        rewrite backend/.* /backend/index.php;
    }

    if (!-e $request_filename){
        rewrite api/.* /api/index.php;
    }

    if (!-e $request_filename){
        rewrite ^(.*)$ /index.php;
    }

    location ~ \.php$ {
        fastcgi_split_path_info ^(.+\.php)(/.+)$;
        fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
        fastcgi_index index.php;
        include fastcgi_params;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;

        fastcgi_intercept_errors off;
        fastcgi_buffer_size 16k;
        fastcgi_buffers 4 16k;
        fastcgi_connect_timeout 300;
        fastcgi_send_timeout 300;
        fastcgi_read_timeout 300;
    }

    location ~ /\.ht {
        deny all;
    }

    ssl_certificate     /etc/nginx/ssl/mailwizz.dev.crt;
    ssl_certificate_key /etc/nginx/ssl/mailwizz.dev.key;
}

Last edited: Jul 13, 2016
Sau đó bạn nhớ khởi động lại Nginx bằng lệnh:
 service nginx restart 


file conf.d chuẩn đã cài đặt thành công như ở dưới:


1
server { listen 80; listen 443 ssl; server_name www.mailmarketing.lemaihuong.com; rewrite ^(.*) http://mailmarketing.lemaihuong.com$1 permanent; } server { listen 80; listen 443 ssl; access_log off; # access_log /home/mailmarketing.lemaihuong.com/logs/access.log; error_log off; # error_log /home/mailmarketing.lemaihuong.com/logs/error.log; root /home/mailmarketing.lemaihuong.com/public_html; index index.php index.html index.htm; server_name mailmarketing.lemaihuong.com; location / { try_files $uri $uri/ /index.php?$args; } # Custom configuration include /home/mailmarketing.lemaihuong.com/public_html/*.conf; if (!-e $request_filename){ rewrite customer/.* /customer/index.php; } if (!-e $request_filename){ rewrite backend/.* /backend/index.php; } if (!-e $request_filename){ rewrite api/.* /api/index.php; } if (!-e $request_filename){ rewrite ^(.*)$ /index.php; } location ~ \.php$ { fastcgi_split_path_info ^(.+\.php)(/.+)$; include /etc/nginx/fastcgi_params; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_connect_timeout 300; fastcgi_send_timeout 300; fastcgi_read_timeout 300; fastcgi_buffer_size 32k; fastcgi_buffers 8 16k; fastcgi_busy_buffers_size 32k; fastcgi_temp_file_write_size 32k; fastcgi_intercept_errors on; fastcgi_param SCRIPT_FILENAME /home/mailmarketing.lemaihuong.com/public_html$fastcgi_script_name; } location ~ /\. { deny all; } location = /favicon.ico { log_not_found off; access_log off; } location = /robots.txt { allow all; log_not_found off; access_log off; } location ~* \.(3gp|gif|jpg|jpeg|png|ico|wmv|avi|asf|asx|mpg|mpeg|mp4|pls|mp3|mid|wav|swf|flv|exe|zip|tar|rar|gz|tgz|bz2|uha|7z|doc|docx|xls|xlsx|pdf|iso|eot|svg|ttf|woff)$ { gzip_static off; add_header Pragma public; add_header Cache-Control "public, must-revalidate, proxy-revalidate"; access_log off; expires 30d; break; } location ~* \.(txt|js|css)$ { add_header Pragma public; add_header Cache-Control "public, must-revalidate, proxy-revalidate"; access_log off; expires 30d; break; } }