vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   bbcodes within other bbcodes (https://vborg.vbsupport.ru/showthread.php?t=77182)

CrazyLady 02-28-2005 03:54 AM

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

Marco van Herwaarden 02-28-2005 06:20 AM

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.

CrazyLady 02-28-2005 01:26 PM

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

Marco van Herwaarden 02-28-2005 06:47 PM

I will try to have a look at this tomorrow, please send me a reminder pm if i forget (which is very likely ;))

CrazyLady 03-01-2005 01:28 PM

Thank you SO much.. you're a life saver! :)

Marco van Herwaarden 03-01-2005 01:49 PM

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?

CrazyLady 03-01-2005 02:07 PM

:) 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 :)

Marco van Herwaarden 03-01-2005 02:52 PM

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.

CrazyLady 03-01-2005 03:44 PM

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. :)

Marco van Herwaarden 03-01-2005 03:54 PM

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?


All times are GMT. The time now is 07:33 AM.

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.01736 seconds
  • Memory Usage 1,750KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete