vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Custom BBCode help needed (https://vborg.vbsupport.ru/showthread.php?t=315055)

BasicGreatGuy 10-25-2014 11:30 PM

Custom BBCode help needed
 
I saw the BBCode pictured below on another forum and would like to use the same kind of thing on the forum I am with. I don't know how to get the BBCode set up where it looks like the picture.

Is there anyone that knows how to do this and would be willing to help me out?

https://vborg.vbsupport.ru/external/2014/10/4.png


That is all that they have posted on their site for people to see.

[seinfeld=Kramer]Your text here.[/seinfeld]

[seinfeld=Kramer]I must have been out of my mind. Look at you. Why don't you do something with your life? Sit around here all day, you contribute nothing to society. You're just taking up space. How could I be with someone like you? Couldn't respect myself.[/seinfeld]

ozzy47 10-25-2014 11:57 PM

1 Attachment(s)
It's pretty simple. First you need the image you want on your server. Then create a new bbcode.

Title: Kramer
BB Code Tag Name: kramer
Replacement:
Code:

<table cellspacing="0" cellpadding="0" border="0">
<tbody>
<tr>
<td valign="bottom" style="margin: 0;padding: 0;border: 0;">
<img src="images/funny/Kramer.png">
</td>
<td align="left" valign="top" style="margin: 0;padding: 0;border: 0;">
<div style=" background-color:#ffffff;color: #000000; -moz-border-radius: 16px; -webkit-border-radius: 16px; border: 1px solid #FFFFFF; padding: 4px;font-size: 1em;">  {param} </div>
<div>
</td>
</tr>
</tbody>
</table>

Example:[ KRAMER][ /KRAMER] ( Without the spaces )

Add the images to this folder on your server, or a different one, just change it in the code, images/funny/Kramer.png

Then whenever someone uses the kramer tags it will show up.

BasicGreatGuy 10-26-2014 12:22 AM

Thank you very much, Ozzy. I just about have it like the picture except for the small v opening up the bubble. That doesn't show. Is that a separate picture?

ozzy47 10-26-2014 12:24 AM

Yes it is, here is the correct code for the replacement.

Code:

<table cellspacing="0" cellpadding="0" border="0">
<tbody>
<tr>
<td valign="bottom" style="margin: 0;padding: 0;border: 0;">
<img src="images/funny/Kramer.png">
</td>
<td align="left" valign="top" style="margin: 0;padding: 0;border: 0;">
<div style=" background-color:#ffffff;color: #000000; -moz-border-radius: 16px; -webkit-border-radius: 16px; border: 1px solid #FFFFFF; padding: 4px;font-size: 1em;">  {param}  </div>
<div>
<img alt="" src="images/funny/speech.png">
</div>
</td>
</tr>
</tbody>
</table>

You need to get the images/funny/speech.png

BasicGreatGuy 10-26-2014 01:13 AM

That did the trick. Thank you again for taking the time to help me out, Ozzy. I appreciate it.

ozzy47 10-26-2014 02:15 AM

Not a problem, glad to help. ;)


All times are GMT. The time now is 11:33 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.01880 seconds
  • Memory Usage 1,721KB
  • 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