Jump to content
WebFlake
  • 0

Two Recent Topics


Guest Froob

Question

Guest Froob

Hey, for some reason on my friends' forums there are two 'Recent Topics' sidebars and we can't figure out how to get rid of one, anyone know how to fix it?

 

Posted Image

Edited by Froob
Link to comment
Share on other sites

9 answers to this question

Recommended Posts

  • 0
Guest ptrkznbb

I'm also one of the administrators at the website in question, I don't think it is skin related as I have uploaded multiple skins and it shows two recent topics, Even with the original skin that comes with the boards it shows two recent topics

Our forums have recently been under attack from a turkish hacking group and that was around the time we noticed we had two recent topics, would it have anything to do with some of the FTP files 


EDIT

Have fixed this, went through the ftp and into the hooks folder found two of them one of them being malicious code

Posted Image

Posted Image

Edited by ptrkznbb
Link to comment
Share on other sites

  • 0
Guest Froob

Check the hooks section in acp and see if there are 2. If not check your portal program like content or portl to see if you have one started there also.

There are two Recent Topics hooks but one is disabled, should I uninstall one, and if so which one should I uninstall?

 

This one is enabled: Posted Image

 

And this one is disabled:

 

Posted Image

Link to comment
Share on other sites

  • 0
Guest Froob

Check the skin of that hook (Board Index > hookRecentTopics).

 

Maybe you have the template twice.

Nope, there's only one template, here's the code:

 

 

<if test="recenttopics:|:is_array( $topics ) && count( $topics )"><div class='ipsSideBlock clearfix'>    <h3>{$this->lang->words['recently_added_topics']}</h3>    <div class='_sbcollapsable'>        <ul class='ipsList_withminiphoto'>        <foreach loop="topics_hook:$topics as $r">        <li class='clearfix'>            {parse template="userSmallPhoto" group="global" params="$r"}            <div class='list_content'>                <strong><a href="{parse url="showtopic={$r['tid']}" base="public" template="showtopic" seotitle="{$r['title_seo']}"}" rel='bookmark' class='ipsType_small' title='{parse expression="strip_tags($r['topic_title'])"} {$this->lang->words['topic_started_on']} {parse date="$r['start_date']" format="LONG"}'>{$r['topic_title']}</a></strong>                <p class='desc ipsType_smaller'>                    <if test="$r['members_display_name']">{parse template="userHoverCard" group="global" params="$r"}<else />{$this->settings['guest_name_pre']}{$r['starter_name']}{$this->settings['guest_name_suf']}</if>                    - {parse date="$r['start_date']" format="short"}                </p>            </div>        </li>        </foreach>        </ul>    </div></div></if>

Deleting this ^ does prevent either Recent Topics lists from showing (as does disabling the hook).

 

 

also try below..

 

Do you have ip.portal or ip.content or uportal?

 

If so make sure you don't have a recent topics there with the setting to show on board index also.

I'm not sure what any of those are. :3

Edited by Froob
Link to comment
Share on other sites

  • 0

Then I think you don't have any. :)

 

In the boarindextemplate do you also have this

	<if test="sideBarEnabled2:|:$this->templateVars['sidebar_enabled']">		<div id='index_stats' class='ipsLayout_right clearfix' <if test="sidebarclosed2:|:IPSCookie::get('hide_sidebar') == '1'">style='display: none'</if>>			<foreach loop="side_blocks:$side_blocks as $block">				{$block}			</foreach>		</div>		<a href='#' id='toggle_sidebar' title='{$this->lang->words['toggle_sidebar']}' data-closed="{$this->lang->words['_laquo']}" data-open="&times;">&nbsp;</a>	</if>

 

If yes change the first line of the one you showed to this

<if test="recenttopics:|:is_array( $topics ) && count( $topics )==100">

 

That will stop the first one from showing. If it doesn't work change it back.

Link to comment
Share on other sites

  • 0
Guest Froob

Then I think you don't have any. :)

 

In the boarindextemplate do you also have this

	<if test="sideBarEnabled2:|:$this->templateVars['sidebar_enabled']">		<div id='index_stats' class='ipsLayout_right clearfix' <if test="sidebarclosed2:|:IPSCookie::get('hide_sidebar') == '1'">style='display: none'</if>>			<foreach loop="side_blocks:$side_blocks as $block">				{$block}			</foreach>		</div>		<a href='#' id='toggle_sidebar' title='{$this->lang->words['toggle_sidebar']}' data-closed="{$this->lang->words['_laquo']}" data-open="&times;">&nbsp;</a>	</if>

 

If yes change the first line of the one you showed to this

<if test="recenttopics:|:is_array( $topics ) && count( $topics )==100">

 

That will stop the first one from showing. If it doesn't work change it back.

That just makes both disappear. I don't wanna waste your time, but do you have any more suggestions? If not it's alright.

Edited by Froob
Link to comment
Share on other sites

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