vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   BBcode [code] tags not working (https://vborg.vbsupport.ru/showthread.php?t=191846)

Ransack 09-25-2008 06:52 AM

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

Lynne 09-25-2008 02:42 PM

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.

Ransack 09-25-2008 11:50 PM

1 Attachment(s)
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.

Lynne 09-26-2008 02:05 AM

Do you allow users to post html? I think I've seen this problem before when that is allowed.

Digital Jedi 09-26-2008 02:11 AM

Do you have any versions of AME installed?

Ransack 09-26-2008 03:29 AM

Quote:

Originally Posted by Lynne (Post 1630541)
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 (Post 1630547)
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.

Digital Jedi 09-26-2008 05:11 AM

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.

Ransack 09-26-2008 05:41 AM

Quote:

Originally Posted by Digital Jedi (Post 1630611)
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.

Dismounted 09-26-2008 05:53 AM

Quote:

Originally Posted by Ransack (Post 1630578)
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.

Ransack 09-26-2008 07:04 AM

Quote:

Originally Posted by Dismounted (Post 1630640)
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.


All times are GMT. The time now is 02:25 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.01267 seconds
  • Memory Usage 1,737KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete