![]() |
Anyway of stopping banned users with over the amount of posts from changing their name?
|
I haven't really had time to do more work on name logging, as far as i knew banned users shouldn't be even able to view the board never mind change their username.
Will do work on name logging tonight after working on my backend a bit more. |
excellent hack!
|
getting this error....
Parse error: parse error in /home/***/public_html/tof/member.php on line 1467 |
ok i got it
what i did was instead of pasting this if ($bbuserinfo[posts] >= $postuserchange) { $oldnames=$DB_site->fetch_array($DB_site->query("SELECT * FROM namelogs WHERE userid='$bbuserinfo[userid]'")); $diff = time() - $oldnames[lastchange]; $limit = (86400 * $dayuserchange); if ($diff > $limit) { eval("\$changeuser = \"".gettemplate("changeuser")."\";"); } } i pasted this if ($bbuserinfo[posts] >= $postuserchange) { $oldnames=$DB_site->fetch_array($DB_site->query("SELECT * FROM namelogs WHERE userid='$bbuserinfo[userid]'")); $diff = time() - $oldnames[lastchange]; $limit = (86400 * $dayuserchange); if ($diff > $limit) { eval("\$changeuser = \"".gettemplate("changeuser")."\";"); :rolleyes: dumb mistake on my part......great hack PPN :) |
I keep getting this error when i change user names:
Warning: Argument to array_reverse() should be an array in /***/***/***/***/***/***/***/member.php on line 459 And this is whats on that line: PHP Code:
Any Ideas? =/ -Syphin |
hmm documentation wrong?
PHP Code:
PHP Code:
|
thnx... =)
I have no clue how i messed that up tho.. lol it also said implode instead of explode... >_< oh wel, all is good now.. thnx.. :p *and sry for the late reply* -Syphin |
Name...logging? :(
|
Great Hack!!!
I was wondering can I just offer this feature to just a certaint user group? |
I fixed it all up. Everything works now - name logging, and the original goal of this hack. The problem was that it didn't change the username everywhere it was needed. Things such as the lastposter store the username, not the userid, so that didn't change.
I've tested it on my current vB running 2.2.1 and it works perfectly. File attached. |
thanks Darkreaper
i'll update the attachment on the first post. |
When I try to change names, it says the name is already in use, but I know its not. anyone know how to fix this?
|
hey can u make an install file for the mySQL tables plz?
|
Hey great, just downloaded!
Im gonna test it on my local board. |
Bug for ya:
Whenever I use a username with - at the end, it says the username is already in use, even though it isn't, and won't let you change to it. |
thanx man w00tit00t
|
Quote:
|
ok, i am sorry to be clueless, but i followed the instructions perfectly and i don't see these new fields anywhere... i am looking around to find the coppa info and the parent e mail info, thinking it would be in the general vacinity and i can't find that either. hee hee.
someone help me out? always, amity |
Will this hack work on my board ?
Thanks |
I'm having trouble with the name logging component of this hack. It works fine as long as a user only changes their name once, but upon the second name change all records of previous names are wiped out. This was true in the initial hack instructions as well as in the most recent update.
any clues? |
Does this work on 2.2.4? I'd really like to use this if it does to keep those people who keep signing up with new names when they get bored of their old ones from doing that.
|
sorry but it stopped working.. i installed vb pad and rating hack and now it yust doesnt show up anymore ( username change thing)
help?? *edit* i attached my member.php file *edit* |
Great hack, thanks.
But look out when you have hacked register.php to not allow certain characters in a name. After this: Code:
$username = trim($username); Code:
if (!eregi("^[_a-z0-9-]+([_a-z0-9-]+)*$", $username)) { |
I installed this hack, now sigs dont show. How do I fix that?
|
nice hack , and it does work.
Q: what did i do wrong ? I have 2 of the settings in the options area. |
Hi,
nice hack. I have installed on my 2.2.5 , but I don't see the List of old nciks (show nothing) and the second is, that the names are not updatetd in the forum home, but in the threadview is it ok. What can I do, that the display be correct? |
May I request a reviewed version for 2.2.5/2.2.6? I have seen many replies with bug reports on 2.2.5 and I have also experienced problems because of the version difference. It's a VERY useful hack and a MUST HAVE for me :) But I really need an updated version for great functionality :)
|
Have the array error, as well as the change appearing in some places and not others, as well as the old names not appearing in the list if you change the name back to the original...
other than that it's a neat hack.. it definitely does what it says it does... thanx PPN |
Also, it was real tough trying to find all the line coordinates in your instructions (eg go to line 1255) since I use Pico. (Yes I am a n00b) Can anyone recommend a good .php editor that shows line position et al?
|
BUMP!
PPN PLEASE READ and update this hack please :) I really want this hack to work perfectly :) |
it stops working after some time... ive installed it, and a week later it stopped showing?
|
I didn't have that happen, but the problem I have with my 2.2.5 is when I change my username, an error will appear at the top of the page however the username will change. It doesn't update the username around the forum either. In the profiles, their previous usernames are also not listed.
|
PLEASE SOMEBODY? I'm having to bump up a lot of topics on this forum now, and none get answered :(
|
This is unbelieveable, I've had to bump this topic up about 4 times now.
|
I'm new at this. Where in your instructions it says to do this
Adding a table to your forums database --------------------------------------- Now you will need to create this table for logging of the username and last time they updated. CREATE TABLE namelogs (userid INT (5) not null , usernames LONGTEXT not null , lastchange INT (12) not null ) 1) What do you I put in for The name and field of where it says this in my phpmyadmin (Create new table on database ) 2) Also there is a screen that comes after and has options: Field, Type, Length/Values*, Attributes, Null, Default, Extra, Primary Index Unique Fulltext Table comments : Table type : What do I put in for these options? Thanks in advance. |
I'm gonna rewrite this hack as soon as i get time, its mainly the checking in member.php that needs to be done.
|
ok its rewritten and tested
just modification to the code in member.php and you'll need to drop the namelogs table and recreate it. Will post it in the first post in a few moments. |
Thanks PPN
|
I'm anxious to install this hack on my new board, but I've ran into a small snag. I could be doing something wrong, so I hope someone here can help. :)
When I paste in the SQL queries into phpMyAdmin, I'm getting errors. For example, when I paste in Code:
CREATE TABLE 'namelogs' ( \'userid\' int(5) NOT NULL default \'0\', \'username\' long' at line 1" I'm using a text editor (EditPlus) to read the instructions and I'm pasting the info in from there. Anyone have any suggestions on what I'm doing wrong? |
All times are GMT. The time now is 12:46 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:
|