1
adabbous
Hiding email addresses and disabling PM
  • 2004/7/30 14:59

  • adabbous

  • Just popping in

  • Posts: 2

  • Since: 2004/7/30


Hello all,

I'm new here. Actually this is my very first post. I have recently installed XOOPS and I wanted to know if it's possible to force all users to hide their email addresses. Also if there's a way to disable private messages between members.

Any help is appreciated!
Thanks in adavnce.

2
adabbous
Re: Hiding email addresses and disabling PM
  • 2004/7/31 2:45

  • adabbous

  • Just popping in

  • Posts: 2

  • Since: 2004/7/30


WOW! That was impressive.

I guess it shows I need to uninstall the software right away and find something better.

Thank you guys for all the help :)

3
gordy
Re: Hiding email addresses and disabling PM
  • 2004/8/2 13:54

  • gordy

  • Just popping in

  • Posts: 19

  • Since: 2004/7/8 2


If you can't wait more than one day for an answer maybe you shouldn't use Any package...

Maybe you should just crawl home and hide in your room waiting for someone to hold you hand to go to the bathroom too...

4
ackbarr
Re: Hiding email addresses and disabling PM

gordy - that's a bit harsh don't ya think
adabbous - I agree with gordy that you jumped the gun a bit with your second post. Your questions are original and take a bit of time to respond to in a way that makes sense for a new user. Even if you have already given up on XOOPS (shame on you), I'll post an answer for others that want to accomplish something similar

* All code examples taken from XOOPS 2.0.7

1. Forcing emails hidden:
in /include/registerform.php change lines 40-41:
$email_option = new XoopsFormCheckBox("""user_viewemail"$user_viewemail);
$email_option->addOption(1_US_ALLOWVIEWEMAIL);


to
$email_option = new XoopsFormHidden("user_viewemail"$user_viewemail);


To force this change on existing user accounts you can run a sql query direct at the database (ask your host for instructions as to how to accomplish this). Replace with the prefix used by your XOOPS installation (default 'xoops')
UPDATE <tableprefix>_users SET user_viewemail 0


2. Disabling Private Messages:
This easiest way to accomplish this is to modify /viewpmsg.php and /pmlite.php

in /viewpmsg.php after this line (~line 29):
include_once "mainfile.php";

add
redirect_header("index.php"4"Private Messaging has been disabled on this site");


in /pmlite after the same line (~line 30):
include_once "mainfile.php";

add
redirect_header("index.php"4"Private Messaging has been disabled on this site");


5
Stewdio
Re: Hiding email addresses and disabling PM
  • 2004/8/2 16:09

  • Stewdio

  • Community Support Member

  • Posts: 1560

  • Since: 2003/5/7 1


Bookmarked for future reference, thanks ackbarr!

6
jmass
Re: Hiding email addresses and disabling PM
  • 2004/8/2 16:30

  • jmass

  • Friend of XOOPS

  • Posts: 524

  • Since: 2003/12/18


Yes, Thank you for the code.

As for Gordy.... I don't think that was any more harsh than adabbous was rude. He waited exactly 12 hours. I would not approve of someone bumbping the thread that fast, let alone being an idiot about it.

Xoops is a community.

In a real live community: if you are a jerk you can get away with it most times. But once in a while a 6'2" 255 lbs. dude stands up and kicks your but. And you know what, if you are a jerk, you deserve it.

Anyways, thanks for the code.

JMass

7
LauraAmerica
Re: Hiding email addresses and disabling PM

Any update on this?

I'm actually using 2.0.16 and wanted to ask before trying this.

I just want exactly the same (don't show emails and disable PMs).

Thanks in advance

Login

Who's Online

332 user(s) are online (247 user(s) are browsing Support Forums)


Members: 0


Guests: 332


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits