vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Geek AutoLinker 4.02 (https://vborg.vbsupport.ru/showthread.php?t=76054)

webrats 02-14-2005 08:48 PM

i turned on safe mod but its still effecting if someone puts the word in a hyperlink

-=Sniper=- 02-14-2005 08:59 PM

just wondering sorry if its already been asked :)

what if the very first word in the post was the word you want to replace? since it has no space before the word it will not work? well I think not anyway.

The Geek 02-14-2005 09:08 PM

Quote:

Originally Posted by webrats
i turned on safe mod but its still effecting if someone puts the word in a hyperlink

webrats. Can you give me a hyperlink to see?

Sniper: It wont match it in safemode.

-=Sniper=- 02-14-2005 09:25 PM

thanks

just wondering would it not be better to look for "www." and "http"? if the word contains any of those chars then don't replace else replace?

also wondering would it be possible to run two instances of the hack? as I wanted to allow users to turn one instance off.

The Geek 02-14-2005 09:37 PM

Quote:

Originally Posted by -=Sniper=-
thanks

just wondering would it not be better to look for "www." and "http"? if the word contains any of those chars then don't replace else replace?

also wondering would it be possible to run two instances of the hack? as I wanted to allow users to turn one instance off.

Hey sniper, because the www and http would require recursive checks that would be a nightmare performance wise to test. Just because there is a www in front of the word doesnt make it not valid. What would be really cool is to check for the existence of a <a but not a /a pattern. if that equaled true than it would mean you were sitting prettily in a link. Sadly that type of checking is VERY processor intensive. Another way of doing it is to extract all of the URLS, do the replacing and then put all the URLS back in. Once again though... this is pretty labour intensive.

I run in danger mode and have done for 2 years. I could count of the one hand how many links have been messed up in almost 100,000 posts. Still... you have the power of choice to be dangerous or safe (safe mode is slighlty slower as well as there is an extra call to remove insertions to account for spaces).

As far as running 2 versions. This is totally possible however it would require you to make a copy of the install file, change every instance of a setting in use from GAL_* to GAL2_*
You would then have to duplicate the replacements (though this could be optomized with an array merge).
I guess I am saying that yes... it could be done. But it would be a small pain. The good thing is that since the code is so small, it wouldnt require too much work.

Let me know if you attempt it :)

webrats 02-14-2005 10:20 PM

<a href="http://forums.webrats.com/showthread.php?t=24406" target="_blank">http://forums.webrats.com/showthread.php?t=24406</a>

u may have to register to see it im not sure

webrats 02-14-2005 10:35 PM

Quote:

Originally Posted by webrats
http://forums.webrats.com/showthread.php?t=24406

u may have to register to see it im not sure


im clicking the safe mod button in admincp do i have to do anything else? i rebuilt the language files as well

is there sql command i can run to force it?

Kihon Kata 02-15-2005 12:33 AM

I have to say this is one of the best hacks I have ever seen! I just installed it right here on a hacked up vB 3.0.6 forum. Your install script rocked and couldn't have worked any easier! Thanks!

One problem, it doesn't work! LOL :laugh: . Seems like everything is working just fine inside the ACP. I did havetoeditone phrase then save it to be able to see them in thephrasessection.Then I added one word called "reviews". All ofMODS andadmins on theboard frequently use that word and reference toanothersection of oursite and this seemed like the answer! Wi++++ worked! Canyou assist meon a heavily hacked board? I selected SAFE BTW

I did try using http://www. and just /reviews/index.php etc and still nothing.

THanks

FASherman 02-15-2005 02:05 AM

Quote:

Originally Posted by TonysDesigns
I have to say this is one of the best hacks I have ever seen! I just installed it right here on a hacked up vB 3.0.6 forum. Your install script rocked and couldn't have worked any easier! Thanks!

One problem, it doesn't work! LOL :laugh: . Seems like everything is working just fine inside the ACP. I did havetoeditone phrase then save it to be able to see them in thephrasessection.Then I added one word called "reviews". All ofMODS andadmins on theboard frequently use that word and reference toanothersection of oursite and this seemed like the answer! Wi++++ worked! Canyou assist meon a heavily hacked board? I selected SAFE BTW

I did try using http://www. and just /reviews/index.php etc and still nothing.

THanks

I also installed on a heavily hacked forum and it works just fine. Must be a user error.

Kihon Kata 02-15-2005 02:14 AM

Oh man this install was simpler than most. I am still hoping one can lend a hand....


Quote:

Originally Posted by FASherman
I also installed on a heavily hacked forum and it works just fine. Must be a user error.



All times are GMT. The time now is 03:07 PM.

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.01613 seconds
  • Memory Usage 1,746KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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