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

Five Element in Acupunture

http://www.fiveelementtraining.com/article_1.html

http://www.5element.com.au/

http://spectrum.diabetesjournals.org/content/14/3/154.full

Acupunture Courses

I found below link for Acupuncture Courses, If anybody want clarify this and joint yourself.

http://www.acupunctureonline.org/acupuncture-courses.php#

Which Point Using in Acupuncture for Diabetes?

http://www.yinyanghouse.com/treatments/acupuncture_for_diabetes

http://www.acupunctureamerica.com/acupuncture_diabetes.html

http://www.pharmainfo.net/reviews/application-acupuncture-therapy-diabetes-mellitus-patients

http://tcm.health-info.org/Acupunture/treatment/Xiao-Ke.htm

http://www.free-symptoms-of-diabetes-alert.com/type2diabetes.html

http://www.amcollege.edu/diabeticacupuncture.htm

http://www.itmonline.org/journal/arts/diabetes.htm

http://peacefulpoints.com/acupuncture_and_diabetes.html

http://www.diabetter.info/diabetes/54/acupuncture-treatment-in-diabetes-reduce-blood-sugar/

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.

How to create page excerpt in WP?

Add Below line for functions.php inside :

add_post_type_support('page', 'excerpt');

after added above code, the excerpt will show you.

How to solve Magento Internal server error?

Hi,

Just give permission for index.php –> 755.

this is working for me. I search this issue from google via.

enjoy all. 🙂

How to Remove Cart Sidebar in Magento Sidebar?

Take this below content, This is useful for all.

Remove sidebar only (leave functionality available)
ADMIN: System → Configuration → Checkout tab → Shopping Cart Sidebar panel. Set “Display Shopping Cart Sidebar” to “No.”

I find this below url via:
http://www.magentocommerce.com/knowledge-base/entry/turning-on-off-magentos-content-blocks/

How to Image Rotating in Javascript?

Hi Below I mention full code, Who want this take and enjoy.

Insert the html or php file inside below body tag:

<!– Slider Start –>
<script type=”text/javascript”>// <![CDATA[
document.write(‘<style  type=”text/css” _mce_bogus=”1″> #rotator li { display: none; } </style>’);
// ]]></script>
<script src=”http://ajax.googleapis.com/ajax/libs/jquery/1.3.1/jquery.min.js” type=”text/javascript”></script>
<script src=”your_path/js/rotator.js” type=”text/javascript”></script>
<div id=”rotator_wrapper”>
<ul id=”rotator”>
<!– This type for Magento : “{{skin url=’images/banner/road_cycling_img.jpg’}}” –>
<li id=”photo_1″><img src=”{{skin url=’images/banner/road_cycling_img.jpg’}}” alt=”Photo” /> </li>
<li id=”photo_2″><img src=”your_path/images/banner/road_cycling_img1.jpg” alt=”Photo” /> </li>
<li id=”photo_3″><img src=”{{skin url=’images/banner/road_cycling_img.jpg’}}” alt=”Photo” /> </li>
<li id=”photo_4″><img src=”your_path/images/banner/road_cycling_img1.jpg” alt=”Photo” /> </li>
</ul>
<ul id=”rotator_controls”>
<li><a href=”#photo_1″>1</a> </li>
<li><a href=”#photo_2″>2</a> </li>
<li><a href=”#photo_3″>3</a> </li>
<li><a href=”#photo_4″>4</a> </li>
</ul>
<div>&nbsp;</div>
<div id=”rotator_play_pause_div”><a id=”rotator_play_pause” href=”#”>PAUSE</a></div>
</div>
<!– Slider End –>

And Paste your CSS in your Stylesheet file inside :

/*** Rotator Image Start ***/
/*********** — **********/

/* `Rotator >> `Wrapper
—————————————————————————————————-*/

#rotator_wrapper {
overflow: hidden;
position: relative;
width: 579px;
height: 255px;
margin:0 auto 10px auto;
z-index:100;
}

#rotator_wrapper li {
list-style: none;
}

/* `Rotator
—————————————————————————————————-*/

#rotator,
#rotator li,
#rotator img {
width: 579px;
height: 255px;
}

#rotator {
background: #fff;
position: relative;
}

#rotator li {
position: absolute;
top: 0;
left: 0;
}

/* `Rotator >> `Controls
—————————————————————————————————-*/

#rotator_controls {
overflow: hidden;
position: absolute;
bottom: 10px;
right: 80px;
padding:5px;
}

#rotator_controls li {
display: inline;
float: left;
margin: 0 0 0 5px;
width: 30px;

}

#rotator_play_pause,
#rotator_controls a {
background:#575757;
border: 1px solid #3C3C3C;
color: #fff;
display: block;
font: bold 11px Verdana, sans-serif;
/*padding: 1px 10px 4px;*/
padding:7px;
text-align: center;
text-decoration: none;
}
#rotator_play_pause{
width:54px;
/*padding:1px 0 4px 0;*/
padding:7px 5px;
text-align:center;
}
#rotator_controls a.current {
color: #fff;
text-decoration: none;
background:#1676DF;
border: 1px solid #3C3C3C;
}

#rotator_play_pause:hover,
#rotator_controls a:hover {
background: #1676DF;
border: 1px solid #3C3C3C;
color: #fff;
}

#rotator_play_pause_div {
position: absolute;
bottom: 8px;
right: 10px;
/*padding: 5px 4px 5px 4px;*/
padding:7px 3px;
display: block;
}

/* For IE6. */
* html #rotator_play_pause,
* html #rotator_controls a {
height: 1%;
}

/*********** — **********/
/*** Rotator Image End ***/

And Paste Your Javascript File Inside this :

// Initialize.
var $j = jQuery.noConflict();
function init_rotator() {

// Does element exist?
if (!$j(‘#rotator’).length) {

// If not, exit.
return;
}

// Rotate speed.
var speed = 2000;

// Pause setting.
var pause = false;

// Rotator function.
function rotate(element) {

// Stop, if user has interacted.
if (pause) {
return;
}

// Either the next /first <li>.
var $jnext_li = $j(element).next(‘li’).length ? $j(element).next(‘li’) : $j(‘#rotator li:first’);

// Either next / first control link.
var $jnext_a = $j(‘#rotator_controls a.current’).parent(‘li’).next(‘li’).length ? $j(‘#rotator_controls a.current’).parent(‘li’).next(‘li’).find(‘a’) : $j(‘#rotator_controls a:first’);

// Animate.
$j(‘#rotator_controls a.current’).removeClass(‘current’);
$jnext_a.addClass(‘current’);

// Continue.
function doIt() {
rotate($jnext_li);
}

// Fade out <li>.
$j(element).fadeOut(speed);

// Show next <li>.
$j($jnext_li).fadeIn(speed, function() {

// Slight delay.
setTimeout(doIt, speed);
});
}

// Add click listeners for controls.
$j(‘#rotator_controls a’).click(function() {

// Change button text.
$j(‘#rotator_play_pause’).html(‘PLAY’);

// Show target, hide other <li>.
$j($j(this).attr(‘href’)).show().siblings(‘li’).hide();

// Add and remove from all others.
$j(this).addClass(‘current’).parent(‘li’).siblings(‘li’).find(‘a’).removeClass(‘current’);;

// Pause animation.
pause = true;

// Nofollow.
this.blur();
return false;
});

// Pause / Play the animation.
$j(‘#rotator_play_pause’).click(function() {

// What does the button say?
if ($j(this).html() === ‘PAUSE’) {

// Stop rotation.
pause = true;

// Change the text.
$j(this).html(‘PLAY’);

} else {

// Remove.
pause = false;

// Start the rotation.
rotate(‘#rotator li:visible:first’);

// Change the text.
$j(this).html(‘PAUSE’);
}

this.blur();
return false;
});

// Hide all but first <li>.
$j(‘#rotator li:first’).show();

// Wait for page load.
$j(window).load(function() {

// Begin rotation.
rotate($j(‘#rotator li:visible:first’));
});
}

// Kick things off.
$j(document).ready(function() {
init_rotator();
});

that is all now, you are ready to start your rotating image work.

welcome all :).

© 2020 Spirituality