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 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

© 2020 Spirituality