Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 02-28-2005, 03:54 AM
CrazyLady CrazyLady is offline
 
Join Date: Feb 2005
Location: Canada
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default bbcodes within other bbcodes

Is this possible? I have added media player bbcode, but I want to add additional text to the code using another bbcode, but the board doesn't seem to recognize the bbcode inside? I have the [noguest] mod on my new board, and what I want to accomplish is when people use the media player bbcode, the media player will display in their post and text within the noguest code will display below the media player... does this make sense? but I can't seem to get the two to work together.....

Code:
<object classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" id="MediaPlayer1">
<param name="AudioStream" value="-1">
<param name="AutoSize" value="-1">
<param name="AutoStart" value="0">
<param name="AnimationAtStart" value="-1">
<param name="AllowScan" value="-1">
<param name="AllowChangeDisplaySize" value="-1">
<param name="AutoRewind" value="0">
<param name="Balance" value="0">
<param name="BaseURL" value>
<param name="BufferingTime" value="5">
<param name="CaptioningID" value>
<param name="ClickToPlay" value="-1">
<param name="CursorType" value="0">
<param name="CurrentPosition" value="-1">
<param name="CurrentMarker" value="0">
<param name="DefaultFrame" value>
<param name="DisplayBackColor" value="0">
<param name="DisplayForeColor" value="16777215">
<param name="DisplayMode" value="0">
<param name="DisplaySize" value="0">
<param name="Enabled" value="-1">
<param name="EnableContextMenu" value="-1">
<param name="EnablePositionControls" value="-1">
<param name="EnableFullScreenControls" value="0">
<param name="EnableTracker" value="-1">
<param name="Filename" value="{param}">
<param name="InvokeURLs" value="-1">
<param name="Language" value="-1">
<param name="Mute" value="0">
<param name="PlayCount" value="1">
<param name="PreviewMode" value="0">
<param name="Rate" value="1">
<param name="SAMILang" value>
<param name="SAMIStyle" value>
<param name="SAMIFileName" value>
<param name="SelectionStart" value="-1">
<param name="SelectionEnd" value="-1">
<param name="SendOpenStateChangeEvents" value="-1">
<param name="SendWarningEvents" value="-1">
<param name="SendErrorEvents" value="-1">
<param name="SendKeyboardEvents" value="0">
<param name="SendMouseClickEvents" value="0">
<param name="SendMouseMoveEvents" value="0">
<param name="SendPlayStateChangeEvents" value="-1">
<param name="ShowCaptioning" value="0">
<param name="ShowControls" value="-1">
<param name="ShowAudioControls" value="-1">
<param name="ShowDisplay" value="0">
<param name="ShowGotoBar" value="0">
<param name="ShowPositionControls" value="-1">
<param name="ShowStatusBar" value="0">
<param name="ShowTracker" value="-1">
<param name="TransparentAtStart" value="0">
<param name="VideoBorderWidth" value="0">
<param name="VideoBorderColor" value="0">
<param name="VideoBorder3D" value="0">
<param name="Volume" value="-600">
<param name="WindowlessVideo" value="0">
</object>
[noguest]hidden text here[/noguest]
This is actually VERY important to my board as I will be importing my current database to vbulletin shortly. My current ikonboard does use the above codes, ... and it's critical I continue to use this feature.

I would really appreciate your assistance...

thank you
Reply With Quote
  #2  
Old 02-28-2005, 06:20 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I haven't really looked into this, but i think you will have to run the bbcode parsing twice if you ever want this to work, or you would have to embed the code parsing for the noguest within the code parsing of the media player.

Reason that you would have to run it twice is that when ran for the first time, the noguest code is not there yet, but gets added when the media player code is run. At least this is how i understand your question.
Reply With Quote
  #3  
Old 02-28-2005, 01:26 PM
CrazyLady CrazyLady is offline
 
Join Date: Feb 2005
Location: Canada
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I appreciate your reply! I am very new to php, and just a couple days new with VB. I am not sure how to do either of what you suggested... can you perhaps show me where I need to go and/or what I need to do to try to get this to work? I have added both php and cgi hacks to my boards in the past and have also modified hacks, but that is done from mostly seeing examples. I don't yet understand the language itself. It's really the only thing I need before I import my board. My current board and all it's threads are configured like this.... if I can't get this to work, I am really up the creek.

much thanks!
CL
Reply With Quote
  #4  
Old 02-28-2005, 06:47 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I will try to have a look at this tomorrow, please send me a reminder pm if i forget (which is very likely )
Reply With Quote
  #5  
Old 03-01-2005, 01:28 PM
CrazyLady CrazyLady is offline
 
Join Date: Feb 2005
Location: Canada
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you SO much.. you're a life saver!
Reply With Quote
  #6  
Old 03-01-2005, 01:49 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Question,

How does a user input this? He only give the bbcode for the media, and the "hidden text" is automatically added, or does the user enter 2 bbcodes? If 2, in what format, if no, is that text fixed, or variable?
Reply With Quote
  #7  
Old 03-01-2005, 02:07 PM
CrazyLady CrazyLady is offline
 
Join Date: Feb 2005
Location: Canada
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The user only gives the bbcode for the media player. The hidden text is automatically added. The text is html. fixed or variable? not sure LOL
thank you again
Reply With Quote
  #8  
Old 03-01-2005, 02:52 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm not sure if it will work, but please give this a try first.

In your newattachmentbit template, find:
Code:
			<b>[MP3]http://www.yoursite.com/vb/attachment.php?attachmentid=$attach[attachmentid].mp3[/MP3]</b>
Replace that by:
Code:
			<b>[MP3]http://www.yoursite.com/vb/attachment.php?attachmentid=$attach[attachmentid].mp3[noguest]This text is only for registered memberp[/noguest][/MP3]</b>
That might do the trick, if you have installed the [noguest] example that is.
To make it work your vBulletin setting for "BB Code Parser Function" should be on "bbcodeparse2_recurse()" or "bbcodeparse2_regexrecurse()" (default)

Alternative 2:

just add the [noguest]text[/noguest] to the end of the custom bbcode MP3, just after the line "</object> "

Both not tested by me.

If it won't work, i will dig a bit more.
Reply With Quote
  #9  
Old 03-01-2005, 03:44 PM
CrazyLady CrazyLady is offline
 
Join Date: Feb 2005
Location: Canada
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
To make it work your vBulletin setting for "BB Code Parser Function" should be on "bbcodeparse2_recurse()" or "bbcodeparse2_regexrecurse()" (default)

Alternative 2:

just add the [noguest]text[/noguest] to the end of the custom bbcode MP3, just after the line "</object> "
I am not too sure where to make the change for the "BB Code Parser Function"?

As for the above suggestion, I tried to add the noguest code after the custome MP3 bbcode, but it didn't work.... but that is exatly what I want to do. Might that work with your suggested change? I take it there is a file I must edit? A bit more help....

I appreciate your help.. thanks for bearing with me.
Reply With Quote
  #10  
Old 03-01-2005, 03:54 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm forget about that "BB Code Parser Function". It is a non-editable variable, already set correct by default i asume.

The first alternative you also tried?
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 07:40 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.03983 seconds
  • Memory Usage 2,259KB
  • Queries Executed 11 (?)
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
  • (3)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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_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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete