vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Add New Button for [IMG][/IMG] Tags (https://vborg.vbsupport.ru/showthread.php?t=240851)

Peter Lo 04-20-2010 05:02 AM

Add New Button for [IMG][/IMG] Tags
 
My current users from vb3.8 are still getting used to the new "Insert Image" button (insertimage.png) in vb4, which allows upload from URLs, COmputer etc.

They have asked whether I can simply putback the old vb3 insert image button (insertimage.gif) and have the pop up box where they can input their URL and then vb will automatically wrap around them.

Any help would be appreciated.

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

I'm not a programmer, but I've tried to look at the code in vb3 for the insert image button which is:

Code:

<if condition="$show['img_bbcode']">
                                        <td><div class="imagebutton" id="{$editorid}_cmd_insertimage"><img src="$stylevar[imgdir_editor]/insertimage.gif" width="21" height="20" alt="$vbphrase[insert_image]" /></div></td>
                                </if>

Looking at the code for vb4's PHP button which is:
Code:

<vb:if condition="$show['php_bbcode']"><img src="{vb:stylevar imgdir_editor}/php.png" class="imagebutton" id="{vb:raw editorid}_cmd_wrap0_php" width="20" height="20" alt="{vb:rawphrase wrap_php_tags}" /></vb:if>
I came with this (substituting the vb4 code with the vb3 parameters):

Code:

<vb:if condition="$show['img_bbcode']"><img src="{vb:stylevar imgdir_editor}/insertimage.gif" class="imagebutton" id="{vb:raw editorid}_cmd_insertimage" width="20" height="20" alt="{vb:rawphrase insert_image}" /></vb:if>
The button appears but doesn't work.

Any help would be appreciated.

Peter Lo 04-21-2010 02:34 PM

Anyone can help?


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