Page Index Toggle Pages: [1]  ReplyAdd Poll Send Topic
Hot Topic (More than 10 Replies) ViewProfile Intercept (Read 8258 times)
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
YaBB Modder
*****
Offline


I love YaBB 2.7!

Posts: 2234
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
ViewProfile Intercept
Oct 8th, 2014 at 7:45pm
Mark & QuoteQuote  
ViewProfile Intercept YaBB 2.6.11

This mod blocks guests from seeing member 'view profile' links. Admin can choose to have no link and a title 'pop-up' explaining that this is a member-only feature or a link to a 'Register or Login' screen.

Version History
---------------
0.1 - First release - Oct 8, 2014
0.2 - For 2.6.11 - Jan 15, 2015

Instructions:

Apply the mod and upload (in ASCII mode):

cgi-bin/yabb2/Admin/Modlist.pm
cgi-bin/yabb2/Admin/NewSettings.pm
cgi-bin/yabb2/Admin/Settings_Main.pm
cgi-bin/yabb2/Languages/English/Admin.lng
cgi-bin/yabb2/Sources/BoardIndex.pm
cgi-bin/yabb2/Sources/Display.pm
cgi-bin/yabb2/Sources/EventCal.pm
cgi-bin/yabb2/Sources/EventCalBirthdays.pm
cgi-bin/yabb2/Sources/MessageIndex.pm
cgi-bin/yabb2/Sources/Poll.pm
cgi-bin/yabb2/Sources/Post.pm
cgi-bin/yabb2/Sources/Recent.pm
cgi-bin/yabb2/Sources/Search.pm
cgi-bin/yabb2/Sources/SubList.pm
cgi-bin/yabb2/Sources/Subs.pm
cgi-bin/yabb2/Templates/default/Other.template

(This will be included in 2.6.2)
« Last Edit: Feb 23rd, 2015 at 6:28pm by Dandello » 
Reason: New Zip 

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box Simps
New Member
*
Offline


I Love YaBB!

Posts: 20
Location: UK
Joined: Jul 22nd, 2014
Gender: Male
Zodiac sign: Leo
Re: ViewProfile Intercept
Reply #1 - Oct 18th, 2014 at 11:54pm
Mark & QuoteQuote  
Is this already in 2.6.1
As a guest I cannot view users profile links on my 2.6.1 forum.
  
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 2234
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: ViewProfile Intercept
Reply #2 - Oct 19th, 2014 at 12:41am
Mark & QuoteQuote  
This stops the error from being thrown into the errorlog by stopping the creation of the link to the Profile. It's a subtle difference, but bots won't have the address of the profile so they're stopped from filling the errorlog with their attempts to access it.
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box Simps
New Member
*
Offline


I Love YaBB!

Posts: 20
Location: UK
Joined: Jul 22nd, 2014
Gender: Male
Zodiac sign: Leo
Re: ViewProfile Intercept
Reply #3 - Oct 19th, 2014 at 12:55am
Mark & QuoteQuote  
Ahh ok , thanks for clearing that up.
  
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 2234
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: ViewProfile Intercept
Reply #4 - Oct 19th, 2014 at 1:29am
Mark & QuoteQuote  
It also gives the admin the option to have the ViewProfile link go to a 'register or login' screen so guests know that Member info is available to other Members. (And will be part of 2.6.2)
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box pyragony54
Language
***
Offline


I Love YaBB!

Posts: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
Re: ViewProfile Intercept
Reply #5 - Nov 16th, 2014 at 3:23pm
Mark & QuoteQuote  
Code
Select All
<edit file>
 Languages/German/Admin.lng
 </edit file>

 <search for>
 1;
 </search for>

 <add before>
 $admin_txt{'profile_int'} = q~Leiten Sie Gastklicks auf Mitgliedernamensverbindungen zu einer 'Register oder Anmeldung' Seite um. Deaktivieren Sie den Mitgliedsnamen-Link für Gäste.~;

 </add before>

 <edit file>
 Languages/German/Main.lng
 </edit file>

 <search for>
 1;
 </search for>

 <add before>
 $maintxt{'members_only'} = q~Nur Mitglieder können auf das Profil eines anderen Mitglieds zugreifen.~;
 $maintxt{'reg_please'} = qq~Bitte <a href="$scripturl?action=register" style="font-weight: bold;">registrieren Sie einen Account bei uns</a> oder <a href="$scripturl?action=login" style="font-weight: bold;">loggen Sie sich ein.</a>.~;
 $maintxt{'regplease'} = q~Bitte registrieren.~;

 </add before> 









Code
Select All
<edit file>
 Languages/German_Du/Admin.lng
 </edit file>

 <search for>
 1;
 </search for>

 <add before>
 $admin_txt{'profile_int'} = q~Leite Gastklicks auf Mitgliedernamensverbindungen zu einer 'Register oder Anmeldung' Seite um. Deaktiviere den Mitgliedsnamen-Link für Gäste.~;

 </add before>

 <edit file>
 Languages/German_Du/Main.lng
 </edit file>

 <search for>
 1;
 </search for>

 <add before>
 $maintxt{'members_only'} = q~Nur Mitglieder können auf das Profil eines anderen Mitglieds zugreifen.~;
 $maintxt{'reg_please'} = qq~Bitte <a href="$scripturl?action=register" style="font-weight: bold;">registriere einen Account bei uns</a> oder <a href="$scripturl?action=login" style="font-weight: bold;">logge Dich ein.</a>.~;
 $maintxt{'regplease'} = q~Bitte registrieren.~;

 </add before> 

  

if (idea == 'none') {use (manuals) && (Google | | search)}
if ($ answer == 0) {post (question)}
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box pyragony54
Language
***
Offline


I Love YaBB!

Posts: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
Re: ViewProfile Intercept
Reply #6 - Nov 16th, 2014 at 3:29pm
Mark & QuoteQuote  
Hopefully that works with Google. The constantly wants to access the profile and writes the error log so that within a short time fully.
  

Bild2_012.jpg ( 135 KB | 151 Downloads )

if (idea == 'none') {use (manuals) && (Google | | search)}
if ($ answer == 0) {post (question)}
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 2234
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: ViewProfile Intercept
Reply #7 - Nov 16th, 2014 at 3:48pm
Mark & QuoteQuote  
This is why I wrote the mod - removing the links for guests is part of latter versions of 2.6.1, but it's always good to give admins options of how to tell guests what they're missing by not joining.

However, Google may take a while to figure out the links are gone. I still haven't figured out a good way to have certain errors throw proper 404 and 403 errors back to the spiders. That's what will tell Google it's trespassing.
Edited:
But you should be able to tell Google to ignore links to member profiles using robot.txt - Google supposedly actually reads and obeys robots.txt
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box pyragony54
Language
***
Offline


I Love YaBB!

Posts: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
Re: ViewProfile Intercept
Reply #8 - Nov 16th, 2014 at 4:26pm
Mark & QuoteQuote  
Dandello wrote on Nov 16th, 2014 at 3:48pm:
But you should be able to tell Google to ignore links to member profiles using robot.txt - Google supposedly actually reads and obeys robots.txt


Also an idea. Why I do not get on.
  

if (idea == 'none') {use (manuals) && (Google | | search)}
if ($ answer == 0) {post (question)}
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 2234
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: ViewProfile Intercept
Reply #9 - Nov 16th, 2014 at 4:54pm
Mark & QuoteQuote  
I'm doing some research - I think there needs to be an extra Meta Tag tag added to error pages to keep them from being indexed and (in theory), adding
Code
Select All
Disallow:/*action=viewprofile 

to your robots.txt file should keep Google from trying to index Profile pages it can't reach as it goes through its internal list of possible pages. But it may take a while for Google to get the message that the links are gone.

You may actually need to get a Google Webmaster account (if you don't have one) and manually remove those pages from its list of 'pages to look for'. (See http://stackoverflow.com/questions/19113788/google-disable-certain-querystring-i...
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box pyragony54
Language
***
Offline


I Love YaBB!

Posts: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
Re: ViewProfile Intercept
Reply #10 - Nov 16th, 2014 at 5:07pm
Mark & QuoteQuote  
@ Dandello

Thanks. I have a Google-Account an a robots.txt is not a Problem.
  

if (idea == 'none') {use (manuals) && (Google | | search)}
if ($ answer == 0) {post (question)}
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 2234
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: ViewProfile Intercept
Reply #11 - Nov 16th, 2014 at 5:38pm
Mark & QuoteQuote  
I think this issue also points out that the Advanced ErrorLog Security may need a white list setting to keep from accidentally blocking 'good' bots. (Amazing how seemingly unrelated issues are actually related.  Tongue )
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box pyragony54
Language
***
Offline


I Love YaBB!

Posts: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
Re: ViewProfile Intercept
Reply #12 - Dec 7th, 2014 at 10:14am
Mark & QuoteQuote  
fit for build 1611. No change necessary.
  

if (idea == 'none') {use (manuals) && (Google | | search)}
if ($ answer == 0) {post (question)}
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box pyragony54
Language
***
Offline


I Love YaBB!

Posts: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
Re: ViewProfile Intercept
Reply #13 - Feb 23rd, 2015 at 6:15pm
Mark & QuoteQuote  
German Files not in ANSI.

How can I change something yourself?
I think because no useful program.
  

if (idea == 'none') {use (manuals) && (Google | | search)}
if ($ answer == 0) {post (question)}
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 2234
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: ViewProfile Intercept
Reply #14 - Feb 23rd, 2015 at 6:27pm
Mark & QuoteQuote  
It's useful in that it give the admin some options for how to handle the viewprofile link that bots shouldn't can't follow.

New German zip in 1st post.

  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box Monni
Language
***
Offline


Min izāmō

Posts: 413
Location: Kaarina, Finland
Joined: Jul 16th, 2014
Gender: Male
Mood: Frustrated
Zodiac sign: Pisces
Re: ViewProfile Intercept
Reply #15 - Feb 23rd, 2015 at 6:30pm
Mark & QuoteQuote  
pyragony54 wrote on Feb 23rd, 2015 at 6:15pm:
German Files not in ANSI.

How can I change something yourself?
I think because no useful program.


Fast way to convert from UTF-8 to ANSI is to open the file in Notepad and saving it using "Save as...". It doesn't work the other way around as it will insert byte-order mark at the beginning of the first line.
  
Back to top
IP Logged
 
Paste Member Name in Quick Reply Box pyragony54
Language
***
Offline


I Love YaBB!

Posts: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
Re: ViewProfile Intercept
Reply #16 - Feb 23rd, 2015 at 7:20pm
Mark & QuoteQuote  
That's easy. I will try it. I just never stop must deal with it.
  

if (idea == 'none') {use (manuals) && (Google | | search)}
if ($ answer == 0) {post (question)}
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 2234
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: ViewProfile Intercept
Reply #17 - Feb 23rd, 2015 at 8:22pm
Mark & QuoteQuote  
If you save the ANSI as UTF-8 wo BOM, then it doesn't add the marker (And I do try to save all the files as UTF-8 wo BOM.)
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box Batchman
Full Member
***
Offline


I Love YaBB!

Posts: 165
Location: Somewhere just East of Crazy
Joined: Jul 25th, 2014
Gender: Male
Mood: Depressed
Zodiac sign: Libra
Re: ViewProfile Intercept
Reply #18 - Feb 25th, 2015 at 4:02am
Mark & QuoteQuote  
Didn't install for me ... 21 of 30 steps failed. With that many, I am expecting it probably conflicts with another mod or something.
  

If you don't know where you are, but you don't care, you're not lost ... you're exploring!
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 2234
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: ViewProfile Intercept
Reply #19 - Feb 25th, 2015 at 4:20am
Mark & QuoteQuote  
@Batchman - this one will be part of 2.6.2 - plus all the testing is finding places where even more changes need to be made to the MainLine for better mod compatability.
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box Batchman
Full Member
***
Offline


I Love YaBB!

Posts: 165
Location: Somewhere just East of Crazy
Joined: Jul 25th, 2014
Gender: Male
Mood: Depressed
Zodiac sign: Libra
Re: ViewProfile Intercept
Reply #20 - Feb 25th, 2015 at 4:34am
Mark & QuoteQuote  
OK, then I will bow out on helping with this particular one.  Smiley
  

If you don't know where you are, but you don't care, you're not lost ... you're exploring!
Back to top
 
IP Logged
 
Page Index Toggle Pages: [1] 
ReplyAdd Poll Send Topic
Bookmarks: del.icio.us Digg Facebook Google LinkedIn reddit Twitter Yahoo
ViewProfile Intercept

Please type the characters exactly as they appear in the image,
without the first 2 and last 2 characters.
The characters must be typed in the same order,
and they are case-sensitive.
Open Preview Preview

You can resize the textbox by dragging the right or bottom border.
Off Topic Comment Insert Spoiler
Insert Hyperlink Insert FTP Link Insert Image Insert E-mail Insert Media Insert Table Insert Table Row Insert Table Column Insert Horizontal Rule Insert Teletype Insert Code Insert Quote Edited Superscript Subscript Insert List /me - my name Insert Marquee Insert Timestamp No Parse
Bold Italicized Underline Insert Strikethrough Highlight
                       
Change Text Color
Insert Preformatted Text Left Align Centered Right Align
resize_wb
resize_hb







Max 5000 characters. Remaining characters:
Text size: %
More Smilies
View All Smilies
Collapse additional features Collapse/Expand additional features Smiley Wink Cheesy Grin Angry Sad Shocked Cool Huh Roll Eyes Tongue Embarrassed Lips Sealed Undecided Kiss Cry