Jump to content
WebFlake
  • 0

Move Donate Block to IP.Downloads Index


Guest Kinkl

Question

Hi all! I have installed like on WF. And I need to move the Featured Donation Goals Block to IP.Downloads Index. How can this be implemented?

 

I mean this block:

 

a311cd303853319.jpg

 

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Hi all! I have installed like on WF. And I need to move the Featured Donation Goals Block to IP.Downloads Index. How can this be implemented?

 

I mean this block:

 

-snip-

 

Hello Kinkl,

 

To move the Donation Tracker sideblock to another page, do to your installed hooks within the ACP (ACP > Applications & Modules > Manage Hooks) and look for Donation Tracker (Featured Goals) and press the edit icon. Click over to the Files tab of the opened page. Change "The skin group this hook is in" to IP.Downloads and modify the rest of the settings to your liking. This will move that sideblock to that page wherever you set it to be.

Link to comment
Share on other sites

  • 0

Or you can add it to the Ip.downloads page this way

Look & Feel  >  Manage Skin Sets & Templates  >  Manage Templates
(Downloads) Download Manager > downloadsPortal

find 

						<if test="indexsubcategories:|:is_array($data['subcategories']) AND count($data['subcategories'])">
							<a href='#' class='cat_toggle'>{$this->lang->words['toggle']}</a>
						</if>
					</li>
				</foreach>
			</ul>
		</div>
	</div>
	
	<div class='ipsLayout_right'>

change to

						<if test="indexsubcategories:|:is_array($data['subcategories']) AND count($data['subcategories'])">
							<a href='#' class='cat_toggle'>{$this->lang->words['toggle']}</a>
						</if>
					</li>
				</foreach>
			</ul>
		</div>
<php>
		require_once( IPSLib::getAppDir( 'donate' ) . "/sources/hooks.php" );		
		$this->registry->setClass('donate_hooks', new donateHookGateway( $this->registry ) );
		$out = $this->registry->getClass('donate_hooks')->featuredGoalsSidebar();
</php>{$out}
	</div>
	
	<div class='ipsLayout_right'>


But if you do it TJKeeran's way you should actually duplicate the file in the hooks folder with a new name and add a new file declaration to the donation tracker so that you don't lose the original one from the board index...

Edited by Lock Down
  • Upvote 1
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...