Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with Vbulletin 4 Attachments Being Stripped Out #195

Open
MrCaspan opened this issue Apr 1, 2020 · 2 comments
Open

Issue with Vbulletin 4 Attachments Being Stripped Out #195

MrCaspan opened this issue Apr 1, 2020 · 2 comments

Comments

@MrCaspan
Copy link

MrCaspan commented Apr 1, 2020

vBulletin 4 uses BBCode to put images inline in a post. When looking at the code it stripes all the inline BBCode out of all posts... How would a user see the attachments on a post if you are removing the tags to show them. I have found that if you comments out these lines and leave that code in it and put the attachments in the proper upload directory on the new server Vanilla will produce links to the file..

This shoudl also be fixed they should be inline images not links to the files just like they were on the old forum

@MrCaspan
Copy link
Author

MrCaspan commented Apr 1, 2020

return preg_replace('~\[ATTACH=CONFIG\]\d+\[\/ATTACH\]~i', '', $value);

return preg_replace('~\[ATTACH=CONFIG\]\d+\[\/ATTACH\]~i', '', $value);

As you can see here you are stripping out the BBCode in Discussions and Comments and replacing it with ' ' How would an inline image show if you are removing the code to show it?

@MrCaspan
Copy link
Author

MrCaspan commented Apr 1, 2020

I recommend that you replace both lines with
return $value;
This way the BBCcode remains intact and it will properly reference to /attachemnts/userid/attachmentid.extension as I have tested this to be working

Please note the Attachment export issues (#194) has to be fixed first or you will have empty attachments to reference to

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant