Jump to content
WebFlake
  • 0

Expand Downloads


Guest Duff-Man

Question

Guest Duff-Man

Hi WebFlake

 

I'm currently using a modified version of Uniform (a skin by IPBForumSkins), though the one thing which I haven't modified yet is the Downloads App.

 

Now on the Uniform Skin the "Top Downloads" & "Top Authors" Hooks are on the right side of the page, what I would like is for both of those Hooks to be placed on the left hand side of the page beneath the categories, and then expand the "container" that houses all the Downloads Content. Basically it would look exactly like WebFlake's Downloads Area.

Posted Image

 

Any ideas on how to go about this or do this would be greatly appreciated

 

Regards,

Duff-Man

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0
Guest Duff-Man

Can you post your "downloadsPortal" template here?

Here Paradiizee 

{parse js_module="idmportal"}<ul class='topic_buttons'>  <if test="indexcanadd:|:$canadd">    <li><a href='{parse url="app=downloads&amp;module=post&amp;section=submit&amp;c={$this->request['catid']}" base="public"}' title='{$this->lang->words['upload_file_alt']}' accesskey='s'>{$this->lang->words['upload_file_alt']}</a></li>  <else />    <li class='disabled'><span>{$this->lang->words['noupload_perm_alt']}</span></li>  </if></ul><h1 class='ipsType_pagetitle'>{IPSLib::getAppTitle('downloads')}</h1><br /><div id='main-layout' class='ipsLayout ipsLayout_withleft ipsLayout_withright ipsLayout_largeleft ipsLayout_largeright'>    <div class='ipsLayout_left'>    <div class='general_box'>      <h3><a href='{parse url="app=downloads&amp;showall=1" base="public"}' class='right desc'>{$this->lang->words['view_all']}</a>{$this->lang->words['category_main_header']}</h3>      <ul id='idm_categories'>        <foreach loop="category_loop:$category_rows as $data">          <li class='<if test="indexsubcategories:|:is_array($data['subcategories']) AND count($data['subcategories'])">with_sub closed</if>'>            <span class='file_count right'>              {parse format_number="$data['cfileinfo']['total_files']"}            </span>            <a href="{parse url="app=downloads&amp;showcat={$data['cid']}" base="public" template="idmshowcat" seotitle="{$data['cname_furl']}"}" title='{$this->lang->words['view_category']}'>{$data['cname']}</a>            <if test="indexsubcategories:|:is_array($data['subcategories']) AND count($data['subcategories'])">              <ul class='subforums' style='display: none'>                <foreach loop="subcats:$data['subcategories'] as $link">                  <if test="showSubCatsLit:|:$link['new']"><li class='newposts'><else /><li></if><a href="{parse url="app=downloads&amp;showcat={$link['cid']}" base="public" template="idmshowcat" seotitle="{$link['cname_furl']}"}" title='{$this->lang->words['gotosubcat']}'>{$link['cname']}</a></li>                </foreach>              </ul>            </if>            <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'>    <if test="hasNexus:|:IPSLib::appIsInstalled('nexus') && $this->settings['idm_nexus_on'] && count( $feeds['toppaid'] )">      {parse template="portalSidebarBlock" group="downloads" params="$this->lang->words['top_free'], $this->lang->words['portal_no_downloads'], $feeds['topfree'], 'file', $recordIds, 'free'"}      <br />      {parse template="portalSidebarBlock" group="downloads" params="$this->lang->words['top_paid'], $this->lang->words['portal_no_downloads'], $feeds['toppaid'], 'file', $recordIds, 'paid'"}      <br />    <else />      {parse template="portalSidebarBlock" group="downloads" params="$this->lang->words['top_dl'], $this->lang->words['portal_no_downloads'], $feeds['topfiles'], 'file', $recordIds, 'all'"}      <br />    </if>    {parse template="portalSidebarBlock" group="downloads" params="$this->lang->words['top_authors'], $this->lang->words['portal_no_users'], $feeds['topusers'], 'author', '', 'author'"}  </div>      <div id='main-content' class='ipsLayout_content'>    <div class='ipsBox'>      <div class='ipsBox_container ipsPad'>        <if test="featured:|:is_array($feeds['featured']) && count($feeds['featured'])">          <div id='featured_pane' class='ipsBox ipsPad_double rounded clearfix'>                      <a href='{parse url="app=downloads&amp;showfile={$feeds['featured']['file_id']}" base="public" template="idmshowfile" seotitle="{$feeds['featured']['file_name_furl']}"}' class='left screenshot'>              <if test="checkForNexusFeatured:|:IPSLib::appIsInstalled('nexus') && $this->settings['idm_nexus_on'] && !$feeds['featured']['file_nexus']">                <span class='ipsBadge ipsBadge_green'>                  <if test="featuredFree:|:$feeds['featured']['file_cost'] == 0">                    {$this->lang->words['free']}                  <else />                    {parse expression="ipsRegistry::getClass('class_localization')->formatMoney( $feeds['featured']['file_cost'], false )"}                  </if>                </span>              </if>              <img src='{$this->registry->idmFunctions->returnScreenshotUrl( $recordIds[ $feeds['featured']['file_id'] ], true, true )}' />            </a>                        <div class='file_info'>              <if test="featuredPaid:|:($feeds['featured']['file_cost'] or $feeds['featured']['file_nexus']) AND IPSLib::appIsInstalled('nexus') AND $this->settings['idm_nexus_on'] AND !$this->memberData['idm_bypass_paid'] AND $feeds['featured']['_purchased'] != 'ACTIVE'">                <if test="featuredExpired:|:$feeds['featured']['_purchased'] == 'EXPIRED'">                  <a href='{parse url="app=nexus&amp;module=clients&amp;section=purchases&amp;do=renew&amp;secure_key={$this->member->form_hash}&amp;itemApp=downloads&amp;itemType=file&amp;itemId={$feeds['featured']['file_id']}" base="public""}' class='download_button rounded right'>{$this->lang->words['file_renew']}</a>                <else />                  <a href='{parse url="app=downloads&amp;module=display&amp;section=download&amp;do=buy&amp;id={$feeds['featured']['file_id']}" base="public" template="idmbuy" seotitle="{$feeds['featured']['file_name_furl']}"}' class='download_button rounded right'>                    {$this->lang->words['dpage_buy']}                  </a>                </if>              <else />                <if test="dynUrls:|:$this->settings['idm_dynamic_urls']">                  <a href='{parse url="app=downloads&amp;module=display&amp;section=download&amp;do=confirm_download&amp;hash={$feeds['featured']['_hash']}" base="public" template="idmdd" seotitle="{$feeds['featured']['file_name_furl']}"}' class='download_button rounded right'>                <else />                  <a href='{parse url="app=downloads&amp;module=display&amp;section=download&amp;do=confirm_download&amp;id={$feeds['featured']['file_id']}" base="public" template="idmdownload" seotitle="{$feeds['featured']['file_name_furl']}"}' class='download_button rounded right'>                </if>                  {$this->lang->words['dpage_button_short']}                </a>              </if>              <h2 class='ipsType_subtitle'>{$this->lang->words['featured_file_head']}</h2>              <h3>                <a href='{parse url="app=downloads&amp;showfile={$feeds['featured']['file_id']}" base="public" template="idmshowfile" seotitle="{$feeds['featured']['file_name_furl']}"}'>{$feeds['featured']['file_name']} <if test="hasversionfeat:|:$feeds['featured']['file_version']"><span class='ipsType_small'>{$feeds['featured']['file_version']}</span></if></a>              </h3>              <span class='mini_rate'>                <foreach loop="featuredRatingLoop:array(1,2,3,4,5) as $_rating">                  <if test="filerate:|:$feeds['featured']['file_rating'] >= $_rating">{parse replacement="rate_on"}<else />{parse replacement="rate_off"}</if>                </foreach>              </span>              <if test="featuredCatReviews:|:$this->registry->categories->cat_lookup[ $feeds['featured']['file_cat'] ]['coptions']['opt_comments']">                <strong>                  <a href='{parse url="app=downloads&amp;showfile={$feeds['featured']['file_id']}" base="public" template="idmshowfile" seotitle="{$feeds['featured']['file_name_furl']}"}#commentsStart'>{$feeds['featured']['file_comments']} {$this->lang->words['reviews']}</a>                </strong>              </if>                          <br /><br /><span class='desc'>{IPSText::truncate( strip_tags( IPSText::getTextClass('bbcode')->stripAllTags( $feeds['featured']['file_desc'] ), '<br>' ), 120 )}</span>            </div>          </div>          <br />        </if>                <div class='ipsPad clearfix download_pane with_scroll'>          <h2 class='ipsType_subtitle'>{$this->lang->words['whats_new']}</h2>          <br />          <a href='#' class='scroll_left left disabled' id='new_pane_l'>{$this->lang->words['_larr']}</a>          <a href='#' class='scroll_right right disabled' id='new_pane_r'>{$this->lang->words['_rarr']}</a>          <div class='pane_wrap three_column' id='new_pane_wrap'>          <php>            $this->whatsnew  = array(                      1  => array_slice( $feeds['whatsnew'], 0, 6 ),                      2  => array_slice( $feeds['whatsnew'], 6, 6 ),                      3  => array_slice( $feeds['whatsnew'], 12, 6 ),                      );          </php>            <ul id='new_pane_1'>              <if test="haswhatsnewpane1:|:count($this->whatsnew[1])">                <foreach loop="whatsnew1:$this->whatsnew[1] as $_feed">                  {parse template="portalPaneItem" group="downloads" params="$_feed, 'new', $recordIds"}                </foreach>              </if>            </ul>            <if test="haswhatsnewpane2:|:count($this->whatsnew[2])">              <ul id='new_pane_2' style='display: none'>                  <foreach loop="whatsnew2:$this->whatsnew[2] as $_feed">                    {parse template="portalPaneItem" group="downloads" params="$_feed, 'new', $recordIds"}                  </foreach>              </ul>            </if>            <if test="haswhatsnewpane3:|:count($this->whatsnew[3])">              <ul id='new_pane_3' style='display: none'>                <foreach loop="whatsnew3:$this->whatsnew[3] as $_feed">                  {parse template="portalPaneItem" group="downloads" params="$_feed, 'new', $recordIds"}                </foreach>              </ul>            </if>          </div>        </div>        <script type='text/javascript'>          document.observe("dom:loaded", function(){            var scrollerNew = new ipb.idmportal.scroller('new_pane', <if test="whatsnewcount3:|:count($this->whatsnew[3])">3<else /><if test="whatsnewcount2:|:count($this->whatsnew[2])">2<else />1</if></if>);          });        </script>        <br />                <if test="hasRatedFiles:|:is_array($feeds['highrated']) && count($feeds['highrated'])">          <div class='ipsPad clearfix download_pane with_scroll'>            <h2 class='ipsType_subtitle'>{$this->lang->words['highest_rated']}</h2>            <br />            <a href='#' class='scroll_left left disabled' id='rated_pane_l'>{$this->lang->words['_larr']}</a>            <a href='#' class='scroll_right right disabled' id='rated_pane_r'>{$this->lang->words['_rarr']}</a>            <div class='pane_wrap three_column' id='rated_pane_wrap'>            <php>              $this->toprated  = array(                        1  => array_slice( $feeds['highrated'], 0, 6 ),                        2  => array_slice( $feeds['highrated'], 6, 6 ),                        3  => array_slice( $feeds['highrated'], 12, 6 ),                        );            </php>              <ul id='rated_pane_1'>                <if test="hastopratedpane1:|:count($this->toprated[1])">                  <foreach loop="toprated1:$this->toprated[1] as $_feed">                    {parse template="portalPaneItem" group="downloads" params="$_feed, 'rated', $recordIds"}                  </foreach>                </if>              </ul>              <if test="hastopratedpane2:|:count($this->toprated[2])">                <ul id='rated_pane_2' style='display: none'>                  <foreach loop="toprated2:$this->toprated[2] as $_feed">                    {parse template="portalPaneItem" group="downloads" params="$_feed, 'rated', $recordIds"}                  </foreach>                                </ul>              </if>              <if test="hastopratedpane3:|:count($this->toprated[3])">                <ul id='rated_pane_3' style='display: none'>                  <foreach loop="toprated3:$this->toprated[3] as $_feed">                    {parse template="portalPaneItem" group="downloads" params="$_feed, 'rated', $recordIds"}                  </foreach>                                </ul>              </if>            </div>          </div>          <script type='text/javascript'>            document.observe("dom:loaded", function(){              var scrollerRate = new ipb.idmportal.scroller('rated_pane', <if test="topratedcount3:|:count($this->toprated[3])">3<else /><if test="topratedcount2:|:count($this->toprated[2])">2<else />1</if></if>);            });          </script>          <br />        </if>                <if test="hasWatchedFiles:|:is_array($feeds['watched']) && count($feeds['watched'])">          <div class='ipsPad clearfix download_pane with_scroll'>            <h2 class='ipsType_subtitle'>{$this->lang->words['most_watched']}</h2>            <br />            <a href='#' class='scroll_left left disabled' id='watched_pane_l'>{$this->lang->words['_larr']}</a>            <a href='#' class='scroll_right right disabled' id='watched_pane_r'>{$this->lang->words['_rarr']}</a>            <div class='pane_wrap three_column' id='watched_pane_wrap'>            <php>              $this->topwatched  = array(                        1  => array_slice( $feeds['watched'], 0, 6 ),                        2  => array_slice( $feeds['watched'], 6, 6 ),                        3  => array_slice( $feeds['watched'], 12, 6 ),                        );            </php>              <ul id='watched_pane_1'>                <if test="hastopwatchpane1:|:count($this->topwatched[1])">                  <foreach loop="topwatch1:$this->topwatched[1] as $_feed">                    {parse template="portalPaneItem" group="downloads" params="$_feed, 'watched', $recordIds"}                  </foreach>                </if>              </ul>              <if test="hastopwatchpane2:|:count($this->topwatched[2])">                <ul id='watched_pane_2' style='display: none'>                  <foreach loop="topwatch2:$this->topwatched[2] as $_feed">                    {parse template="portalPaneItem" group="downloads" params="$_feed, 'watched', $recordIds"}                  </foreach>                                </ul>              </if>              <if test="hastopwatchpane3:|:count($this->topwatched[3])">                <ul id='watched_pane_3' style='display: none'>                                  <foreach loop="topwatch3:$this->topwatched[3] as $_feed">                    {parse template="portalPaneItem" group="downloads" params="$_feed, 'watched', $recordIds"}                  </foreach>                </ul>              </if>            </div>            <script type='text/javascript'>              document.observe("dom:loaded", function(){                var scrollerWatch = new ipb.idmportal.scroller('watched_pane', <if test="topwatchedcount3:|:count($this->topwatched[3])">3<else /><if test="topwatchedcount2:|:count($this->topwatched[2])">2<else />1</if></if>);              });            </script>          </div>        </if>      </div>    </div>  </div></div><br class='clear' /><script type='text/javascript'>  // Adaptive layout  var screenWidth = document.viewport.getWidth();    if ( screenWidth < 1329 ){      try {      // Adaptive layout      // Removes the right sidebar and puts contents on the left, if on a small res screen      $('main-layout').removeClassName('ipsLayout_withright').removeClassName('ipsLayout_largeright').select(".ipsLayout_left")[0].insert(        $('main-layout').select(".ipsLayout_right")[0].innerHTML      );            $('main-layout').select(".ipsLayout_right")[0].hide();    } catch(err){}  }</script>

Link to comment
Share on other sites

  • 0
Guest Duff-Man

It must have something do do with the

<div class='ipsLayout_right'>

Though I'm assuming you can't just change "right" to "left"

Link to comment
Share on other sites

  • 0
Guest Duff-Man

Here is your new file:

 

{parse js_module="idmportal"}<ul class='topic_buttons'>    <if test="indexcanadd:|:$canadd">        <li><a href='{parse url="app=downloads&amp;module=post&amp;section=submit&amp;c={$this->request['catid']}" base="public"}' title='{$this->lang->words['upload_file_alt']}' accesskey='s'>{$this->lang->words['upload_file_alt']}</a></li>    <else />        <li class='disabled'><span>{$this->lang->words['noupload_perm_alt']}</span></li>    </if></ul><h1 class='ipsType_pagetitle'>{IPSLib::getAppTitle('downloads')}</h1><br /><div id='main-layout' class='ipsLayout ipsLayout_withleft  ipsLayout_largeleft'>        <div class='ipsLayout_left'>        <div class='general_box'>            <h3><a href='{parse url="app=downloads&amp;showall=1" base="public"}' class='right desc'>{$this->lang->words['view_all']}</a>{$this->lang->words['category_main_header']}</h3>            <ul id='idm_categories'>                <foreach loop="category_loop:$category_rows as $data">                    <li class='<if test="indexsubcategories:|:is_array($data['subcategories']) AND count($data['subcategories'])">with_sub closed</if>'>                        <span class='file_count right'>                            {parse format_number="$data['cfileinfo']['total_files']"}                        </span>                        <a href="{parse url="app=downloads&amp;showcat={$data['cid']}" base="public" template="idmshowcat" seotitle="{$data['cname_furl']}"}" title='{$this->lang->words['view_category']}'>{$data['cname']}</a>                        <if test="indexsubcategories:|:is_array($data['subcategories']) AND count($data['subcategories'])">                            <ul class='subforums' style='display: none'>                                <foreach loop="subcats:$data['subcategories'] as $link">                                    <if test="showSubCatsLit:|:$link['new']"><li class='newposts'><else /><li></if><a href="{parse url="app=downloads&amp;showcat={$link['cid']}" base="public" template="idmshowcat" seotitle="{$link['cname_furl']}"}" title='{$this->lang->words['gotosubcat']}'>{$link['cname']}</a></li>                                </foreach>                            </ul>                        </if>                        <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>         <if test="hasNexus:|:IPSLib::appIsInstalled('nexus') && $this->settings['idm_nexus_on'] && count( $feeds['toppaid'] )">            {parse template="portalSidebarBlock" group="downloads" params="$this->lang->words['top_free'], $this->lang->words['portal_no_downloads'], $feeds['topfree'], 'file', $recordIds, 'free'"}            <br />            {parse template="portalSidebarBlock" group="downloads" params="$this->lang->words['top_paid'], $this->lang->words['portal_no_downloads'], $feeds['toppaid'], 'file', $recordIds, 'paid'"}            <br />        <else />            {parse template="portalSidebarBlock" group="downloads" params="$this->lang->words['top_dl'], $this->lang->words['portal_no_downloads'], $feeds['topfiles'], 'file', $recordIds, 'all'"}            <br />        </if>        {parse template="portalSidebarBlock" group="downloads" params="$this->lang->words['top_authors'], $this->lang->words['portal_no_users'], $feeds['topusers'], 'author', '', 'author'"}                    </div>               <div id='main-content' class='ipsLayout_content'>        <div class='ipsBox'>            <div class='ipsBox_container ipsPad'>                <if test="featured:|:is_array($feeds['featured']) && count($feeds['featured'])">                    <div id='featured_pane' class='ipsBox ipsPad_double rounded clearfix'>                                            <a href='{parse url="app=downloads&amp;showfile={$feeds['featured']['file_id']}" base="public" template="idmshowfile" seotitle="{$feeds['featured']['file_name_furl']}"}' class='left screenshot'>                            <if test="checkForNexusFeatured:|:IPSLib::appIsInstalled('nexus') && $this->settings['idm_nexus_on'] && !$feeds['featured']['file_nexus']">                                <span class='ipsBadge ipsBadge_green'>                                    <if test="featuredFree:|:$feeds['featured']['file_cost'] == 0">                                        {$this->lang->words['free']}                                    <else />                                        {parse expression="ipsRegistry::getClass('class_localization')->formatMoney( $feeds['featured']['file_cost'], false )"}                                    </if>                                </span>                            </if>                            <img src='{$this->registry->idmFunctions->returnScreenshotUrl( $recordIds[ $feeds['featured']['file_id'] ], true, true )}' />                        </a>                                                <div class='file_info'>                            <if test="featuredPaid:|$feeds['featured']['file_cost'] or $feeds['featured']['file_nexus']) AND IPSLib::appIsInstalled('nexus') AND $this->settings['idm_nexus_on'] AND !$this->memberData['idm_bypass_paid'] AND $feeds['featured']['_purchased'] != 'ACTIVE'">                                <if test="featuredExpired:|:$feeds['featured']['_purchased'] == 'EXPIRED'">                                    <a href='{parse url="app=nexus&amp;module=clients&amp;section=purchases&amp;do=renew&amp;secure_key={$this->member->form_hash}&amp;itemApp=downloads&amp;itemType=file&amp;itemId={$feeds['featured']['file_id']}" base="public""}' class='download_button rounded right'>{$this->lang->words['file_renew']}</a>                                <else />                                    <a href='{parse url="app=downloads&amp;module=display&amp;section=download&amp;do=buy&amp;id={$feeds['featured']['file_id']}" base="public" template="idmbuy" seotitle="{$feeds['featured']['file_name_furl']}"}' class='download_button rounded right'>                                        {$this->lang->words['dpage_buy']}                                    </a>                                </if>                            <else />                                <if test="dynUrls:|:$this->settings['idm_dynamic_urls']">                                    <a href='{parse url="app=downloads&amp;module=display&amp;section=download&amp;do=confirm_download&amp;hash={$feeds['featured']['_hash']}" base="public" template="idmdd" seotitle="{$feeds['featured']['file_name_furl']}"}' class='download_button rounded right'>                                <else />                                    <a href='{parse url="app=downloads&amp;module=display&amp;section=download&amp;do=confirm_download&amp;id={$feeds['featured']['file_id']}" base="public" template="idmdownload" seotitle="{$feeds['featured']['file_name_furl']}"}' class='download_button rounded right'>                                </if>                                    {$this->lang->words['dpage_button_short']}                                </a>                            </if>                            <h2 class='ipsType_subtitle'>{$this->lang->words['featured_file_head']}</h2>                            <h3>                                <a href='{parse url="app=downloads&amp;showfile={$feeds['featured']['file_id']}" base="public" template="idmshowfile" seotitle="{$feeds['featured']['file_name_furl']}"}'>{$feeds['featured']['file_name']} <if test="hasversionfeat:|:$feeds['featured']['file_version']"><span class='ipsType_small'>{$feeds['featured']['file_version']}</span></if></a>                            </h3>                            <span class='mini_rate'>                                <foreach loop="featuredRatingLoop:array(1,2,3,4,5) as $_rating">                                    <if test="filerate:|:$feeds['featured']['file_rating'] >= $_rating">{parse replacement="rate_on"}<else />{parse replacement="rate_off"}</if>                                </foreach>                            </span>                            <if test="featuredCatReviews:|:$this->registry->categories->cat_lookup[ $feeds['featured']['file_cat'] ]['coptions']['opt_comments']">                                <strong>                                    <a href='{parse url="app=downloads&amp;showfile={$feeds['featured']['file_id']}" base="public" template="idmshowfile" seotitle="{$feeds['featured']['file_name_furl']}"}#commentsStart'>{$feeds['featured']['file_comments']} {$this->lang->words['reviews']}</a>                                </strong>                            </if>                                                    <br /><br /><span class='desc'>{IPSText::truncate( strip_tags( IPSText::getTextClass('bbcode')->stripAllTags( $feeds['featured']['file_desc'] ), '<br>' ), 120 )}</span>                        </div>                    </div>                    <br />                </if>                                <div class='ipsPad clearfix download_pane with_scroll'>                    <h2 class='ipsType_subtitle'>{$this->lang->words['whats_new']}</h2>                    <br />                    <a href='#' class='scroll_left left disabled' id='new_pane_l'>{$this->lang->words['_larr']}</a>                    <a href='#' class='scroll_right right disabled' id='new_pane_r'>{$this->lang->words['_rarr']}</a>                    <div class='pane_wrap three_column' id='new_pane_wrap'>                    <php>                        $this->whatsnew    = array(                                            1    => array_slice( $feeds['whatsnew'], 0, 6 ),                                            2    => array_slice( $feeds['whatsnew'], 6, 6 ),                                            3    => array_slice( $feeds['whatsnew'], 12, 6 ),                                            );                    </php>                        <ul id='new_pane_1'>                            <if test="haswhatsnewpane1:|:count($this->whatsnew[1])">                                <foreach loop="whatsnew1:$this->whatsnew[1] as $_feed">                                    {parse template="portalPaneItem" group="downloads" params="$_feed, 'new', $recordIds"}                                </foreach>                            </if>                        </ul>                        <if test="haswhatsnewpane2:|:count($this->whatsnew[2])">                            <ul id='new_pane_2' style='display: none'>                                    <foreach loop="whatsnew2:$this->whatsnew[2] as $_feed">                                        {parse template="portalPaneItem" group="downloads" params="$_feed, 'new', $recordIds"}                                    </foreach>                            </ul>                        </if>                        <if test="haswhatsnewpane3:|:count($this->whatsnew[3])">                            <ul id='new_pane_3' style='display: none'>                                <foreach loop="whatsnew3:$this->whatsnew[3] as $_feed">                                    {parse template="portalPaneItem" group="downloads" params="$_feed, 'new', $recordIds"}                                </foreach>                            </ul>                        </if>                    </div>                </div>                <script type='text/javascript'>                    document.observe("dom:loaded", function(){                        var scrollerNew = new ipb.idmportal.scroller('new_pane', <if test="whatsnewcount3:|:count($this->whatsnew[3])">3<else /><if test="whatsnewcount2:|:count($this->whatsnew[2])">2<else />1</if></if>);                    });                </script>                <br />                                <if test="hasRatedFiles:|:is_array($feeds['highrated']) && count($feeds['highrated'])">                    <div class='ipsPad clearfix download_pane with_scroll'>                        <h2 class='ipsType_subtitle'>{$this->lang->words['highest_rated']}</h2>                        <br />                        <a href='#' class='scroll_left left disabled' id='rated_pane_l'>{$this->lang->words['_larr']}</a>                        <a href='#' class='scroll_right right disabled' id='rated_pane_r'>{$this->lang->words['_rarr']}</a>                        <div class='pane_wrap three_column' id='rated_pane_wrap'>                        <php>                            $this->toprated    = array(                                                1    => array_slice( $feeds['highrated'], 0, 6 ),                                                2    => array_slice( $feeds['highrated'], 6, 6 ),                                                3    => array_slice( $feeds['highrated'], 12, 6 ),                                                );                        </php>                            <ul id='rated_pane_1'>                                <if test="hastopratedpane1:|:count($this->toprated[1])">                                    <foreach loop="toprated1:$this->toprated[1] as $_feed">                                        {parse template="portalPaneItem" group="downloads" params="$_feed, 'rated', $recordIds"}                                    </foreach>                                </if>                            </ul>                            <if test="hastopratedpane2:|:count($this->toprated[2])">                                <ul id='rated_pane_2' style='display: none'>                                    <foreach loop="toprated2:$this->toprated[2] as $_feed">                                        {parse template="portalPaneItem" group="downloads" params="$_feed, 'rated', $recordIds"}                                    </foreach>                                                                </ul>                            </if>                            <if test="hastopratedpane3:|:count($this->toprated[3])">                                <ul id='rated_pane_3' style='display: none'>                                    <foreach loop="toprated3:$this->toprated[3] as $_feed">                                        {parse template="portalPaneItem" group="downloads" params="$_feed, 'rated', $recordIds"}                                    </foreach>                                                                </ul>                            </if>                        </div>                    </div>                    <script type='text/javascript'>                        document.observe("dom:loaded", function(){                            var scrollerRate = new ipb.idmportal.scroller('rated_pane', <if test="topratedcount3:|:count($this->toprated[3])">3<else /><if test="topratedcount2:|:count($this->toprated[2])">2<else />1</if></if>);                        });                    </script>                    <br />                </if>                                <if test="hasWatchedFiles:|:is_array($feeds['watched']) && count($feeds['watched'])">                    <div class='ipsPad clearfix download_pane with_scroll'>                        <h2 class='ipsType_subtitle'>{$this->lang->words['most_watched']}</h2>                        <br />                        <a href='#' class='scroll_left left disabled' id='watched_pane_l'>{$this->lang->words['_larr']}</a>                        <a href='#' class='scroll_right right disabled' id='watched_pane_r'>{$this->lang->words['_rarr']}</a>                        <div class='pane_wrap three_column' id='watched_pane_wrap'>                        <php>                            $this->topwatched    = array(                                                1    => array_slice( $feeds['watched'], 0, 6 ),                                                2    => array_slice( $feeds['watched'], 6, 6 ),                                                3    => array_slice( $feeds['watched'], 12, 6 ),                                                );                        </php>                            <ul id='watched_pane_1'>                                <if test="hastopwatchpane1:|:count($this->topwatched[1])">                                    <foreach loop="topwatch1:$this->topwatched[1] as $_feed">                                        {parse template="portalPaneItem" group="downloads" params="$_feed, 'watched', $recordIds"}                                    </foreach>                                </if>                            </ul>                            <if test="hastopwatchpane2:|:count($this->topwatched[2])">                                <ul id='watched_pane_2' style='display: none'>                                    <foreach loop="topwatch2:$this->topwatched[2] as $_feed">                                        {parse template="portalPaneItem" group="downloads" params="$_feed, 'watched', $recordIds"}                                    </foreach>                                                                </ul>                            </if>                            <if test="hastopwatchpane3:|:count($this->topwatched[3])">                                <ul id='watched_pane_3' style='display: none'>                                                                    <foreach loop="topwatch3:$this->topwatched[3] as $_feed">                                        {parse template="portalPaneItem" group="downloads" params="$_feed, 'watched', $recordIds"}                                    </foreach>                                </ul>                            </if>                        </div>                        <script type='text/javascript'>                            document.observe("dom:loaded", function(){                                var scrollerWatch = new ipb.idmportal.scroller('watched_pane', <if test="topwatchedcount3:|:count($this->topwatched[3])">3<else /><if test="topwatchedcount2:|:count($this->topwatched[2])">2<else />1</if></if>);                            });                        </script>                    </div>                </if>            </div>        </div>    </div></div><br class='clear' /><script type='text/javascript'>    // Adaptive layout    var screenWidth = document.viewport.getWidth();        if ( screenWidth < 1329 ){            try {            // Adaptive layout            // Removes the right sidebar and puts contents on the left, if on a small res screen            $('main-layout').removeClassName('ipsLayout_withright').removeClassName('ipsLayout_largeright').select(".ipsLayout_left")[0].insert(                $('main-layout').select(".ipsLayout_right")[0].innerHTML            );                        $('main-layout').select(".ipsLayout_right")[0].hide();        } catch(err){}    }</script> 

 

Thanks for the reply Paradiizee, however when I copy and paste the code above overwriting the old code I get the following error : "There is a syntax error in the template, usually caused by PHP code not properly formed.  Please correct the error and hit save again."

Link to comment
Share on other sites

  • 0
Guest Duff-Man

Uhm, lol. And if you save the template without edits?

The template saves fine without the edits, just when I add the new code it gives me that error lol.

Link to comment
Share on other sites

  • 0

Since forumcore is no longer i've decided to a modded version from the skin on my download website. Now my site is a download portal only. But i'm not using the portal index layout. Is it somehow possible to show those 2 hooks on the "non" portal index version? 

Edited by Senaxx
Link to comment
Share on other sites

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