Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
  #1  
Old 02-17-2005, 05:59 AM
Flow Fusion Flow Fusion is offline
 
Join Date: Jul 2003
Location: Georgia
Posts: 512
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Custom BB codes in quick reply

OK has someone done this? But what I want is for my user to be able to click the windows media player, quicktime or iframe tags in the quick reply box.
Reply With Quote
  #2  
Old 02-17-2005, 12:04 PM
KBV KBV is offline
 
Join Date: Aug 2004
Location: Oslo, Norway
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You mean as in add BB codes other then "B", "I", "U" and "Quote" that's there by default?
Reply With Quote
  #3  
Old 02-17-2005, 06:41 PM
Flow Fusion Flow Fusion is offline
 
Join Date: Jul 2003
Location: Georgia
Posts: 512
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Uh.... yeah I mean at the bottom of this page right? I would like to know if I can add my own custom BB codes. But on my site.
Reply With Quote
  #4  
Old 02-17-2005, 07:06 PM
mholtum's Avatar
mholtum mholtum is offline
 
Join Date: May 2004
Location: Arizona
Posts: 697
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Right out of the Admincp:

Custom BB Codes
BB Code Manager
Add New BB Code
Reply With Quote
  #5  
Old 02-17-2005, 08:43 PM
KBV KBV is offline
 
Join Date: Aug 2004
Location: Oslo, Norway
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You have to do some template editing to add the BB codes to the quickreply. In showthread_quickreply find
PHP Code:
<td><div class="imagebutton" id="cmd_wrap0_quote"><img src="$stylevar[imgdir_editor]/quote.gif" alt="$vbphrase[wrap_quote_tags]width="21" height="20" /></div></td
below it add
PHP Code:
<td><div class="imagebutton" id="cmd_BBCODE"><img src="$stylevar[imgdir_editor]/FILENAME.gif" alt="$vbphrase[BBCODE]width="21" height="20" /></div></td
Change the BBCODE and FILENAME text. The problem is that you need to know the BBCODE corresponding to the icon itself. I havn't manage to understand this yet.

If you want to add a seperator, use
PHP Code:
<td><img src="$stylevar[imgdir_editor]/separator.gif" alt="" width="6" height="20" /></td
Hope I understod your question. :P
Reply With Quote
  #6  
Old 02-17-2005, 09:35 PM
Flow Fusion Flow Fusion is offline
 
Join Date: Jul 2003
Location: Georgia
Posts: 512
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<td><div class="imagebutton" id="cmd_BBCODE"><img src="$stylevar[imgdir_editor]/http://www.kefalonia.net.gr/images/icon_windowsmedia9_small.gif" alt="$vbphrase[wmv]" width="21" height="20" /></div></td>

I tried this is this what you meant? Cause it didn't work. And when I tried to put the entire code into the wmv space I got errors.
Reply With Quote
  #7  
Old 02-17-2005, 09:51 PM
KBV KBV is offline
 
Join Date: Aug 2004
Location: Oslo, Norway
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It should be
PHP Code:
<td><div class="imagebutton" id="cmd_wmv"><img src="http://www.kefalonia.net.gr/images/icon_windowsmedia9_small.gif" alt="$vbphrase[wmv]width="21" height="20" /></div></td
I have no idea if this will work for you or not.

Edit: I forgot, there are two places you need to add this code. Find
PHP Code:
<td><div class="imagebutton"><a href="#" onclick="return vbcode('QUOTE', '')"><img src="$stylevar[imgdir_editor]/quote.gif" alt="$vbphrase[wrap_quote_tags]title="$vbphrase[wrap_quote_tags]width="21" height="21" border="0" /></a></div></td
and add below
PHP Code:
<td><div class="imagebutton"><a href="#" onclick="return vbcode('wmv', '')"><img src="http://www.kefalonia.net.gr/images/icon_windowsmedia9_small.gif" alt="$vbphrase[wmv]title="$vbphrase[wmv]width="21" height="21" border="0" /></a></div></td
Reply With Quote
  #8  
Old 02-17-2005, 11:54 PM
Flow Fusion Flow Fusion is offline
 
Join Date: Jul 2003
Location: Georgia
Posts: 512
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yup that did it just great!
Reply With Quote
  #9  
Old 02-18-2005, 08:45 AM
KBV KBV is offline
 
Join Date: Aug 2004
Location: Oslo, Norway
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Happy to be of help. ^^
Reply With Quote
Reply

Thread Tools
Display Modes

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 05:48 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.04381 seconds
  • Memory Usage 2,252KB
  • 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
  • (6)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)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