Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 28 Feb 2005, 04:54
CrazyLady CrazyLady is offline
 
Join Date: Feb 2005
Arrow 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.....


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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 28 Feb 2005, 07:20
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
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.
__________________
Marco van Herwaarden
Ex vBulletin.org Coordinator
Reply With Quote
  #3  
Old 28 Feb 2005, 14:26
CrazyLady CrazyLady is offline
 
Join Date: Feb 2005
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 28 Feb 2005, 19:47
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
I will try to have a look at this tomorrow, please send me a reminder pm if i forget (which is very likely )
__________________
Marco van Herwaarden
Ex vBulletin.org Coordinator
Reply With Quote
  #5  
Old 01 Mar 2005, 14:28
CrazyLady CrazyLady is offline
 
Join Date: Feb 2005
Thank you SO much.. you're a life saver!
Reply With Quote
  #6  
Old 01 Mar 2005, 14:49
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
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?
__________________
Marco van Herwaarden
Ex vBulletin.org Coordinator
Reply With Quote
  #7  
Old 01 Mar 2005, 15:07
CrazyLady CrazyLady is offline
 
Join Date: Feb 2005
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

Last edited by CrazyLady : 01 Mar 2005 at 15:10.
Reply With Quote
  #8  
Old 01 Mar 2005, 15:52
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Hmm not sure if it will work, but please give this a try first.

In your newattachmentbit template, find:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Replace that by:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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.
__________________
Marco van Herwaarden
Ex vBulletin.org Coordinator

Last edited by Marco van Herwaarden : 01 Mar 2005 at 15:57. Reason: Automerged Doublepost
Reply With Quote
  #9  
Old 01 Mar 2005, 16:44
CrazyLady CrazyLady is offline
 
Join Date: Feb 2005
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 01 Mar 2005, 16:54
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
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?
__________________
Marco van Herwaarden
Ex vBulletin.org Coordinator
Reply With Quote
  #11  
Old 01 Mar 2005, 17:22
CrazyLady CrazyLady is offline
 
Join Date: Feb 2005
Originally Posted by MarcoH64
Hmm not sure if it will work, but please give this a try first.

In your newattachmentbit template, find:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Replace that by:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.
If you mean this, than no. I am not working with attachments so I don't need to alter that code.

I would like to have the noguest code within the new custom media player code I added... as in my first post.

I hope I am not confusing you... lol :nervous:

I appreciate your attempt MarcoH64 Sorry if I was unclear in anyway as to my need here.

On my old board, a user will click on the bbcode media button, paste in the url to the file, and it will display something like this in their text box.

[media]"http://www.mysite.com/mediafile.mpeg"[/media]

Once they click submit, the post will show the Media player screen and buttons, but below it the additional text will display, viewable to members but hidden to guests. They didn't enter it, it was set in advance and automatically included in the media bbcode.

So, I want to do the same thing with my new VB, problem is, it's not working. And if I import my old board and threads, all the hidden text will be viewable... huge problem

I went to the custom bbcode, added the media player object code and after that the noguest code and text. But when I go to make a post, the media player shows, but I then also see the ENTIRE [noguest]text[/noguest] code displays, like the board didn't read the bbcode. So, my problem is, how do I get VB to read the noguest code within the media code I added?

This is the only thing stopping me from importing my current board and start using my new VB. If I can't get this to work, I can't use VB... so much for the money I just spent. Just a little worried here. If you have any other suggestions... or perhaps someone else is reading this and may have some input, I would be forever grateful.

thanks
CL

Last edited by CrazyLady : 02 Mar 2005 at 03:16. Reason: Automerged Doublepost
Reply With Quote
  #12  
Old 02 Mar 2005, 16:32
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Well i am sure this can be solved. Unfortuantly i have been busy wih other things (non vB) all day, and i didn't look more into your problem. I will try to find a solution for your problem tomorrow or the day after, if you don't hear from me till friday, please PM me again
__________________
Marco van Herwaarden
Ex vBulletin.org Coordinator
Reply With Quote
  #13  
Old 03 Mar 2005, 14:53
CrazyLady CrazyLady is offline
 
Join Date: Feb 2005
Thank you for your help MarcoH64!

... does anyone know if this fix is even possible or might be able to help us out?

CL
Reply With Quote
  #14  
Old 03 Mar 2005, 15:23
ericgtr's Avatar
ericgtr ericgtr is offline
 
Join Date: Apr 2003
It looks like you are trying to use this with my embedded media player mod, is that right? I have been trying to work this out forever, even with some help from Marcoh64. His mod that secures BB Codes works great but i've never been able to get it to work with the embedded media player codes. It could be because the preg_replace doesn't like what's in between the tags but I would love a solution for this.
Reply With Quote
  #15  
Old 06 Mar 2005, 03:36
CrazyLady CrazyLady is offline
 
Join Date: Feb 2005
nope, no media mod, I just added a custom mod with the html of an embedded media player, and it worked.. I would like to add additional bbcode inside my custom bbcodes, but it doesn't work.

any luck with that MarcoH64?


thanks
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools

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


New To Site? Need Help?

All times are GMT. The time now is 16:29.

Layout Options | Width: Wide Color: