Jump to content
DevFuse Forums
Sign in to follow this  
Chris M.

Quotes System - Globalizing Quotes

Recommended Posts

i re-designed a theme for my site and i need to do this:

3b1260e3d4c14fa782844a0.png

 

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?

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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 by Chris M.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...