Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 03-11-2005, 07:43 PM
MooMan65's Avatar
MooMan65 MooMan65 is offline
 
Join Date: Mar 2002
Location: New Zealand
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Disabling BB Code For A Specific Style?

I've had a look around and I can't seem to find this hack. What I'm doing on my board is I'm creating a style based on a really early forum system that our forums used to be on before coming to vBulletin. That forum software didn't use any BB Code whatsoever, so could someone show me how I would go about disabling all the codes for a specific StyleID? It doesn't matter if it's hardcoded into the PHP file, as I'm only and ever going to do this to one style.

Thanks a lot!
Reply With Quote
  #2  
Old 03-12-2005, 12:14 AM
why-not why-not is offline
 
Join Date: Feb 2004
Posts: 218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi

I am thinking about this, and I think you can do it very easily, but then I see a problem with edits or replies that have bbcode already in them! Can you explain how you want to handle replies or edits that for example may have been quoted many times. I can show how to do this, but you will have some very funny posts with over lapping of quotes => (not being able to tell a quote from the original message). Why not just setup a sub forum or a forum that will use the style you want and have bbcode turned off for that forum! If you still want to do it based on your style idea, then explain how you want to deal with post and replies that already contain bbcode and I will help you from there!

Sonia
Reply With Quote
  #3  
Old 03-18-2005, 07:57 AM
MooMan65's Avatar
MooMan65 MooMan65 is offline
 
Join Date: Mar 2002
Location: New Zealand
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well the idea behind this is so that people who miss the older forums can use the style to transform the entire forum back into the older version. 95% of it is just template edits but some things like this make it more difficult.

So to make it exactly right, that you would need to do with BBCode is make it so it does indeed still parse it (so it gets rid of the [blah] [/blah] part) but doesn't actually do anything. So bold would just become bold. This could be the reason why it's not actually been done, as I'm not sure how you could do that when simply loading up a topic containing BB Coded posts. When you edit/reply/post it doesn't matter if you include BBCode or not, the end result is when you display the topic it doesn't show any formatting. The forum system that I'm trying to replicate had barely any special features in it like previewing posts, a WYSIWYG editor, signatures etc. other than simply displaying thread and forum lists, and displaying topics. No registration, no User CP, not even a new page to post replies or threads. So even if you could just get it working in the thread display that'll be all I need.

Oh, the forum didn't use smilies either, so is it also possible to make it not display smilies and instead it's code?
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:25 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.03702 seconds
  • Memory Usage 2,174KB
  • Queries Executed 11 (?)
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
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (3)postbit
  • (3)postbit_onlinestatus
  • (3)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete