View Full Version : Ultimate Ignore
Konqueror
12-20-2001, 10:00 PM
"Ultimate Ignore" v0.91 Beta
This hack was requested at https://vborg.vbsupport.ru/showthread.php?s=&threadid=33294
This hack allows admins to set a user to "ultimative ignore" mode. This means that no-one except
admins and the user himself can see any posts or threads posted by that user.
I lost the instructions, so if anyone still got them let me know please. ;)
Radon3k
12-21-2001, 12:23 PM
Hey, thanks a lot! Didn't think this was coming for a bit, but glad it's here, thx! :)
heretic
12-21-2001, 01:22 PM
wow!
going to install it now, one thing I was thinking of, talking about the logout option, does this use usergroups, to where you can have all but guests and the user ignored, so that way if the person logs out, they won't notice the ignore?
I think this was mentioned in the other thread, just wanted to repeat it here :)
Konqueror
12-21-2001, 01:35 PM
Yep, just add/remove the usergroups from the following lines:
if ($uignore[uignore] == '0' || ($uignore[uignore] == '1' && ($bbuserinfo['usergroupid'] == 6 || $bbuserinfo['username'] == $post['username']))) {
if ($uignore[uignore] == '0' || ($uignore[uignore] == '1' && ($bbuserinfo['usergroupid'] == 6 || $bbuserinfo['username'] == $thread['postusername']))) {
So if you want the ignored user to be shown to guests just change the previous 2 lines to:
if ($uignore[uignore] == '0' || ($uignore[uignore] == '1' && ($bbuserinfo['usergroupid'] == 6 || $bbuserinfo['usergroupid'] == 1 || $bbuserinfo['username'] == $post['username']))) {
if ($uignore[uignore] == '0' || ($uignore[uignore] == '1' && ($bbuserinfo['usergroupid'] == 6 || $bbuserinfo['usergroupid'] == 1 || $bbuserinfo['username'] == $thread['postusername']))) {
:)
heretic
12-21-2001, 01:44 PM
getting a parse error for functions.php:
Parse error: parse error in /home/hosted/warpstorm/public_html/forum/admin/functions.php on line 2271
Fatal error: Call to undefined function: getuserinfo() in /home/hosted/warpstorm/public_html/forum/admin/sessions.php on line 327
I'll try to reinstall.. brb
heretic
12-21-2001, 02:00 PM
here's my line 327 in sessions, but this just calls the userid
// get pertinient user info
if (!isset($bbuserinfo) or $bbuserinfo['userid']!=$session['userid']) {
$bbuserinfo=getuserinfo($session['userid']); //this is line 327
$bbuserinfo['realstyleid'] = $bbuserinfo['styleid'];
}
Konqueror
12-21-2001, 02:25 PM
The problem is the "Parse error: parse error in /home/hosted/warpstorm/public_html/forum/admin/functions.php on line 2271"
As soon as that one is fixed, everything else will be fine again as well. My admin/functions.php doesn't even have that many lines... Sounds like there is a } missing somewhere... What have you got at that line?
Reeve of shinra
12-21-2001, 02:32 PM
I am rubbing my hands in aniticipation ... I plan to try this out as soon as I get home tonight. =)
Lesane
12-21-2001, 03:52 PM
Wow, sounds great. I gonna test it 2night. Thanks.
heretic
12-21-2001, 04:05 PM
[QUOTE]Originally posted by Konqueror
The problem is the "Parse error: parse error in /home/hosted/warpstorm/public_html/forum/admin/functions.php on line 2271"
As soon as that one is fixed, everything else will be fine again as well. My admin/functions.php doesn't even have that many lines... Sounds like there is a } missing somewhere... What have you got at that line?
Lesane
12-21-2001, 05:11 PM
Works great here on 2.0.3, thanks again.
One question though: When a ignored user posted a reply or thread in a forum then you still c the ignored user's name by the lastpost bit on the forum main page, anyway to prevent that?
Konqueror
12-21-2001, 05:28 PM
@heretic:
just // bye bye! ? That's...uhm... not much :/
Care to email me your /admin/functions.php ?
@Lesane:
That's the thing I'll be working on for version 1.0 final. ;)
black
12-21-2001, 05:57 PM
great hack but functions had a problem so did sessions and then im having to fix adminfunctions.php :stupid:
heretic
12-21-2001, 06:54 PM
[QUOTE]Originally posted by Konqueror
@heretic:
just // bye bye! ? That's...uhm... not much :/
Care to email me your /admin/functions.php ?
@Lesane:
That's the thing I'll be working on for version 1.0 final. ;)
Konqueror
12-21-2001, 07:14 PM
It's at the bottom of my instructions file, but here you go anyway... ;)
konqueror4u@hotmail.com
black
12-21-2001, 07:26 PM
[QUOTE]Originally posted by black
great hack but functions had a problem so did sessions and then im having to fix adminfunctions.php :stupid:
Konqueror
12-21-2001, 07:41 PM
@black: What exactly is the problem?
black
12-21-2001, 07:53 PM
Parse error: parse error, expecting `','' or `';'' in /home/flowdoct/public_html/test/admin/adminfunctions.php on line 120
Parse error: parse error in /home/flowdoct/public_html/test/admin/sessions.php on line 108
Fatal error: Call to undefined function: maketableheader() in /home/flowdoct/public_html/test/admin/global.php on line 173
Konqueror
12-21-2001, 08:11 PM
Uhm... none of those files need to be edited for my hack... :confused:
black
12-21-2001, 08:18 PM
exactly what i was saying i fixed my little problem from adminfunctions now im getting this like when i first started
Parse error: parse error in /home/flowdoct/public_html/test/admin/sessions.php on line 108
Fatal error: Call to undefined function: iif() in /home/flowdoct/public_html/test/admin/adminfunctions.php on line 120
black
12-21-2001, 08:24 PM
[QUOTE]Originally posted by black
exactly what i was saying i fixed my little problem from adminfunctions now im getting this like when i first started
Parse error: parse error in /home/flowdoct/public_html/test/admin/sessions.php on line 108
Fatal error: Call to undefined function: iif() in /home/flowdoct/public_html/test/admin/adminfunctions.php on line 120
Konqueror
12-21-2001, 08:51 PM
I repeat, those files have nothing to do with my hack.
There's no change in adminfunctions, just in admin/functions... So if you're trying to fix a problem before you install my hack, please post the lines where you get the errors.
heretic
12-21-2001, 08:52 PM
best thing to do is to just uninstall it and reinstall it.
what version was this again?
+++
also, I wouldn't recommend installing this if you have the "change username via CP" hack
black
12-21-2001, 08:54 PM
[QUOTE]Originally posted by Konqueror
I repeat, those files have nothing to do with my hack.
There's no change in adminfunctions, just in admin/functions... So if you're trying to fix a problem before you install my hack, please post the lines where you get the errors.
Konqueror
12-21-2001, 09:05 PM
Now I'm really confused... I don't see how my hack could cause problems in those files... :confused: :stupid:
Anyway, I gotta get some sleep, I'll try to figure out the source of the problem tomorrow...
+++++++++++++++++++++++++++++++++++
Well, if all the threads are updated with the new username as well it should work very well with the username via cp hack. It might be a pain to keep track of the ignored users though... I'll just add a search optnio so you can list ignored users.
===================================
General note: Make sure that all functions have ot a start and an end. ;) If a function hasn't got an end you might get some pretty strange results.
black
12-21-2001, 09:14 PM
TAKES A DEEP BREATH AND NOW RELIEVED
sorry for getting you confused you dont have to do much thinking now i reinstall and it works perfect u wrote a pretty good hack thanks!!!!!!
black
12-21-2001, 09:39 PM
waitttttttt............
I Get no errors but ......... people still can see them and when i go to the admin cp to put them on ignore i dont see the option at 1st it was on there but now its not........dont know whats wrong
Lesane
12-22-2001, 10:02 AM
[QUOTE]Originally posted by black
waitttttttt............
I Get no errors but ......... people still can see them and when i go to the admin cp to put them on ignore i dont see the option at 1st it was on there but now its not........dont know whats wrong
black
12-22-2001, 12:05 PM
thanks im going to try that
black
12-22-2001, 12:23 PM
works perfect
but something that might lead your members to conclusions ....
When your not logged in:
You can see under last post the ignore user name
When you are logged in:
You can see under last post the ignore user name
and when they go to the forum and dont see it they will start asking alot of questions in stuff :confused:
Lesane
12-22-2001, 12:42 PM
Konqueror try 2 fix that in version 1.0 final ;)
this:
$uignore = $DB_site->query_first("SELECT uignore FROM user WHERE username='$post[username]'");
should be this:
$uignore = $DB_site->query_first("SELECT uignore FROM user WHERE userid='$post[userid]'");
Or you will get lots of mysql errors for users whose username includes '
I'm also unsure why you would need to run this query to begin with. You need to find a way to get the global ignored users and cache them, rather than running this extra query for every thread
Lionel
12-22-2001, 03:15 PM
maketableheader("Options");
and
receivepm='$receivepm',emailonpm='$emailonpm'
show twice.
Should this be replaced in both instances? (I did after I placed it in the first instance and it did not show in CP)
Also, I tried to use it. It does what i says but the last 10 posts did not reflect that. It is showing the link to the thread. When you click on it, there was no thread as it was meant. Is there a way to also ignore the last post?
Lesane
12-22-2001, 08:14 PM
If u read the whole thread then you receive your answers ;)
Here is one of them:
https://vborg.vbsupport.ru/showthread.php?postid=208459#post208459
this is a VERY resource thirsty hack. It adds an sql query to EVERY post!
What you want to do is forget about adding 'uignore' to the user table.
Instead, add it to the 'setting' table:
varname=uignore
vale = list of space-delimited userids
Same as IP banning.
This way, it won't add ANY queries AT ALL (because all the settings are loaded).
Instead, you'll need to add a 'checkuignore' function that explodes $uignore, and the bb admin will add the users via the Admin CP Options page -- again, exactly like ipban or emailban.
The other alternative is creating a usergroup "global ignore" and then usering the $userinfo[usergroupid] -- again, this is globally loaded so there won't be a need for additional queries.
Either way, your current method is highly unrecommended. On a thread with, say 40 or more posts, you are looking at adding 40 or more SQL queries!!! :stupid:
Lionel
12-22-2001, 09:51 PM
I just uninstalled... that hack disappeared all threads. As soon as I uninstalled, they all came back.
black
12-24-2001, 08:40 PM
I Guess Konqueror Wont Bother To Help Out On His Own Hack :rolleyes:
Konqueror
12-24-2001, 09:31 PM
Sorry, had some problems with my server that needed urgent attention. (that is, Apache wasn't working) :(
I got it up again now, so I'll be able to fix all those problems with the hack. :)
Either way, your current method is highly unrecommended. On a thread with, say 40 or more posts, you are looking at adding 40 or more SQL queries!!!
Well, what can I say... You got a point there! :eek: Guess that's one of the reasons I put it in beta hacks. ;)
Konqueror
12-25-2001, 04:45 PM
I've edited the hack to be more efficient, but I'll add some new things to it as well now, so it will be another day till the next version. :(
But I think you'll like the changes. :)
heretic
12-25-2001, 09:06 PM
I'll give it another shot :)
yes, I really want this hack too. I actually did that once (placed a user on everyone's ignore and disabled their option to view it) and it was very effective. I got a new troll now on my bb that needs just this kind of treatment :)
Anyhow, Konqueror, go for the usergroup version. This way, you can simply change your code to use $bbuserinfo[usergroupid] and $post[usergroupid] -- these variables are already pre-loaded so there won't be any additional queries to make.
Konqueror
12-26-2001, 08:45 AM
Well, the current version (0.91b) doesn't have any additional database queries as well now :)
Although I have to admit that the usergroup versions sounds a lot easier to do... :)
incursio
12-28-2001, 06:49 PM
I assume you've left out something in your code. Your reference to "lastignoredid" doesn't equate to either a field in vBulletin, or a field your instructions state to add.
incursio
12-28-2001, 06:59 PM
Also, I don't see a reference in the instructions for the stuff you need to add to the admin CP.
Finally - I believe you are missing a closing curly brace for the top block you are adding in forumdisplay.php:
if (!$uignorechk[$thread['postuserid']] || ($uignorechk[$thread['postuserid']] && ($bbuserinfo['usergroupid'] == 6 || $bbuserinfo['userid'] == $thread['postuserid']))) {
incursio
12-28-2001, 07:05 PM
More.
Your instructions for changing global.php are bogus. You shouldn't be replacing the line you point out. Perhaps you meant adding the code below it or something.
Konqueror
12-28-2001, 08:03 PM
Damn... thanks for pointing that out... As far as I can remember the changes in global.php where ment to be added after that code... I should really stop trying to work on several hacks at the same time. :stupid:
trainer
01-20-2002, 03:57 PM
did anyone finally come out with this hack?
Konqueror
01-23-2002, 05:13 PM
Uhm... Has anyone saved the instructions for this hack? 'cause I've kind of... lost them. :cry:
itstd
02-12-2002, 02:59 PM
Yikes!!!!! I just came up with a real need for this and it's gone. Did anybody save the instructions?
Lesane
02-14-2002, 05:57 PM
I attached the instructions :up:
Konqueror
02-14-2002, 06:06 PM
Thanks a lot, will update it tomorrow or after my holidays, we'll see. :)
Psychdrone
02-15-2002, 01:41 AM
Nice!, has this been fully, tested?? works 100%??
Konqueror
02-15-2002, 02:39 PM
Nope, it got several problems, which was the reason I took the instructions offline. I'll try to look into that during my holidays, but I can't promise anything.
Erwin
02-27-2002, 08:22 AM
Any progress with this hack? I would love to turn this on for a few of my trollish members...
Riddel
03-01-2002, 12:30 AM
please finish it soon!
Thunderpuck
06-07-2002, 06:26 PM
Is this hack a full release or not? IMO this is perhaps the most valuable hack I have ever seen, can't wait to try it out...
Konqueror
06-07-2002, 07:33 PM
Sorry, I totally forgot about this hack. I don't have time to finish it atm, but I might be able to dig up the old instruction and send to someone who wants to finish it.
Thunderpuck
06-12-2002, 03:33 PM
Just my luck, the one hack I am searching for is not finished.
:dead:
TheCaver
01-01-2003, 03:26 PM
Any progress on this one?
JC
Thunderpuck
01-03-2003, 07:09 PM
[QUOTE]Originally posted by TheCaver
Any progress on this one?
JC
Sapphire
01-24-2003, 04:30 AM
Hi,
I found this to be quite interesting, and wanted to know if anyone had a hack for this ignore link shown at this site.
http://www.diamondtalk.com
Thanx
MaDCaT75
08-28-2003, 01:31 AM
Poorly constructed hack.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.