Prevent guests knowing how many users I have

Winterrr

Member
Registered
Joined
Mar 24, 2021
Messages
5
Points
3

Reputation:

Hey there! I was wondering how I could prevent guests from knowing how many users I have

so when i type censored.com/members/1/ it comes up with
Capture.PNG


However, lets say I type censored.com/members/40385/ it would come up with this

Capture.PNG


Anyone know how I could refer it to the login page like the first one instead of saying "The requested user could not be found"?
I'm also having the same issue with the actual forums.

Thanks,
Winterrr
 
Last edited:

Jace

Collaborate
Collaborate
Registered
Joined
Aug 9, 2020
Messages
169
Points
73

Reputation:

whats the permission for these 2? can u screenshot it
1621160895234.png
 

Jace

Collaborate
Collaborate
Registered
Joined
Aug 9, 2020
Messages
169
Points
73

Reputation:

Do u have discord, would be best if we talk more about it on discord
 

BattleKing

Spirit of darkness
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P Member
Collaborate
Registered
Joined
May 24, 2020
Messages
3,497
Points
523

Reputation:

Please post the result here as well. Thanks
 

Jace

Collaborate
Collaborate
Registered
Joined
Aug 9, 2020
Messages
169
Points
73

Reputation:

basically Winter wants to modify the page "could not be found" if guest wants to view some random links redirect to login page
i used Siropu 404 Page Addon here and using conditional statements
1621175392521.png


and the code i used its from default template which is login template, and for the conditonal statements i used is

4. How can I Show content for member?
Code:
<xf:if is="$xf.visitor.user_id">
Show content...
</xf:if>
5. How can I Show content if not a member?
Code:
<xf:if is="!$xf.visitor.user_id">
Show content...
</xf:if>
 

Winterrr

Member
Registered
Joined
Mar 24, 2021
Messages
5
Points
3

Reputation:

basically Winter wants to modify the page "could not be found" if guest wants to view some random links redirect to login page
i used Siropu 404 Page Addon here and using conditional statements
View attachment 21811

and the code i used its from default template which is login template, and for the conditonal statements i used is

4. How can I Show content for member?
Code:
<xf:if is="$xf.visitor.user_id">
Show content...
</xf:if>
5. How can I Show content if not a member?
Code:
<xf:if is="!$xf.visitor.user_id">
Show content...
</xf:if>
JaceVouch <3
Really friendly and helpful user
 
Top