Home Blog

AdSense

I can't believe that someone can make money out of AdSense

Google make money out of you. Say NO for google scams!

my example:

Page Impressions 1,376,594
Clicks 1,115
AU$152.67

$150 per 1100 clicks, too low because I know how much people pay for adwords.  How much google scam keep from adwords? 30%, 50% or 70%? 

 

 

Virtuemart Product Details not working

 if you have in URL something like php4?page=shop.product_details&flypage=flypage

 php4? -look like you run you php4 via cgi

fix:

cPanel -> PHP Configuration

 The ".php" file extension will be processed by PHP5  [update]

 

Comunity Builder problem with IE6

Sometimes CB don't show edit/display details in IE6

Comunity Bulder 1.2.1 Joomla 1.5.14

modify: components/com_comprofiler/plugin/templates/default/template.css

in line 151 delete next line:

.cbPageOuter, .cbProfile, .cbEditProfile, .cbUsersList     {    margin: 0px;    border-width: 0px;    padding: 0px;    float: left;    width:99.6%;    }

 

Who to show username in Joomla

show username in Joomla 1.5

<?php

$user =& JFactory::getUser();
echo $user->username;

?>

 

replace backup tapes with remote backup services

IT Managers intend to replace backup tapes with remote backup services

Half of UK IT Managers intend to switch from backup tapes to online backup within the next three years, according to a recent research. The research found that 22% of businesses were already using some kind of remote backup service, with a further 28% predicting they will change from traditional tapes over the next three years. The two biggest reasons for switching to an online backup solution were reduced costs 19% and increased security 14%.

Read more...
 

virtuemart shoping cart to PDF file

Joomla 1.5.x VM 1.1.x

modify /components/com_virtuemart/themes/default/templates/pages/shop.cart.tpl.php

add this link:

<a target="_blank" href="/index2.php?option=com_virtuemart&page=shop.cart&format=pdf">to PDF</a><br />

 

virtuemart Itemid problems

VM 1.1.3  Joomla 1.5.x

VM show the same Itemid in product view for all products

it's how the system work :)

you can set  your item ID for all products

administrator/components/com_virtuemart/classes/ps_session.php

        if( !defined( '_VM_IS_BACKEND' )) {
        $Itemid = "&Itemid=".$this->getShopItemid();
        }
        else {
            $Itemid = '';
        }

 update   $Itemid = "&Itemid=".$this->getShopItemid();

 to:    $Itemid = "&Itemid=1"; [input your Itemid]

 

 

How to chage default Page Navigation at the bottom

Joomla 1.5

How to modify:
« Start Prev 1 2 Next End »
Display #
Results ****

Firsly, for pagebreak navigation go to plugins in your admin.

than look to modify next files in /plugins/content/

pagebreak.php
pagenavigation.php

than look in <your template folder>/html/pagination.php to get something like "Prev 1 2 Next "

 

How to limit display product number in Virtue Mart

VirtueMart 1.1.3 joomla 1.5.10

It's how i limited display number of products:

index.php?option=com_virtuemart&page=shop.browse&category_id=9&limit=2

 &limit=2    == show only 2 products per dispay

files to modify navigation:

/components/com_virtuemart/themes/default/templates/browse/includes/browse_pagenav.tpl.php
/administrator/components/com_virtuemart/classes/pageNavigation.class.php

 also look to:

/administrator/components/com_virtuemart/html/shop.browse.php

 

jTabs

Joomla 1.5 jQuery Tabs module,
jTabs allow to created  jQuery Tabs and Accordion via joomla modules and free to insert HTML code for tabs.
Look for more information on query
To modify styles check http://jqueryui.com/themeroller/

v. 1.0.0 Beta 

          <<<D E M O>>>

      <<<Download jTab>>>

 

How to find joomla 1.5 root url

echo JURI::root();

for templates:

<link rel="stylesheet" href="/<?php echo $tmpTools->baseurl(); ?>templates/system/css/general.css" type="text/css" />
<link rel="stylesheet" href="/<?php echo $tmpTools->templateurl(); ?>/css/template.css" type="text/css" /> 

 

How to check page in joomla 1.5

 it's easy to use any get parameters;

$id = $_GET['view'] ;       //get
if ($id == "frontpage"){    //check if front page

}else{} 

other way it we can do check by page title

$mydoc =& JFactory::getDocument();
$mytitle = $mydoc->getTitle();         //get page title
if ( $mytitle == "Home" ){             //check page title
}else{} 

 

view RSS in ASP.NET

Code example to view RSS in ASP.NET

VB:
    <%@ Page Language=”VB” Debug=”true” ContentType=”text/html” %>
    <%@ Import Namespace=”System.Xml” %>
    <%Dim xmlDoc As XmlDocument = New XmlDocument() xmlDoc.Load(”http://abc.net.au/news/syndicate/sciencerss.xml”)
    rssFeed.Document = xmlDoc
    rssFeed.TransformSource = “rss.xsl” %>

C#
    <%@ Page Language=”C#” Debug=”true” %>
    <%@ Import Namespace=”System.Xml” %>
    <% XmlDocument xmlDoc = new XmlDocument(); xmlDoc.Load(”http://abc.net.au/news/syndicate/sciencerss.xml”);
    rssFeed.Document = xmlDoc;
    rssFeed.TransformSource = “rss.xsl”; %>

Read more...