![]() |
Not Show New Member Name Right Away
Hi. I have a guy that's been harassing me. He signs up with derogatory remarks towards members. My board is on moderation at this point.
Is there a way to not show the new member on the front page until I okay the membership? {Where it says Newest Member} Thanks bunches! |
hmm, not sure, but you can try this:
open index.php find: PHP Code:
PHP Code:
|
It doesn't work. :(
Any way to do this for whosonline, too? |
I think there's a hack that does this already - look in Full Releases. It stops new members usernames from showing up until they are approved.
|
Hi Erwin! My hero arrives. :) I could only find this in the search. But it's a year old and the last post looks as if it didn't work. Is there another one that you know off?
|
Hi Erwin. I found the hack... but it doesn't work :( It's this thread.
|
No, it's not that one... I can't find it either... but I am certain I saw it - I posted in that thread as well. :) Keep looking...
|
You mean you posted in the one that I am looking for?
The last one does exactly what I want... if only it would work. *pouts* Right now I have to periodically turn off the signups because he's gotten so bad with the names. I guess I never thought anyone would use such words.... :( |
Yeah, that's the one actually. :)
Instead of stopping signups, ban his IP address. Or to prevent him from using free email addresses to register, ban free email addresses. |
If I ban his IP, he just goes with AOL. Then I won't know which one he is. Unfortunately he is also posting my personal info. It's a mess. Is there a way to help me with that hack?
|
I agree you can't ban AOL's IPs (though I wish I can sometimes).
Unfortunately, AOL let's their users have multiple email addresses. Report him to abuse@aol.com Install hellban, or something similar to ban him. I don't have time to look at this hack unfortunately. |
Okay. Thank you very much for showing me the hack. That's half the battle. Take care.
|
Try this:
Change: PHP Code:
PHP Code:
|
Is this in the index.php?
|
Refresh the screen, I made a typo. :)
|
Yes, it's in the index.php - it should work - only registered members will show up as newest members.
|
Sigh... Nope. Now no one shows up.... My luck, eh?
|
Try this:
PHP Code:
|
AAAAA!!!!!! You RULE, Erwin!!!!! Now all I need is the whosonline part and he can sign up til the cows come home!!!
***BIG HUG*** |
Who's Online part in index.php or in online.php? Also, credit goes to Xenon - I just fixed up his small mistake. :)
|
Thank you, Xenon!!!!!!! Yay!
I think it's both. I need to make it so only registered users names show in the whosonline section. |
I'm busy at work at the moment... when I have time, I will take a look... it's a matter of just adding a
AND usergroupid=2 to the WHERE section of the query statements to find the usernames, making sure that usergroupid is being obtained in the query as a variable. |
I really appreciate this, Erwin. You have no idea how much this means to me. Thank you for helping me this much.
|
In online.php,
find: PHP Code:
PHP Code:
|
In index.php.
Find: PHP Code:
PHP Code:
|
Hope that works! This excludes usergroupid 3, members awaiting email verification, from showing up in Who's Online. I assume that is what you want...
|
I don't know what you mean. I know that the only members names that I want shown online, or in new members is the ones who I said yes to moderated. Is that what you mean?
|
What is the usergroupid of unmoderated members? Is it 3? 2 is for registered, 3 is for those waiting email verification.
|
The first code mod to stop newest member showing up only shows up usergroupid 2 - registered members. We cannot do the same for Who's Online, because mods, admins etc. would be excluded, so we will just go and exclude unmoderated users.
|
4 is moderation
|
How do I take out moderated users? Forgive me, I am not php saavy... at all.
|
Okay, I've changed my code to reflect that. Try to change index.php and online.php using the above code.
Also, instead of using the original index.php code for newest member, use this: PHP Code:
|
Use the code from the previous posts - I have modified it to work for usergroupid 4. :) And also the above post. :)
|
Umm... I don't any names of members waiting for email notification or moderation showing up. If they do, then his insulting username shows. See, first it goes to email validation. Then It goes into moderation. How can I get it back so that only registered members who I have sent an email to okay show?
That means usergroup 3 and 4 doesnt show... How do I do that? |
Do this:
In index.php, find: PHP Code:
PHP Code:
PHP Code:
PHP Code:
In online.php (I'm going to try a different approach), Find: PHP Code:
PHP Code:
I am leaving for home now, and won't check this thread until tomorrow, so I hope it works! :) |
Hi. The index part works great. Unfortunately the online part also wipes out the guests.
I took the online part of one of the hacks and it worked. Yay! Thank you sooo much. |
Erwin, that's new to me here...
normally you can use fields in where clause without include them into the select clause... How old's your MySQL Diva? :D |
Xenon, you can't unless you include a SELECT * as well - but I'm no expert.
|
im sure you can erwin, here's a part of an original vb code (index.php)
PHP Code:
|
Mmm... maybe templates are different as they are made global... I know when I write my own hacks, I have to SELECT the variable for it to be used as a conditional.
|
All times are GMT. The time now is 05:39 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|