vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   New button in quick reply (https://vborg.vbsupport.ru/showthread.php?t=199806)

t2k7 12-26-2008 08:42 AM

New button in quick reply
 
Hi! Merry christmas and a happy new year!

Guys i need your help in order to installed a translator in my forum. I want to have an additional button in quick reply for example next to "Go Advanced". When you press this button you will get a popup with custom html code inside.

How can i do this?

Thanks in advance!

Lynne 12-26-2008 03:43 PM

Have you looked at the already existing translation mods? Do a search on "translat*" "all mods" "titles only"

t2k7 12-29-2008 07:06 PM

Thank you for your response. I've already searched the forums with no success. Actually i want to install an external greeklish converter with a few lines of code.

I think something like this would do the job

<a href="#" onclick=" ...

by opening an html file on the server with the required code inside.
I think that a new button in quick reply next to the others would be perfect. But i have no idea what code and where to insert it in order to make the new button.

I would be grateful if you provided me with instructions and code as i am too newbie to write it myself.

Thanks in advance!

UKBusinessLive 12-29-2008 08:24 PM

Make the changes below in each of these two templates:
Showthread Templates -> showthread_quickreply
Postbit Templates -> postbit_quickedit


Find this:

Code:

<td><div class="imagebutton" id="{$editorid}_cmd_wrap0_quote"><img src="$stylevar[imgdir_editor]/quote.gif" width="21" height="20" alt="$vbphrase[wrap_quote_tags]" /></div></td>
and Add below it:

Code:

<td><img src="$stylevar[imgdir_editor]/separator.gif" width="6" height="20" alt="" /></td>
<td><a href="#" onclick="vB_Editor['$editorid'] ENTER YOUR LINES OF CODE HERE; return false">
<img src="$stylevar[imgdir_editor]/Graphic.gif" alt="graphic" border="0" /></a></td>

this will make a Button where you ask, But you'll have to play around with the code abit to try and get it to do what you want, let me know how you got on.

You'll need to replace the graphic.gif to an image that you want to use and uploaded onto your server

;)

t2k7 01-04-2009 08:44 AM

Ok what i've done. I have written an html document with the converter code inside. I uploaded it to my server. And then i replaced the

"vB_Editor['$editorid'] ENTER YOUR LINES OF CODE HERE; return false"

with the path of the html document on my server. Works like a charm!

Thank you very much!! :)

UKBusinessLive 01-04-2009 03:33 PM

Glad to help :D


All times are GMT. The time now is 03:50 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.00985 seconds
  • Memory Usage 1,718KB
  • 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
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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