myfreeforum.org Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups  Who is OnlineWho is Online   Join! (free) Join! (free)  
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
For an excellent guide to using your myfreeforum forum, you can visit
howtodoit
The howtodoit "readonly" forum provides answers and walkthroughs for all common questions.
  • Welcome
  • Guest


Profiles offline
Goto page 1, 2  Next
 
Post new topic   Reply to topic    myfreeforum.org Forum Index -> PhpBB2 General Support
View previous topic :: View next topic  
Author Message
Dave
Apprentice
Apprentice

Virtual Cash: 2130

Joined: 13 Mar 2008
Posts: 177
Location: Scotland
Add Karma

rated by 4 members
Add Comment
Show Comments

online/offline
PostPosted: Mon May 12, 2008 8:27 am    Post subject: Profiles offline Reply with quote

hi, guys bit of a problem when offline... any guests can click on newest registered user at my forum and  can view the users profile... now when on other forums,  Ive checked myself as a guest when clicking on newest registered user it asks you to log on how do I get this to work for my forum  as I dont want guests viewing profiles nothing to hide but some members dont want guests seeing thier profile  any help thanks Dave.

hope this post is in the right section Dave  


http://daveskaraokeforums.myfineforum.org/index.php
Back to top
View user's profile Private message Send e-mail
admin (no pm's please)
Site Admin
Site Admin

Virtual Cash: 42960

Joined: 22 May 2005
Posts: 19353

Add Karma

rated by 157 members
Add Comment
Show Comments

online/offline
PostPosted: Mon May 12, 2008 9:50 am    Post subject: Reply with quote

http://forum.myfreeforum.org/abou....html&highlight=profile+guest

easily found with search.
_________________

Family Friendly Shareware | | Web Design/Services | Free Forums

forum.myfreeforum.org
Back to top
View user's profile Private message Send e-mail Visit poster's website
Dave
Apprentice
Apprentice

Virtual Cash: 2130

Joined: 13 Mar 2008
Posts: 177
Location: Scotland
Add Karma

rated by 4 members
Add Comment
Show Comments

online/offline
PostPosted: Mon May 12, 2008 10:19 am    Post subject: Reply with quote

admin (no pm's please) wrote:
http://forum.myfreeforum.org/abou....html&highlight=profile+guest

easily found with search.
hi, its taking me from your link to symons messages and really dont have link to find out how to fix this... all I want is when guests click on newest registered user I want them to get the message telling them to log in etc can you give us a link so this will take me to a page telling me how to fix this thanks Dave.
http://daveskaraokeforums.myfineforum.org/index.php
Back to top
View user's profile Private message Send e-mail
scottish-jim
Apprentice
Apprentice

Virtual Cash: 1050

Joined: 18 Apr 2008
Posts: 100
Location: Doncaster
Add Karma

rated by 2 members
Add Comment
Show Comments

online/offline
PostPosted: Mon May 12, 2008 12:21 pm    Post subject: Reply with quote

I hadn't noticed this so I've done something to prevent it as that's what suits me. It might not suit others though.

I've had a read of the link given by Admin and from what I understand from the posts in the link is that what you are experiencing is expected in terms of the way the forum code has been written. So it isn't an error needing a fix. It is essentially a request for a Hack to allow the option of not letting the guest view the profile details.
A bit like not allowing users to use hidden on-line status.

Hack requests have to go to the bottom of the pile

Now I'm new to all this and couldn't write code to save my life. The only solution I can think of, brutal as it may seem, is to edit the code so it doesn't show the links.

This is fine for my forum as we don't use a shout box or anything and I do use a portal to show who's recently been on-line that doesn't have a link to the profile.

A portion of a screen shot to help demonstrate:



I'm sure some of our more skillful and experienced friends will go when they read this but hey ho, a bit of lateral thinking does it for me  

Hope this all makes sense  
_________________

carsandmotorsport
Back to top
View user's profile Private message Visit poster's website
Manz
Craftsman
Craftsman

Virtual Cash: 1270

Joined: 27 Dec 2006
Posts: 272

Add Karma

rated by 3 members
Add Comment
Show Comments

online/offline
PostPosted: Mon May 12, 2008 12:44 pm    Post subject: Reply with quote

you can try this
go to profile_view_body.tpl and at the top add this code

Code:
<!-- BEGIN switch_user_logged_out -->
<head>
<script language="javascript">
window.location="login.php";
</script>
</head>
<!-- END switch_user_logged_out -->

_________________
http://prisonbreak.myfreeforum.org
http://prisonbreakforum.co.uk

www.prisonbreakforum.co.uk
Back to top
View user's profile Private message
scottish-jim
Apprentice
Apprentice

Virtual Cash: 1050

Joined: 18 Apr 2008
Posts: 100
Location: Doncaster
Add Karma

rated by 2 members
Add Comment
Show Comments

online/offline
PostPosted: Mon May 12, 2008 1:22 pm    Post subject: Reply with quote

Woo Hoo that did the trick  

Nice One

Thanks



_________________

carsandmotorsport
Back to top
View user's profile Private message Visit poster's website
Dave
Apprentice
Apprentice

Virtual Cash: 2130

Joined: 13 Mar 2008
Posts: 177
Location: Scotland
Add Karma

rated by 4 members
Add Comment
Show Comments

online/offline
PostPosted: Tue May 13, 2008 7:53 am    Post subject: Reply with quote

Manz wrote:
you can try this
go to profile_view_body.tpl and at the top add this code

Code:
<!-- BEGIN switch_user_logged_out -->
<head>
<script language="javascript">
window.location="login.php";
</script>
</head>
<!-- END switch_user_logged_out -->
hi tried everything to stop guests viewing the newest registered user and also whos online nothing working tried  view forum tpl also  view online topic  tpl in fact tried everything that says view nothing works baffled Dave
http://daveskaraokeforums.myfineforum.org/index.php
Back to top
View user's profile Private message Send e-mail
scottish-jim
Apprentice
Apprentice

Virtual Cash: 1050

Joined: 18 Apr 2008
Posts: 100
Location: Doncaster
Add Karma

rated by 2 members
Add Comment
Show Comments

online/offline
PostPosted: Tue May 13, 2008 4:51 pm    Post subject: Reply with quote

Well Dave, the code that Manz posted definetely worked on my forum.

If all else fails there is always my radical approach above




_________________

carsandmotorsport
Back to top
View user's profile Private message Visit poster's website
Dave
Apprentice
Apprentice

Virtual Cash: 2130

Joined: 13 Mar 2008
Posts: 177
Location: Scotland
Add Karma

rated by 4 members
Add Comment
Show Comments

online/offline
PostPosted: Thu May 15, 2008 11:32 am    Post subject: Reply with quote

scottish-jim wrote:
Well Dave, the code that Manz posted definetely worked on my forum.

If all else fails there is always my radical approach above



hi jim checked your forum as a guest and clicked newest registered user this took me to log on page this is what Im trying to get but nothings working any Ideas Dave
http://daveskaraokeforums.myfineforum.org/index.php
Back to top
View user's profile Private message Send e-mail
scottish-jim
Apprentice
Apprentice

Virtual Cash: 1050

Joined: 18 Apr 2008
Posts: 100
Location: Doncaster
Add Karma

rated by 2 members
Add Comment
Show Comments

online/offline
PostPosted: Thu May 15, 2008 10:53 pm    Post subject: Reply with quote

Hi Dave,

I followed the instruction Manz gave above and it worked instantly
_________________

carsandmotorsport
Back to top
View user's profile Private message Visit poster's website
Nick(NR)
Moderator
Moderator

Virtual Cash: 7800

Joined: 06 May 2006
Posts: 4032
Location: Medway, Kent
Add Karma

rated by 30 members
Add Comment
Show Comments

online/offline
PostPosted: Fri May 16, 2008 6:07 pm    Post subject: Reply with quote

it wont work for dave as his forum is on phpbb3, so where you need to put it dave is: memberlist_view.html

it's a rough guess, so no guarantees, but fingers crossed.
_________________
CALM TIME: When calm time is called, all posters in a topic must take time out to calm down.


I'm better than Jose!
Back to top
View user's profile Private message Visit poster's website
scottish-jim
Apprentice
Apprentice

Virtual Cash: 1050

Joined: 18 Apr 2008
Posts: 100
Location: Doncaster
Add Karma

rated by 2 members
Add Comment
Show Comments

online/offline
PostPosted: Sat May 17, 2008 9:57 am    Post subject: Reply with quote

I was wondering why it wasn't working for Dave


Good luck Dave, my curiosity will mean I need to find out how you get on with this



_________________

carsandmotorsport
Back to top
View user's profile Private message Visit poster's website
Dave
Apprentice
Apprentice

Virtual Cash: 2130

Joined: 13 Mar 2008
Posts: 177
Location: Scotland
Add Karma

rated by 4 members
Add Comment
Show Comments

online/offline
PostPosted: Sat May 17, 2008 11:20 am    Post subject: guests viewing profiles offline Reply with quote

Nick(NR) wrote:
it wont work for dave as his forum is on phpbb3, so where you need to put it dave is: memberlist_view.html

it's a rough guess, so no guarantees, but fingers crossed.
hi nick didnt work  put it in memberlist tpl also tried membership cms tpl think this was right also didnt work baffled here Dave.







http://daveskaraokeforums.myfineforum.org/index.php

http://daveskaraokeforums.myfineforum.org/index.php
Back to top
View user's profile Private message Send e-mail
Symon
Moderator
Moderator

Virtual Cash: 27730

Joined: 04 Sep 2005
Posts: 11059
Location: Hampshire,England
Add Karma

rated by 84 members
Add Comment
Show Comments

online/offline
PostPosted: Sat May 17, 2008 12:30 pm    Post subject: Reply with quote

Simple answer is to hide it from all non logged in users.

index_body.tpl

find

Code:
<td class="row1" align="left"><span class="gensmall">{TOTAL_POSTS}<br />
    {TOTAL_USERS},{NEWEST_USER} <br />
    {RECORD_USERS}</span></td>


Replace with

Code:
<td class="row1" align="left"><span class="gensmall">{TOTAL_POSTS}<br />
    {TOTAL_USERS},<!-- BEGIN switch_user_logged_in-->  {NEWEST_USER} <!-- END switch_user_logged_in--> <br />
    {RECORD_USERS}</span></td>

_________________


http://www.saynoto0870.com/

XXVIII/ I/ MCMLXXI
Back to top
View user's profile Private message Visit poster's website
Dave
Apprentice
Apprentice

Virtual Cash: 2130

Joined: 13 Mar 2008
Posts: 177
Location: Scotland
Add Karma

rated by 4 members
Add Comment
Show Comments

online/offline
PostPosted: Sat May 17, 2008 12:46 pm    Post subject: Reply with quote

Symon wrote:
Simple answer is to hide it from all non logged in users.

index_body.tpl

find

Code:
<td class="row1" align="left"><span class="gensmall">{TOTAL_POSTS}<br />
    {TOTAL_USERS},{NEWEST_USER} <br />
    {RECORD_USERS}</span></td>


Replace with

Code:
<td class="row1" align="left"><span class="gensmall">{TOTAL_POSTS}<br />
    {TOTAL_USERS},<!-- BEGIN switch_user_logged_in-->  {NEWEST_USER} <!-- END switch_user_logged_in--> <br />
    {RECORD_USERS}</span></td>
hi symon nick says my forum is phpbb3 vista x admin says its phpbb2 Im baffled by this I dont want guests viewing members profiles what i want is for guests when they try to view a members profile it will take them to a log in page any help here Dave
http://daveskaraokeforums.myfineforum.org/index.php
Back to top
View user's profile Private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    myfreeforum.org Forum Index -> PhpBB2 General Support All times are GMT + 1 Hour
Goto page 1, 2  Next
Page 1 of 2
 
 
Jump to:  
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

Card File  Gallery  Forum Archive
Powered by phpBB © 2001, 2005 phpBB Group
Create your own free forum | Buy a domain to use with your forum