Code: Select all
var bbtags = new Array('[b] ','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','
Code: Select all
var bbtags = new Array('[b] ','[/b]','[i] ','[/i]','[u] ','[/u]','[quote] ','[/quote]','[code] ','
I think you misunderstood the question. When you push the Quote button, you get the following:Tom wrote:Open the file styles/prosilver/template/posting_buttons.html and find this:
','Code: Select all
var bbtags = new Array('[b] ','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','
','
- ','
','[img]','[/img]','','','[flash=]', '[/flash]','[size=]','[/size]'<!-- BEGIN custom_tags -->, {custom_tags.BBCODE_NAME}<!-- END custom_tags -->);[/code]
- ','
Replace with:
','Code: Select all
var bbtags = new Array('[b] ','[/b]','[i] ','[/i]','[u] ','[/u]','[quote] ','[/quote]','[code] ','
','
- ','
','[img] ','[/img]',' ','','[flash=] ', '[/flash]','[size=] ','[/size]'<!-- BEGIN custom_tags -->, {custom_tags.BBCODE_NAME}<!-- END custom_tags -->);[/code]
- ','
If it doesn't work at first, purge the cache in the ACP and then try it again.
Code: Select all
[quote][/quote]
Code: Select all
[quote] [/quote]
No, I did not misunderstand the question. The code I posted worked exactly as planned on my test board, and does exactly what you said it should. Did you even try the code before denying its relevance?Pony99CA wrote:I think you misunderstood the question. When you push the Quote button, you get the following:
He wants this:Code: Select all
[quote][/quote]
(Note the space between the tags.)Code: Select all
[quote] [/quote]
No, I didn't try it; I have no interest in putting a space there. I thought editing the style file was adding a space between the buttons themselves, not the code generated by pushing the buttons. After all, why would the BBCode generated by the button be in a style file at all? (It should be in core code, IMHO, and pushing the button should call that core code. Otherwise the user would have to edit every style they supported to change generated BBCode.)Tom wrote:No, I did not misunderstand the question. The code I posted worked exactly as planned on my test board, and does exactly what you said it should. Did you even try the code before denying its relevance?
I can understand why you misunderstood the code I posted. I was actually quite surprised to find the code in a style file, as well. The reason I went right to the style file was because I remembered having seen it in a style file in the past, so I knew not to check in the core. However, had I never come across this code in the style files before, I would have also suspected that the code for BBCode tag generation would be located in the core as well.Pony99CA wrote:If your code actually does what was requested, my apologies for misunderstanding. But, as I said, it doesn't make much sense to have the generated code in a style file, so I hope you can understand the confusion.
I think Tom understood where I was coming from and I apologized for misunderstanding his post, so I'm not sure how explaining my thought process makes things worse. It's a statement of why I came to that conclusion, nothing more.ric323 wrote:I think you're digging a deeper hole for yourself Steve.
Guessing how the code "should" work doesn''t substitute for a simple test when you're saying someone is wrong.