Some times on website we get error code and we do not know what does it mean. Here I write array of codes with explanation:
This is addon for whmcs. This addon displays user profile in chat window.
Information you will see in chat window:
- Client name, last name, credits, email, company name.
- Unpaid client invoices
- Client products (ex. domains, hosting)
- Copy files to your whmcs system files (modules/addons)
- Go to whmcs admin panel, and go to Setup->Addon Modules.
- Find livehelper addon and activate it.
- Click configure button and enable widget on you whmcs system. Change settings by your own wishes. (you do not need to add any additional code to whmcs)
WordPress comes with built-in default RSS feeds. You can tweak the default feeds by adding custom content to your RSS Feeds, or even adding post thumbnail to your RSS Feeds. The default RSS and Atom feeds are enough for most users, but you may wish to create a custom RSS feed for delivering specific type of content. In this article, we will show you how to create custom RSS feeds in WordPress.
Here’s a useful PHP function to return the first paragraph from a HTML text string. It involves finding the character position of the first closing “p” tag from the first paragraph.
Add the following function somewhere in you PHP.
Today I will show simple, but simetimes very usefull example, how to remove empty paragrapth from your text.
<?php $html = "abc<p></p><p>dd</p><b>non-empty</b>"; $pattern = "/<p[^>]*><\\/p[^>]*>/"; //$pattern = "/<[^\/>]*>([\s]?)*<\/[^>]*>/"; use this pattern to remove any empty tag echo preg_replace($pattern, '', $html); // output //abc<p>dd</p><b>non-empty</b> ?>
Very simple 🙂
Some time we need to style select box. Here I will show you simple example how to do this. For example we have simple select box html:
I recently had a hard drive go bad on me which actually turned out to be a hard drive going bad. There was definitely something goofy going on with access to the drive. I keep daily backups but a perfect backup of a corrupted source is no good. My most important files are my digital photos, mostly JPG images. I did some visual spot checking but once I hit the 1500 photos I looked for a better alternative. Here’s what I came up with. (This works on Linux. You’ll have to alter your process on Windows and Macs but the principles are the same.)
Once an image has been loaded in any way into the browser, it will be in the browser cache and will load much faster the next time it is used whether that use is in the current page or in any other page as long as the image is used before it expires from the browser cache.