vb.org Archive

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

kyrenator 05-06-2009 08:35 PM

button
 
How can i create a button at the vbulletin editor that it will add an image into the post?
(I want to choose the image and after my choice everyone who clicks the button, will post the image i had chosen )

RLShare 05-06-2009 09:31 PM

Create a custom bbcode through the bbcode manager that will post the certain image you want.

kyrenator 05-07-2009 11:59 AM

can you give me an example form?
e.g. for the image "http://i228.photobucket.com/albums/ee80/kyrenator/luffytuxmeperigrama-1.gif?t=1241701179"

BlueNinjaGo 05-07-2009 05:03 PM

One solution: Save the picture (should save as a .gif file)
Upload as a smilie. Change the "replacement text" to whatever you want.
Then whenever someone types the replacement text, it'll put that photo.
I guess you could make a button that would put the replacement text into the post for you.

kyrenator 05-07-2009 08:02 PM

hmmm this is a nice way but the picture must be a png because i need it to be transparent!
i prefer the bbcode way but i dont know how to do it! can anybody explain me how?

RLShare 05-07-2009 08:15 PM

AdminCP->Custom BBCode->Add New BB Code

Title: Whatever you want

BBCode tag name: Whatever you want ex.... customimage

replacement:
<img src='path to your picture' alt='what ever you want' />

example: [customimage*][*/customimage] (remove the *'s)

Description: whatever you want.

Button Image; Path to the image that will show in the editor as a button.

Use Option: NO

Remove tag if empty: NO

Then whatever you want for the rest, more then likely all yes.

kyrenator 05-08-2009 10:09 AM

works fine!
thank you!

tipoboy 05-08-2009 10:14 AM

.gif's can also be saved as transparent, FYI :D


All times are GMT. The time now is 10:00 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.01081 seconds
  • Memory Usage 1,714KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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