Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
Prev Previous Post   Next Post Next
  #16  
Old 03-28-2004, 12:07 PM
Mr Blunt Mr Blunt is offline
 
Join Date: Jan 2004
Posts: 133
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:
Code:
standard editor - manual typed link
http://www.vbulletin.org
 
standard editor - hyperlink
http://www.vbulletin.org 
 
wysiwyg editor (manual or hyperlink)
http://www.vbulletin.org
***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 ]

*** /SIDENOTE***


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
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:38 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.07447 seconds
  • Memory Usage 3,183KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (9)bbcode_code
  • (6)bbcode_php
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (30)post_thanks_box
  • (30)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (30)post_thanks_postbit_info
  • (30)postbit
  • (30)postbit_onlinestatus
  • (30)postbit_wrapper
  • (1)showthread_list
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_threadedmode.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids_threaded
  • showthread_threaded_construct_link
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete