Page 1 of 1

[Release] No hide online in profile and register

Posted: Sun May 12, 2002 6:58 am
by Pokeon
This mod takes away the hide online in profile and register but still can be put on in the admin profile editor.

Code: Select all

################################################################# 
## Mod Title: Remove hide online
## Mod Version: 1
## Author: Lance Rumsby
## Description: This mod removes the hide online but not on the admin profile editor.
## Installation Level: Easy
## Installation Time: 2 Minutes 
## Files To Edit: 2
## ./includes/usercp_viewprofile.php
## ./templates/YOUR_TEMPLATE_NAME/profile_view_body.php
##
## Included Files: 
## none
################################################################# 
## Security Disclaimer: This MOD Cannot Be Posted To Or Added At Any Non-Official phpBB Sites 
################################################################# 
## 
## Author Note: 
## none
## 
################################################################# 
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
################################################################# 

# 
#-----[ OPEN ]------------------------------------------ 
# 

./includes/usercp_viewprofile.php

# 
#-----[ FIND ]------------------------------------------ 
# 

$allowviewonline = ( isset($HTTP_POST_VARS['hideonline']) ) ? ( ($HTTP_POST_VARS['hideonline']) ? 0 : TRUE ) : TRUE;

# 
#-----[ delete ]------------------------------------ 
#
$allowviewonline = ( isset($HTTP_POST_VARS['hideonline']) ) ? ( ($HTTP_POST_VARS['hideonline']) ? 0 : TRUE ) : TRUE;
# 
#-----[ OPEN ]------------------------------------------ 
# 

./templates/YOUR_TEMPLATE_NAME/profile_add_body.tpl.tpl

# 
#-----[ FIND ]------------------------------------------ 
# 

<tr> 
	  <td class="row1"><span class="gen">{L_HIDE_USER}:</span></td>
	  <td class="row2"> 
		<input type="radio" name="hideonline" value="1" {HIDE_USER_YES} />
		<span class="gen">{L_YES}</span>&nbsp;&nbsp; 
		<input type="radio" name="hideonline" value="0" {HIDE_USER_NO} />
		<span class="gen">{L_NO}</span></td>
</tr>

# 
#-----[ delete ]------------------------------------ 
# 

<tr> 
	  <td class="row1"><span class="gen">{L_HIDE_USER}:</span></td>
	  <td class="row2"> 
		<input type="radio" name="hideonline" value="1" {HIDE_USER_YES} />
		<span class="gen">{L_YES}</span>&nbsp;&nbsp; 
		<input type="radio" name="hideonline" value="0" {HIDE_USER_NO} />
		<span class="gen">{L_NO}</span></td>
</tr>

# 
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ 
# 
# EoM