The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Basically what i want to do is have a bbcode setup and have an image set in the editor.
When a user clicks on it... it will insert [image] in the post editer box... then in the final post it will have the physical image displayed that is assigned to that bbcode. Any suggestions? |
#2
|
|||
|
|||
![]()
I'm not sure I follow - is [image] just an example (that is, would the tag always be [image], or would it be some other word)?
It kind of sounds like you're describing smilies. |
#3
|
|||
|
|||
![]()
that is an example.. [info] would display an image that had information on the image. etc etc.
|
#4
|
|||
|
|||
![]()
OK. Could you just define a custom bbcode and make the replacement value be the html for the image? The code inserted would be like [info][/info] but otherwise I think it would do what you're describing.
|
#5
|
|||
|
|||
![]()
i have had that setup before just fine
but people would want to put something in the middle and it would break. i was wondering if i could eliminate the second half of the bbcode |
#6
|
|||
|
|||
![]()
anyone?
|
#7
|
|||
|
|||
![]()
I wasn't going to respond again because I don't have a good answer, but since you started the second thread...
If you define your bbcode replacement as <img src="something" />{param} then if someone puts something in the middle it should just put the image first (but maybe you already tried that). If you really wanted single tags you would have to modify the javascript to get a button to insert a single tag, then you would also have to add a plugin to process the tag. Or you could somehow use the smilies since I think they do exactly what you want (except I don't know what would happen to the smilies menus if you used large images). |
#8
|
||||
|
||||
![]()
If you don't put {param} in the BB Code replacement then whatever is put between the tags ([info]test[/info]) will just be ignored- it shouldn't break anything.
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|