FM Design
Would you like to react to this message? Create an account in a few clicks or log in to continue.

IMPORTANT

FM Design is in read-only mode, please click here for more information.

Latest topics
» Forumactif Edge - Releases
by Ange Tuteur Tue 03 Sep 2019, 11:49

» GIFActif - Giphy Button for the Editor
by Ange Tuteur Wed 08 May 2019, 17:21

» Forum Closure
by Ange Tuteur Mon 01 Jan 2018, 01:28

» Chit Chat Thread
by Valoish Sun 31 Dec 2017, 19:15

» Font/Text background color.
by Valoish Sun 31 Dec 2017, 19:11

» Forumactif Messenger - Instant Message Application for Forumotion
by Wolfuryo Sun 31 Dec 2017, 18:24

» [GAME] Count to One Million!
by brandon_g Fri 29 Dec 2017, 18:58

» Post Cards
by manikbiradar Wed 20 Dec 2017, 07:50

» [GAME] Countdown from 200,000
by Valoish Wed 13 Dec 2017, 23:22

» GeekPolice Tech Support Forums - GeekPolice.net
by Dr Jay Mon 11 Dec 2017, 19:12

» Asking about some plugin for Forumotion
by Dr Jay Mon 11 Dec 2017, 19:10

» [GAME] What are you thinking right now?
by Van-Helsing Sat 09 Dec 2017, 14:51

» Widget : Similar topics
by ranbac Wed 06 Dec 2017, 18:11

» Change the Background of the Forum and put an image and how to make prefixs?
by Clement Wed 06 Dec 2017, 15:19

» Hello from Western Australia
by SarkZKalie Wed 06 Dec 2017, 05:34

Recent Tutorials
Top posting users this month

Who is online?
In total there are 23 users online :: 0 Registered, 0 Hidden and 23 Guests :: 1 Bot

None

[ View the whole list ]


Most users ever online was 515 on Tue 14 Sep 2021, 15:24

Youtube issue on new forum after Db import

View previous topic View next topic Go down

FiB
FiB

Gender : Male
Posts : 185
Points : 3661
Reputation : 14
Location : UK
Language : Eng
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB2
http://www.ourbulgariaforum.com

PostFiB Tue 24 Feb 2015, 04:45

I have an issue with Youtube on my new forum which I think maybe something to do with the Db import but I'm not sure? At the moment wherever there is a Youtube link it appears something like this in the post...

Code:
[youtube:mosxdjh2]2fbJvLDYc08[/youtube:mosxdjh2]

If I click edit this is what I see....

Code:
[youtube]2fbJvLDYc08[/youtube]

If I then send it without making any changes I see this...







As far as the Youtube links are concerned I have found that if I click edit do NOTHING and then click send they are working Shocked so is there anyway to fool the forum into thinking that all the posts have been edited?



Administrator
Gender : Male
Posts : 95
Points : 4121
Reputation : 26
Location : Macungie, PA
Language : EN10, FR5
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
https://github.com/SethClydesdale https://twitter.com/sethc1995

Post Tue 24 Feb 2015, 22:29

The colons and characters after youtube are keeping the tags from formatting. (:mosxdjh2) When you edit the post, the editor corrects the tags by removing that portion.

You shouldn't have to edit every post to fix this problem, it's not right. I would contact them and ask that they fix all tags in the posts that display this behaviour.
FiB
FiB

Gender : Male
Posts : 185
Points : 3661
Reputation : 14
Location : UK
Language : Eng
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB2
http://www.ourbulgariaforum.com

PostFiB Wed 25 Feb 2015, 02:49

Ok thank you for your reply @Deux
FiB
FiB

Gender : Male
Posts : 185
Points : 3661
Reputation : 14
Location : UK
Language : Eng
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB2
http://www.ourbulgariaforum.com

PostFiB Wed 25 Feb 2015, 15:30

I had forgotten I had already started this, I have contacted to techs about it but they seem to be at a loss Youtube issue on new forum after Db import Speak%20no%20evil
Ange Tuteur
Ange Tuteur
Administrator
Gender : Male
Posts : 4741
Points : 12048
Reputation : 2375
Location : Pennsylvania
Language : EN, JA, FR
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
https://sethclydesdale.github.io/ https://twitter.com/sethc1995

PostAnge Tuteur Wed 25 Feb 2015, 16:27

They cannot explain how the bolded part came into existence ? Shocked

youtube:mosxdjh2
FiB
FiB

Gender : Male
Posts : 185
Points : 3661
Reputation : 14
Location : UK
Language : Eng
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB2
http://www.ourbulgariaforum.com

PostFiB Wed 25 Feb 2015, 16:28

Not at present. scratch
Ange Tuteur
Ange Tuteur
Administrator
Gender : Male
Posts : 4741
Points : 12048
Reputation : 2375
Location : Pennsylvania
Language : EN, JA, FR
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
https://sethclydesdale.github.io/ https://twitter.com/sethc1995

PostAnge Tuteur Wed 25 Feb 2015, 16:37

I don't know what to think now.. Sniff..

Parsing tags via JavaScript isn't something I like to do a lot, but seeing as you've a lot of posts with screwed up bbcode that supposedly cannot be fixed server-side, it's currently your only choice unless you want to edit every post by hand so the editor corrects it. See if this script corrects those tags :

Modules > JavaScript codes management > Create a new script

Placement : in the topics
Paste the code below and submit :
Code:
$(function() { for (var p = $('.postbody'), i=0, j = p.length; i<j; i++) if (p[i].innerHTML.match(/\[youtube:.*?\]/)) p[i].innerHTML = p[i].innerHTML.replace(/\[youtube:.*?\](.*?)\[\/youtube:.*?\]/,'<embed pluginspage="http://www.macromedia.com/go/getflashplayer" src="http://www.youtube.com/v/$1" allowscriptaccess="always" allowfullscreen="true" type="application/x-shockwave-flash" wmode="transparent" quality="high" scale="exactfit" height="350" width="425"/>') });
FiB
FiB

Gender : Male
Posts : 185
Points : 3661
Reputation : 14
Location : UK
Language : Eng
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB2
http://www.ourbulgariaforum.com

PostFiB Wed 25 Feb 2015, 17:03

Looks like the techs have been playing, all the link for youtube have all gone so now I have posts that should have a video but there is nothing there at all except the text Youtube issue on new forum after Db import Sobbing
Ange Tuteur
Ange Tuteur
Administrator
Gender : Male
Posts : 4741
Points : 12048
Reputation : 2375
Location : Pennsylvania
Language : EN, JA, FR
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
https://sethclydesdale.github.io/ https://twitter.com/sethc1995

PostAnge Tuteur Wed 25 Feb 2015, 17:25

They're working on it again ? I'd probably remove the last script then, at least until the problem arises again.
FiB
FiB

Gender : Male
Posts : 185
Points : 3661
Reputation : 14
Location : UK
Language : Eng
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB2
http://www.ourbulgariaforum.com

PostFiB Wed 25 Feb 2015, 17:28

I didn't add it, I was looking for a video so I could check it after but didn't find one. Lets hope they are still working on it and the vids come back or at least the links, Buttercup told me they couldn't do it. They did the same with the broken links instead of leaving them there they have all gone too.
Sponsored content

PostSponsored content

View previous topic View next topic Back to top

Create an account or log in to leave a reply

You need to be a member in order to leave a reply.

Create an account

Join our community by creating a new account. It's easy!


Create a new account

Log in

Already have an account? No problem, log in here.


Log in

 
Permissions in this forum:
You cannot reply to topics in this forum