 | Hide profiles to guests |  |
Posted: 05/17/2007 8:31 AM |
|
|
|
|
|
| Caravan |
| Posts |
282 |
| Word Cnt. |
31,380 |
| BDay |
Apr 14 |
| Sign |
Aries |
| Sex |
 |
|
|
|
Joined: Nov 01, 2006
Local time: 1:17 PM
Location: Denver, PA
|

|
|
|
|
 |
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 |
|
|
 | Re: Hide profiles to guests |  |
Posted: 05/17/2007 9:46 AM |
|
|
|
|
|
| Citation |
| Posts |
1017 |
| Word Cnt. |
64,643 |
| BDay |
Apr 18 |
| Sign |
Aries |
| Sex |
 |
|
|
|
Joined: Apr 01, 2007
Local time: 9:17 PM
Location: UNITED ARAB EMIRATES
|

|
|
|
|
 |
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
Just a suggestion FTM, rest is up to you of course.
Warm Regards,
AB |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Hide profiles to guests |  |
Posted: 05/17/2007 12:49 PM |
|
|
|
|
|
| Caravan |
| Posts |
282 |
| Word Cnt. |
31,380 |
| BDay |
Apr 14 |
| Sign |
Aries |
| Sex |
 |
|
|
|
Joined: Nov 01, 2006
Local time: 1:17 PM
Location: Denver, PA
|

|
|
|
|
 |
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 |
|
|
 | Re: Hide profiles to guests |  |
Posted: 05/17/2007 1:59 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 1:17 PM
Location: St Pete, FL
|

|
|
|
|
 |
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...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Hide profiles to guests |  |
Posted: 05/17/2007 2:48 PM |
|
|
|
|
|
| Citation |
| Posts |
1017 |
| Word Cnt. |
64,643 |
| BDay |
Apr 18 |
| Sign |
Aries |
| Sex |
 |
|
|
|
Joined: Apr 01, 2007
Local time: 9:17 PM
Location: UNITED ARAB EMIRATES
|

|
|
|
|
 |
| 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
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
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  |
|
|
 |
 |
| Back to Top |
|
|
 |
 | Information |  |
|