vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Custom BB codes in quick reply (https://vborg.vbsupport.ru/showthread.php?t=76477)

Flow Fusion 02-17-2005 05:59 AM

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.

KBV 02-17-2005 12:04 PM

You mean as in add BB codes other then "B", "I", "U" and "Quote" that's there by default?

Flow Fusion 02-17-2005 06:41 PM

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.

mholtum 02-17-2005 07:06 PM

Right out of the Admincp:

Custom BB Codes
BB Code Manager
Add New BB Code

KBV 02-17-2005 08:43 PM

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

Flow Fusion 02-17-2005 09:35 PM

<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.

KBV 02-17-2005 09:51 PM

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


Flow Fusion 02-17-2005 11:54 PM

Yup that did it just great!

KBV 02-18-2005 08:45 AM

Happy to be of help. ^^


All times are GMT. The time now is 06:14 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.01162 seconds
  • Memory Usage 1,743KB
  • 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
  • (6)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete