Search the Wiki

Viewing 21 to 30 of 337 items

Fix – Methods with the same name as their class

PHP4-style constructors still work on PHP7, they are just been deprecated and they will trigger a Deprecated warning. What you can do is define a __construct method, even an empty one, so that the php4-constructor method won’t be called on a newly-created instance of the class. Change to:

0

How to view the number of unique visitors to a page

As seen here: http://www.martinlugton.com/view-number-unique-visitors-page-set-pages-google-analytics/ You can see the number of unique visitors to your site as a whole in Google Analytics’ Audience report. But if you go to Behavior > Content Drilldown, to view a particular page of set of pages, you can only see “unique page views”. Unique page views is a different measure to  Full Article…

0

Wildcard Find & Replace in Sublime Text

As seen here: https://www.kevinleary.net/wildcard-find-replace-sublime-text/ This should have been easier for me to understand, but regex still gives me headaches. For anyone wanting to run a search and replace in Sublime Text that contains wildcard values this can be used: [^<]+ For example, we could use the following search string to find a set of anchor links.  Full Article…

0

Clean a hacked WordPress website

Use the online RedLeg fileviewer to scan the website in question for malware, malicious redirects, malicious scripts and other bad stuff. Use the online deobfuscate javascript tool to deobfuscate javascript if scripts have been hidden. Some good practises to keep your website free from hacks: Update WordPress to the latest version Web-server hosting WordPress should  Full Article…

0

Internet Explorer – Version specific css rules

Amazing article published here originally: http://keithclark.co.uk/articles/moving-ie-specific-css-into-media-blocks/media-tests/ Exclusively targeting IE browsers Style rules defined in the following blocks will only be applied in IE, other browsers will ignore them. Rule IE 6 IE 7 IE 8 IE 9 IE 10 @media screen\0 {…} No No Yes Yes Yes @media screen\9 {…} Yes Yes No No No @media  Full Article…

0

Fix grey google maps

I found this issue with the Manutec store finder. This css fixed the issue returning maps back to their normal display.

0