Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 12-29-2011, 03:36 AM
paulket paulket is offline
 
Join Date: Oct 2010
Posts: 136
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Advance edit strips br tags in 4.1.9

Whenever the advance edit option is used, all of the br tags in a post are being stripped (the separation between paragraphs is lost). I'm using vBulletin 4.1.9 and I have tried disabling all of my plugins but the problem still persists.

Any help in getting this fixed would really be appreciated.
Reply With Quote
  #2  
Old 12-30-2011, 05:08 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is a known bug - search WYSIWYG in Jira. There is a .diff file in the report if you are able to use those.
Reply With Quote
  #3  
Old 12-30-2011, 09:06 PM
paulket paulket is offline
 
Join Date: Oct 2010
Posts: 136
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Lynne, in Jira I found http://tracker.vbulletin.com/browse/VBIV-13639 and downloaded the .diff file. How would I know what should be changed in the clientscript/vbulletin_quick_edit.js file? There are no instructions to do this on Jira.
Reply With Quote
  #4  
Old 12-30-2011, 11:36 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You would use the .diff file to make the changes or read the diff file via a text editor and make the changes manually (- means remove the line + means add the line). You may do a search to find instructions on how to do this (on a PC) over on vbulletin.com
Reply With Quote
  #5  
Old 12-31-2011, 04:40 PM
paulket paulket is offline
 
Join Date: Oct 2010
Posts: 136
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OMG, why can't they just make the corrected files available to overwrite the bad files?!?! I read what is needed to use the .diff file and while I'm not an absolute newbie to adding mods and making template edits, etc., this is way over my head and a ridiculous way of fixing a problem.

I hope it is fixed in 4.1.10 and that a stable version of 4.1.10 will be released soon.
Reply With Quote
  #6  
Old 12-31-2011, 04:46 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

They've been providing .diff files as a way to fix a bug reported file for years now.

How to use Patch files (*.diff) for patching your vBulletin installation
Reply With Quote
  #7  
Old 12-31-2011, 04:54 PM
HMBeaty's Avatar
HMBeaty HMBeaty is offline
 
Join Date: Sep 2005
Posts: 4,141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by paulket View Post
I hope it is fixed in 4.1.10
Since it's marked as "Approved on Staging" for 4.1.10, it should be fixed
Reply With Quote
  #8  
Old 12-31-2011, 04:55 PM
paulket paulket is offline
 
Join Date: Oct 2010
Posts: 136
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
They've been providing .diff files as a way to fix a bug reported file for years now.

How to use Patch files (*.diff) for patching your vBulletin installation
Lynne, I found that explanation and it is ridiculous for vBulletin to expect their customers to do all of that to fix their broken product.

To do it manually the .diff file say to change the following in clientscript/vbulletin_quick_edit.js

Code:
-		form.add_variable('message', vB_Editor[vB_QuickEditor.editorid].get_editor_contents());
to
Code:
+		form.add_variable('message', vB_Editor[vB_QuickEditor.editorid].getRawData());
Minus the - and + of course.

form.add_variable('message', vB_Editor[vB_QuickEditor.editorid].get_editor_contents()); Doesn't even exist in clientscript/vbulletin_quick_edit.js
Reply With Quote
  #9  
Old 12-31-2011, 05:02 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think they probably mean this:

Code:
A.add_variable("message",vB_Editor[vB_QuickEditor.editorid].get_editor_contents());

I guess the variable names get changed to one letter in the distribution to cut down the file size. (but I don't know why the diff would have 'form').
Reply With Quote
  #10  
Old 12-31-2011, 05:07 PM
HMBeaty's Avatar
HMBeaty HMBeaty is offline
 
Join Date: Sep 2005
Posts: 4,141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In the same file (/clientscript/vbulletin_quick_edit.js), try changing this:
PHP Code:
A.add_variable("message",vB_Editor[vB_QuickEditor.editorid].get_editor_contents()); 
To this:
PHP Code:
A.add_variable("message",vB_Editor[vB_QuickEditor.editorid].getRawData()); 
*This has not been tested*

EDIT: Kevin posted as I was going through the file lol
Reply With Quote
Благодарность от:
kh99
Reply


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 09:00 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.05104 seconds
  • Memory Usage 2,266KB
  • Queries Executed 13 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_code
  • (2)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (1)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (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_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
  • 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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete