HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Twitter Embed method for Posts?

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#98593 (In Topic #19436)
Avatar

Honoured member

Hello,

Can anyone please tell me the way to post the standard Twitter embed code directly into a standard forum post and have it render as it should? Have tried a number of ways, and am only getting this:



When I should be getting this:



Thanks much!
Back to the top
 
Posted
Rating:
#98594
Avatar

Community saint

have you placed the twitter code between this:

Code

[semihtml]here the twitter code[/semihtml]


Harry


http://digiflash.nl Photo community  (dutch)
Back to the top
 
Posted
Rating:
#98595
Avatar

Honoured member

Yes, and used the source as well. Both result in:

Back to the top
 
Posted
Rating:
#98596
Avatar

Community saint

Oke have test this… not working thus.. :(  :(


http://digiflash.nl Photo community  (dutch)
Back to the top
 
Posted
Rating:
#98597
Avatar

Community saint

I think that the "script"  option not is accepted. The rest of the code is only html. Maby one of the other more programmers here have a solution.  :)

Harry


http://digiflash.nl Photo community  (dutch)
Back to the top
 
Posted
Rating:
#98598
Avatar

Honoured member

Hoping so...
Back to the top
 
Posted
Rating:
#98599
Avatar

Are you testing as an admin? If not, all scripting code will be stripped.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#98600
Avatar

Honoured member

Yes, I am an admin:

Back to the top
 
Posted
Rating:
#98601
Avatar

Honoured member

Perhaps you can try pasting one to see what is happening?

Here is a code to try, just remove the capitol X's at beginning and end:

X<blockquote class="twitter-tweet"><p>FAU TE Nexon Dorvilus Named to 2013 Mackey Watch List <a href="FAU TE Nexon Dorvilus Named to 2013 Mackey Watch List">FAU TE Nexon Dorvilus Named to 2013 Mackey Watch List</a></p>— The Owl's Nest (@TheOwlsNest_ITB) <a href="https://twitter.com/TheOwlsNest_ITB/statuses/354631403905888258">July 9, 2013</a></blockquote>
<script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>X



Back to the top
 
Posted
Rating:
#98602
Avatar

I got this in Chrome when previewing or viewing the topic for the first time in the browser's Console:



Which is fair enough, it is a suspicious looking situation.

When I reloaded the topic, it was fine.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#98603
Avatar

Community saint

See my two following Pictures:



http://digiflash.nl Photo community  (dutch)
Back to the top
 
Posted
Rating:
#98604
Avatar

You seem to be Opera Harry, which probably doesn't have the filter.

I know IE8+ does, and more recent Chrome versions. I'm not sure about Firefox. We'll give a hint to the browser to not add this extra security layer (which isn't a standard, but just something been added on to cover some common attack scenarios) – but only when submitting Comcode.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#98605
Avatar

Community saint

aha oke, well i see this in chrome also with no problem
see here


http://digiflash.nl Photo community  (dutch)
Back to the top
 
Posted
Rating:
#98606
Avatar

Honoured member

I have this in operation on my current forum (SMF) with no issues in the most recent version of Chrome and have had for months now…

We are moving to OCP soon, and testing this out.

So, we need to use comcode to post these I am assuming?

Back to the top
 
Posted
Rating:
#98607
Avatar

Community saint

Yes, but only as admin


http://digiflash.nl Photo community  (dutch)
Back to the top
 
Posted
Rating:
#98608
Avatar

Honoured member

I see it working fine on your page!

If I may ask, what exactly did you post Harry?
Back to the top
 
Posted
Rating:
#98609
Avatar

Community saint

See pict 1 for the code


http://digiflash.nl Photo community  (dutch)
Back to the top
 
Posted
Rating:
#98610
Avatar

Florida_Owl said

I have this in operation on my current forum (SMF) with no issues in the most recent version of Chrome and have had for months now…

We are moving to OCP soon, and testing this out.

So, we need to use comcode to post these I am assuming?



When I next update your site, it will include my fix to disable the browser feature.

I don't know if SMF disables the feature too already, or if somehow it posts things via redirects which avoids it being triggered.

But definitely that error is what I got, and I was able to make it work via my fix and/or reloading after posting.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#98611
Avatar

Honoured member

Ok, so it just simply is not working for me.

I created a new topic, selected source editor and used the bbc code, and same result. I used the wysiwyg editor, same result. I used the non wysiwyg editor and get the same result.

Not sure what to do here…….
Back to the top
 
Posted
Rating:
#98612
Avatar

Community saint

In Explorer v10 its working also :)


http://digiflash.nl Photo community  (dutch)
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Expand