![]() |
i turned on safe mod but its still effecting if someone puts the word in a hyperlink
|
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. |
Quote:
Sniper: It wont match it in safemode. |
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. |
Quote:
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 :) |
<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 |
Quote:
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? |
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 |
Quote:
|
Oh man this install was simpler than most. I am still hoping one can lend a hand....
Quote:
|
NM, I fixed it, my ++++ UP lol
left out one line of the code! Quote:
|
Quote:
Can all who install do their bit to save humanity and click the install button? ;) |
Quote:
But nothing has change :( Do you have the SQL query for me, so that I can change it manual in the SQL database? We use a lot of URL's in the forum and they are now all bad.. And not working anymore.. Thanks.. |
Quote:
Can you PM me a test login and the URL of a page with a messed up link? It would be helpful if the account had admin access (though you can restirct the access to everything else). Ill sort it for you ;) |
**CLicks install**
I was going to click it, but was testing it first. One issue I am having is this: I was linking the word MakeupTalk to http://www.makeuptalk.comthat each instance of MakeupTalk is parsed with thathyperlink. BUTsince the word is part of the link, I think thismessed things up. Also, what about phrases? As in the words review center , it didnt like that either. Any ideas? Quote:
|
Quote:
Are you using safemode? I am looking into an issue with symbian where when viewing the thread, existing urls are getting relinked (in safemode) but viewing the post as a single post it comes up fine. I kind of suspect that the issue could be centered around caching of the post... but am not sure yet. I hope to have a final solution this afternoon. |
Yes the site has it's php in safe mode. My host feels this shouldbe better due to some expliots in php. So, with that said, am I SOL?
Quote:
|
Quote:
|
Play it safe? Yep I have selected this one
Quote:
|
Found the bug causing the problems with safemode. Essentially it wasnt letting you build in safemode because of this.
Until I get a few minutes to update the package... do this: in GAL_admin.php replace PHP Code:
PHP Code:
Then click settings and chose Safe. Then you will actually be safe :) |
Oh awesome! Let me fix this and try it
Will report back asap Quote:
|
that makes it work! thanks dude :)
|
Ahhhh, when I made this change it removed only SOME OF MY LINKS. I hit safe too
Some of the ones I added before are working and some aren't now. I evendeleted some and then readded them and they don't work anymore Do I have recompile something? Quote:
|
Quote:
Thanks for all the work! I am very happy now :smoke: |
Ok, not working for me. This is what I did
I added the = like you had said inside GAL_admin.php. What this did wasremove half of my links LOL. I know....half?? But it really did. If Iremove the = and then hit SAFEMODE, it recompiles itright back to whereit was working with some words Are there more instance of PHP Code:
Quote:
|
if ($leadingspace=-1){
there should only be 1 line like that and it needs to be changed to if ($leadingspace==-1){ |
See the attachment
Litterally, if I edit the php file to be the exact code in the attachtext file, and then upload it. Then go into the ACP, hit "Safe mode" itremoves half my links thatare there working BEFORE I edit/upload. I have duplicated process this 5 times. What am I doing wrong? Quote:
|
Quote:
Before you made the file edit, it was working in dangerous mode (even though you chose safe) which meant it couldnt give a poo about the space in front. Safemode=fewer links, but less chance of URL screw up Dangerous=More links, but greater risk of flub up Hope this makes sense. |
Yep it makes sense
Yes I am talking about the links thru the GAL sys. EG Word usage: reviews (linked to http://www.makeuptalk.com/reviews) This works FINE before I uploaded the modded file. But why does it REMOVE links when I hit safe mode? I start a new thread with one word in it reviews with no spaces etc. Could this be that it's in the beginning of the sentence? Hmm seems strange...but ok, let me fool with dangerous mode now... Quote:
|
BYW, when I added a two word combo as review center I get this: reviews' target='_blank' class='DEF' title=''>review center
Quote:
|
Quote:
However, you could try this workaround (havent done it myself but it would make sense: in functions_showtherad.php replace: PHP Code:
PHP Code:
Like I said - havent done it here but it should work. |
I've noticed that single-word entries supercede multi-word entries. For example, when I input "Toyota" and "Toyota Celica," the hack will only hyperlink "Toyota" in those instances where "Toyota" is part of a multi-word keyword. Like this...
Toyota Toyota Celica Toyota Landcruiser Celica and Landcruiser are left out, even if I did input them in as part of the phrase. |
Quote:
In GAL_admin.php replace PHP Code:
PHP Code:
|
BYW, YOUR REPLY here FIXED this:
when I added a two word combo as review center I get this: reviews' target='_blank' class='DEF' title=''>review center Dangerous Selected! Quote:
|
Thats because it linked review, then linked review center.
If you were in safemode, only review would ever get linked. In dangerous mode, IF review was replaced first then review center would mess it up. Hope this makes sense! |
Little bit deep for me, BUT nevertheless, seems to be working
Look here at this post for an example of it working right. This is a nice hack Quote:
|
Quote:
|
Hey Mr. Geek, I have been looking for this feature for a while. So I am well chuffed with it. Ta! I clicked install for you.
A couple of questions.... 1. Is there a way to change the style of links produced from this mod from the default link style? I would like to make them bold :) 2. If I add a the same keyword twice, and put a different link with each one, will it randomize between the 2 link destinations? 3. Does it only work wioth single words, or will it work with phrases to? For example, "bob music". Just a couple of suggestions.... 1. It might be better if the admin could enter one URL, and a list of keywords & phrases (seperated by commers) to trigger that link. 2. Forgot it.... dam! :smoke: |
Quote:
Glad it helps. 1. To change the look of the links - try changing the DEFS CSS markup that came with the file. Otherwise, you will need to edit your GAL_admin.php file as that is where links are made 2. It wont randomize (think that would drive users ape poop ;) ). The replacement is a first come first server basis. 3. Works with whatever phrase you want, no matter how many spaces it contains (Though there is a limit on the phrase character length but that escapes me right now!) I like your suggestion. Ill look into it when I revisit this hack (when I am done with GAS3) Toodles |
Slix! This is one of the most USEFUL hacks I have seen yet! We love it on our board here
I was a little tricky to get it to work and the installation script is well written KUDOS!!! lata Quote:
|
All times are GMT. The time now is 02:33 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|