Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 02-20-2012, 06:02 AM
RisingGlow RisingGlow is offline
 
Join Date: Feb 2012
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default How can I make this BBCode?

I recently saw on this yugioh forum a really cool feature

Here's the link: http://www.pojo.biz/board/showpost.p...24&postcount=1

Every card is under a custom BBCode (I'm very sure it's a BBCode cause it's tags were (And in between was the card's name))
and when you hover over them, a popup appears of the card.
How do I do this?
Reply With Quote
  #2  
Old 02-20-2012, 11:12 AM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Since those links go to the site that sells the cards, I think that site provides the plugin for you if you sign up as an affiliate.
Reply With Quote
Благодарность от:
RisingGlow
  #3  
Old 02-20-2012, 06:21 PM
RisingGlow RisingGlow is offline
 
Join Date: Feb 2012
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh I see. There's no quick easy way to make this? I'm assuming, by the looks of it, it doesn't seem so complex
Reply With Quote
  #4  
Old 02-20-2012, 10:06 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Heh heh...nice way to get my attention. Anyway, are looking to do the exact same thing, or something like it? If it's the second one and you have the info yourself then I think it's just a matter of setting the "onHover" attribute of a link to call a javascript function to pop up a small window. I don't know if there's an existing mod but you can probably google and find the code to do it, then you just have to put it in a bbcode as the replacement.
Reply With Quote
  #5  
Old 02-21-2012, 12:33 AM
RisingGlow RisingGlow is offline
 
Join Date: Feb 2012
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ah I see. I think I can get the hover thing down. But right now I'm trying to get it so it'll show the image.

I made my tags [test]
and the replacement "<img src="http://mysite.org/{param}.png" />"

So when they would use tag, all they have to do is fill in between with the IMG's name.
However, it's not working. S:
Reply With Quote
  #6  
Old 02-21-2012, 12:15 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh, OK, so you have the images and you just want a bbocde to insert them? What you have should work if it results in the correct image name. When you do it, what happens? Did you view the page html source to see what's being inserted?
Reply With Quote
  #7  
Old 02-21-2012, 04:25 PM
RisingGlow RisingGlow is offline
 
Join Date: Feb 2012
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kh99 View Post
Oh, OK, so you have the images and you just want a bbocde to insert them? What you have should work if it results in the correct image name. When you do it, what happens? Did you view the page html source to see what's being inserted?
Yea, I'm gonna start off slow for now xD. I'll do the hovering thing later

I clicked view source and all that is shown is "[test]image[/test], (yes, there is an 'image.png' in the correct directory)
Reply With Quote
  #8  
Old 02-21-2012, 04:31 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That looks like you've done something wrong filling in the bbcode form. Where it says "BB Code Tag Name" there should be test and not [test]. And if you put [test]image[/test] in the example box, when you save it you should see the example working in the "Replacement" column of the bbcode manager, or else you have something wrong.
Reply With Quote
  #9  
Old 02-21-2012, 06:38 PM
RisingGlow RisingGlow is offline
 
Join Date: Feb 2012
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh haha! Works. Thanks. (:
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:58 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04389 seconds
  • Memory Usage 2,238KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (1)post_thanks_box_bit
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete