Vidmarc Member Sep 25, 2013 #1 Since importing from vB4, all of our YouTube embedded videos are appearing like this: Code: [YOUTUBE]8_ocrenOCPo[/YOUTUBE] Any suggestions as to how to fix it?
Since importing from vB4, all of our YouTube embedded videos are appearing like this: Code: [YOUTUBE]8_ocrenOCPo[/YOUTUBE] Any suggestions as to how to fix it?
Jeremy in memoriam 1991-2020 Sep 25, 2013 #2 You'll need to either edit the post or use Kier's post replacement tool to replace all instances in the database. Upvote 0 Downvote
You'll need to either edit the post or use Kier's post replacement tool to replace all instances in the database.
Vidmarc Member Sep 25, 2013 #3 Thanks - where can I find the replacement BBcode tool? Upvote 0 Downvote
Jeremy in memoriam 1991-2020 Sep 25, 2013 #4 http://xenforo.com/community/resources/post-content-find-replace.1549/ Upvote 0 Downvote
P Paul B XenForo moderator Staff member Sep 25, 2013 #5 For simple content such as that, you can use an SQL query, which is what I did. Code: UPDATE xf_post SET message = REPLACE(message,'current_content','new_content'); Take a backup first though. Upvote 0 Downvote
For simple content such as that, you can use an SQL query, which is what I did. Code: UPDATE xf_post SET message = REPLACE(message,'current_content','new_content'); Take a backup first though.
Vidmarc Member Sep 25, 2013 #6 No idea what I need to do to replace those BB codes. Can anybody help please? I guess I need to search for the first and last parts of the code and replace these? [YOUTUBE] [/YOUTUBE] Upvote 0 Downvote
No idea what I need to do to replace those BB codes. Can anybody help please? I guess I need to search for the first and last parts of the code and replace these? [YOUTUBE] [/YOUTUBE]
P Paul B XenForo moderator Staff member Sep 25, 2013 #7 Code: UPDATE xf_post SET message = REPLACE(message,'[YOUTUBE]','[media=youtube]'); Code: UPDATE xf_post SET message = REPLACE(message,'[/YOUTUBE]','[/media]'); Rebuild the search index once done. Upvote 0 Downvote
Code: UPDATE xf_post SET message = REPLACE(message,'[YOUTUBE]','[media=youtube]'); Code: UPDATE xf_post SET message = REPLACE(message,'[/YOUTUBE]','[/media]'); Rebuild the search index once done.
Vidmarc Member Sep 25, 2013 #8 Thanks, what field do I add these to? Quick Find Regular expression Replacement String Upvote 0 Downvote
P Paul B XenForo moderator Staff member Sep 25, 2013 #9 As I mentioned in my earlier post, you can enter those as direct SQL queries in phpMyAdmin, rather than use the add-on. Upvote 0 Downvote
As I mentioned in my earlier post, you can enter those as direct SQL queries in phpMyAdmin, rather than use the add-on.
Vidmarc Member Sep 25, 2013 #10 I've no idea about phpMyAdmin, would rather use the add on tool. Upvote 0 Downvote
Jeremy in memoriam 1991-2020 Sep 25, 2013 #11 http://xenforo.com/community/threads/post-content-find-replace.6548/page-16#post-611439 Upvote 0 Downvote
Vidmarc Member Sep 25, 2013 #12 "Please enter a message with no more than 5 pieces of media." Any clues? Upvote 0 Downvote
Jeremy in memoriam 1991-2020 Sep 25, 2013 #13 You'll need to either up the user group permissions or modify the option (I forget which one media is defined in). Upvote 0 Downvote
You'll need to either up the user group permissions or modify the option (I forget which one media is defined in).