httpBL

Started by Diego Andrés, February 17, 2010, 03:55:54 PM

Previous topic - Next topic

Sea Mac

I just did an "Upgrade Install" of SMF 2.0.10 and had all my MODs uninstalled. I've got SimplePortal 2.3.6 and the "Responsive Curve" MOD (Beta 4) installed - I added that one first - and it causes an error while reinstalling httpBL.
QuoteError in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.
  Installations actions for "httpBL"    Installing this package will perform the following actions: 


TypeActionDescription
1.Execute Modification./Sources/ManagePermissions.phpTest successful
2.Execute Modification./Sources/Admin.phpTest successful
3.Execute Modification./index.phpTest successful
4.Execute Modification./SSI.phpTest successful
5.Execute Modification./Themes/default/index.template.phpTest successful
6.Execute Modification./Themes/default/Who.template.phpTest failed

1.Add Before./Themes/default/Who.template.phpTest successful

2.Add Before./Themes/default/Who.template.phpTest failed
7.Execute Modification./Themes/default/languages/Modifications.english.phpTest successful

8.Execute Modification./Themes/default/languages/Modifications.english_british.phpSkipping file

9.Execute Modification./Themes/default/languages/Modifications.spanish_es.phpSkipping file

10.Execute Modification./Themes/default/languages/Modifications.spanish_latin.phpSkipping file

11.Execute Modification./Themes/default/languages/Modifications.english-utf8.phpSkipping file

12.Execute Modification./Themes/default/languages/Modifications.english_british-utf8.phpSkipping file

13.Execute Modification./Themes/default/languages/Modifications.spanish_es-utf8.phpSkipping file

14.Execute Modification./Themes/default/languages/Modifications.spanish_latin-utf8.phpSkipping file

15.Extract File./Sources/httpBL_Subs.php

16.Extract File./Sources/httpBL_2_Config.php

17.Extract File./Themes/default/httpBL.template.php

18.Extract File./Themes/default/css/httpBL_css.css

19.Extract File./warning.php

20.Extract File./warning_css.css

21.Adapt Databaseinstall_2.php


I'm now sure the latest version of httpBL is not compatible with the Who template installed by the "Responsive" MOD ....
I uninstalled the Responsive MOD and httpBL installed OK!

snoopy_virtual

Hi Sea Mac

In one of my forums I need to upgrade from 2.0.9 to 2.0.10 and I wanted also to install the new Responsive Curve MOD in that forum. And of course httpBL MOD as well.

I don't know when I will do that, but it need to be soon. When I do it I will see where is the problem between the new Who.template and httpBL MOD and I will publish here a hack or a new mod version.

I think the Responsive Curve MOD is very important for all the sites that are normally accessed via mobiles and all the mods should try to be compatible with that one.

El verdadero sabio es aquel que lo ve todo, lo estudia todo, lo analiza todo y molesta poco.
A true wise man is he who sees everything, studies everything, analyses everything and hardly ever annoys.

snoopy_virtual

I have been checking the compatibility between httpBL MOD, SMF 2.0.10 and Responsive Curve MOD

I have seen that httpBL MOD is fully compatible with SMF 2.0.10. No problems there.

There is a small conflict between httpBL MOD and Responsive Curve MOD though, as Sea Mac was reporting, and I was thinking on releasing a new version of my mod to make them compatible, but as Responsive Curve MOD is still in beta (it has already 4 beta versions in a month and I suppose they will release a few more before it's stable) I'd prefer to wait until Responsive Curve MOD is stable before doing any changes to httpBL MOD.

In the mean time there is a small trick if you want to have them both installed in the same forum.

You just need to install httpBL MOD BEFORE installing Responsive Curve MOD. That way you won't have any errors and both mods will be working properly.

Of course when un-installing you will need to do it the other way round. Un-install first Responsive Curve MOD and then httpBL MOD.

Checked with Responsive Curve MOD beta 3 and beta 4.

El verdadero sabio es aquel que lo ve todo, lo estudia todo, lo analiza todo y molesta poco.
A true wise man is he who sees everything, studies everything, analyses everything and hardly ever annoys.

Sea Mac

My Bad!

I figured that out, and fixed up my forums ... but forgot to let you know. 
(I wound up doing a clean upgrade install on one of them, and then reinstalling the MODs in a different order than before .... and it worked fine!)

Another reason to install Responsive Curve last would be to make it easier to upgrade that MOD (by uninstalling the old, and then installing the new one) without affecting the other, previously installed MODs.

I appreciate all your hard work on the MOD: and try to donate with PayPal, every now and then ....

Thank you!

ziycon

Having an odd issue, I installed a custom theme and all is working as it should be, I've started getting thosands of the below errors in the error logs.

8: Undefined index: httpBL_unknown
File: /home/igniejfz/public_html/aprai/forum/Sources/httpBL_Subs.php
Line: 674

8: Undefined index: guest
File: /home/igniejfz/public_html/aprai/forum/Sources/httpBL_Subs.php
Line: 672



Looks like the two strings are loaded via '$txt' so it looks like the $txt global isn't loading properly for the function in httpBl, but why everything else is working as it should. The code snippet is loaded via the 'httpBL_dnslookup' function in httpBl_Subs.php.

$values = array();
$httpBL_url = httpBL_get_env('REQUEST_URI');
$values['url'] = $httpBL_url != '' ? $httpBL_url : '/';
$httpBL_user_agent = httpBL_get_env('HTTP_USER_AGENT');
$values['user_agent'] = $httpBL_user_agent != '' ? $httpBL_user_agent : $txt['httpBL_unknown'];
<!-- line 672 -->$values['username'] = $user_info['is_guest'] ? $txt['guest'] : $user_info['username'];
$values['stopped'] = 1;
<!-- line 674 -->$values['raw'] = $txt['httpBL_unknown']

snoopy_virtual

Hi ziycon

That's really odd.

I suppose you are talking about httpBL version 2.5.1 working on SMF 2.0.10 and I suppose you are using only english and no other languages. If you are using other versions and / or other languages please tell me.

$txt['httpBL_unknown'] is defined inside the file / Themes / default / languages / Modifications.english.php

$txt['guest'] is defined inside the file / Themes / default / languages / index.english.php

Both files should be always loaded by SMF at all times, with or without mod httpBL installed.

Can you check if this custom Theme you are using has overwritten any of those files?

Check inside / Themes / your_custom_theme / languages /. Any file inside that folder is overwriting the files inside your default folder.

Let me know if that's not the problem and we will try to check other possibilities.

El verdadero sabio es aquel que lo ve todo, lo estudia todo, lo analiza todo y molesta poco.
A true wise man is he who sees everything, studies everything, analyses everything and hardly ever annoys.

ziycon

All language files except index.english.php are being inherited from the default theme. I'm using English British UTF8 but the issue also happens on the default English ISO-8859-1 language files. Yes it's httpBL version 2.5.1 working on SMF 2.0.10.

It looks to be only any $txt string loaded via the 'httpBL_dnslookup' function as these are the only two $txt strings in that function, when I go to the httpBL mod interface to look at the logs or caught spammers etc. all loads fine, and text is there.

ziycon

If I put the below code snippet on line 666 of httpBL_Subs.php it looks like there are no errors generating.

if (empty($txt['guest'])) {
loadLanguage('index');
        loadLanguage('Modifications');
}

snoopy_virtual

It's really weird, because index and Modifications languages should be loaded always doesn't matter what.

Anyway, as the error you were getting was that $txt['guest'] and $txt['httpBL_unknown'] were not defined I think you should check


if (!isset($txt['guest']))


instead of


if (empty($txt['guest']))


or even better:


if (!isset($txt['guest']) || empty($txt['guest']))


Anyway you said the file index.english.php you are using is the one inside your custom theme instead of the default one.

Can you compare both files (the custom and the default ones) and add to the custom file the missing lines from the default one?

It looks like at list this line is missing in your custom index.english.php


$txt['guest'] = 'Guest';


As a general rule I always try to avoid language files in my custom themes. When I find one I merge that file with the one inside the default theme (comparing them and copying the missing lines to the default file) and then I delete the custom language file.

And now that you are at it can you check also the file Modifications.english.php to see if this line is also missing?


$txt['httpBL_unknown'] = 'unknown';

El verdadero sabio es aquel que lo ve todo, lo estudia todo, lo analiza todo y molesta poco.
A true wise man is he who sees everything, studies everything, analyses everything and hardly ever annoys.

ziycon

Thanks for that, I've applied the suggested changed to the if statement.

I've also checked both languagefiles the index in my custom theme and the Modifications file in the default theme and the two strings exist as expected in both files.

margarett

Quote from: snoopy_virtual on July 27, 2015, 10:19:38 AM
if (!isset($txt['guest']) || empty($txt['guest']))
Not really, as empty will perform an implicit check on isset

So empty($.... is the exact equivalent of the code you gave ;)
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

snoopy_virtual

Quote from: margarett on July 27, 2015, 10:52:59 AM
Not really, as empty will perform an implicit check on isset

So empty($.... is the exact equivalent of the code you gave ;)

LOL you are right. That means I can delete half of my code, because I always check both things.  ;D

El verdadero sabio es aquel que lo ve todo, lo estudia todo, lo analiza todo y molesta poco.
A true wise man is he who sees everything, studies everything, analyses everything and hardly ever annoys.

Miker1029

Hey,

   Just wanted to stop in say this is running great, I'm Finalizing everything, SO now I'm looking for an HttpBL backlink (image) maybe to your site, and also looking for one for Honeypot if you could help me out.....

You can check my page, http://android-x86.net and check the bottom of the page to see what I'm kind of looking for to put in there....


Thanks
Mike

snoopy_virtual

I see what you mean.

Here you can get some for project honey pot:

http://www.projecthoneypot.org/link_to_us.php

I haven't made one for my site http://www.snoopyvirtualstudio.com but if I make one I will let you know.

I'm glad you like my work and to hear it is helping you protecting your site.

El verdadero sabio es aquel que lo ve todo, lo estudia todo, lo analiza todo y molesta poco.
A true wise man is he who sees everything, studies everything, analyses everything and hardly ever annoys.

Miker1029

Quote from: snoopy_virtual on November 29, 2015, 08:23:01 PM
I see what you mean.

Here you can get some for project honey pot:

http://www.projecthoneypot.org/link_to_us.php

I haven't made one for my site http://www.snoopyvirtualstudio.com but if I make one I will let you know.

I'm glad you like my work and to hear it is helping you protecting your site.

Ok I'll just Pop a Text link in for now.


Miker1029

Ok it's in thanks, take your time on the tag, it's not real pretty but it's there, I'll play with the colors tomorrow, been going on the site since 6am....

Mike

Miker1029

Hey,

Sorry to bother you again, But am I messing up my settings, I know, I have the limits set in your Mod and I didn't check Zb, Or the crawltrack but check this out... and he was allowed in Because of the Answers which I guess is ok, but I'd still not want a user on my site like this check out the screenshots, and Know I just figured out how to stop spam 6-8 months ago, these bot, Hidden things got me confused, But this, to me, isn't good.....   I'm probably got settings messed up....

Thanks

Mike

Miker1029

And I know it's not fool proof I'm just seeing if I'm not understanding the settings... Or if it is what it is...

Mike

snoopy_virtual

@Miker1029

It looks like this is one of the robots who can answer some easy captcha questions. The problem is not the settings (normally the default settings are good enough for most sites and you don't need to change them) the problem is a bug inside mod httpBL that I was supposed to fix ages ago but never found some spare time to do it.

Try reading this problem first reported by Sea Mac here:

http://www.simplemachines.org/community/index.php?topic=366399.msg3080909#msg3080909

I suggested him a small change in the warning page to sort that problem here:

http://www.simplemachines.org/community/index.php?topic=366399.msg3081023#msg3081023

If I ever get some spare time I will change all that in mod httpBL and publish a new version with this bug fixed, but I have no idea when I will have time to do it. Sorry.

El verdadero sabio es aquel que lo ve todo, lo estudia todo, lo analiza todo y molesta poco.
A true wise man is he who sees everything, studies everything, analyses everything and hardly ever annoys.

Miker1029

Lol, Hi Botmaster!!!

I Know that 3rd party Captures Stink, But wouldn't that handle it??  I have the KeyKaptcha on Registration and 1st Post Approval, For my Spam Prevention... Couldn't we just Add something like that to the Warning Page?? Not that I know how, But I'm Already registered with them so....

And yes I understood your Idea, Makes Sense,And I good Idea, But as you said, They'll figure it, Simple IF/AND/NOT/OR I could figure out....

I just 2 Days ago told a user (Because He Didn't like the Picture Assemble 1x!!),

To My User:

"I'm an Old School Programmer, And If you Have Color and Sky in the Same Sentence, I could write an Extremely simple A.I. that would figure out Blue, Get past it and on to the next one, You Say what Color Is Lady (What's Her Faces) White horse? The first thing I'm gonna do is plug every one of those words into the answer!!"....

Really Questions are going to be obsolete soon, Lol, I just thought of a good one, ask em what 1000000/35.5*93.421 = and when they get it right don't let them in 8-)

Will Wait on your reply on the capture..

Mike

P.S. AND I understand the Time thing as I said I was a Programmer in the day, and NOT a Paid one....You made a good MOD!

Advertisement: