I use a lot of redirecting, a result of site evolution over time – moving from one CMS to another, having multiple languages on my
Read moreRemove video suggestions + movie title from embedded YouTube video / playlist
Apparently YouTube embed code has optional parameters that allow you to hide the suggested videos that pop while pausing or at the end of the
Read moreForcing lowercase on one character inside an uppercase conversion title in wordpress
We have hundreds of posts on our company blog and our theme converts all the titles to uppercase letters. Lately we had one post the
Read moreDealing with a WordPress code injection attack to all js files ‘_0xaae8’
During the last week we were attacked twice. The symptom – our site redirects to advertisements. The tricky part is that after the first redirection
Read moreVisual Studio Code (vs.code) PHP debugging
I just wasted around 7 hours of my life on this thing… life sucks. All I wanted was to have a debugger working for me
Read moreForm submit in wordpress loads a 404 page
I created a custom form on a contact page without using any plugins. After finishing with the design I tested my form and for some
Read moreRefreshing the database on a development environment
If you have a live site which is constantly updated and a local environment once in a while an update to the local database is
Read moreGoogle chrome developer tools – searching in all sources (local sources)
In order to search in all local sources (html,js) open the developers tools (F12), press Ctrl+Shift+F and search for whatever you need. Note that there
Read moreForcing CSS / Javascript refresh – avoiding caching
When including the CSS or JavaScript files add a parameter to the end of the file:
1 |
<link rel="stylesheet" type="text/css" href="style.css?version=4122005" /> |
If there’s a need to force refresh constantly
Read moreCreating and deleting form fields dynamically
I needed a form that allows the user to add and remove products with quantities as he wishes. The form had one row with a
Read morePHP variable names with integer increments
In a loop I needed to create / lookup variables that end with a numeric increment. What I found was I can use the following:
Read moreTagging as spam if phone field has characters in it
1 2 3 4 5 |
// This is for spam attacks that have random chars in the phone field $lwphone=strtolower($in_phone); if (strpbrk($lwphone,'abcdefghijklmnopqrstuvwxyz') !== false) { $spam='1'; } |
Removing blank lines in Dreamweaver
1. Open the file in Dreamweaver 2. Click CTRL + F, or go to EDIT > FIND AND REPLACE 3. Select “Current document” in “Find
Read moreScaling logo image or any image for mobile display
Do not specify image height and width. Add to image: Style=”max-width: 100%; height: auto;” That’s it
Read moreChecking if a function already exists
Declaring the same function twice will trigger an error message and stop the script. If there is an include with a function but it’s not
Read moreOverlays on top of flash objects – overlapping flash
If we have a pop-up (or more accurate an overlay) on a page (a chat window, survey etc.) and the page has flash the flash
Read moreRewriting 404 pages to a file with a 200 ok header
Using the htaccess directive: ErrorDocument /filename.php sends automatically a 404 header. If by any reason, which might mainly be for clean url (pretty url) handling, you
Read morecannot delete file – cannot read from the source file or disk
Had a big problem deleting files that emule created, tried check-disk tried safe mode, nothing helped… until I found this article: http://blog.dotsmart.net/2008/06/12/solved-cannot-read-from-the-source-file-or-disk/ Briefly explaining
Read moreFlash ads require double click to open
Recentely, Microsoft released an update for Internet Explorer that changes the way the browser displays and runs flash movies, java applets and ActiveX controls. Because of security
Read moreBlank Space in HTML
To add spaces at the beginning or end of a text line in HTML, you have to put “ ” instead of just pressing the spacebar.
Read moreSpyware virus and popups removal resources
Popups Well, since SP2 for windows was introduced it managed to avoid many of the annoying popup windows that sites spring. IE7 will manage this
Read moreGetting rid of the space under an image in a table cell layout
If you’re trying to put an image in a table cell, and you want the image to fill the entire cell area vertically, you’ll notice
Read moreUninstalling Microsoft’s “Genuine advantage” update
Unregister LegitCheckControl by opening the command line (start -> run -> type “cmd” and press the enter key). Type “regsvr32 /u LegitCheckControl” and press enter. Open Windows explorer
Read moreCategories on your blog at WordPress.com return “404 not found”?
Changing category names on your blog at WordPress.com sometimes causes the categories to stop functioning and pressing the category link brings up the “404 page not
Read moreForms and the terrible ESC key
Have you ever experienced the horrifying feeling when somehow, after completing a form on a website for a long time, your content magically disappears? Well,
Read moreRestoring deleted files on mobile hard drives
Here is how to restore deleted files on your mobile storage devices such as mobile hard drives or disk-on-key devices: Your operating system uses a part of the storage space
Read moreWordPress 2.0 post name and page title
Page titles (the text that appears in your browser’s top window bar) are a very important element in how search engines determine your site’s evaluation
Read moreConverting Microsoft Access database tables in local encoding into UTF-8 encoding
Converting your site’s encoding from legacy/local encoding into “UTF-8” may result in the data retrieved from your database to appear incorrectly. It may appear as
Read moreEnabling extensions/themes installation in FireFox 1.5
In case you are experiencing a problem installing Firefox extensions on your upgraded Firefox 1.5 version, here is the solution: Firefox version 1.0 had an
Read more