News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Bad Behavior for SMF mod

Started by butchs, April 12, 2010, 05:23:56 PM

Previous topic - Next topic

Tibian

Quote from: butchs on December 21, 2011, 08:13:31 AM
Under admin/ Configuration.  Maybe the mod's language files are not in the language directory?


I thought of that so I manually uploaded the files to my language directory. Didn't fix. Uninstalled and installed the package again, and I get this error.


Fatal error: require_once() [function.require]: Failed opening required '/home/kotsadmin/thekots.com/Sources/bad-behavior/bad-behavior/functions.inc.php' (include_path='.:/usr/local/lib/php:/usr/local/php5/lib/pear') in /home/kotsadmin/thekots.com/Sources/bad-behavior/bad-behavior/core.inc.php on line 11


Looked in the path, found out that functions.inc.php was not uploaded. I uploaded it, website is functional, but I am curious now if it installed correctly because the sources in the .zip has a TON of files, whereas in my FTP there are only five.

--Update: So everything seems to be working as far as the settings/honeypot goes. I have yet to do the fake/pseudo testing recommended but I will try doing that when I get enough time. The pure culprit of my error was that the sources directory didn't seem to upload properly. I don't know if this was because of having to create a packages/temp folder that kept deleting itself or what... but so far everything seems to be fine.

butchs

Since tests are performed on a need to know basis and if you do not have all the files a bad guy could get through.  I recommend to unzip the mod on my home computer and look at the changes in "package-info.xml".  depending on your version of SMF there are specific files that go into specific places.  Verify each file to insure they are all in the correct location.
I have been truly inspired by the SUGGESTIONS as I sit on my throne and contemplate the wisdom imposed upon me.

mikedijital

quick question, I Run 2 forums, I have this installed in both, and it works great in both.

But one forum shows the display just above the load time for how many bad ips ive got within 7 days

the other does not, the code it there in the default, and in the custom theme files  , just above the load time code like its supposed to be   .. there is no reason it shouldnt be there, AND i have it selected in the admin to show it.

but its not showing... the mods working fine except for that....   

its not showing in the default and custom theme

Im running SMF 2.0.2 for both forums, the working forum is using the Darkmodern theme  the non working is using the Blue moonlight theme....

butchs

Maybe the following is not in index.template.php of the non-working theme:

if ($modSettings['badbehavior_display_stats']) {
if (!function_exists('bb2_insert_stats')) {
global $sourcedir;
require_once($sourcedir . '/bad-behavior/BadBehavior-SMF.php'); }

bb2_insert_stats();
}


You should also find in index.template.php:
// Bad Behavior Start
if (function_exists('bb2_insert_head')) {
  bb2_insert_head();
}
// Bad Behavior End


The mod may not load properly without the above.  You may want to review the code for that part of the installation.
I have been truly inspired by the SUGGESTIONS as I sit on my throne and contemplate the wisdom imposed upon me.

mikedijital

both of those codes are exactly where they need to be in both the default, and blue moon themes index templates




butchs

I have been truly inspired by the SUGGESTIONS as I sit on my throne and contemplate the wisdom imposed upon me.

crazeedriver2005

Hello. I've installed BB on my forum, installed a honeypot correctly, and put in my http:BL key. I keep getting the error saying that I must enter a valid Honey Pot Link Word URL or leave the field blank...and the field is blank. I've tried uninstalling/reinstalling the mod but it did not resolve this. How do you fix this? Thanks.

mikedijital

I had that problem to, when you go to honey pot get the quicklink, look in the quick link HTML on that page, along with the reoccuring honeypot link , you we see a word multipul times, for me it was like " longpoke " thats the Link word, so in the big honey pot area, you only need to add the quick link URL, not all that html they provide for you, then the link word is the random word reoccuring

here is an example

go to the honey pot site, click manage quick link

copy just your quick link into the Big BB link box  you dont need to copy all the code, only the url http://aatf.us/conditionalgrowing.php?rss=0793

then look to the embed code on the manage quick link page

<a href="http://aatf.us/conditionalgrowing.php?rss=0793"><!-- grany --></a> <a href="http://aatf.us/conditionalgrowing.php?rss=0793"><img src="grany.gif" height="1" width="1" border="0"></a>
<a href="http://aatf.us/conditionalgrowing.php?rss=0793" style="display: none;">grany</a> <div style="display: none;"><a href="http://aatf.us/conditionalgrowing.php?rss=0793">grany</a></div> <a href="http://aatf.us/conditionalgrowing.php?rss=0793"></a> <!-- <a href="http://aatf.us/conditionalgrowing.php?rss=0793">grany
</a> --> <div style="position: absolute; top: -250px; left: -250px;"><a href="http://aatf.us/conditionalgrowing.php?rss=0793">grany</a></div> <a href="http://aatf.us/conditionalgrowing.php?rss=0793"><span style="display: none;">grany</span></a> <a href="http://aatf.us/conditionalgrowing.php?rss=0793"><div style="height: 0px; width: 0px;"></div></a>



notice the word " Grany " keeps poping up in the code, thats your Link word   

mikedijital


butchs

Quote from: mikedijital on December 30, 2011, 04:05:02 PM
Quote from: butchs on December 30, 2011, 02:49:50 PM
Please post the index.template.php for the blue theme.

here you go  , thanks!!!!!! 

Your problem is another mod is causing an error.  If I remove  ". get2by2host_copyright()"  the page loads correctly.
I have been truly inspired by the SUGGESTIONS as I sit on my throne and contemplate the wisdom imposed upon me.

mikedijital

You know what when I installed that mod, I read the thread about it, and alot of people were complaining about that copyright being slammed at the bottom of the index template.

its for a menu buttons mod, and the complainers said the sneaky way they slid that in was bad

thanks, I love your mod   ive blocked 40 attempts in 4 days. and only 2 comment spammers got through!



I have on final question. if and when you make upgrades, do I clean uninstall the prev version, or do you give instructions on a update without a full  uninstall, I want to always keep this mod up to date


and finally, THANK YOU, none of the mod creators I ask questions to on this site reply..... like ever....   your the first one to give me 1 on 1 help, THANK YOU sooooo much!   and thats why your mod is awesome!

mikedijital

Quote from: butchs on December 31, 2011, 03:28:25 AM
Quote from: mikedijital on December 30, 2011, 04:05:02 PM
Quote from: butchs on December 30, 2011, 02:49:50 PM
Please post the index.template.php for the blue theme.

here you go  , thanks!!!!!! 

Your problem is another mod is causing an error.  If I remove  ". get2by2host_copyright()"  the page loads correctly.


I tried removing that line in both index templates ( default and theme )...  and still nothing

butchs

I have my cache turned off.  It worked for me...  Did you include the dot?
I have been truly inspired by the SUGGESTIONS as I sit on my throne and contemplate the wisdom imposed upon me.

mikedijital

i zapped the dot with the code... whats weird is the forum that does have this working has the same "get2" code for that mod as well and works great

non working  www.paranormalpi.org    working  www.deggi5.com   

also could it be that there is noting in the permitted and not permitted logs yet?   on the site that its not working the logs are empty... ( its a fairly new site, the spammers havent found yet ) and the site it works on, gets bombed lol 51 denied attempts in the last 7 days


lemme give it a few days till I get at least 1 spammy in the denied log and see if that triggers the report to show

mikedijital

thats what it was, the display doesn't show up untill it has blocked at least 1 bad bot.....


GREAT MOD, its stopped my spam by 90%   177 bad  blocks in 7 days !

TheListener

Mike as the 2by2hosts folks are not popular I would suggest you look elsewhere for a similar mod.

Look their name up using search.

butchs

Quote from: mikedijital on January 04, 2012, 05:30:31 PM
thats what it was, the display doesn't show up untill it has blocked at least 1 bad bot.....


GREAT MOD, its stopped my spam by 90%   177 bad  blocks in 7 days !

Thank you for providing an update.  Most people stop posting when their problem is resolved.
I have been truly inspired by the SUGGESTIONS as I sit on my throne and contemplate the wisdom imposed upon me.


mikedijital

Quote from: butchs on January 04, 2012, 07:28:30 PM
Quote from: mikedijital on January 04, 2012, 05:30:31 PM
thats what it was, the display doesn't show up untill it has blocked at least 1 bad bot.....


GREAT MOD, its stopped my spam by 90%   177 bad  blocks in 7 days !

Thank you for providing an update.  Most people stop posting when their problem is resolved.


I love this mod, anything I can do to help because look  --->   " Bad Behavior has blocked 767 access attempts in the last 7 days  "     As you can see you have helped me VERY MUCH! lol     Cheers, and happy new year!

pols1337

Hi butchs,

I currently have Bad Behavior showing up twice at the bottom of my forum.  (Why this happened?  My forum, which already included Bad Behavior, wasn't enabling me to post due to some conflict with a mod, so I reinstalled 2.0.2 and ran an upgrade, then reinstalled Bad Behavior).  Anyways, I'm guessing that modification is working but it just looks bad with two lines of text ... see attachment.

Is there some file to fix? 

Thanks,
pols1337



Advertisement: