Dave Apprentice

 Virtual Cash: 2070
Joined: 13 Mar 2008 Posts: 171 Location: Scotland Add Karma
 rated by 3 members
Add Comment
Show Comments
 |
Posted: Mon May 12, 2008 8:27 am Post subject: Profiles offline |
|
|
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 |
|
 |
admin (no pm's please) Site Admin

 Virtual Cash: 42920
Joined: 22 May 2005 Posts: 19349
Add Karma
 rated by 157 members
Add Comment
Show Comments
 |
|
| Back to top |
|
 |
Dave Apprentice

 Virtual Cash: 2070
Joined: 13 Mar 2008 Posts: 171 Location: Scotland Add Karma
 rated by 3 members
Add Comment
Show Comments
 |
Posted: Mon May 12, 2008 10:19 am Post subject: |
|
|
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 |
|
 |
scottish-jim Apprentice

 Virtual Cash: 1050
Joined: 18 Apr 2008 Posts: 100 Location: Doncaster Add Karma
 rated by 2 members
Add Comment
Show Comments
 |
Posted: Mon May 12, 2008 12:21 pm Post subject: |
|
|
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 |
|
 |
Manz Craftsman

Virtual Cash: 1270
Joined: 27 Dec 2006 Posts: 272
Add Karma
 rated by 3 members
Add Comment
Show Comments
 |
Posted: Mon May 12, 2008 12:44 pm Post subject: |
|
|
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 |
|
 |
scottish-jim Apprentice

 Virtual Cash: 1050
Joined: 18 Apr 2008 Posts: 100 Location: Doncaster Add Karma
 rated by 2 members
Add Comment
Show Comments
 |
Posted: Mon May 12, 2008 1:22 pm Post subject: |
|
|
Woo Hoo that did the trick
Nice One
Thanks
 _________________
 
carsandmotorsport |
|
| Back to top |
|
 |
Dave Apprentice

 Virtual Cash: 2070
Joined: 13 Mar 2008 Posts: 171 Location: Scotland Add Karma
 rated by 3 members
Add Comment
Show Comments
 |
Posted: Tue May 13, 2008 7:53 am Post subject: |
|
|
| 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 |
|
 |
scottish-jim Apprentice

 Virtual Cash: 1050
Joined: 18 Apr 2008 Posts: 100 Location: Doncaster Add Karma
 rated by 2 members
Add Comment
Show Comments
 |
Posted: Tue May 13, 2008 4:51 pm Post subject: |
|
|
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 |
|
 |
Dave Apprentice

 Virtual Cash: 2070
Joined: 13 Mar 2008 Posts: 171 Location: Scotland Add Karma
 rated by 3 members
Add Comment
Show Comments
 |
Posted: Thu May 15, 2008 11:32 am Post subject: |
|
|
| 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 |
|
 |
scottish-jim Apprentice

 Virtual Cash: 1050
Joined: 18 Apr 2008 Posts: 100 Location: Doncaster Add Karma
 rated by 2 members
Add Comment
Show Comments
 |
Posted: Thu May 15, 2008 10:53 pm Post subject: |
|
|
Hi Dave,
I followed the instruction Manz gave above and it worked instantly  _________________
 
carsandmotorsport |
|
| Back to top |
|
 |
Nick(NR) Moderator

 Virtual Cash: 7790
Joined: 06 May 2006 Posts: 4031 Location: Medway, Kent Add Karma
 rated by 30 members
Add Comment
Show Comments
 |
Posted: Fri May 16, 2008 6:07 pm Post subject: |
|
|
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 |
|
 |
scottish-jim Apprentice

 Virtual Cash: 1050
Joined: 18 Apr 2008 Posts: 100 Location: Doncaster Add Karma
 rated by 2 members
Add Comment
Show Comments
 |
Posted: Sat May 17, 2008 9:57 am Post subject: |
|
|
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 |
|
 |
Dave Apprentice

 Virtual Cash: 2070
Joined: 13 Mar 2008 Posts: 171 Location: Scotland Add Karma
 rated by 3 members
Add Comment
Show Comments
 |
Posted: Sat May 17, 2008 11:20 am Post subject: guests viewing profiles offline |
|
|
| 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 |
|
 |
Symon Moderator

 Virtual Cash: 27690
Joined: 04 Sep 2005 Posts: 11055 Location: Hampshire,England Add Karma
 rated by 84 members
Add Comment
Show Comments
 |
Posted: Sat May 17, 2008 12:30 pm Post subject: |
|
|
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 |
|
 |
Dave Apprentice

 Virtual Cash: 2070
Joined: 13 Mar 2008 Posts: 171 Location: Scotland Add Karma
 rated by 3 members
Add Comment
Show Comments
 |
Posted: Sat May 17, 2008 12:46 pm Post subject: |
|
|
| 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 |
|
 |