vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Board Optimization - Proxy Alert (https://vborg.vbsupport.ru/showthread.php?t=299546)

AURFSCAN 08-16-2013 02:42 AM

1 Attachment(s)
above xml no go

AURFSCAN 08-16-2013 02:51 AM

1 Attachment(s)
edit

Code:

if (document.cookie.indexOf("tor=") < 0) {
document.write('<div id=stickymsg><a id="close" href="#" onClick="this.parentNode.parentNode.removeChild(this.parentNode); SetCookie(\'tor\',\'yes\',\'365\');"></a><b>{vb:raw vboptions.tor_alert_message}</b></div></vb:if>');
}



to this

Code:

if (document.cookie.indexOf("tor=") < 0) 
document.write <div id=stickymsg><a id="close" href="#" onClick="this.parentNode.parentNode.removeChild(this.parentNode); SetCookie(\'tor\',\'yes\',\'365\');"></a><b>{vb:raw vboptions.tor_alert_message}</b></div></vb:if>


smirkley 08-16-2013 04:34 AM

I have successfully installed the detector mod, and tested with the latest TOR browser.

A couple of points,...

I like and prefer the red pop-up in v0.6. it isnt all in the way, but I would like it to always be on every page view. IE-giving the admin the ability to eliminate the X. (already discussed earlier so no biggie)

I noticed that the detector doesnt work on cms pages. Not a problem for me as I dont allow members to create articles, but I think the pop-up should show up there anyway.

I dont know why anyone would use the TOR system, it like slows down my browsing significantly. Maybe I am just not covert and devious enough to need it I guess.

I like it so far. Thanks!

TheInsaneManiac 08-16-2013 06:13 AM

Quote:

Originally Posted by AURFSCAN (Post 2439112)
edit

Code:

if (document.cookie.indexOf("tor=") < 0) {
document.write('<div id=stickymsg><a id="close" href="#" onClick="this.parentNode.parentNode.removeChild(this.parentNode); SetCookie(\'tor\',\'yes\',\'365\');"></a><b>{vb:raw vboptions.tor_alert_message}</b></div></vb:if>');
}



to this

Code:

if (document.cookie.indexOf("tor=") < 0) 
document.write <div id=stickymsg><a id="close" href="#" onClick="this.parentNode.parentNode.removeChild(this.parentNode); SetCookie(\'tor\',\'yes\',\'365\');"></a><b>{vb:raw vboptions.tor_alert_message}</b></div></vb:if>


That is strange, in the standard of coding in javascript you always needed the brackets, it was like <vb:if> and </vb:if>



Quote:

Originally Posted by smirkley (Post 2439119)
I have successfully installed the detector mod, and tested with the latest TOR browser.

A couple of points,...

I like and prefer the red pop-up in v0.6. it isnt all in the way, but I would like it to always be on every page view. IE-giving the admin the ability to eliminate the X. (already discussed earlier so no biggie)

I noticed that the detector doesnt work on cms pages. Not a problem for me as I dont allow members to create articles, but I think the pop-up should show up there anyway.

I dont know why anyone would use the TOR system, it like slows down my browsing significantly. Maybe I am just not covert and devious enough to need it I guess.


I like it so far. Thanks!

That will be in the next version to eliminate a few other bugs I found. Should be up shortly.

What do you mean it doesn't work on CMS pages? It's hooked into the headers, which if I recall should be used in CMS as well. Is your style different on the CMS than the forum?

Tor runs fine with me, however I am on 50mbps optic internet so that may be why. Even some users are on a 54k internet connection, they just prefer anonymity over being public. Then you get those that are on a set vendetta to make your life a living hell, rather it be spamming your forum with useless junk, or harassing/flaming your board, getting banned, and using a new ip to do it again, regardless it is why I created it. I will actually be investing a little more time into this modification as I noticed since I started blocking Tor users that this one thorn in my side decided to use a web based proxy, which I plan to detect and stop those as well. Eventually if you make things really difficult for them, they give up haha.

AURFSCAN 08-16-2013 06:53 AM

InsaneMan, ignore my last code as I didnt check with both page and popup, works with one not both.

this code works for both

Code:

if (document.cookie.indexOf("tor=") < 0) 
document.write ('<div id=stickymsg><a id="close" href="#" onClick="this.parentNode.parentNode.removeChild(this.parentNode); SetCookie(\'tor\',\'yes\',\'365\');"></a><b>{vb:raw vboptions.tor_alert_message}</b></div>')</vb:if>


TheInsaneManiac 08-16-2013 09:01 AM

Quote:

Originally Posted by AURFSCAN (Post 2439130)
InsaneMan, ignore my last code as I didnt check with both page and popup, works with one not both.

this code works for both

Code:

if (document.cookie.indexOf("tor=") < 0) 
document.write ('<div id=stickymsg><a id="close" href="#" onClick="this.parentNode.parentNode.removeChild(this.parentNode); SetCookie(\'tor\',\'yes\',\'365\');"></a><b>{vb:raw vboptions.tor_alert_message}</b></div>')</vb:if>



Hmm actually upon further investigation into the issue </vb:if> was the issue the whole time haha. I included it in the alert message which closed out the conditional before </script> could be finished. Anyway will patch this with the new version. After updating to the new version you will need to revert your tor_alert template and if using vbOptimise you will need to flush cache.

Edit: 0.6.5 released to include the persistent option and some other minor fixes.

rhody401 08-16-2013 10:52 AM

0.6.5 download link says it is an invalid attachment.

TheInsaneManiac 08-16-2013 11:23 AM

Quote:

Originally Posted by rhody401 (Post 2439163)
0.6.5 download link says it is an invalid attachment.

Works for me? Try pressing f5 and download it again.

smirkley 08-16-2013 12:45 PM

I just notice that the cms pages, most noticably, my home page, the pop-up didnt show up. I did browse around during tests and it works on all pages, but upon returning to my home page, the popup didnt enable.

I have had several instances where the cms didnt conform to vb css especially in non-oem template changes, and other attributes, but I dont know why the difference, except sometimes when using certain mods or header template changes like my custom login box in header, that cms css had to be changed also as it wouldnt follow vb forum vb css attributes. So maybe the mod is working, but the forum or additional css attributes arent applied directly to cms header changes.

Oh yes, and I use one style for all my pages.

edit to add, I am on a 50mb fibre connection too, although my remote measured thoroughput is more around 36mb. No biggie, I understand the latency involved by going thru tor.

AURFSCAN 08-16-2013 11:35 PM

Works great (0.6.5)

cheers


All times are GMT. The time now is 06:13 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01539 seconds
  • Memory Usage 1,751KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (6)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete