Thursday, 26 November 2015

FIX - Wordpress Title not showing up in the home page.

If you have WordPress wp_title() returning empty/blank content on index page you can try to modify your theme with the following code for the title:

    <title><?php is_front_page() ? bloginfo('name') : wp_title(''); ?></title>

It will use the blog name as title for the front page.

Tuesday, 24 November 2015

How to disable mouse right click. Disable image drag and save. Jquery

Jquery disable mouse right click. Disable image drag and save.

<script src="" type="text/javascript"></script>

<script type="text/javascript">
$(document).ready(function(){$('img').on('contextmenu',function(e){return false;});$('img').on('dragstart', function(e){return false;});});

FIX Opencart - Warning: vsprintf(): Too few arguments in /admin/controller/dashboard/activity.php on line 19

Warning: vsprintf(): Too few arguments in /admin/controller/dashboard/activity.php on line 19

Backup before doing anything!

The problem can be probably missing values in the data of the  customer's activity or the table that is missing after an upgrade.

You can look in your table and find the problem in a serialized (before value or convert the values (happens when upgrading to in a json readable format.
If you just don't care about the activities data (it's not a big issue) you can truncate the table and accept all the new data.

TRUNCATE TABLE `oc_customer_activity`;

In the worst case you can recreate the customer_activity table
DROP TABLE IF EXISTS `oc_customer_activity`;
CREATE TABLE `oc_customer_activity` (
`activity_id` int(11) NOT NULL AUTO_INCREMENT,
`customer_id` int(11) NOT NULL,
`key` varchar(64) NOT NULL,
`data` text NOT NULL,
`ip` varchar(40) NOT NULL,
`date_added` datetime NOT NULL,
PRIMARY KEY (`activity_id`)

Friday, 13 November 2015

wordpress sitemile auctiontheme - XSS

The xss can be used almost anywhere


Wednesday, 11 November 2015

Windows 10 - Start button is not working, windows photo image viewer is crashing, cannot close applications from the taskbar.

I really don't know what happened but I got several problems with a fresh installation of windows 10:

  • Start button not working
  • windows photo image viewer crashing
  • cannot close applications from the taskbar
  • SFC /scannow - not working
  • ... and so on

Use explorer (or from the task manager or win button+R) to run cmd.exe (as administrator) from %windir%\system32 and then run "powershell.exe" otherwise run directly %windir%\winsxs\powershell.exe (as administrator).

Paste the following string in the powershell and wait

Get-AppXPackage -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}

I suppose that it should re-register the installed Apps from the xml manifests.


Wednesday, 4 November 2015

tp-link tl-wn723n - ic 8853a USB\VID_0BDA&PID_8179 Driver Download

USB\VID_0BDA&PID_8179 Driver Download
tp-link  tl-wn723n - ic 8853a USB\VID_0BDA&PID_8179 Driver Download

All the drivers that I've downloaded/tested from the official pages seem to not work.
After searching a little bit I've found that this driver, from medion, works without problem.

Twitter Delicious Facebook Digg Stumbleupon Favorites More