Log in Register FAQ Memberlist Search Welcome to RCF - WHF Forum Index
alt : test.swf
Welcome to RCF - WHF
4fx3.gif 
calendar_open_closeCalendar 
Hide profiles to guests
Post new topic   Reply to topic View previous topic :: View next topic
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support Add To Bookmarks
Hide profiles to guests
PostPosted: 05/17/2007 8:31 AM Reply with quote
Caravan
FTM
Caravan
Posts 282
Word Cnt. 31,380
BDay Apr 14
Sign Aries
Sex Sex:Female
Joined: Nov 01, 2006
Local time: 1:17 PM
Location: Denver, PA
usaCa.gif
Hey everyone,

I am looking to figure out a way to hide member profile's to guests. I found a code to put in the profile.php, but when I added it, it redirected everyone to the log in screen when trying to register, so I had to take it out.

Then I found a mod that hides all the buttons below a post to guest (profile, email, yahoo) which is awesome, but a guest can still see a profile by clicking on a member name in the who is online section of the forum.

Is there a mod or a way to keep guests from viewing member profiles?
Back to Top
View user's profile Find all posts by FTM Send private message   Visit poster's website Yahoo Messenger
Re: Hide profiles to guests
PostPosted: 05/17/2007 9:46 AM Reply with quote
Citation
abdulbasit
Citation
Posts 1017
Word Cnt. 64,643
BDay Apr 18
Sign Aries
Sex Sex:Male
Joined: Apr 01, 2007
Local time: 9:17 PM
Location: UNITED ARAB EMIRATES
unitedACa.gif
Hello FTM,

If I was at your place I would never install this MOD because you know that a normal human guest and bots (search engine bots) are too like guests and when they surf your site/forum they are surfing same like human guests. So what I mean to say is If you have this MOD installed on your board than all the search engine bots will not be able to crawl your website I mean only your member's profile pages and I suggest that you should allow search engine to crawl it because the more your website pages are indexed in the search engine, the more chances to get users from SE.

I have over 20,000 members and search engine have indexed 1000's of pages of my site in which tons of pages are of member's profile which is good for me. So If you have lots of members than I would suggest not to have this MOD Wink

Just a suggestion FTM, rest is up to you of course.

Warm Regards,
AB
Back to Top
View user's profile Find all posts by abdulbasit Send private message [ Hidden ] Visit poster's website Yahoo Messenger MSN Messenger
Re: Hide profiles to guests
PostPosted: 05/17/2007 12:49 PM Reply with quote
Caravan
FTM
Caravan
Posts 282
Word Cnt. 31,380
BDay Apr 14
Sign Aries
Sex Sex:Female
Joined: Nov 01, 2006
Local time: 1:17 PM
Location: Denver, PA
usaCa.gif
Thank you so much for the suggestion! And I totally agree with you. I am all for SEO (even though I have a lot to learn and do to help my two forums out with SEO) but I am asking this question for a friend of mine. I don't want to do this my two forums.

Hopefully soon I will have time to work on SEO for my forums, and maybe you can help me out with that because I see you concentrate on that a lot, and I still have a lot to learn when it comes to SEO.
Back to Top
View user's profile Find all posts by FTM Send private message   Visit poster's website Yahoo Messenger
Re: Hide profiles to guests
PostPosted: 05/17/2007 1:59 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 1:17 PM
Location: St Pete, FL
peace.gif
Have you tried this MOD yet???

[2.0.15] Redirect anonymous users to login

If that doesn't work for you, you could try this little patch:

OPEN
profile.php

FIND
Code:
   if ( $mode == 'viewprofile' )
   {
      include($phpbb_root_path . 'includes/usercp_viewprofile.'.$phpEx);
      exit;
   }

REPLACE WITH
Code:
   if ( $mode == 'viewprofile' )
   {
      if ($userdata['user_id'] == ANONYMOUS)
      {
      redirect(append_sid('login.'.$phpEx));
      }

      include($phpbb_root_path . 'includes/usercp_viewprofile.'.$phpEx);
      exit;
   }

This should not affect anyone while they are registering...

munky2
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: Hide profiles to guests
PostPosted: 05/17/2007 2:48 PM Reply with quote
Citation
abdulbasit
Citation
Posts 1017
Word Cnt. 64,643
BDay Apr 18
Sign Aries
Sex Sex:Male
Joined: Apr 01, 2007
Local time: 9:17 PM
Location: UNITED ARAB EMIRATES
unitedACa.gif
FTM wrote:
Thank you so much for the suggestion! And I totally agree with you. I am all for SEO (even though I have a lot to learn and do to help my two forums out with SEO) but I am asking this question for a friend of mine. I don't want to do this my two forums.

Hopefully soon I will have time to work on SEO for my forums, and maybe you can help me out with that because I see you concentrate on that a lot, and I still have a lot to learn when it comes to SEO.


You are welcome. I am happy Smile

You must give good suggestion to your friend and tell him the reason why he should not have this MOD and even though he don't agrees than it's up to him Wink

Sure, you can let me know whenever you are going to start SEO. By the way, you must install Optimal_titlesV_1.0.0, adv_mod_rewriteV0-2-4, Guest_session_mod

They are really helpful for SEO. If you want me to give you the download link, let me know. I love these MOD very much among any other MOD but still i care for other MODs too without which my board will not at all look and work good Wink
Back to Top
View user's profile Find all posts by abdulbasit Send private message [ Hidden ] Visit poster's website Yahoo Messenger MSN Messenger
 Post new topic  Reply to topic
Information
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
All times are GMT - 5 Hours

Page 1 of 1


Add To Bookmarks

 
  
  


  Google

Powered by phpBB © 2001, 2005 phpBB Group

Page generation time: 0.0974s (PHP: 47% - SQL: 53%) - SQL queries: 43 - GZIP disabled - Debug on