The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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] I would really appreciate your assistance... thank you |
#2
|
|||
|
|||
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. |
#3
|
|||
|
|||
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 |
#4
|
|||
|
|||
I will try to have a look at this tomorrow, please send me a reminder pm if i forget (which is very likely )
|
#5
|
|||
|
|||
Thank you SO much.. you're a life saver!
|
#6
|
|||
|
|||
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? |
#7
|
|||
|
|||
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 |
#8
|
|||
|
|||
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> 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> 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. |
#9
|
|||
|
|||
Quote:
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. |
#10
|
|||
|
|||
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? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|