Thread: Moderators Functions - One-touch Spam Ban and Cleanup
View Single Post
  #162  
Old 01-07-2008, 07:04 AM
mfyvie mfyvie is offline
 
Join Date: Mar 2007
Location: Zurich, Switzerland
Posts: 336
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Catching up on some old posts here...

Quote:
Originally Posted by Seiyaboy View Post
This looks very nice indeed, but I have a question about this before I install it. Do this modification require admins and mods to be logged into their admin/mod cps in order for the banning and thread/post deleting to take place? Or as long as the usergroup permission matches, no extra login is needed? Thanks in advance.
No, they do not have to be logged into the admincp/modcp first. It's a single-file .xml install, it would have actually been faster to try for yourself than type your question

Quote:
Originally Posted by weeno View Post
An issue that we've seen.

If you try to "one touch ban" from a user's name in the postbit, it tries to ban the 1st poster in the thread, not the user whose name you've clicked on.

Obviously, it's the wrong variable is being used.

arn
I haven't seen that before, nor had anyone else report this. Is this issue still current, if so please PM me with the details of your setup to see if I can figure out why that might happen.

Quote:
Originally Posted by DssCrazy View Post
something needs to be added!

Look at the pic! i pointed it out!
Well I looked at the pic you posted and could see nothing other than the fact you drew a box around the forum name used in the example. I'm afraid you'll have to be more specific about what you are trying to say, because I've no idea.

Quote:
Originally Posted by tekguru View Post
Any ideas why we are getting this message when trying to run?

PHP Code:
Database error in vBulletin 3.6.8:

Invalid SQL:

                
DELETE FROM vb_pm WHERE pmtextid IN (SELECT pmtextid FROM vb_pmtext WHERE fromuserid 21443);

MySQL Error  Got error 134 from storage engine
Error Number 
1030
Date         
MondayDecember 24th 2007 08:37:24 PM
Script       
http://www.4winmobile.com/forums/misc.php
Referrer     http://www.4winmobile.com/forums/misc.php?do=spamcleanconfirm&u=21443 
It's been running flawlessly for ages...
When I took that error message and put it into google I found people suggesting that this indicates possible problems with your tables, and suggesting running repair / optimise on them. This message has nothing to do with this mod.

Quote:
Originally Posted by telc View Post
Can you please fix the addon so it will work with MySQL > 4.0.16 the same as VBulletin requirements?
There is no requirement that mods must be compatible with the same versions of older software that the current version of vbulletin allows. That's why a system of minimum version numbers was built into the plugin system. In fact, starting from vbulletin 4.0 I'd be very surprised if they allow MySQL 4.0 to be used. See this post.

This mod uses sub queries. Sub queries are not possible in 4.0. There are a whole host of things which are possible in 4.1 and not in 4.0, as well as performance issues. In fact, many times when I try to do something useful with mysql I find that it is not possible with 4.0. Very small numbers of people still use 4.0 (since the arguments to upgrade, at least from my perspective, are good ones), so I don't really see the sense in committing the additional time required to rewrite what is essentially a simple query into a larger chunk of code to avoid using sub queries.

If someone else wants to undertake the work to rewrite that code to work in mysql 4.0 then I will include it into a new version, but I have limited resources at the moment, so I didn't ever plan to undertake such work.

Since this question seems to come up over and over I'll add it to a FAQ at the start of this thread.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01241 seconds
  • Memory Usage 1,793KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php
  • (5)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete