21
Jack404
Re: desperately need help tracking and banning trolls.
  • 2004/5/4 23:42

  • Jack404

  • Just popping in

  • Posts: 56

  • Since: 2003/5/16


Quote:

drksoul wrote:
I too would like to see email address banning (with wildcard) along with IP.


Email address banning is already implemented.

You find it in System Admin > Preferences > User Info Settings.

Scroll to the bottom and you will see a textbox labeled "Enter emails that should not be used in user profile." There ya go, users will be unable to register using that email address.

As far as the IP being shown, I figured it out in my post here.



22
Jack404
Re: Running Xoops using a forwarding Domain name
  • 2004/5/1 16:02

  • Jack404

  • Just popping in

  • Posts: 56

  • Since: 2003/5/16


www.zoneedit.com

'nuff said. It's a free DNS service for up to 5 domains per user I think. I use it for all of my websites that I host at home, and I haven't had a single problem.

Enjoy :)



23
Jack404
Sending Private Messages (Advanced)
  • 2004/4/27 1:47

  • Jack404

  • Just popping in

  • Posts: 56

  • Since: 2003/5/16


I'm writing a php script that needs to send a message to a user. This is my code:

$message "foo";
$pm_handler =& xoops_gethandler('privmessage');
$pm =& $pm_handler->create();
$pm->setVar("subject""bar");
$pm->setVar("msg_text"$message);
$pm->setVar("to_userid"$uid);
$pm->setVar("from_userid"1);
$pm_handler->insert($pm) or die('Failed to send.');


All my variables used, such as $uid and $message, are correctly set, but every time I try to execute the script, I will consitently get the die message "Failed to send." I don't get any error messages with PHP debug on, serverside enabled E_ALL or XOOPS admin PHP debug enabled.

Have I forgotten something as simple as an include? Not that I can see, but I'd appreciate any help that you folks can lend!

Thanks in advance :)



24
Jack404
Re: remove IP from who's online
  • 2004/4/10 2:29

  • Jack404

  • Just popping in

  • Posts: 56

  • Since: 2003/5/16


Just FYI -

IP addresses only show up in that window if the person who is viewing the window is an admin. Are you sure you want to remove the IP addresses for the admins?



25
Jack404
Re: Looking for a function... Any help?
  • 2004/4/8 22:43

  • Jack404

  • Just popping in

  • Posts: 56

  • Since: 2003/5/16


Aha! Turns out there was a function...

$member_handler =& xoops_gethandler('member');
$webmasters $member_handler->getUsersByGroup(XOOPS_GROUP_ADMIN);


That returend an array in $webmasters of the uids!

Thanks for the help :)



26
Jack404
Re: Looking for a function... Any help?
  • 2004/4/8 21:58

  • Jack404

  • Just popping in

  • Posts: 56

  • Since: 2003/5/16


Bah... as soon as I stick that in, the script hates me :(

Warningxoops_gethandler(i:ffxi/kernel/membership.php): failed to open streamNo such file or directory in i:ffxiincludefunctions.php on line 505 

Fatal error
xoops_gethandler(): Failed opening required 'i:ffxi/kernel/membership.php' (include_path='.;c:php4pear'in i:ffxiincludefunctions.php on line 505


could the handler be 'member' and not 'membership' ?


EDIT: Changing the handler to 'member' seemed to clear up those, but now this is popping up:

Fatal errorCall to undefined function: getobjects() in i:ffxireport.php on line 35


Any help?



27
Jack404
Re: Looking for a function... Any help?
  • 2004/4/8 21:48

  • Jack404

  • Just popping in

  • Posts: 56

  • Since: 2003/5/16


Ahh perfect! I needed an array of webmaster uids =)

Ideally, upon clicking the report post button, the PM Handler will send a message to each webmaster of the site with information about the reported post and the person who reported it. This is exactly what I needed, thanks!



28
Jack404
Re: Domain questions!!! ** please read**
  • 2004/4/8 21:43

  • Jack404

  • Just popping in

  • Posts: 56

  • Since: 2003/5/16


1. No. Any domain will do, so long as you define that domain in mainfile.php as your Virtual Directory for XOOPS.

2. Why would you want to do a thing like that? ;)

3. Yes, but you have to hack that yourself. Do a search on XOOPS.org for "multisites hack" for a how-to.

4. Not a clue. Luckily, XOOPS doesn't use CGI scripts.

5. No. You can customize XOOPS to have whatever you want and to exclude anything you don't like.

6. Check the other thread where you asked the same question

7. That one's up to you. You can get free domains like yoursite.dyndns.org or something like that, or you can go purchase a cheap domain name... www.godaddy.com has a sale on .com names right now ($6.95 I believe for a year).

Hope that helped!



29
Jack404
Re: Looking for a function... Any help?
  • 2004/4/8 21:17

  • Jack404

  • Just popping in

  • Posts: 56

  • Since: 2003/5/16


Thanks Jack, you too =)

I'm looking for the user id, the number that is used on userinfo.php?uid=1 or something like that.



30
Jack404
Looking for a function... Any help?
  • 2004/4/8 20:39

  • Jack404

  • Just popping in

  • Posts: 56

  • Since: 2003/5/16


For a Report Post button that I'm working on for my site, I need a function that finds the uid numbers for the webmasters of the site. Is there a function already built into the XOOPS Core or in newBB (this function will only be needed in the newBB module) that would allow me to do this?

I've tried looking in some pages in the coor and newBB, but I haven't found anything yet. Thanks in advance for your help!




TopTop
« 1 2 (3) 4 5 6 »



Login

Who's Online

217 user(s) are online (140 user(s) are browsing Support Forums)


Members: 0


Guests: 217


more...

Donat-O-Meter

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

Latest GitHub Commits