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 06-22-2011, 04:14 PM
LVC LVC is offline
 
Join Date: Mar 2011
Location: NJ
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default bbcode Icons in editor produce wrong tags v4.1.4

I have two BBcodes that I added to my forum
1. soundcloud [SCPL]
2. Youtube Playlist [YTP]

Both worked fine under 4.1.3 -- but in 4.1.4 -- both buttons in the editor produce [YTP] tags when I am logged in as a registered user.

But when I am logged in as an Admin each button produces the right tags. For the life of me I cannot figure out

any help would be greatly apreciated

Screenshot of editor (cloud Icon is for soundlcoud - tape is for YT Playlist)



BBcode Page for soundCloud



BBcode page for Youtube Play list



Code: Youtube
<object width="425" height="350"><param name="movie" value="http://www.youtube.com/p/{param}"></param><embed src="http://www.youtube.com/p/{param}" type="application/x-shockwave-flash" width="425" height="350"></embed></object>

Code: Sound cloud
<object height="81" width="100%"><param name="movie" value="http://player.soundcloud.com/player.swf?url={param}&amp;g=bb"></param><param name="allowscriptaccess" value="always"></param><embed allowscriptaccess="always" height="81" src="http://player.soundcloud.com/player.swf?url={param}&amp;g=bb" type="application/x-shockwave-flash" width="100%"></embed></object> <a href="{param}">{param}</a>
Reply With Quote
  #2  
Old 06-22-2011, 04:27 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 bug - In Source mode, any custom BB code buttons always insert the last custom BB code tags
Reply With Quote
  #3  
Old 06-22-2011, 04:32 PM
LVC LVC is offline
 
Join Date: Mar 2011
Location: NJ
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Why can't I be so lucky with the lottery? LOL

I looked at the link -- and that is way too advanced for me to even consider tackling.

so for a newbie the solution is what ----- only use one BBcode until bug is fixed?



--------------- Added [DATE]1308765138[/DATE] at [TIME]1308765138[/TIME] ---------------

so for the time being I guess my only option is to disable one of the bbcodes
Reply With Quote
  #4  
Old 06-22-2011, 05:41 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can either apply the fix, or use the WYSIWYG editor when posting, or disable a bbcode from being in the editor area.
Reply With Quote
  #5  
Old 06-22-2011, 05:56 PM
LVC LVC is offline
 
Join Date: Mar 2011
Location: NJ
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
You can either apply the fix, or use the WYSIWYG editor when posting, or disable a bbcode from being in the editor area.
is there a simple file/patch I can upload that corrects it?

I am not a programmer -- not even close.... so going in and changing codes in files is something I really to do want to attempt.
Reply With Quote
  #6  
Old 06-22-2011, 06:55 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I did not see some file/patch in that bug report - just the actual code snippets to change and what to change them to in two of your uncompressed javascript files. You need to read the whole report in order to see what the fix is for this issue.
Reply With Quote
  #7  
Old 06-22-2011, 07:12 PM
LVC LVC is offline
 
Join Date: Mar 2011
Location: NJ
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
I did not see some file/patch in that bug report - just the actual code snippets to change and what to change them to in two of your uncompressed javascript files. You need to read the whole report in order to see what the fix is for this issue.
Yes I read the entire thing --- don't have the skills to mess with codes or javascript files.

Hopefully a simple patch will be released that even a knucklehead like me can install
Reply With Quote
  #8  
Old 06-24-2011, 02:33 PM
LVC LVC is offline
 
Join Date: Mar 2011
Location: NJ
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can someone please help me with this?

Can a fix be outlined for me in simple layman's terms? -----

I do not understand or follow the fix that was pointed out to me in the link

This bug is killing me

Very frustrated
Reply With Quote
  #9  
Old 06-24-2011, 03:22 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The fix isn't that hard to do. Just think of it as a text document that needs to be amended instead of code. First copy the file that needs to be changed so you're not working on your only copy. Then open the file in a text editor (wordpad would probably work), and find the part that needs to be changed. Copy the replacement from the web page to the clipboard (the same way you'd do for any text), select the lines that need to be replaced, and paste. Then upload the file and overwrite the existing one.
Reply With Quote
  #10  
Old 06-24-2011, 03:47 PM
LVC LVC is offline
 
Join Date: Mar 2011
Location: NJ
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Problem is that it is not very clear in bug post on what to copy/fix etc. if they at least posted simple instructions -- then maybe I could do it.

example of simple instructions for knuckleheads like me

1. download xyz file from your vbulletin root directory
2. Open file with text editor
3. find: xnxnxnxnxn code
4. replace code with this: ncncncncnnc
5. replace new file with old file

I just posted a sticky on my forum showing folks how to switch editors -- hopefully that will work for the time being.


Seems like something like this -- a quick patch could be released -- I guess most newbies will have to wait for the next upgrade.


Quote:
Originally Posted by kh99 View Post
The fix isn't that hard to do. Just think of it as a text document that needs to be amended instead of code. First copy the file that needs to be changed so you're not working on your only copy. Then open the file in a text editor (wordpad would probably work), and find the part that needs to be changed. Copy the replacement from the web page to the clipboard (the same way you'd do for any text), select the lines that need to be replaced, and paste. Then upload the file and overwrite the existing one.
Reply With Quote
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 01:12 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08790 seconds
  • Memory Usage 2,257KB
  • 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
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (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
  • 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