Jump to content

mymlondon

Members
  • Posts

    20
  • Joined

  • Last visited

Everything posted by mymlondon

  1. If you would kindly edit the OP and mark this as [sOLVED] that would be great. hi going to sound really silly again, but how?
  2. this is gna sound really silly ... but how sorry, iv done some coding but in regards to prestashop still a newbie
  3. dude how did you even remember? thank you anyway so if i could trouble for one last thing, I want to get the Permanent links block over to the right any thoughts?
  4. OMG!! I was looking for that for ages!!!!!!!!!!!! Thanks so much now the top line of the contact info is slightly lower aswell but Thaaaank you
  5. Hi Guys so i doing this site http://bathrooom.co.uk/ and in the footer the block contactsinfo is a few pixels lower then the other blocks. i have looked in the source the footer the tpls, and for the life of me cannot find the problem. can anyone help Thanks
  6. Yea decided to change theme, like you said some of that coding was just crap i found other lines in blocks like contact info with changes which were just unnecessary, anyway trying this one out Would have tried to finish but got a deadline. Thanks to all who gave their time to try and fix the problem really really appreciate it
  7. i tried that before no luck still anyone please??? sorry
  8. Hi vekia its from the theme directory, and i did modify it there, Thanks
  9. Hi Sharak Thanks for the reply and taking the time to check. this is the line in homefeatured.tpl <img class="featured_product_image" src="{$link->getImageLink($product.link_rewrite, $product.id_image, (isset($image_shape) && $image_shape == 'rect_img') ? 'rect_default' : 'home_default')}" alt="{$product.name|escape:html:'UTF-8'}" /> i tried changing the rect_default but it didnt make a difference, plus it seems home_default ( which is what is used in the admin panel) is in there heres the file {* * 2007-2012 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-2012 PrestaShop SA * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *} <!-- MODULE Home Featured Products --> <div id="featured-products_block_center" class="block products_block clearfix {(isset($image_shape) && $image_shape == 'rect_img') ? 'rect_img' : ' '}"> <h4>{l s='Featured products' mod='homefeatured'}</h4> {if isset($products) AND $products} <div class="grid-container"> {assign var='liHeight' value=250} {assign var='nbItemsPerLine' value=6} {assign var='nbLi' value=$products|@count} {math equation="nbLi/nbItemsPerLine" nbLi=$nbLi nbItemsPerLine=$nbItemsPerLine assign=nbLines} {math equation="nbLines*liHeight" nbLines=$nbLines|ceil liHeight=$liHeight assign=ulHeight} <ul class="grid"> {foreach from=$products item=product name=homeFeaturedProducts} {math equation="(total%perLine)" total=$smarty.foreach.homeFeaturedProducts.total perLine=$nbItemsPerLine assign=totModulo} {if $totModulo == 0}{assign var='totModulo' value=$nbItemsPerLine}{/if} <li class="ajax_block_product {if $smarty.foreach.homeFeaturedProducts.first}first_item{elseif $smarty.foreach.homeFeaturedProducts.last}last_item{else}item{/if}"> <div class="featured_product_image_wrapper group"> <a class="featured_product_image_link" href="{$product.link}" title="{$product.name|escape:html:'UTF-8'}"> {if isset($product.new) && $product.new == 1}<span class="new">{l s='New' mod='homefeatured'}</span>{/if} <img class="featured_product_image" src="{$link->getImageLink($product.link_rewrite, $product.id_image, (isset($image_shape) && $image_shape == 'rect_img') ? 'home_default' : 'home_default')}" alt="{$product.name|escape:html:'UTF-8'}" /> </a> </div> <div class="featured_product_details"> <h5><a href="{$product.link|escape:'html'}" title="{$product.name|escape:'htmlall':'UTF-8'}">{$product.name|truncate:28:'...'|escape:'htmlall':'UTF-8'}</a></h5> {if $product.show_price AND !isset($restricted_country_mode) AND !$PS_CATALOG_MODE} <div class="price_container"> <span class="price"> {if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if} </span> {if isset($product.reduction) && $product.reduction != 0} <span class="old-price">{convertPrice price=$product.price_without_reduction}</span> {/if} {if isset($product.on_sale) && $product.on_sale && isset($product.show_price) && $product.show_price && !$PS_CATALOG_MODE} <span class="on_sale">{l s='On sale!'}</span> {elseif isset($product.reduction) && $product.reduction && isset($product.show_price) && $product.show_price && !$PS_CATALOG_MODE} <span class="discount">{l s='On sale!'}</span> {/if} </div> {/if} </div> </li> {/foreach} </ul> </div> {else} <p>{l s='No featured products' mod='homefeatured'}</p> {/if} </div> <!-- /MODULE Home Featured Products -->
  10. Hi guys i have a problem with my website. http://bathrooom.co.uk/ the images for the products have disappeared. I have tried, regenerating the pics, i have tried manually uploading new ones. They appear in the backend. I have found poeple who say the solution is to change the homefeatures.php file. but i cant find that file. Please Help
  11. got it working bad url Pascal u r the boss Thanks a bunch
  12. U know i really really really should have seen that anyways it works just the sprite isnt showing up, but im sure thats in the css il figure it out many thanks
  13. Thanks for all the help so far. sorry to ask again. i wanted to add a link for a blog when ever i load the .php file i get a backend error The following module(s) could not be loaded: blocksocial (parse error in /modules/blocksocial/blocksocial.php) blocksocial (class missing in /modules/blocksocial/blocksocial.php) the site is bathrooom.co.uk here are the files (currently the php file is not online, the previous versions is becasue the shop dies not show up) /modules/blocksocial/blocksocial.php public function install() { return (parent::install() AND Configuration::updateValue('blocksocial_facebook', '') && Configuration::updateValue('blocksocial_twitter', '') && Configuration::updateValue('blocksocial_googleplus', '') && Configuration::updateValue('blocksocial_blog', '') && && Configuration::updateValue('blocksocial_rss', '') && $this->registerHook('displayHeader') && $this->registerHook('displayFooter')); } public function uninstall() { //Delete configuration return (Configuration::deleteByName('blocksocial_facebook') AND Configuration::deleteByName('blocksocial_twitter') AND Configuration::deleteByName('blocksocial_googleplus') AND Configuration::deleteByName('blocksocial_blog') AND Configuration::deleteByName('blocksocial_rss') AND parent::uninstall()); } public function getContent() { // If we try to update the settings $output = ''; if (isset($_POST['submitModule'])) { Configuration::updateValue('blocksocial_facebook', (($_POST['facebook_url'] != '') ? $_POST['facebook_url']: '')); Configuration::updateValue('blocksocial_twitter', (($_POST['twitter_url'] != '') ? $_POST['twitter_url']: '')); Configuration::updateValue('blocksocial_googleplus', (($_POST['googleplus_url'] != '') ? $_POST['googleplus_url']: '')); Configuration::updateValue('blocksocial_blog', (($_POST['blog_url'] != '') ? $_POST['blog_url']: '')); Configuration::updateValue('blocksocial_rss', (($_POST['rss_url'] != '') ? $_POST['rss_url']: '')); $output = '<div class="conf confirm">'.$this->l('Configuration updated').'</div>'; } return ' <h2>'.$this->displayName.'</h2> '.$output.' <form action="'.Tools::htmlentitiesutf8($_SERVER['REQUEST_URI']).'" method="post"> <fieldset class="width2"> <label for="facebook_url">'.$this->l('Facebook URL: ').'</label> <input type="text" id="facebook_url" name="facebook_url" value="'.Tools::safeOutput((Configuration::get('blocksocial_facebook') != "") ? Configuration::get('blocksocial_facebook') : "").'" /> <div class="clear"> </div> <label for="twitter_url">'.$this->l('Twitter URL: ').'</label> <input type="text" id="twitter_url" name="twitter_url" value="'.Tools::safeOutput((Configuration::get('blocksocial_twitter') != "") ? Configuration::get('blocksocial_twitter') : "").'" /> <div class="clear"> </div> // just copy from twitter above <label for="googleplus_url">'.$this->l('Google+ URL: ').'</label> <input type="text" id="googleplus_url" name="googleplus_url" value="'.Tools::safeOutput((Configuration::get('blocksocial_googleplus') != "") ? Configuration::get('blocksocial_googleplus') : "").'" /> <div class="clear"> </div> // just copy from twitter above <label for="blog_url">'.$this->l('Blog URL: ').'</label> <input type="text" id="blog_url" name="blog_url" value="'.Tools::safeOutput((Configuration::get('blocksocial_blog') != "") ? Configuration::get('blocksocial_blog') : "").'" /> <div class="clear"> </div> <label for="rss_url">'.$this->l('RSS URL: ').'</label> <input type="text" id="rss_url" name="rss_url" value="'.Tools::safeOutput((Configuration::get('blocksocial_rss') != "") ? Configuration::get('blocksocial_rss') : "").'" /> <div class="clear"> </div> <br /><center><input type="submit" name="submitModule" value="'.$this->l('Update settings').'" class="button" /></center> </fieldset> </form>'; } public function hookDisplayHeader() { $this->context->controller->addCSS(($this->_path).'blocksocial.css', 'all'); } public function hookDisplayFooter() { global $smarty; $smarty->assign(array( 'facebook_url' => Configuration::get('blocksocial_facebook'), 'twitter_url' => Configuration::get('blocksocial_twitter'), 'googleplus_url' => Configuration::get('blocksocial_googleplus'), 'blog_url' => Configuration::get('blocksocial_blog'), 'rss_url' => Configuration::get('blocksocial_rss'), )); return $this->display(__FILE__, 'blocksocial.tpl'); } } ?> themes/thgr00027/modules/blocksocial/blocksocial.tpl <div id="social_block"> <h4 class="title_block">{l s='Follow us' mod='blocksocial'}</h4> <ul> {if $facebook_url != ''}<li class="facebook"><a href="{$facebook_url|escape:html:'UTF-8'}">{l s='Facebook' mod='blocksocial'}</a></li>{/if} {if $twitter_url != ''}<li class="twitter"><a href="{$twitter_url|escape:html:'UTF-8'}">{l s='Twitter' mod='blocksocial'}</a></li>{/if} {if $googleplus_url != ''}<li class="googleplus"><a href="{$googleplus_url|escape:html:'UTF-8'}">{l s='Google+' mod='blocksocial'}</a></li>{/if} {if $blog_url != ''}<li class="blog"><a href="{$blog_url|escape:html:'UTF-8'}">{l s='Blog' mod='blocksocial'}</a></li>{/if} {if $rss_url != ''}<li class="rss"><a href="{$rss_url|escape:html:'UTF-8'}">{l s='RSS' mod='blocksocial'}</a></li>{/if} </ul> </div> themes/thgr00027/css/modules/blocksocial/blocksocial.css #social_block {padding:15px 10px; line-height: 1.8em; margin-top: -3px;} #social_block li {padding-left:22px !important;} #social_block li.facebook {background:url(img/sprite_pict_social_block.png) no-repeat 0 2px;} #social_block li.twitter {background:url(img/sprite_pict_social_block.png) no-repeat 0 -28px;} #social_block li.rss {background:url(img/sprite_pict_social_block.png) no-repeat 0 -57px;} #social_block li.googleplus {background:url(img/sprite_pict_social_block.png) no-repeat 0 -86px;} #social_block li.blog {background:url(img/sprite_pict_social_block.png) no-repeat 0 -112px;} Thanks in advance
  14. It worked, Thanks Pascal and all who contributed. Very much appreciated
  15. Still uneven ( im going to have to reinstall the original and start again arnt i)
  16. Hi Many Thanks url is www.bathrooom.co.uk Very much appreciated
  17. Hi Firstly thanks for the code, great help. Wondering if i could ask a small question? I Edited the social block code, and it works, google plus shows up. Only thing is that the Follow us header is now slightly lower than the other headers. Any Idea why this might be?
×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More