× If you expect answers you should describe your problem and give as much information's as possible. (SQL-Structure, Template Code, Joomla Version ...) Please read this before posting: joodb.feenders.de/support.html

blanks spaces

More
7 years 11 months ago - 7 years 11 months ago #3849 by natyc33
blanks spaces was created by natyc33
Dear sirs.

We are getting an strange behaviour of joodb free version.

Please find the whole code of the page. Now I show only the line with trouble.

1) Correct:
<a href = "https://youtu.be/{joodb field|LPlLotURLYTu|11}?" target="_blank">

A new tab is opened and we can see a youtube video.
URL: https://www.youtube.com/watch?v=aMsl9u-XuMY&feature=youtu.be


2) Incorrect:
<a href = "https://youtu.be/{joodb field|LPlLotURLYTu}?" target="_blank">

A new tab is open and a 404 error appears. The URL generated is the following:
https://youtu.be/%3Ca%20href='/federicorodriguez/index.php?option=com_joodb&view=article&joobase=5&id=93:xepq4rsltpq&Itemid=254%27%20title=%27Read%20more...%27%20class=%27joodb_titletink%27%3E%20xEpQ4rSLTpQ%3C/a%3E?

Do we need to specify the length of the video code? That would be not good because our code will depend on youtube decision ....

Can we use a "trim" or an intermediate variable?

Thank you very much !
Last edit: 7 years 11 months ago by Dirk.

Please Log in to join the conversation.

More
7 years 11 months ago #3851 by jcollsabc
Replied by jcollsabc on topic blanks spaces
I don't think this is to do with JOODB

You cannot link to an <Object> from within a <A>

You could try not enclosing the OBJECT so the youtube embed code displays directly on the page (if it renders) or alternatively just link to the video via a normal URL.

Hope this helps.
The following user(s) said Thank You: natyc33

Please Log in to join the conversation.

More
7 years 11 months ago - 7 years 11 months ago #3852 by Dirk
Replied by Dirk on topic blanks spaces
Sorry but I am confused.

As far as I understood you want to open a youtube video in a new browserpage.
The name of your field is "LPlLotURLYTu" ?
I don't think so!

Normally every youtube video has a ID like "gBWijDQ-Nis"


So if you want to link to a youtube page you can either insert a iframe or link
like this:
<a href="https://www.youtube.com/watch?v={joodb field|youtube_id}" target="_blank">video</a>

In this case the field youtube_id contains the id of your movie.

And PLEASE! before you answer check weather your message makes sense to other people. Provide all necessary information. This is not a riddle game.
Last edit: 7 years 11 months ago by Dirk.
The following user(s) said Thank You: natyc33

Please Log in to join the conversation.

Moderators: Dirkjoest