How to hide contact from guests and newly registered?

Get help with installation and running phpBB 3.1.x here. Please do not post bug reports, feature requests, or extension related questions here.
Get Involved
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTE: phpBB 3.1.x is at its End of Life stage and support will NOT be provided after July 1st, 2018.
User avatar
2600
I've Been Banned!
Posts: 2567
Joined: Fri Nov 14, 2014 5:14 pm
Location: Area-51

Re: How to hide contact from guests and newly registered?

Post by 2600 »

I TOLD YOU! I'm testing this in a local environment in Xampp on my computer! Just to single out anything. Both the live website and my local environment fails. I just downloaded 3.1.10 from here and uploaded it to Xampp.

Here is a video. I clear the browser cache and I cleared the forum cache. You will see Never permissions for NRU and Guest group. https://youtu.be/OsEwzUtmybw


https://www.apachefriends.org/index.html
Morpheus: Unfortunately, no one can be told what The Matrix is. You'll have to see it for yourself.
Hack me.
Consider a canary token.
The nature of my chosen username
:ugeek:
User avatar
RMcGirr83
Former Team Member
Posts: 22016
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: How to hide contact from guests and newly registered?

Post by RMcGirr83 »

You never said it had to do with website field. Anyway, each profile field can be assigned to display when viewing a topic or not. They are not permission based and there is no auth check within the file.
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then buy me a beer Image
User avatar
Lumpy Burgertushie
Registered User
Posts: 69223
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: How to hide contact from guests and newly registered?

Post by Lumpy Burgertushie »

ok, I will try again. this topic is supposedly about the contact bubble that is below the mini profile on the viewtopic page.

if that is true then go here:
http://phpbbusers.com/testblank

that is a brand new fresh install of 3.1.10 I just did.
you will notice that as a guest, you can NOT see that bubble under my mini profile when viewing either of the two posts made on that board.

if you log in with the username fred and the password fafafa you will be in the newly registered usergroup since there have been no posts made by that user yet. if you view either of the two posts made by me, you will notice that you can NOT see that contact bubble then either.

the settings are thus:

guest group permissions are by default set to no for the permission of can view profile/memberlist etc.

newly registered user group permissions I set to never for that permission. ( by default they were set to no )

If I am completely misunderstanding the point of this topic someone please let me know and I will stop worrying about it. If not, then I don't know why others in this topic are not seeing the same results I am.
robert
Premium phpBB 3.3 Styles by PlanetStyles.net

I am pleased to announce that I have completed the first item on my bucket list. I have the bucket.
User avatar
RMcGirr83
Former Team Member
Posts: 22016
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: How to hide contact from guests and newly registered?

Post by RMcGirr83 »

Robert, insert a website into a users profile then view again as a guest.
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then buy me a beer Image
User avatar
2600
I've Been Banned!
Posts: 2567
Joined: Fri Nov 14, 2014 5:14 pm
Location: Area-51

Re: How to hide contact from guests and newly registered?

Post by 2600 »

Okay, I just updated to a new version of Xampp and I can now successfully test this with the never permission and the Contact bubble disappears for Guest. I now uploaded my current live forum into Xampp and I'm unsuccessful with that same permission. Even the live site is unsuccessful. It seem like it's hit and miss. I don't know why. I will further test this. In the mean time, can someone tell me what database entries are responsible for the Never permission to not view the Contact bubble so I can look.
Morpheus: Unfortunately, no one can be told what The Matrix is. You'll have to see it for yourself.
Hack me.
Consider a canary token.
The nature of my chosen username
:ugeek:
User avatar
RMcGirr83
Former Team Member
Posts: 22016
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: How to hide contact from guests and newly registered?

Post by RMcGirr83 »

Do you actually read what is written in these topics?
RMcGirr83 wrote:You never said it had to do with website field. Anyway, each profile field can be assigned to display when viewing a topic or not. They are not permission based and there is no auth check within the file.
The vid you posted shows the contact for a website, not for PM's, not for email etc (hint, it will also display if you have a google+ entry in your UCP).
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then buy me a beer Image
User avatar
Lumpy Burgertushie
Registered User
Posts: 69223
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: How to hide contact from guests and newly registered?

Post by Lumpy Burgertushie »

RMcGirr83 wrote:Robert, insert a website into a users profile then view again as a guest.
well, would you look at that. I wonder why that is so. doesn't make any sense to me for that to work like that.
even with it set to never for both guest and NRU it can still be seen. very strange.


Ok, I will bow out now.

sorry for the confusion.


robert
Premium phpBB 3.3 Styles by PlanetStyles.net

I am pleased to announce that I have completed the first item on my bucket list. I have the bucket.
User avatar
2600
I've Been Banned!
Posts: 2567
Joined: Fri Nov 14, 2014 5:14 pm
Location: Area-51

Re: How to hide contact from guests and newly registered?

Post by 2600 »

Yep! It looks like just PM contact is hidden and that is it! Damn! All this futzing around.

So now it looks like I have to use that extension after all. I just need to know where to place <!-- IF not S_GROUP_1 or IF not S_GROUP_7-->
<!-- ENDIF -->
Morpheus: Unfortunately, no one can be told what The Matrix is. You'll have to see it for yourself.
Hack me.
Consider a canary token.
The nature of my chosen username
:ugeek:
User avatar
martti
Registered User
Posts: 911
Joined: Thu Jul 31, 2014 8:23 am
Location: Belgium

Re: How to hide contact from guests and newly registered?

Post by martti »

stevemaury wrote: Fri Nov 18, 2016 4:47 pm

Code: Select all

<!-- IF not S_GROUP_N or IF not S_GROUP_X--> (where N and/or X is the group_id of the group you want to hide it from)
That's not correct template systax I think (twice using IF)

Suggestion:

Code: Select all

<!-- IF not (S_GROUP_A or S_GROUP_B) -->
No users in group A or B will see this  (replace A and B with id numbers)
<!-- ENDIF -->
arlternative:

Code: Select all

<!-- IF ((not S_GROUP_A) and (not S_GROUP_B)) -->
No users in group A or B will see this  (replace A and B with id numbers)
<!-- ENDIF -->
User avatar
2600
I've Been Banned!
Posts: 2567
Joined: Fri Nov 14, 2014 5:14 pm
Location: Area-51

Re: How to hide contact from guests and newly registered?

Post by 2600 »

It seems to want to work, but the text is off.


https://imgur.com/H5DT0tm


Here is my code:

Code: Select all

<!-- IF ((not S_GROUP_1) and (not S_GROUP_7)) -->    
                            <dd class="profile-contact">
				<strong>{L_CONTACT}{L_COLON}</strong>
				<div class="dropdown-container dropdown-left">
					<a href="#" class="dropdown-trigger" title="{postrow.CONTACT_USER}">
						<i class="icon fa-commenting-o fa-fw icon-lg" aria-hidden="true"></i><span class="sr-only">{postrow.CONTACT_USER}</span>
					</a>
					<div class="dropdown">
						<div class="pointer"><div class="pointer-inner"></div></div>
						<div class="dropdown-contents contact-icons">
							<!-- BEGIN contact -->
								{% set REMAINDER = postrow.contact.S_ROW_COUNT % 4 %}
								<!-- DEFINE $S_LAST_CELL = ((REMAINDER eq 3) or (postrow.contact.S_LAST_ROW and postrow.contact.S_NUM_ROWS < 4)) -->
								<!-- IF REMAINDER eq 0 -->
									<div>
								<!-- ENDIF -->
									<a href="<!-- IF postrow.contact.U_CONTACT -->{postrow.contact.U_CONTACT}<!-- ELSE -->{postrow.U_POST_AUTHOR}<!-- ENDIF -->" title="{postrow.contact.NAME}"<!-- IF $S_LAST_CELL --> class="last-cell"<!-- ENDIF --><!-- IF postrow.contact.ID eq 'jabber' --> onclick="popup(this.href, 750, 320); return false;"<!-- ENDIF -->>
										<span class="contact-icon {postrow.contact.ID}-icon">{postrow.contact.NAME}</span>
									</a>
								<!-- IF REMAINDER eq 3 or postrow.contact.S_LAST_ROW -->
									</div>
								<!-- ENDIF -->
                                                                
							<!-- END contact -->
                                                        <!-- ENDIF -->
Morpheus: Unfortunately, no one can be told what The Matrix is. You'll have to see it for yourself.
Hack me.
Consider a canary token.
The nature of my chosen username
:ugeek:
User avatar
RMcGirr83
Former Team Member
Posts: 22016
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: How to hide contact from guests and newly registered?

Post by RMcGirr83 »

You need to post in the support section of the extension.
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then buy me a beer Image
User avatar
martti
Registered User
Posts: 911
Joined: Thu Jul 31, 2014 8:23 am
Location: Belgium

Re: How to hide contact from guests and newly registered?

Post by martti »

Well, that got to do with some styling. It doesn't fall under the reponsibility of the extension. The extension only provides the extra template vars S_GROUP_ID where ID is the group id number.
User avatar
2600
I've Been Banned!
Posts: 2567
Joined: Fri Nov 14, 2014 5:14 pm
Location: Area-51

Re: How to hide contact from guests and newly registered?

Post by 2600 »

I kinda figured as much. How do I go about making it work then? Or is it next to impossible? I use the Win 10 Dark theme I think it's called.
Morpheus: Unfortunately, no one can be told what The Matrix is. You'll have to see it for yourself.
Hack me.
Consider a canary token.
The nature of my chosen username
:ugeek:
User avatar
Mick
Support Team Member
Support Team Member
Posts: 26505
Joined: Fri Aug 29, 2008 9:49 am

Re: How to hide contact from guests and newly registered?

Post by Mick »

John connor wrote: Sat Apr 21, 2018 9:30 amHow do I go about making it work then?
If it’s an issue with the style you should post in the support forum for the style, similarly with an extension problem.
  • "The more connected we get the more alone we become" - Kyle Broflovski©
  • "The good news is hell is just the product of a morbid human imagination.
    The bad news is, whatever humans can imagine, they can usually create.
    " - Harmony Cobel
User avatar
2600
I've Been Banned!
Posts: 2567
Joined: Fri Nov 14, 2014 5:14 pm
Location: Area-51

Re: How to hide contact from guests and newly registered?

Post by 2600 »

Okay, I may do that. I did add this code to my other site with a different style and it works. I may just change the style and say the hell with it. The style I'm using is code heavy anyway.
Morpheus: Unfortunately, no one can be told what The Matrix is. You'll have to see it for yourself.
Hack me.
Consider a canary token.
The nature of my chosen username
:ugeek:
Locked

Return to “[3.1.x] Support Forum”