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.
Scam Warning
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
John connor
Registered User
Posts: 1525
Joined: Fri Nov 14, 2014 5:14 pm
Location: U S Of A
Contact:

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

Post by John connor » Tue Nov 22, 2016 4:28 pm

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

User avatar
RMcGirr83
Recognised Extension Developer
Posts: 20784
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr
Contact:

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

Post by RMcGirr83 » Tue Nov 22, 2016 4:51 pm

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.
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored

User avatar
Lumpy Burgertushie
Registered User
Posts: 64265
Joined: Mon May 02, 2005 3:11 am
Contact:

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

Post by Lumpy Burgertushie » Tue Nov 22, 2016 5:55 pm

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
I am available for custom work on a donation basis. Please send me a PM with your needs.

Premium phpBB 3.2 Styles by PlanetStyles.net

User avatar
RMcGirr83
Recognised Extension Developer
Posts: 20784
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr
Contact:

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

Post by RMcGirr83 » Tue Nov 22, 2016 6:10 pm

Robert, insert a website into a users profile then view again as a guest.
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored

User avatar
John connor
Registered User
Posts: 1525
Joined: Fri Nov 14, 2014 5:14 pm
Location: U S Of A
Contact:

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

Post by John connor » Tue Nov 22, 2016 6:19 pm

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.

User avatar
RMcGirr83
Recognised Extension Developer
Posts: 20784
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr
Contact:

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

Post by RMcGirr83 » Tue Nov 22, 2016 6:35 pm

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).
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored

User avatar
Lumpy Burgertushie
Registered User
Posts: 64265
Joined: Mon May 02, 2005 3:11 am
Contact:

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

Post by Lumpy Burgertushie » Tue Nov 22, 2016 6:49 pm

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
I am available for custom work on a donation basis. Please send me a PM with your needs.

Premium phpBB 3.2 Styles by PlanetStyles.net

User avatar
John connor
Registered User
Posts: 1525
Joined: Fri Nov 14, 2014 5:14 pm
Location: U S Of A
Contact:

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

Post by John connor » Tue Nov 22, 2016 7:01 pm

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 -->

User avatar
martti
Registered User
Posts: 500
Joined: Thu Jul 31, 2014 8:23 am
Location: Belgium

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

Post by martti » Wed Apr 18, 2018 6:30 pm

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
John connor
Registered User
Posts: 1525
Joined: Fri Nov 14, 2014 5:14 pm
Location: U S Of A
Contact:

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

Post by John connor » Thu Apr 19, 2018 2:12 pm

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 -->

User avatar
RMcGirr83
Recognised Extension Developer
Posts: 20784
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr
Contact:

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

Post by RMcGirr83 » Thu Apr 19, 2018 3:45 pm

You need to post in the support section of the extension.
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored

User avatar
martti
Registered User
Posts: 500
Joined: Thu Jul 31, 2014 8:23 am
Location: Belgium

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

Post by martti » Sat Apr 21, 2018 6:57 am

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
John connor
Registered User
Posts: 1525
Joined: Fri Nov 14, 2014 5:14 pm
Location: U S Of A
Contact:

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

Post by John connor » Sat Apr 21, 2018 9:30 am

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.

User avatar
Mick
Support Team Member
Support Team Member
Posts: 19116
Joined: Fri Aug 29, 2008 9:49 am
Location: Cardiff

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

Post by Mick » Sat Apr 21, 2018 9:40 am

John connor wrote:
Sat Apr 21, 2018 9:30 am
How 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

There are no ‘threads’ in phpBB, they are topics.
Forza Garibaldi

User avatar
John connor
Registered User
Posts: 1525
Joined: Fri Nov 14, 2014 5:14 pm
Location: U S Of A
Contact:

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

Post by John connor » Sat Apr 21, 2018 9:47 am

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.

Post Reply

Return to “[3.1.x] Support Forum”

Who is online

Users browsing this forum: No registered users and 14 guests