1 - post the body of a discussion as it it appears in the database discussion table (column body) itself (for an old problem discussions with images in it).. then we could suggest how to replace.
- post your information so it appears exactly in the body (or attach snippet
2 - Are you using buttonbar or cleditor?
here are some analogous examples how people changed things for other issues.
Are you using buttonbar or cleditor?
3- there are quite a few tutorial on the web for phpmyadmin or mysql . have you googled for tutorials on this?
4 - here are some analogous examples how people changed things for other issues. these are examples - don't run these commands blindly if you don't know what they do. and you can find out what the do by understanding sql tutorial.
@peregrine said:
1 - post the body of a discussion as it it appears in the database discussion table (column body) itself (for an old problem discussions with images in it).. then we could suggest how to replace.
- post your information so it appears exactly in the body (or attach snippet
Hi peregrine,
Here's a snippet directly from the database Body field for the img:
De Júlio Baptista a Luan: Cruzeiro faz 'liquidação' para reduzir folha salarial Por Camila Mattoso e Marcus Alves, do ESPN.com.br<br /><br /><br />[i][img alt=O experiente Júlio Baptista ainda não convenceu com a camisa celeste]http://contenti1.espn.com.br/image/wide/622_700ad48f-fd18-342f-aaf1-4d2e49c93058.jpg[/img][/i][i]<br />
It shows up on the discussion with the img text in italics (given the [i]) as follows:
`De Júlio Baptista a Luan: Cruzeiro faz 'liquidação' para reduzir folha salarial Por Camila Mattoso e Marcus Alves, do ESPN.com.br
not the greatest fix but you could remove all the alt in the image
by modifying /library/core/class.format.php
around line 287
$Mixed2 = preg_replace("#\[url=[\"']?(.*?)[\"']?\](.*?)\[/url\]#si",'\\2',$Mixed2);
// add this line to remove the alts.
$Mixed2 = preg_replace("#\[img alt=.*?\]#",'[img]',$Mixed2);
$Mixed2 = preg_replace("#\[img\]((https?|ftp):\/\/.*?)\[/img\]#si",'<img src="\\1" border="0" />',$Mixed2);
or you could use this if you prefer.
$Mixed2 = preg_replace("#\[url=[\"']?(.*?)[\"']?\](.*?)\[/url\]#si",'\\2',$Mixed2);
// this will delete all attribute info in an img format with [img .....attribs] so other pregg replaces will work
$Mixed2 = preg_replace("#\[img .*?\]#",'[img]',$Mixed2);
$Mixed2 = preg_replace("#\[img\]((https?|ftp):\/\/.*?)\[/img\]#si",'<img src="\\1" border="0" />',$Mixed2);
somebody may have a better fix. it worked for me on your body statement.
don't know enough about BBCode to make it better.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
I'm also trying to make quoting work properly, the quote bbcode works. I posted a question under the Quotes 1.6.1 addon as I'm having an issue but unfortunately so far no answers. I'm assuming the quote feature in vanillaforums.org is also proprietary?
well thats a different discussion. and one would hope the author of the plugin would make it work "properly"
if quote doesn't work the way you want maybe quote selector plugin will offer another option.
That said, with bbcode, you will find some plugins will not work as well as they do with markdown and html.
best to try to wean your forum away from bbcode.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
@peregrine said:
well thats a different discussion. and one would hope the author of the plugin would make it work "properly"
Agree, I'm not sure if the author is currently following the discussion, maybe not currently available
if quote doesn't work the way you want maybe quote selector plugin will offer another option.
Yep, I did try that. Apparently Quotes 1.6.1 works with my bbcode, but Quote selection doesn't - the quotes aren't rendered at all.
That said, with bbcode, you will find some plugins will not work as well as they do with markdown and html.
best to try to wean your forum away from bbcode.
Certainly moving forward, is the vanilla default to use HTML? My concern is on the old posts that have been converted
@rmkleemann said:
Certainly moving forward, is the vanilla default to use HTML? My concern is on the old posts that have been converted
The format of discussions/comments is saved so you can switch to a new format while still formatting your old content correctly (with the bbcode formatter). I highly suggest using markdown as your default.
I can't get left/right/justify BBcode tags to work, and they are visible in posted text. I'm using the new advanced editor (also HTML text-align produces no affect).
Theme is the basic vanilla one, with a tiny bit of custom CSS in the .Message class.
Comments
1 - post the body of a discussion as it it appears in the database discussion table (column body) itself (for an old problem discussions with images in it).. then we could suggest how to replace.
2 - Are you using buttonbar or cleditor?
here are some analogous examples how people changed things for other issues.
Are you using buttonbar or cleditor?
3- there are quite a few tutorial on the web for phpmyadmin or mysql . have you googled for tutorials on this?
4 - here are some analogous examples how people changed things for other issues. these are examples - don't run these commands blindly if you don't know what they do. and you can find out what the do by understanding sql tutorial.
http://vanillaforums.org/discussion/comment/192332/#Comment_192332
http://vanillaforums.org/discussion/comment/126021/#Comment_126021
http://vanillaforums.org/discussion/comment/163397/#Comment_163397
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
working on dueling duplicate discussions seems counter productive
http://vanillaforums.org/discussion/comment/208731/#Comment_208731
pick one discussion.
maybe this discussion should be closed as well as the one in the link and a new one started.
@underdog
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
Hi peregrine,
Here's a snippet directly from the database Body field for the img:
De Júlio Baptista a Luan: Cruzeiro faz 'liquidação' para reduzir folha salarial Por Camila Mattoso e Marcus Alves, do ESPN.com.br<br /><br /><br />[i][img alt=O experiente Júlio Baptista ainda não convenceu com a camisa celeste]http://contenti1.espn.com.br/image/wide/622_700ad48f-fd18-342f-aaf1-4d2e49c93058.jpg[/img][/i][i]<br />
It shows up on the discussion with the img text in italics (given the [i]) as follows:
`De Júlio Baptista a Luan: Cruzeiro faz 'liquidação' para reduzir folha salarial Por Camila Mattoso e Marcus Alves, do ESPN.com.br
[img alt=O experiente Júlio Baptista ainda não convenceu com a camisa celeste]http://contenti1.espn.com.br/image/wide/622_700ad48f-fd18-342f-aaf1-4d2e49c93058.jpg[/img]`
the problem is the alt=0 prececeding the http.
not the greatest fix but you could remove all the alt in the image
by modifying /library/core/class.format.php
around line 287
or you could use this if you prefer.
somebody may have a better fix. it worked for me on your body statement.
don't know enough about BBCode to make it better.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
BBCode is not a standard, so expect stuff like this.
better to convert BBcode into html.
grep is your friend.
>
Thanks, I appreciate your help.
One curiosity on a side note, the quote module used in vanillaforums.org is custom/proprietary?
so did it work or not.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
Yes, the img appeared! thank you.
I'm also trying to make quoting work properly, the quote bbcode works. I posted a question under the Quotes 1.6.1 addon as I'm having an issue but unfortunately so far no answers. I'm assuming the quote feature in vanillaforums.org is also proprietary?
well thats a different discussion. and one would hope the author of the plugin would make it work "properly"
if quote doesn't work the way you want maybe quote selector plugin will offer another option.
That said, with bbcode, you will find some plugins will not work as well as they do with markdown and html.
best to try to wean your forum away from bbcode.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
Agree, I'm not sure if the author is currently following the discussion, maybe not currently available
Yep, I did try that. Apparently Quotes 1.6.1 works with my bbcode, but Quote selection doesn't - the quotes aren't rendered at all.
Certainly moving forward, is the vanilla default to use HTML? My concern is on the old posts that have been converted
The format of discussions/comments is saved so you can switch to a new format while still formatting your old content correctly (with the bbcode formatter). I highly suggest using markdown as your default.
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
This issue is affecting me in v.2.2.1.
I can't get left/right/justify BBcode tags to work, and they are visible in posted text. I'm using the new advanced editor (also HTML text-align produces no affect).
Theme is the basic vanilla one, with a tiny bit of custom CSS in the .Message class.
Any ideas?
Are you using the NBBC parser plugin?
https://vanillaforums.org/addon/nbbc-plugin