Remove (validation) tag line [Deleted]

Gh0stAdventures

Active member
Gh0stAdventures submitted a new resource:

Remove (validation) tag line - This will remove the visibility and validation of the tag line

Hi Everyone,

I received a few messages regarding the tag line in Xenforo Resource Manager.

In the meanwhile I have tried to create an addon so it would be easier for you guys. But unfortunately some file need to be edited manually.

So here by a tutorial to remove the validation of the tagline, and also an option to remove the tagline view from the resources.

FIRST MAKE A BACKUP OF SRC/ADDONS/XFRM/Entity/ResourceItem.php

Removing the...

Read more about this resource...
 

Chris D

XenForo developer
Staff member
FWIW this can be done without modifying code too but it would need an add-on that changes the entity structure accordingly.

The recommended approach would be to create a entity_structure code event listener with a hint of XFRM\Entity\ResourceItem pointing to a function defined roughly as follows:

PHP:
public static function entityStructure(Structure $structure)
{
    unset($structure->columns['tag_line']['required']);
}

I haven't tested that but it looks about right to me :)
 

Gh0stAdventures

Active member
I have implemented it, and works great actually! Only I just don't know how to add an option for enabling and disabling this from the ACP.. Can you help me a little bit with that?
 

Chris D

XenForo developer
Staff member
If the add-on's only purpose is to remove the tag line requirement then it probably doesn't need an on/off switch as if someone didn't want that feature they could just remove the add-on or disable it.

If you still require an option and need help with that, posting a new thread in XenForo development discussions is the best course of action.
 

Cl0udzz

Member
everything works fine on 2.2.6 !
thank you so much for this help Gh0stAdventures !
I really really appreciate that ;)

Im looking for an way to remove the tagline since a very long time ^^
now.. finally ... its gone <3

Man you are amazing ;)
Thanks !
 
Top