Chris M. Posted March 23, 2013 Report Share Posted March 23, 2013 i re-designed a theme for my site and i need to do this: I'm using the quotes system and I would like to make quotes appear in the middle of that Grey Bar. How would I do this? Quote Link to comment Share on other sites More sharing options...
Management Michael Posted March 24, 2013 Management Report Share Posted March 24, 2013 Is there a hook point nearby? You could move the sidebar hook to that position and then strip out the sidebar code. I'm actually working on an update for the Quotes app right now. What I might do is include a global hook and that would be easier to use, provided there is a hook point near where you want. Quote Link to comment Share on other sites More sharing options...
Chris M. Posted March 24, 2013 Author Report Share Posted March 24, 2013 (edited) what do you mean hook point? - sorry for not knowing what you mean, my school studies get mixed up with my knowledge of IPB and other software, so can you tell me? [i used to know so much of IPB and vBulletin, now im getting limited] Edited March 24, 2013 by Chris M. Quote Link to comment Share on other sites More sharing options...
Management Michael Posted March 25, 2013 Management Report Share Posted March 25, 2013 In the template bit will be if statements and foreach, if there is one near, you can hook into that. For example in the globalTemplate, you have <if test="mainpageContent:|:$html">{$html}</if> If can add a hook above or below the "mainpageContent" hook point. Quote Link to comment Share on other sites More sharing options...
DanyPis Posted March 26, 2013 Report Share Posted March 26, 2013 Thank you for clarifications. Quote Link to comment Share on other sites More sharing options...
Chris M. Posted March 26, 2013 Author Report Share Posted March 26, 2013 In the template bit will be if statements and foreach, if there is one near, you can hook into that. For example in the globalTemplate, you have <if test="mainpageContent:|:$html">{$html}</if> If can add a hook above or below the "mainpageContent" hook point. well the bar is the branding bar. Right around here: <!-- ::: BRANDING STRIP: Logo and search box ::: --> <div id='sc-branding'> </div> <if test="accessreports:|:$this->memberData['is_mod'] OR !empty($this->memberData['access_report_center']) || ($this->memberData['g_access_cp'] AND !$this->settings['security_remove_acp_link'])"> <div id='sc-bottombar' class='clearfix'> <div class='sc-width'> Quote Link to comment Share on other sites More sharing options...
Management Michael Posted March 27, 2013 Management Report Share Posted March 27, 2013 Nothing ideal but we can still add a hook point manually. The quotes update is still a few weeks away but if this is urgent, I'll put together some crude code next week for you. Quote Link to comment Share on other sites More sharing options...
Chris M. Posted March 27, 2013 Author Report Share Posted March 27, 2013 Thanks. Quote Link to comment Share on other sites More sharing options...
Management Michael Posted April 3, 2013 Management Report Share Posted April 3, 2013 Thanks. New version is out now. ;) Do you know how to edit a hooks position to another hook point? Quote Link to comment Share on other sites More sharing options...
Chris M. Posted April 4, 2013 Author Report Share Posted April 4, 2013 New version is out now. ;) Do you know how to edit a hooks position to another hook point? nope :|. Srry man, It's the foruth quarter of my school and im just studying like hell -__- Quote Link to comment Share on other sites More sharing options...
Chris M. Posted April 5, 2013 Author Report Share Posted April 5, 2013 And now im a lifeguard for the summer working 40 hours a week -_-. The work never ends. Quote Link to comment Share on other sites More sharing options...
Management Michael Posted April 8, 2013 Management Report Share Posted April 8, 2013 Might be best to go with a different setup. Place the following code inside where you want the global qo <php> require_once( IPSLib::getAppDir( 'quotes' ) . "/sources/hooks.php" ); $this->registry->setClass('quotes_hooks', new quotesHookGateway( $this->registry ) ); $globalQuote = $this->registry->getClass('quotes_hooks')->globalHook(); </php> {$globalQuote} Now just modify the template in admin cp > look & feel tab > select skin > skin_quote_external > globalHookTemplate. You'll probably want to remove a lot of the surrounding template. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.