How to call Tag’s inside Magento CMS Page?

Just write below type :

{{block type=”tag/popular” template=”tag/popular.phtml”}}

How to call Magento images and Scripts in inside CMS Page?

This is the path of  “{{skin url=” for magento root directory.
1. Example for Images Load :
{{skin url=’images/welcome.jpg’}}

2. Example for Scripts Load :
{{skin url=’js/onLoad.js’}}

3. Example for Direct Scripts Load :
<script type=”text/javascript”>// <![CDATA[
document.write(‘<center><iframe width=”190″ height=”172″ src=”http://www.youtube.com” frameborder=”0″ allowfullscreen></iframe></center>’);
// ]]></script>

How to write first php code?

This is very easy. Just write below code in your php file.

<?php

echo “Welcome New Php Reader”;

?>

Then refersh your server or localhost. There showing  Welcome New Php Reader.

How to solve Warning: mail() has been disabled for security reasons?

You go and run phpinfo(), in your server.

There check  “disable_functions“. That place the server side disabled the “mail“.
You have permission to write php.ini, You enable the “mail“.
If you have no permission, inform to server guys for this.

Then check. Basically this is the problem. Other things we check later.

Welcome to all peaceful life.

How to Create Php info Page?

Hi, its very easy to create.
1. Just put below code in php file inside

<?php
echo phpinfo();
?>

2. Save file phpinfo.php
3. Upload your server or localhost
4. Run yourdomain/phpinfo.php
5. It’s show your “php info” results.

Allways happy. 🙂

How to view All Categories only in Home from Magento?

<?php $_maincategorylisting=$this->getCurrentCategory()?>
<?php $_categories=$this->getCurrentChildCategories()?>
<!– h2><?php //echo $this->__(‘Browse Products’) ?> </h2 –>
<div>
<ul>
<? foreach ($_categories as $_category):?>
<? if($_category->getIsActive()): ?>
<?php $cur_category=Mage::getModel(‘catalog/category’)->load($_category->getId()); ?>
<?php $layer = Mage::getSingleton(‘catalog/layer’); ?>
<?php $layer->setCurrentCategory($cur_category);
//$this->getCurrentCategory()->getImageUrl()
?>
<? if($_imageUrl=$this->getCurrentCategory()->getThumbnailUrl()):?>
<li> <a href=”<?php echo $this->getCategoryUrl($_category) ?>” title=”<?php echo $this->htmlEscape($_category->getName()) ?>”>
<img src=”<?php echo $_imageUrl ?>” width=”auto” alt=”<?php echo $this->htmlEscape($_category->getName()) ?>” />
</a>
<a href=”<?php echo $this->getCategoryUrl($_category) ?>” title=”<?php echo $this->htmlEscape($_category->getName()) ?>”>
<?php echo $this->htmlEscape($_category->getName()) ?>
</a>
<? if($_description=$this->getCurrentCategory()->getDescription()):?>
<p>
<?php echo $_description ?></p></li>
<?php endif; ?>
<? endif; ?>
<? endif; ?>
<?php endforeach; ?>
<div></div>
</ul>
<div></div>
</div>
<?php $layer->setCurrentCategory($_maincategorylisting); ?>

Just Put your home page or Any Static Page this below Line only :

{{block type=”catalog/navigation” name=”catalog.categories” alias=”all_categories_homepage” template=”catalog/navigation/all_category_view.phtml”}}

Welcome to our other site : www.srinesiga.com

How to disable newsletter modules in Magento?

You go Magento Admin Section.

1. Then click  System.
2. Go to Configuration
3. Click “Advanced Tab”
4. There Which Module You need to Hide
5. You can do it there. Now we can Changed the Mage_Newsletter “Enable” to “Disable”.

How to Create New Banner Position in Interspire?

1. Go to ->/httpdocs/language/en/admin/banners.ini

Add this code :
BannerTopOfPage = “Top of Page”
TopOfHomePage = “Top of Home Page”

2.  Go to -> /httpdocs/admin/includes/classes/class.banners.php
a.) Find this -> “if ($banner['location'] == "top") {

when you find this line there you can add below type:

if ($banner[‘location’] == “homeTopBanner”) {
$GLOBALS[‘IsLocationHomeTopBanner’] = “selected=”selected””;
}
else if ($banner[‘location’] == “top”) {
$GLOBALS[‘IsLocationTop’] = “selected=”selected””;
}
else {
$GLOBALS[‘IsLocationBottom’] = “selected=”selected””;
}

b.) Find this ->”if ($banner['location'] == "top") {"

when you find this line there you can add below type:

if ($banner[‘location’] == “homeTopBanner”) {
$GLOBALS[‘Location’] .= sprintf(” (%s)”, GetLang(‘BannerTopOfHomePage’));
}
else if ($banner[‘location’] == “top”) {
$GLOBALS[‘Location’] .= sprintf(” (%s)”, GetLang(‘BannerTopOfPage’));
}
else {
$GLOBALS[‘Location’] .= sprintf(” (%s)”, GetLang(‘BannerBottomOfPage’));
}

3. Go to -> “/httpdocs/includes/classes/class.banner.php”

a.) Find this ->”if($banner[‘location’] == “top” && !isset($GLOBALS[‘Banners’][‘top’])) {”

when you find this line there you can add below type:

if($banner[‘location’] == “homeTopBanner” && !isset($GLOBALS[‘Banners’][‘homeTopBanner’])) {
$GLOBALS[‘Banners’][‘homeTopBanner’] = $banner;
}
else if($banner[‘location’] == “top” && !isset($GLOBALS[‘Banners’][‘top’])) {
$GLOBALS[‘Banners’][‘top’] = $banner;
}
else if($banner[‘location’] == “bottom” && !isset($GLOBALS[‘Banners’][‘bottom’])) {
$GLOBALS[‘Banners’][‘bottom’] = $banner;
}

b.) Find this -> “if($banner['location'] == "top" && !isset($GLOBALS['Banners'][$banner['catorbrandid']]['top'])) {"

when you find this line there you can add below type:

if($banner[‘location’] == “homeTopBanner” && !isset($GLOBALS[‘Banners’][$banner[‘catorbrandid’]][‘homeTopBanner’])) {
$GLOBALS[‘Banners’][$banner[‘catorbrandid’]][‘homeTopBanner’] = $banner;
}
else if($banner[‘location’] == “top” && !isset($GLOBALS[‘Banners’][$banner[‘catorbrandid’]][‘top’])) {
$GLOBALS[‘Banners’][$banner[‘catorbrandid’]][‘top’] = $banner;
}
else if($banner[‘location’] == “bottom” && !isset($GLOBALS[‘Banners’][$banner[‘catorbrandid’]][‘bottom’])) {
$GLOBALS[‘Banners’][$banner[‘catorbrandid’]][‘bottom’] = $banner;
}

4. Go to ->”/httpdocs/lib/templates”

a.) Find this -> "if(isset($GLOBALS["Banners"]["top"])) {"

when you find this line there you can add below type:

// Is there a Header top template?
if(isset($GLOBALS[“Banners”][“homeTopBanner”])) {
// Replace it out
$tplData = str_replace(“%%Banner.homeTopBanner%%”, $GLOBALS[“Banners”][“homeTopBanner”][“content”], $tplData);
}
else {
// Replace it with nothing
$tplData = str_replace(“%%Banner.homeTopBanner%%”, “”, $tplData);
}

b.) Find this ->” if(isset($GLOBALS["Banners"][$id])) {"

Add this below lines :
// Is there a Header top template?
if(isset($GLOBALS[“Banners”][$id][“homeTopBanner”])) {
// Replace it out
$tplData = str_replace(“%%Banner.homeTopBanner%%”, $GLOBALS[“Banners”][$id][“homeTopBanner”][“content”], $tplData);
}
else {
// Replace it with nothing
$tplData = str_replace(“%%Banner.homeTopBanner%%”, “”, $tplData);
}

c.) Find final add this line in this page any where–> $tplData = str_replace(“%%Banner.TopBanner%%”, “”, $tplData);

When you find this line you can add the same type, that line below or above:

$tplData = str_replace(“%%Banner.homeTopBanner%%”, “”, $tplData);

5. Go to this page -> /httpdocs/admin/templates/banner.form.tpl
Find this line for form view : <option value=”top” %%GLOBAL_IsLocationTop%%>%%LNG_TopOfPage%%</option>
Add you type code : <option value=”homeTopBanner” %%GLOBAL_IsLocationHomeTopBanner%%>%%LNG_TopOfHomePage%%</option>

6. Where you want add this final line in your front template file :
%%Banner.homeTopBanner%%

7. And one more changes is important :
Go to mysql query, Add below query for your Banner Position Stored Database Purpose :
"ALTER TABLE `isc_banners` CHANGE `location` `location` ENUM( ‘top’, ‘bottom’, ‘homeTopBanner’, ‘rightBanner1’, ‘rightBanner2’, ‘rightBanner3’, ‘rightBanner4’, ‘leftBanner1’, ‘leftBanner2’, ‘leftBanner3’, ‘leftBanner4’ ) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT ‘top’ "
(OR)
Go to Phpmyadmin – Select table “isc_banners” and Edit the filed location.

Now the new banner position is added.

More reference in some other option advice you can use this url also :
http://www.shoppingcartcommunity.com/forum/viewtopic.php?f=12&t=200
AND
https://www.interspire.com/support/kb/questions/916/How+to+add+a+flash+file+or+movie+to+my+store%3F

thanks,
J.
http://www.srinesiga.com

How to refersh css file in drupal?

Hi,

Sometime the css not view correctly in drupal.

That time you need to change the Performance settings.

1. You Login to Admin.
2. Click  to Admin OR Administer
3. Click Site Configuration OR Settings
4. Click Performance

now you change the Css Cache Permission Disabled.

And Clear already cahed information.

then its working fine.

How to get Like Box in Facebook?

Hi its is very easy to find.

Anybody want Likebox image view in your site. You go belwo url :

http://developers.facebook.com/docs/reference/plugins/like-box/

1. You change facebook url  address (http://www.facebook.com/alltechdesigns)

2. And change your size.

3. change your facebook like view.

4. Finally click your Get Code.

that’s all you can get your facebook likebox script in your side.

© 2020 Spirituality