ext of national flags on viewforum ? - National Flags
ext of national flags on viewforum ?
Good evening
with ext of national flags it is put on viewforum near the member?
with ext of national flags it is put on viewforum near the member?
-
- Registered User
- Posts: 9
- Joined: Mon Dec 11, 2017 5:42 pm
Re: ext of national flags on viewforum ?
No, that isn't possible.
There are several places within when viewing a topic where you can have the flag display.
all selectable in the ACP settings of the extension.
There are several places within when viewing a topic where you can have the flag display.
Code: Select all
'FLAG_POSITION_AFTER_AVATAR' => 'After a users avatar', //1
'FLAG_POSITION_BEFORE_AVATAR' => 'Before a users avatar', //2
'FLAG_POSITION_AFTER_USER_NAME' => 'After a user name', //3
'FLAG_POSITION_BEFORE_USER_NAME' => 'Before a user name', //4
'FLAG_POSITION_ABOVE_RANK' => 'Above a users rank', //5
'FLAG_POSITION_BELOW_RANK' => 'Below a users rank', //6
'FLAG_POSITION_AFTER_PROFILE_FIELDS' => 'After profile fields', //7
'FLAG_POSITION_BEFORE_PROFILE_FIELDS' => 'Before profile fields', //8
'FLAG_POSITION_AFTER_CONTACT_FIELDS' => 'After contact fields', //0
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
Appreciate the extensions/mods/support then you can support me by buying a beer
-
- Former Team Member
- Posts: 22105
- Joined: Wed Jun 22, 2005 4:33 pm
- Location: Your display
- Name: Rich McGirr
Re: ext of national flags on viewforum ?
Hello RMcGirr83
I have to look in which file to see the place ?
I have to look in which file to see the place ?
-
- Registered User
- Posts: 9
- Joined: Mon Dec 11, 2017 5:42 pm
Re: ext of national flags on viewforum ?
It's in the works. 

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
Appreciate the extensions/mods/support then you can support me by buying a beer
-
- Former Team Member
- Posts: 22105
- Joined: Wed Jun 22, 2005 4:33 pm
- Location: Your display
- Name: Rich McGirr
Re: ext of national flags on viewforum ?
Hello
I'm sorry but I can not find the file or I could put this code I see that you walk all by all? I have that flag in viewtopic for the rest it and not the
I'm sorry but I can not find the file or I could put this code I see that you walk all by all? I have that flag in viewtopic for the rest it and not the
-
- Registered User
- Posts: 9
- Joined: Mon Dec 11, 2017 5:42 pm
Re: ext of national flags on viewforum ?
It will be in the next version.
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
Appreciate the extensions/mods/support then you can support me by buying a beer
-
- Former Team Member
- Posts: 22105
- Joined: Wed Jun 22, 2005 4:33 pm
- Location: Your display
- Name: Rich McGirr
Re: ext of national flags on viewforum ?
OK, thanks
I'm waiting for your new version
thank you
I'm waiting for your new version
thank you
-
- Registered User
- Posts: 9
- Joined: Mon Dec 11, 2017 5:42 pm
Re: ext of national flags on viewforum ?
In version 2.1.4
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
Appreciate the extensions/mods/support then you can support me by buying a beer
-
- Former Team Member
- Posts: 22105
- Joined: Wed Jun 22, 2005 4:33 pm
- Location: Your display
- Name: Rich McGirr
Re: ext of national flags on viewforum ?
HiRMcGirr83 wrote:In version 2.1.4
I installed the last version, can you add a switch in ACP to not showing flag in viewforum ?, i prefer like old version (only in viewtopic).
Or what file i need to edit to remove it ?
Thanks
-
- Registered User
- Posts: 45
- Joined: Sun Aug 09, 2015 3:33 pm
Re: ext of national flags on viewforum ?
No matter how hard I try, I fail at pleasing everyone all the time. ***sigh***
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
Appreciate the extensions/mods/support then you can support me by buying a beer
-
- Former Team Member
- Posts: 22105
- Joined: Wed Jun 22, 2005 4:33 pm
- Location: Your display
- Name: Rich McGirr
Re: ext of national flags on viewforum ?
RMcGirr83 wrote:No matter how hard I try, I fail at pleasing everyone all the time. ***sigh***

-
- Registered User
- Posts: 45
- Joined: Sun Aug 09, 2015 3:33 pm
Re: ext of national flags on viewforum ?
Hi
@panteror, you can made a simple minimal invasive change:
1. Edit event/listener.php
2. Go to the line with "public function viewforum_modify_topicrow"
3. In the next line add "return;" after "{", see the following detail:
This will disable the flags after TOPIC_AUTHOR_FULL and LAST_POST_AUTHOR_FULL on INDEX and VIEWFORUM.
After developing programs more than 30 years i can say this: don't try it, because it's really impossible!RMcGirr83 wrote:No matter how hard I try, I fail at pleasing everyone all the time[/b]. ***sigh***

Agree. I also don't like the flags on INDEX and VIEWFORUM. There should really be a switch in ACP for that.panteror wrote:I installed the last version, can you add a switch in ACP to not showing flag in viewforum ?, i prefer like old version (only in viewtopic).
Or what file i need to edit to remove it ?
@panteror, you can made a simple minimal invasive change:
1. Edit event/listener.php
2. Go to the line with "public function viewforum_modify_topicrow"
3. In the next line add "return;" after "{", see the following detail:
Code: Select all
public function viewforum_modify_topicrow($event)
{return;
$users_flag_array = $this->nationalflags->get_users_and_flags_cache();
May the backup be with you. Always.
-
- Registered User
- Posts: 295
- Joined: Mon Dec 08, 2014 12:32 pm
- Location: Germany
Re: ext of national flags on viewforum ?
Hi,LukeWCS wrote:Hi
After developing programs more than 30 years i can say this: don't try it, because it's really impossible!RMcGirr83 wrote:No matter how hard I try, I fail at pleasing everyone all the time[/b]. ***sigh***![]()
Agree. I also don't like the flags on INDEX and VIEWFORUM. There should really be a switch in ACP for that.panteror wrote:I installed the last version, can you add a switch in ACP to not showing flag in viewforum ?, i prefer like old version (only in viewtopic).
Or what file i need to edit to remove it ?
@panteror, you can made a simple minimal invasive change:
1. Edit event/listener.php
2. Go to the line with "public function viewforum_modify_topicrow"
3. In the next line add "return;" after "{", see the following detail:
This will disable the flags after TOPIC_AUTHOR_FULL and LAST_POST_AUTHOR_FULL on INDEX and VIEWFORUM.Code: Select all
public function viewforum_modify_topicrow($event) {return; $users_flag_array = $this->nationalflags->get_users_and_flags_cache();
I tested your modification, i still have flag on index forum, it's OK on viewforum. What i need to change ? Thanks.
EDIT: I also changed the line
Code: Select all
public function display_forums_modify_template_vars($event)
{return;
-
- Registered User
- Posts: 45
- Joined: Sun Aug 09, 2015 3:33 pm
Re: ext of national flags on viewforum ?
It's even easier than that, within the listener file make these two lines
like this
Then flags won't display in viewforum nor on the idex page or other pages where forums are displayed.
Code: Select all
'core.display_forums_modify_template_vars' => 'display_forums_modify_template_vars',
'core.viewforum_modify_topicrow' => 'viewforum_modify_topicrow',
Code: Select all
//'core.display_forums_modify_template_vars' => 'display_forums_modify_template_vars',
//'core.viewforum_modify_topicrow' => 'viewforum_modify_topicrow',
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
Appreciate the extensions/mods/support then you can support me by buying a beer
-
- Former Team Member
- Posts: 22105
- Joined: Wed Jun 22, 2005 4:33 pm
- Location: Your display
- Name: Rich McGirr
Re: ext of national flags on viewforum ?
Thanks RMcGirr83
-
- Registered User
- Posts: 45
- Joined: Sun Aug 09, 2015 3:33 pm