Separate Categories.

Need some custom code changes to the phpBB core simple enough that you feel doesn't require an extension? Then post your request here so that community members can provide some assistance.

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
Oligarhz
Registered User
Posts: 28
Joined: Fri Feb 21, 2014 7:04 pm

Separate Categories.

Post by Oligarhz »

Hello guys I've installed a Separate Categories mod. Everything works great.

I have a little problem, In the forum it shows over all of the categories "Topics".
It should be "Global" on the first category. "Announcments" on the second. "Sticky" on the three. and then "Topics". I checked my lanugage common's file and viewforum.php.

I think it's something in viewforumbody.html.

This mod worked for me in 3.1. I am sure someone can help me to fit it to 3.2.

The mod says to :
<open src="styles/prosilver/template/viewforum_body.html">
<edit>
FIND:
<find><![CDATA[ <dt><!-- IF S_DISPLAY_ACTIVE -->{L_ACTIVE_TOPICS}<!-- ELSEIF topicrow.S_TOPIC_TYPE_SWITCH and (topicrow.S_POST_ANNOUNCE or topicrow.S_POST_GLOBAL) -->{L_ANNOUNCEMENTS}<!-- ELSE -->{L_TOPICS}<!-- ENDIF --></dt>]]></find>

And replace
<action type="replace-with"><![CDATA[ <dt><!-- IF S_DISPLAY_ACTIVE and topicrow.S_TOPIC_TYPE ne 1 -->{L_ACTIVE_TOPICS}<!-- ELSEIF topicrow.S_TOPIC_TYPE eq 3 -->{L_GLOBAL_ANNOUNCEMENTS}<!-- ELSEIF (topicrow.S_POST_ANNOUNCE or topicrow.S_POST_GLOBAL) eq 2 -->{L_ANNOUNCEMENTS}<!-- ELSEIF topicrow.S_TOPIC_TYPE eq 1 -->{L_STICKY}<!-- ELSE -->{L_TOPICS}<!-- ENDIF --></dt>]]></action>
</edit>

I know the problem is there since I right clicked on the "Topics" and then Check ingredient and it showed me there.

Help please.
Oligarhz
Registered User
Posts: 28
Joined: Fri Feb 21, 2014 7:04 pm

Re: Separate Categories.

Post by Oligarhz »

Fixed it by myself. Thanks.
User avatar
RMcGirr83
Former Team Member
Posts: 22093
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: Separate Categories.

Post by RMcGirr83 »

Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then you can support me by buying a beer 🍺

Return to “phpBB Custom Coding”