<?xml version="1.0" encoding="UTF-8"?><!-- generator="WordPress/2.9.2" -->
<rss version="0.92">
<channel>
	<title>Fragov Blog</title>
	<link>http://fragov.com/blog</link>
	<description>About my life, programming, freelancing</description>
	<lastBuildDate>Mon, 15 Mar 2010 20:32:12 +0000</lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	
	<item>
		<title>How to hide/show flash and embed using javascript</title>
		<description><![CDATA[Some times I need to hide all flash and embeded objects on page (for example to make them not overlay pop-ups etc.), it can be done using next simple javascript code:

function showFlash(){
var flashObjects = document.getElementsByTagName("object");
for (i = 0; i &#60; flashObjects.length; i++) {
flashObjects[i].style.visibility = "visible";
}

var flashEmbeds = document.getElementsByTagName("embed");
for (i = 0; i &#60; flashEmbeds.length; i++) [...]]]></description>
		<link>http://fragov.com/blog/2010/03/15/how-to-hide-show-flash-and-embed-using-javascript/</link>
			</item>
	<item>
		<title>Show/hide elements on page using javascript</title>
		<description><![CDATA[In between your &#60;head&#62; tags put this java script in (you may put it between &#60;body&#62; tags too):
&#60;script language=javascript type='text/javascript'&#62;
function hideDiv() {
if (document.getElementById) { // DOM3 = IE5, NS6
document.getElementById('hideShow').style.visibility = 'hidden';
}
else {
if (document.layers) { // Netscape 4
document.hideShow.visibility = 'hidden';
}
else { // IE 4
document.all.hideShow.style.visibility = 'hidden';
}
}
}

function showDiv() {
if (document.getElementById) { // DOM3 = IE5, NS6
document.getElementById('hideShow').style.visibility = [...]]]></description>
		<link>http://fragov.com/blog/2010/03/15/75/</link>
			</item>
	<item>
		<title>How to add class &#8220;last&#8221; to last menu item (li) in Joomla 1.5 (mod_mainmenu)</title>
		<description><![CDATA[Create new file default.php and place it in /[your_template]/html/mod_mainmenu/, add next content to it:

&#60;?php

// no direct access
defined('_JEXEC') or die('Restricted access');

if ( ! defined('modMainMenuXMLCallbackDefined') )
{

//class to add class "last" to last li
function addLastClass($result) {
$result = preg_replace("/(.*)&#60;\/li&#62;&#60;li class=\"item(\d*)\"&#62;(.*)&#60;\/li&#62;&#60;\/ul&#62;(.*).*/is", '$1&#60;/li&#62;&#60;li&#62;$3&#60;/li&#62;&#60;/ul&#62;$4', $result);

return $result;
}

function modMainMenuXMLCallback(&#38;$node, $args)
{
$user    = &#38;JFactory::getUser();
$menu    = &#38;JSite::getMenu();
$active    = $menu-&#62;getActive();
$path    = isset($active) ? array_reverse($active-&#62;tree) : null;

if (($args['end']) &#38;&#38; [...]]]></description>
		<link>http://fragov.com/blog/2010/03/14/how-to-add-class-last-to-last-menu-item-li-in-joomla-1-5-mod_mainmenu/</link>
			</item>
	<item>
		<title>Unable to log into Front end and Administrator Panel of Joomla with correct login and password</title>
		<description><![CDATA[Today, I&#8217;ve fixed another problem with Joomla. My client was unable to login to Joomla Administrator Panel with his correct login and password (and Super Administrator rights). Solution of this was very easy.
You should open phpMyAdmin (or any other DB manager) find table jos_plugins, find record for plugin &#8220;User &#8211; Joomla!&#8221; and set &#8220;published&#8221; field [...]]]></description>
		<link>http://fragov.com/blog/2009/12/05/unable-to-log-into-front-end-and-administrator-panel-of-joomla-with-correct-login-and-password/</link>
			</item>
	<item>
		<title>Replace standart Joomla MooTools with yours on front-end</title>
		<description><![CDATA[To keep upwards compatibility for your Joomla Core the following example shows a solution, by clearing the Header Buffer from the scripts Joomla is adding by itself. This is a template based modification, which does work with extensions loading their own Scripts or Stylesheets into the Header Buffer. And by that also transparent and not [...]]]></description>
		<link>http://fragov.com/blog/2009/10/21/replace-standart-joomla-mootools-with-yours-on-front-end/</link>
			</item>
	<item>
		<title>How to set products per page limit in VirtueMart</title>
		<description><![CDATA[Ofcourse you may change that setting in Joomla Configuration » List Length. But also it can be done in another custom way.
To change products per page limit in VirtueMart you should open for edit file: components/com_virtuemart/virtuemart.php
Edit:
$limit = intval( $mainframe-&#62;getUserStateFromRequest( "viewlistlimit", 'limit', $mosConfig_list_limit ) );
And change $mosConfig_list_limit to any number of products per page.
]]></description>
		<link>http://fragov.com/blog/2009/07/17/how-to-set-products-per-page-limit-in-virtuemart/</link>
			</item>
	<item>
		<title>Conditional comments for Internet Explorer</title>
		<description><![CDATA[Conditional comments only work in Explorer on Windows, and are thus excellently suited to give special instructions meant only for Explorer on Windows. They are supported from Explorer 5 onwards, and it is even possible to distinguish between 5.0, 5.5 and 6.0.
&#60;!--[if IE]&#62;
According to the conditional comment this is Internet Explorer&#60;br /&#62;
&#60;![endif]--&#62;
&#60;!--[if IE 5]&#62;
According to [...]]]></description>
		<link>http://fragov.com/blog/2009/07/17/conditional-comments-for-internet-explorer/</link>
			</item>
	<item>
		<title>Solution for Shipper List bug(error) in VirtueMart(Joomla) Admin Panel</title>
		<description><![CDATA[Guys from VirtueMart Development Team still didn&#8217;t fix next error:
Warning: Missing argument 2 for vmGet(), called in &#8230;/administrator/components/com_virtuemart/classes/ps_shipping.php on line 138 and defined in &#8230;/administrator/components/com_virtuemart/classes/request.class.php on line 26
Fix is next:
Go to: administrator/components/com_virtuemart/classes/ps_shipping.php
change the WRONG line 113:
($fields = array( 'shipping_carrier_name' =&#62; vmGet($d["shipping_carrier_name"]),)
with this line:
$fields = array( 'shipping_carrier_name' =&#62; vmGet($d, 'shipping_carrier_name'),
]]></description>
		<link>http://fragov.com/blog/2009/07/15/solution-for-shipper-list-bugerror-in-virtuemartjoomla-admin-panel/</link>
			</item>
	<item>
		<title>IE Error: cannot open the internet site, operation aborted</title>
		<description><![CDATA[It&#8217;s error arises then JavaScript trying to add elements in existing DOM-structure.
Check this example:
&#60;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"&#62;
&#60;html&#62;
&#60;head&#62;
&#60;title&#62;Internet Explorer: Operation Aborted. Sample error.&#60;/title&#62;
&#60;/head&#62;
&#60;body&#62;
&#60;table&#62;
&#60;script&#62;
document.body.appendChild(document.createElement('div'))
&#60;/script&#62;
&#60;/table&#62;
&#60;/body&#62;
&#60;/html&#62;
There are two ways to avoid this:

Run script in windows.onload function:
&#60;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"&#62;
 &#60;html&#62;
 &#60;head&#62;
   &#60;title&#62;Internet Explorer: Operation Aborted. Sample solution.&#60;/title&#62;
   &#60;/head&#62;    [...]]]></description>
		<link>http://fragov.com/blog/2009/06/24/ie-error-cannot-open-the-internet-site-operation-aborted/</link>
			</item>
	<item>
		<title>Notepad++ Settings and Zend Studio style (colors)</title>
		<description><![CDATA[I tried to make look of Notepad++ like Zend Studio 3-5 as close as possible.
Download
]]></description>
		<link>http://fragov.com/blog/2009/05/19/notepad-settings-and-zend-studio-style-colors/</link>
			</item>
</channel>
</rss>
