Collapse duplicates?

For support and discussion related to templates, themes, and imagesets in phpBB 3.2.
User avatar
hawayman
Registered User
Posts: 8
Joined: Fri Dec 06, 2019 9:00 pm
Location: Earth
Name: Elar

Collapse duplicates?

Post by hawayman »

i dont understand why it give me those 3x duplicates and that small triangle icon?

Image

My code!

Code: Select all

		<!-- BEGIN custom_fields -->
		<div>
		<details>
		<summary title="PC Spec"><i class="icon fa-compress fa-fw" style="color: #0076b1" aria-hidden="true"></i> PC Spec</summary>
		<!-- IF not postrow.custom_fields.S_PROFILE_CONTACT -->
	    <dd class="profile-gender"><strong>{L_GENDER}{L_COLON}</strong> {postrow.USER_GENDER}</dd>
			<!-- ENDIF -->
			</details>
			</div>
		<!-- END custom_fields -->
User avatar
3Di
I've Been Banned!
Posts: 17538
Joined: Mon Apr 04, 2005 11:09 pm
Location: I'm with Ukraine 🇺🇦
Name: Marco

Re: Collapse duplicates?

Post by 3Di »

You placed the code inside the loop, should be outside of it. As per my example

Code: Select all

	<div>
		<details>
			<summary title="collapse cpf">&nbsp;&nbsp;<i class="icon fa-compress fa-fw" style="color: #0076b1" aria-hidden="true"></i> Collapse CPF</summary>
			
			<!-- EVENT viewtopic_body_postrow_custom_fields_before -->
			<!-- BEGIN custom_fields -->
				<!-- IF not postrow.custom_fields.S_PROFILE_CONTACT -->
					<dd class="profile-custom-field profile-{postrow.custom_fields.PROFILE_FIELD_IDENT}"><strong>{postrow.custom_fields.PROFILE_FIELD_NAME}{L_COLON}</strong> {postrow.custom_fields.PROFILE_FIELD_VALUE}</dd>
				<!-- ENDIF -->
			<!-- END custom_fields -->
			<!-- EVENT viewtopic_body_postrow_custom_fields_after -->
			
		</details>
	</div>
Please provide the link to the board and to the style you are using.
🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Buy me a coffee -> Image
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades
User avatar
hawayman
Registered User
Posts: 8
Joined: Fri Dec 06, 2019 9:00 pm
Location: Earth
Name: Elar

Re: Collapse duplicates?

Post by hawayman »

User avatar
3Di
I've Been Banned!
Posts: 17538
Joined: Mon Apr 04, 2005 11:09 pm
Location: I'm with Ukraine 🇺🇦
Name: Marco

Re: Collapse duplicates?

Post by 3Di »

You are using a 3.2.7 style for a 3.2.8 board FYI.

In any case the related code is the same as prosilver, so the code I gave you applies.

.\digi\template\viewtopic_body.html lines 183 to 189 to be surrounded by the details TAG

Code: Select all

	<div>
		<details>
			<summary title="collapse cpf">&nbsp;&nbsp;<i class="icon fa-compress fa-fw" style="color: #0076b1" aria-hidden="true"></i> Collapse CPF</summary>

			// your code block here

		</details>
	</div>
🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Buy me a coffee -> Image
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades
User avatar
david63
Registered User
Posts: 20646
Joined: Thu Dec 19, 2002 8:08 am

Re: Collapse duplicates?

Post by david63 »

Bear in mind that thedetails tag is not supported in Internet Explorer
David
Remember: You only know what you know and - you don't know what you don't know!

I now no longer support any of my extensions but they will start to become available here
User avatar
hawayman
Registered User
Posts: 8
Joined: Fri Dec 06, 2019 9:00 pm
Location: Earth
Name: Elar

Re: Collapse duplicates?

Post by hawayman »

Thanks, get working, one small issue stll, how i can remove that gray triange on start?

Return to “[3.2.x] Styles Support & Discussion”