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 02-24-2010, 07:00 PM
Pro-eSports.com Pro-eSports.com is offline
 
Join Date: Jan 2010
Location: Germany
Posts: 263
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default How To Add NoParse BBCode?

How can I add the [noparse] BBCode to the post editor?
Reply With Quote
  #2  
Old 02-24-2010, 07:30 PM
TimberFloorAu's Avatar
TimberFloorAu TimberFloorAu is offline
 
Join Date: May 2008
Location: Brisbane
Posts: 2,264
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

create a new bbcode

title no parse
bbcode tag name noparse


save.

If you want an image for it, just add one to :images/editor/noparse.gif

create icon 16px x 16px in photoshop and save as noparse.gif

That should work.

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

Ahh alternatively.

goto template editor_toolbar_on

find:
<vb:if condition="!$show['basicbbcodeonly']">
<ul>

Add after:

<img src="images/buttons/noparse.gif" class="imagebutton" id="{vb:raw editorid}_cmd_wrap0_noparse" width="20" height="20" alt="Insert No Parse Tags" />
<vb:if condition="$show['basic_bbcode']">
Reply With Quote
  #3  
Old 02-24-2010, 08:00 PM
Pro-eSports.com Pro-eSports.com is offline
 
Join Date: Jan 2010
Location: Germany
Posts: 263
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What's the HTML replacement for the code?

EDIT: Nevermind, the code is a default code that comes with vB. Basically I just have to add the icon as you suggested in your post edit.
Reply With Quote
  #4  
Old 02-24-2010, 08:18 PM
TimberFloorAu's Avatar
TimberFloorAu TimberFloorAu is offline
 
Join Date: May 2008
Location: Brisbane
Posts: 2,264
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Your Welcome !
Reply With Quote
  #5  
Old 11-29-2014, 07:09 PM
msmayz msmayz is offline
 
Join Date: May 2014
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Necroing this thread because I have the same question -- I want to add a button to my text editor toolbar that will wrap [noparse][/noparse] tags -- but the solution in post #2 above isn't working for me.

When I go to Admin CP > Styles & Templates > Search in Templates, I can't find a template called editor_toolbar_on, and I can't find code in any template that reads:
<vb:if condition="!$show['basicbbcodeonly']">
<ul>

Am I looking in the wrong place?
Reply With Quote
  #6  
Old 11-29-2014, 07:27 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That is because you are looking at directions to a older version of vB than you have. This is why we tell people to start their own threads, instead of bringing up old ones.

So do as was first suggested.

create a new bbcode

title no parse
bbcode tag name noparse


save.

If you want an image for it, just add one to :images/editor/noparse.gif

create icon 16px x 16px in photoshop and save as noparse.gif

That should work.
Reply With Quote
  #7  
Old 11-29-2014, 09:13 PM
msmayz msmayz is offline
 
Join Date: May 2014
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No, I have vB 4, and this is the vB 4 discussion forum. Sorry for necroing a thread; just trying to be polite. Next time I'll start a new thread.

And, like, I said in my post, the directions in post #2 are not working for me. I tried both options.

I tried creating a new BB code, but it won't let me save it unless I insert something in the HTML field. I cannot for the life of me find the proper HTML command for noparse.
Reply With Quote
  #8  
Old 11-29-2014, 09:31 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It does not matter if this in the vB4 section, this was before the ckeditor which you are using.

Anyway, use this as the replacement.

Code:
<noparse>{param}</noparse>
Reply With Quote
  #9  
Old 11-29-2014, 09:32 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You have vb4, but earlier versions of vb4 didn't have the ckeditor.

For the replacement, did you try just using {param}?
Reply With Quote
Благодарность от:
ozzy47
  #10  
Old 11-29-2014, 09:37 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What I posted above seems to work Kevin.
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 10:19 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.04097 seconds
  • Memory Usage 2,254KB
  • 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)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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_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