The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
remove ip address block
vb 4.1.11
could someone point me to the template and code to remove to remove the ip address block in the user info in the admincp. thanks |
#2
|
||||
|
||||
IP addresses are available in a number of places on the forum, not just the "user" page in admincp which I assume you are asking about.
What are you really trying to accomplish- maybe there is something better/easier then editing a file that will stop it in one spot but otherwise be useless as a security measure if that is the goal. |
#3
|
|||
|
|||
Quote:
thanks |
#4
|
||||
|
||||
The forum needs ips to track bad login attemps, not sure what else it may be necessary for...
What about a scheduled task that runs every 10 minutes and deletes all saved ip addresses? |
#5
|
|||
|
|||
Quote:
That might work but have never found a way to run a SQL querie via a cron job/scheduled task I have used THIS in the past via phpmyadmin but would love to hear your thoughts/input on the scheduled task option. thanks |
#6
|
||||
|
||||
Well I haven't tested this because I like my IP addresses but I pulled code from my other working mods so i expect it should work.
Save this to a php file and upload it to your includes/cron/ directory. In scheduled task manager make a new one and point it to this file, set what options you want. Manually run it first to be sure it works, if it does set it to run every 10 minutes... I'm not sure what other side effects this will have... User's shouldn't get locked out because they will still have their unique IP for a few minutes. PHP Code:
I assume this is for the site in your profile which is still very small (< 1000 posts) so I don't see this being a problem. If you had a big site, like hundreds of thousands of posts and users or more this probably wouldn't run very efficiently trying to clear hundreds of thousands of records. But you should have no issue running it every 10 minutes. This takes care of posts and user tables... if you have blogs or cms they would probably need to be included in separate queries. |
#7
|
|||
|
|||
that works perfect.... Thank you very much for taking the time to help me out.
top of the day to you |
Благодарность от: | ||
BirdOPrey5 |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|