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

Reply
 
Thread Tools Display Modes
  #1  
Old 09-25-2008, 06:52 AM
Ransack Ransack is offline
 
Join Date: Jul 2007
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default BBcode [code] tags not working

Hi,

I'm running 3.6 and my bbcode code tags are not working. The code is not displayed at all. (Just the empty box where the code should be)

Having trouble searching for this as terms like "bbcode" and "[code]" seem to give a lot of unrelated results in google.

Where is the best place to look to start debugging this?

Thanks for any help
Reply With Quote
  #2  
Old 09-25-2008, 02:42 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's hard to suggest something when I don't have a clear picture of what is going on. An image may help. Also, which bbcodes aren't working? All of them? Just the code tags? Only the img tags? Are they not working for all users or just admins? A bit more detail may help.
Reply With Quote
  #3  
Old 09-25-2008, 11:50 PM
Ransack Ransack is offline
 
Join Date: Jul 2007
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It is just the "code" tag. It is not the "img" tag or any other bbcode tag I am having problems with. It happens to both admins and regular users.

I have attached an example of a description of a template edit, which renders correctly on other boards but not on mine.

See codetag1.png composing the message.
See codetag2.png for the result. As you can see, the first code tag works, but that is a fairly simple bit of code. The second one does not. The "if" tag is not present. And the "a" (anchor) tag is interpreted and rendered as a link. That big long blank line (wherever that comes from, presumably the spaces I have indented in the code before "$post[...]" ) is one big link.

Thanks for any help.
Attached Images
File Type: png codetag1.png (31.5 KB, 0 views)
File Type: png codetag2.png (11.4 KB, 0 views)
Reply With Quote
  #4  
Old 09-26-2008, 02:05 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Do you allow users to post html? I think I've seen this problem before when that is allowed.
Reply With Quote
  #5  
Old 09-26-2008, 02:11 AM
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Do you have any versions of AME installed?
Reply With Quote
  #6  
Old 09-26-2008, 03:29 AM
Ransack Ransack is offline
 
Join Date: Jul 2007
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
Do you allow users to post html? I think I've seen this problem before when that is allowed.
Yes I have html enabled. Is it required that I disable html in order for code tags to work properly? That would be rather disappointing.

Quote:
Originally Posted by Digital Jedi View Post
Do you have any versions of AME installed?
Does this refer to Auto Media Embedding, such as the "youtube" tags I've seen on some forums? No I do not have any such plugin installed.
Reply With Quote
  #7  
Old 09-26-2008, 05:11 AM
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not quite tags, but yes, its a media embedding modification. Just checking, as a previous version used to strip out some tags in the CODE blocks.

How badly do you need HTML enabled on your forum, as it's a considerable security risk to have it on.
Reply With Quote
  #8  
Old 09-26-2008, 05:41 AM
Ransack Ransack is offline
 
Join Date: Jul 2007
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Digital Jedi View Post
Not quite tags, but yes, its a media embedding modification. Just checking, as a previous version used to strip out some tags in the CODE blocks.

How badly do you need HTML enabled on your forum, as it's a considerable security risk to have it on.
I will consider disabling it. However, can I just disable it on a single post by post basis when I post a code tag and expect that to work? Does this require a plugin which would modify the "compose post" window to include a checkbox to uncheck HTML? I'm not seeing this currently.

There seems to be some plugin here which tells me what tags are on and what are off while I'm composing a post, but I don't see an option to modify them.


Also, if I want to enable this feature only for certain usergroups, can I set the permission to allow in the usergroup settings for tha tusergroup and then disable it for the forum in the forum manager? Or will that forum setting override the usergroup setting?

Thanks again for all of your.
Reply With Quote
  #9  
Old 09-26-2008, 05:53 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Ransack View Post
Yes I have html enabled. Is it required that I disable html in order for code tags to work properly? That would be rather disappointing.
You do know the implications (eg. security) with enabling HTML, right? Since not many people have HTML enabled - this was probably overlooked - try reporting it to the vBulletin bug tracker.
Reply With Quote
  #10  
Old 09-26-2008, 07:04 AM
Ransack Ransack is offline
 
Join Date: Jul 2007
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dismounted View Post
You do know the implications (eg. security) with enabling HTML, right? Since not many people have HTML enabled - this was probably overlooked - try reporting it to the vBulletin bug tracker.
Yes I know the implications, I just didn't care. If nobody uses this feature, maybe it shouldn't be there. But people like to cut and paste articles from webpages and this renders all the embedded content.

If I disable the html in the forums, and then enable it for a certain usergroup, will that allow users in that usergroup to post html in those forums or will the forum setting override that?

Also, if the above works, is there a quick SQL update statement I can use to disable html for all forums, so I don't have to do it one by one?

Thanks for your reply.
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 07:28 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.04036 seconds
  • Memory Usage 2,274KB
  • Queries Executed 14 (?)
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
  • (5)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
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (2)postbit_attachment
  • (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_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
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete