Using WordPress Part 1

Every so often I do some posts on using WordPress.

This time I have a couple of projects ging so I am going to use one of them to take from registering the domain name till when ever.

If you go to the website now, https://phckona.org you will see what the website looks like today, October 2017, in it’s infancy.

I use https://www.namecheap.com to get my domain names. Once I have a desired name I put it in to my cPanel web hosting server. https://ainet.biz.

From there I can install wordpress and start setting it up.

I choose a Theme, and this gives us access to a number of features and formats.

The front page of the website with the them of Philomina gives you four tall pictures. Each of these pictures leads to a post story, which if you look at the website when I wrote this do not go any where. One of the todo things is to make these pages meaningful. When ever you are working with themes you need to consider the layout. In this case, to get the website to work on PCs, tables and phones, I had to create four pictures, each 845 tall and 420 wide, this is then handled by WordPress to make them fit where ever they are viewed.

Pictures are a big part of a website, so you need to get dozens from the business/group you are doing the work for so you can create contextual articles. I would suggest that you need between two and four on each page. Have a look at this example: https://www.phckona.org/about-us/.

 

 

Posted in Using Word Press, Websites | Leave a comment

Being found by the algorithms

A big part of my business is SEO, Search Engine Optimisation. Now I am not a neat freak, and SEO really is something that a neat freak gets in to. I do have OCD, that does kind of help.

Any way the point of this article is to get you to think about when you do a thing:

  1. Email News Letter
  2. Website Post
  3. Intragram
  4. Facebook Post
  5. 360 Google Map
  6. Google Business Listing

All these activities need to be interlinked.

So I go this email today with this picture in it.
Now this picture has a hash, it is:

base64: 40k3upBuACxDfaB/UjKOpw==

This is really geeky but fun. As that email went out around the world, algorithms all over the world saw it. Googles algorithms would have seen it multiple times as many of the emails would have ended up in gmail. But then Microsoft would have seen it with hotmail.com and outlook.com, AOL would have seen it, Yahoo, Apple and countless other algorithm in various businesses would have seen it and taken note. Now to make that work for us.

At the same time this email goes out, you want to use exactly the same picture in a Facebook Page Article, in an Instagram upload, and very importantly in a post on your website. Also put it in your Google Business Listing as a new Photo. This exposure is very good for making you FOUND. That is what this is about. To be found when people search for related things about you, that you have already shown off to the world.

Here is something to consider: my website will also be seen today by Google, Microsoft, Facebook. Once as I cross post this article to those platforms and as their spiders crawl my website, as they do almost ever week. Now inside these mega companies, their algorithms will make a connection between me and the originators of this picture.

Okay, my Bad.

I realise I have just made a pile of work for you.

It goes like this:
Everything you do on the ‘net must be multi purposed. Things can not be done in isolation.
Everything you do must flow with everything else you do.
This is part human centred design and algorithm centred desire.
You want to get noticed and once noticed you want to be remembered. Not just by people but by all the algorithms out there that the search engines employ.

How Who What When Why
Website Interested Parties Summary & Details weekly Validity
Website Blog Fans 30+ Fun, current events weekly Validity
Instagram Fans 30- hashtags, pics daily Validity
Facebook Fans 23+   Articles, events bi-weekly Validity
YouTube Serious Fans  Teaching & Fun weekly Validity
Twitter Nerds  EVERYTHING daily Validity
Snap-chat Fans 30-  hashtags, pics daily Validity

Website articles must have pictures, notice the ‘s’. Two to four pictures, not too big not too over powering, preferably pictures you have already used on Instagram and Snap-chat. The same with Website blog articles, if you run a blog, and in almost all cases you should. All website articles are also reposted to Facebook, Instagram and Snap-chat, Twitter and oh I forgot to put in Pinterest. 

As a result of using the same material everywhere, of doing this often, you become a content provider, and if you do this well enough you will most likely be freebooted. You will also come to the attention of the algorithms, which is what we want. Oh and here is my third picture.

 

Posted in Websites | Leave a comment

You Tube in Word Press

My customer want a short video on her website.

I have used the plug in iframe By webvitaly Version 4.3

The syntax for a youtube video is 
[ iframe src=”http://www.youtube.com/embed/AzHVd0bnS10″ width=”750″ height=”500″ ]

This allows the video to play, but at the end we get YouTubes preview montarge.

To get away from this add ?rel=0
[ iframe src=”http://www.youtube.com/embed/AzHVd0bnS10?rel=0″ width=”750″ height=”500″ ]

Posted in Websites | Leave a comment

Must Have in WordPress

This is a must use plugin.

It will send an email and for me a text when files are added or changed!

Once installed and activated set up the following:

  1. File Check Interval : Twice Daily
  2. Notify Email Address : I gave my cell phone email address so these came as a txt
  3. File Check Method : tick all
  4. Dirs/Files To Ignore
    1. error_log
      /wp-content/cache
      /wp-content/uploads
      /wp-content/logs/error.log
  5. Save setting & send test email
Posted in Geek Out, Software, Using Word Press, Websites | Leave a comment

cpanel hulk brute force

So I run a cPanel server, and way to much of my time recently has been getting emails that say:

So I have finally desided that I am going to ban whole countires. These countires will still ba able to to see the websites on this server, they just will not be able to ran any scripts to try and login. ie Emails, ssh.

I am using this website to get all the IP addresses for a country.

http://www.ipdeny.com/ipblocks/

So as an example I click on AFGHANISTAN (AF) [download zone file] and get all the IP addresses for Afghanistan:

27.116.56.0/22
43.231.131.0/24
43.249.40.0/22

I just copy them all as one list in to the cpanel Bulk Blacklist

Provide a comment of where I got the list from: http://www.ipdeny.com/ipblocks/data/countries/af.zone and click add.

Done, now to do it for the top twenty five bad countries:

Argentina
Belgium
Brazil
China
Czech Republic
Germany
Hong Kong
Iraq
Israel
Italy
Korea
Lithuania
Nepal
Pakistan
Portugal
Romania
Russian Federation
Singapore
Slovenia
Sweden
Taiwan
Thailand
Ukraine
United Kingdom
United States of America

From this list I created a new ban list. I also have a whitelist that allows people that do need access to have access. This list is excessive, so use with discretion. Don’t lock yourself out!

1.0.0.0/8
100.0.0.0/8
101.0.0.0/8
103.0.0.0/8
104.0.0.0/8
106.0.0.0/8
107.0.0.0/8
108.0.0.0/8
109.0.0.0/8
11.0.0.0/8
110.0.0.0/8
111.0.0.0/8
112.0.0.0/8
113.0.0.0/8
114.0.0.0/8
115.0.0.0/8
116.0.0.0/8
117.0.0.0/8
118.0.0.0/8
119.0.0.0/8
12.0.0.0/8
120.0.0.0/8
122.0.0.0/8
123.0.0.0/8
124.0.0.0/8
125.0.0.0/8
128.0.0.0/8
129.0.0.0/8
13.0.0.0/8
130.0.0.0/8
131.0.0.0/8
132.0.0.0/8
134.0.0.0/8
135.0.0.0/8
136.0.0.0/8
137.0.0.0/8
138.0.0.0/8
139.0.0.0/8
14.0.0.0/8
140.0.0.0/8
141.0.0.0/8
143.0.0.0/8
144.0.0.0/8
146.0.0.0/8
147.0.0.0/8
148.0.0.0/8
149.0.0.0/8
15.0.0.0/8
150.0.0.0/8
151.0.0.0/8
152.0.0.0/8
153.0.0.0/8
155.0.0.0/8
156.0.0.0/8
157.0.0.0/8
158.0.0.0/8
159.0.0.0/8
16.0.0.0/8
160.0.0.0/8
161.0.0.0/8
162.0.0.0/8
163.0.0.0/8
164.0.0.0/8
165.0.0.0/8
166.0.0.0/8
167.0.0.0/8
168.0.0.0/8
169.0.0.0/8
17.0.0.0/8
170.0.0.0/8
171.0.0.0/8
172.0.0.0/8
173.0.0.0/8
174.0.0.0/8
175.0.0.0/8
176.0.0.0/8
177.0.0.0/8
178.0.0.0/8
179.0.0.0/8
18.0.0.0/8
180.0.0.0/8
181.0.0.0/8
182.0.0.0/8
183.0.0.0/8
184.0.0.0/8
185.0.0.0/8
186.0.0.0/8
187.0.0.0/8
188.0.0.0/8
189.0.0.0/8
19.0.0.0/8
191.0.0.0/8
192.0.0.0/8
193.0.0.0/8
194.0.0.0/8
195.0.0.0/8
198.0.0.0/8
199.0.0.0/8
2.0.0.0/8
20.0.0.0/8
200.0.0.0/8
201.0.0.0/8
204.0.0.0/8
205.0.0.0/8
206.0.0.0/8
207.0.0.0/8
209.0.0.0/8
21.0.0.0/8
210.0.0.0/8
211.0.0.0/8
212.0.0.0/8
213.0.0.0/8
214.0.0.0/8
215.0.0.0/8
216.0.0.0/8
217.0.0.0/8
218.0.0.0/8
219.0.0.0/8
22.0.0.0/8
220.0.0.0/8
221.0.0.0/8
222.0.0.0/8
223.0.0.0/8
23.0.0.0/8
24.0.0.0/8
25.0.0.0/8
26.0.0.0/8
27.0.0.0/8
28.0.0.0/8
29.0.0.0/8
3.0.0.0/8
30.0.0.0/8
31.0.0.0/8
32.0.0.0/8
33.0.0.0/8
34.0.0.0/8
35.0.0.0/8
36.0.0.0/8
37.0.0.0/8
38.0.0.0/8
39.0.0.0/8
4.0.0.0/8
40.0.0.0/8
42.0.0.0/8
44.0.0.0/8
45.0.0.0/8
46.0.0.0/8
47.0.0.0/8
48.0.0.0/8
49.0.0.0/8
5.0.0.0/8
50.0.0.0/8
51.0.0.0/8
52.0.0.0/8
53.0.0.0/8
54.0.0.0/8
55.0.0.0/8
56.0.0.0/8
57.0.0.0/8
58.0.0.0/8
59.0.0.0/8
6.0.0.0/8
60.0.0.0/8
61.0.0.0/8
62.0.0.0/8
63.0.0.0/8
64.0.0.0/8
65.0.0.0/8
67.0.0.0/8
68.0.0.0/8
7.0.0.0/8
70.0.0.0/8
71.0.0.0/8
72.0.0.0/8
73.0.0.0/8
74.0.0.0/8
75.0.0.0/8
76.0.0.0/8
77.0.0.0/8
78.0.0.0/8
79.0.0.0/8
8.0.0.0/8
80.0.0.0/8
81.0.0.0/8
82.0.0.0/8
83.0.0.0/8
84.0.0.0/8
85.0.0.0/8
86.0.0.0/8
87.0.0.0/8
88.0.0.0/8
89.0.0.0/8
9.0.0.0/8
90.0.0.0/8
91.0.0.0/8
92.0.0.0/8
93.0.0.0/8
94.0.0.0/8
95.0.0.0/8
96.0.0.0/8
97.0.0.0/8
98.0.0.0/8
99.0.0.0/8
Posted in cPanel, Geek Out, Software, Websites | Leave a comment

From Amy to Google

MX Entries

1 ASPMX.L.GOOGLE.COM.
5 ALT1.ASPMX.L.GOOGLE.COM.
5 ALT2.ASPMX.L.GOOGLE.COM.
10 ALT3.ASPMX.L.GOOGLE.COM.
10 ALT4.ASPMX.L.GOOGLE.COM.

Delete any other records. Please not these settings can take up to 48 hours to propagate though out the Internet. Though I find two hours and things are working. Now we need to setup users to be able to access their emails.

SPF record

“v=spf1 +a +mx +ip4:104.197.84.209 include:sendgrid.net include:_spf.google.com ~all”

Google verification

What ever they give.

Posted in Websites | Leave a comment

Sir needs to protect his WordPress website

Changes for .htaccess in the root of your site.

# STRONG HTACCESS PROTECTION</code>
<Files ~ "^.*\.([Hh][Tt][Aa])">
order allow,deny
deny from all
satisfy all
</Files>

Order deny,allow
Deny from all
<Files ~ “.(xml|css|jpeg|png|gif|js)$”>
Allow from all
</Files>

# disable directory browsing
Options All -Indexes

# protect from sql injection
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{QUERY_STRING} (\&lt;|%3C).*script.*(\&gt;|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
RewriteRule ^(.*)$ index.php [F,L]

<files wp-config.php>
Order deny,allow
Deny from all
</files>


# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

 

Posted in Using Word Press, Websites | Leave a comment

Example of a Phoca Slideshow plugin at work

http://sciencetechkona.org/13-science-tech-kona/126-click-a-link

Phoca Slideshow Documentation

Posted in Websites | Leave a comment

Multiple Language Website

Using Polylang from https://wordpress.org/plugins/polylang/

  1. Install from the plugin & Activate.
    1. Hover on Plugins
    2. Click on Add New
    3. Search on Polylang
  2. Now go to Setting -> Language
    1. Allow Polylang to install Lingotek Translation
    2. Activate the Plugin
    3. Create the account and login to Lingotek, you will then be taken back to your website
    4. We will finish this portion later.
  3. Now go back to Setting -> Language
    1. You will already have English as a Language, now install another one.
    2. Save
  4. To get the ball rolling, go to Posts -> All Posts
    1. You will see a Blue + on the far right, underneath the flag of the country you just added.
    2. Clicking the blue + will create a duplicate page that is the language copy for the original English page.
    3. Do create the needed other language pages.
    4. In my case I had five English pages that I wanted to be
  5. Now we want to create the other language menu, go to Appearances -> Menu
    1. Create a new Top Menu
    2. Define it as the primary Português (or what ever is your other language) menu
    3. Add pages and other menu items to reflect what you have on the English language menu
    4. You do not need to create a total mirror, you are free to develop each language as you like, but that does defeat the purpose of have a multi language site, try to only create pages in both languages and reflect them in the menus.

I did need to go back and change some of the original posts from English to Português

Posted in Websites | Leave a comment

Tips for Joomla

Doing some Website updates to help make my customers ‘seen’ better. Along with such things as getting rid of all 404 errors, broken links and spelling mistakes, there is also the need to add Metadata, W3C compliance, Social Media interaction and cross linking.

artisteerI also came across a few things that I have needed to do as a function of running Artisteer and Joomla.

  • The copyright sysbol was wrong it would not display (c), to over come this I added the html code for (c).
&copy;
  • In the footer the year does not change. So I added this text to the footer html.
<?php
 print "Copyright - &copy; ";
 echo date("Y");
 print ". All Rights Reserved.";
?>

Posted in Websites | Leave a comment