Quick Title Edition

How to remove attribute from topic and some other issues - Quick Title Edition

How to remove attribute from topic and some other issues

by leschek » Sat Apr 20, 2024 10:17 pm

I'm testing this extension and it looks quite interesting. But I'm not able to figure out, how to remove attribute from topic.
Let's say I create topic and add to it attribute [NEW] (for the topic about the new product). After while the product is released and not new any more, so I would like to remove the attribute from it. When I edit the topic, I can keep the actual attribute or replace it with other attributes I allowed to use in the topic, but I can't find option to remove the atribute from it (is there some setting I missed?).

I also would like to know where are used those language constants:

Code: Select all

	'QTE_SORT'	=> 'As attribute',
	'QTE_ALL'	=> 'All',
And it would be nice to be able to choose different attribute colour for different styles.
leschek
Registered User
Posts: 853
Joined: Tue Jul 18, 2006 12:49 pm

Re: How to remove attribute from topic and some other issues

by Kailey » Sat Apr 20, 2024 10:31 pm

leschek wrote: I can't find option to remove the atribute from it (is there some setting I missed?).
Do you not see this option?

QTE.png
QTE.png (17.68 KiB) Viewed 99 times
leschek wrote: I also would like to know where are used those language constants:

Code: Select all

	'QTE_SORT'	=> 'As attribute',
	'QTE_ALL'	=> 'All',
Seems they were leftover from a planned feature. Thanks for the report!
leschek wrote: And it would be nice to be able to choose different attribute colour for different styles.
Not currently possible.
Kailey Snay - Community Team Leader
Knowledge Base | Documentation | Community rules
If you have any questions about the rules/customs of this website, feel free to send me a PM.

My little corner of the world | Administrator @ phpBB Modders
User avatar
Kailey
Community Team Leader
Community Team Leader
Posts: 3804
Joined: Mon Sep 01, 2014 1:00 am
Location: sudo rm -rf /
Name: Kailey Snay

Re: How to remove attribute from topic and some other issues

by leschek » Sun Apr 21, 2024 11:37 am

Thanks for the reply.

I don't have there the option to delete the topic attribute:

Image
leschek
Registered User
Posts: 853
Joined: Tue Jul 18, 2006 12:49 pm

Re: How to remove attribute from topic and some other issues

by Kailey » Sun Apr 21, 2024 4:41 pm

Deleting an attribute is a per-forum moderator permission. Can you verify you have the appropriate permission? I guess I could include the option for the topic poster to delete the attribute in the next release.
Kailey Snay - Community Team Leader
Knowledge Base | Documentation | Community rules
If you have any questions about the rules/customs of this website, feel free to send me a PM.

My little corner of the world | Administrator @ phpBB Modders
User avatar
Kailey
Community Team Leader
Community Team Leader
Posts: 3804
Joined: Mon Sep 01, 2014 1:00 am
Location: sudo rm -rf /
Name: Kailey Snay

Re: How to remove attribute from topic and some other issues

by leschek » Sun Apr 21, 2024 8:52 pm

Kailey wrote:Deleting an attribute is a per-forum moderator permission. Can you verify you have the appropriate permission?
Thanks. I found the forum based moderator permission and it's working now.
Kailey wrote:I guess I could include the option for the topic poster to delete the attribute in the next release.
That would be nice.

EDIT:
I just trying to figure out where should be image (not sure what exactly imageset is), if I want to use only name of it as is written on page, where admin creates/edit attribute:

Code: Select all

Attribute image:
You can use the image name if it is served in the imageset or seize the relative path of the image.
leschek
Registered User
Posts: 853
Joined: Tue Jul 18, 2006 12:49 pm

Re: How to remove attribute from topic and some other issues

by Kailey » Sun Apr 21, 2024 10:53 pm

The imageset is part of the style. For custom images, I would place them at the root of your board and link to them directly (https://www.example.com/phpBB3/image.jpg, change appropriately).
Kailey Snay - Community Team Leader
Knowledge Base | Documentation | Community rules
If you have any questions about the rules/customs of this website, feel free to send me a PM.

My little corner of the world | Administrator @ phpBB Modders
User avatar
Kailey
Community Team Leader
Community Team Leader
Posts: 3804
Joined: Mon Sep 01, 2014 1:00 am
Location: sudo rm -rf /
Name: Kailey Snay

Re: How to remove attribute from topic and some other issues

by leschek » Mon Apr 22, 2024 2:48 pm

Thank you, relative path to image from board root folder is working.
Kailey wrote:The imageset is part of the style.
I think I heard about imageset file (and maybe edited it long time ago) where user defined icons, but I didn't find it in the style in the phpBB 3.3.
I did some searching and find this: viewtopic.php?p=15958649#p15958649
If it's true the sentence from language file:
You can use the image name if it is served in the imageset or seize the relative path of the image.
should be changed. I guess it's left over from the times of MODs.
leschek
Registered User
Posts: 853
Joined: Tue Jul 18, 2006 12:49 pm

Re: How to remove attribute from topic and some other issues

by Kailey » Sun May 05, 2024 10:14 pm

leschek wrote:I don't have there the option to delete the topic attribute
Can you try the following code change?

OPEN: qte.php

FIND:

Code: Select all

			'S_QTE_DELETE'		=> $s_delete,
REPLACE WITH:

Code: Select all

			'S_QTE_DELETE'		=> $s_author || $s_delete,
Kailey Snay - Community Team Leader
Knowledge Base | Documentation | Community rules
If you have any questions about the rules/customs of this website, feel free to send me a PM.

My little corner of the world | Administrator @ phpBB Modders
User avatar
Kailey
Community Team Leader
Community Team Leader
Posts: 3804
Joined: Mon Sep 01, 2014 1:00 am
Location: sudo rm -rf /
Name: Kailey Snay

Re: How to remove attribute from topic and some other issues

by leschek » Sat May 11, 2024 9:38 pm

Thanks.
It's working.
leschek
Registered User
Posts: 853
Joined: Tue Jul 18, 2006 12:49 pm

Re: How to remove attribute from topic and some other issues

by townsbg » Sat Jun 15, 2024 10:50 pm

Can you make it so that the mod permissions are global and per forum?
User avatar
townsbg
Registered User
Posts: 30
Joined: Mon Jan 18, 2010 1:06 am