retrospecter Posted July 18, 2008 Share Posted July 18, 2008 Hello everyone.Please I need help.How could put the module "block top user information" in the left column. The module always comes out in the top although the change of hook.What can I do?Thank you Link to comment Share on other sites More sharing options...
ejectcore Posted July 18, 2008 Share Posted July 18, 2008 HelloAll you need to do is replace line 33-49 within blockuserinfo.php then reinstall this module:Top is set to be default on line 20 just change this to LeftColumn if needed. With the extra code added to this function transplanting this block to the left column should now work. really all these modules should have flexibility for different position's a simple bit a code here & there makes this possible ;-) function hookTop($params) { global $smarty, $cookie, $cart; $smarty->assign(array( 'cart' => $cart, 'cart_qties' => $cart->nbProducts(), 'logged' => $cookie->isLogged(), 'customerName' => ($cookie->logged ? $cookie->customer_firstname.' '.$cookie->customer_lastname : false) )); return $this->display(__FILE__, 'blockuserinfo.tpl'); } function hookLeftColumn($params) { return $this->hookTop($params); } } Link to comment Share on other sites More sharing options...
retrospecter Posted July 19, 2008 Author Share Posted July 19, 2008 It works perfectly, I just had to adjust a little blockuserinfo.tpl and css.thank you very much. Link to comment Share on other sites More sharing options...
j.volk Posted October 5, 2009 Share Posted October 5, 2009 Is this a different module than the standard "blockuserinfo" module? The php adjustment I made was to line 21 to specify leftcolumn instead of top. I reinstalled and there is no module showing.Thanks in advance for any helpJason 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