I tried that edit and it does prevent all non-hypered links in standard editor no matter what the autoparse checkbox says, yes, but since the wysiwyg editor autoparses all non-hypered links long before it does the functions_newpost, the result is the newpost doesn't find any non-parsed links to even think about because the links are already parsed.
So it seems logical that it also needs to be put in some other php like maybe the "functions_wysiwyg.php"??? I haven't found exactly where to put it though. I'm still a newbie.
There's a few goals going on here so let's recap...
Some admin's would want to remove 100% of ability to autoparse links in text no matter what the check value is (hack works for standard but not wysiwyg).
Some admin's would want to remove the "default on" for autoparse checkmark, but still allow the checkmark to be turned on by user (hack works for standard but not wysiwyg).
Some admin's would want to keep the "default on" for autoparse checkmark, but still allow the checkmark to be turned off by user (default way for standard, but checkmark value is called too late for wysiwyg).
Some admin's would like a conditional check of what forumid the user is in and probably one of the other options above.
I happen to fall in the second catagory, not the first.
SloppyGoat falls in the fourth catagory.
There's a couple hacks available...
Can turn off autoparse links checkmark default in 4 php files (newreply, newthread, editpost, & private).
Can disable autoparsing links in standard editor completely by editing "functions_newpost.php" file.
So now we all seek the following...
Find where in wysiwyg to add current "return $messagetext;" hack to disable autoparse value check.
Add a hack for wysiwyg to check if autoparse value is off, then don't autoparse when messagebox opens AND while messagebox is in use.
Add a hack to check forumid when deciding to autoparse.
Interesting Facts about vb3 Gold
wysiwyg editor uses quotes in hyperlinks while standard editor and standard with extra controls editor doesn't.
wysiwyg editor automatically adds the quotes to standard hyperlinks if you edit a post with wysiwyg editor.
wysiwyg editor automatically turns simple links into full hyperlinks.
since everything becomes a hyperlink, the autoparse value check at post time is moot in the wysiwyg editor.
there's 4 known php edits to turn off autoparse box by default which still allows the box to function.
wysiwyg editor's "Remove Link" button functions but hitting space or return at end of link reprompts the autoparse.
Examples of the 3 ways links are currently presented:
***SIDENOTE***
While creating this reply, I made it in notepad and did a C&P to messagebox in wysiwyg editor. It did NOT parse the first 2 links in my code above but it DID parse the 3rd url. Now to add to that weirdness, and MAYBE a key all this, I don't know, but only a part of the "code" I cut n pasted became a link. I don't know how this is gonna look when I hit reply but what my editor has highlighted in white and underlined "as linked" is from the first quote to the last ]
I corrected the above link by highlighting the link and clicking "Remove Link" and I'll bet you won't see it as a link. I'll post it now below as I saw it with the editor instead....... Notice how the editor ignores the endquote?? It also ignored the first ] that's right after that endquote. Instead, it went all the way to end of string ]
Possible Solutions to wysiwyg editor's url parsing:
WHEN editpost opens, search for string "[url*" THEN DO wysiwyg repair IF "[url=*" ELSE ignore and continue string search.
WHEN space or return is pressed in wysiwyg messagebox, IF is a text link, CHECK for value of autoparse, IF autoparse=true THEN parse, IF autoparse=false THEN excute character print.
Add that "return $messagetext;" to an additional php file somewhere.
Someday I'll figure out how to turn english into code but in the mean time a little assistance would be real cool if someone thinks of a thing or three to help. Sorry if I'm wasting y'alls time with the lengthy disertation.
I'm a good debugger.
I'm not a good coder....... yet
.....but I'm working on it