Satsuma Posted June 2, 2014 Share Posted June 2, 2014 (edited) hello,, i need some help here,, im making my online store using prestashop and i accidentally edit the home sliders text via control panel.. i forgot to read the licensed agreement,, can somebody activate my site again and bring back the text the lorem thing.. please.. thanks <?php /* * 2007-2014 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/afl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to [email protected] so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA <[email protected]> * @copyright 2007-2014 PrestaShop SA * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA */ /** * @since 1.5.0 * @version 1.3 (2012-03-14) */ if (!defined('_PS_VERSION_')) exit; include_once(_PS_MODULE_DIR_.'homeslider/HomeSlide.php'); class HomeSlider extends Module { private $_html = ''; public function __construct() { $this->name = 'homeslider'; $this->tab = 'front_office_features'; $this->version = '1.3.6'; $this->author = 'PrestaShop'; $this->need_instance = 0; $this->secure_key = Tools::encrypt($this->name); $this->bootstrap = true; parent::__construct(); $this->displayName = $this->l('Image slider for your homepage'); $this->description = $this->l('Adds an image slider to your homepage.'); $this->ps_versions_compliancy = array('min' => '1.6.0.4', 'max' => _PS_VERSION_); } /** * @see Module::install() */ public function install() { /* Adds Module */ if (parent::install() && $this->registerHook('displayHeader') && $this->registerHook('displayTopColumn') && $this->registerHook('actionShopDataDuplication') ) { /* Sets up configuration */ $res = Configuration::updateValue('HOMESLIDER_WIDTH', '779'); $res &= Configuration::updateValue('HOMESLIDER_SPEED', '500'); $res &= Configuration::updateValue('HOMESLIDER_PAUSE', '3000'); $res &= Configuration::updateValue('HOMESLIDER_LOOP', '1'); /* Creates tables */ $res &= $this->createTables(); /* Adds samples */ if ($res) $this->installSamples(); // Disable on mobiles and tablets $this->disableDevice(Context::DEVICE_MOBILE); return (bool)$res; } return false; } /** * Adds samples */ private function installSamples() { $languages = Language::getLanguages(false); for ($i = 1; $i <= 3; ++$i) { $slide = new HomeSlide(); $slide->position = $i; $slide->active = 1; foreach ($languages as $language) { $slide->title[$language['id_lang']] = 'Sample '.$i; $slide->description[$language['id_lang']] = '<h2>ZOEIYA'S<br />COLLECTIONS</h2> <p>Fashion Online Shop Pre-Ordered Items and Gadgets. Enjoy Shopping</p> <p><button class="btn btn-default" type="button">Shop now !</button></p>'; $slide->legend[$language['id_lang']] = 'sample-'.$i; $slide->url[$language['id_lang']] = 'http://www.prestashop.com/?utm_source=v16_homeslider'; $slide->image[$language['id_lang']] = 'sample-'.$i.'.jpg'; } and now i cant open my website please... help me,,it takes time to restore it again,, website is http://zoeiya.comlu.com Edited June 2, 2014 by Satsuma (see edit history) Link to comment Share on other sites More sharing options...
Dh42 Posted June 2, 2014 Share Posted June 2, 2014 You can copy the file you need from here, just copy the contents and replace it. https://github.com/PrestaShop/homeslider/tree/master 1 Link to comment Share on other sites More sharing options...
Satsuma Posted June 2, 2014 Author Share Posted June 2, 2014 can u give me the contents? bcoz i cant open the link u gaved to me Link to comment Share on other sites More sharing options...
Satsuma Posted June 2, 2014 Author Share Posted June 2, 2014 okay i already get the contents.. can u help me how to get rid of it? the lorem thing? in what way without going to control panel? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now