OpenX: Banner link target=_self is not working - openx

It seems OpenX (2.8.7) doesn't take into account the attribute "target".
I tried using "_self" and "_top" but when clicking on the banner it always opens a new (_blank) window.
I found nothing interesting on their forum.
Is that a bug or am I doing something wrong?

Setting target to '_top' should open in current window/tab.

Related

WordPress: Images and other assets not loading on localhost

First of all, a cordial greeting, friends! I have a problem, I am working with the design of a web page using WordPress via localhost with XAMPP. I have tried to view the project from different devices (cellphones, tablets) and by configuring the file httpd-XAMPP.config I have managed to enter the address correctly of the project.
The problem is that no image, icon, or logo that I have placed on the page loads (as seen in the attached image), the menu button does not work either.
With nothing more to add and thanking you in advance for any help you can provide, I say goodbye.
Have you checked the image path to see if it's correct?
Are you able to access the image from the full path in a browser for example
domain.com/wp-content/uploads/image.png like this?
Probable solution 1:
Most of the cases, it can be the permalink issue.
Please try to check by changing the permalink, first make it Plain Text and check, if it's not working then make it Post Name and then check. (To do it go to Admin dashboard > Settings > Permalink)
Probable solution 2:
Sometimes, if the image and CSS do not exist in the correct location then happen this kind of issue. Please check it.
Probable solution 3:
Put it in the config.php file
define('WP_HOME','yourdomain.com');
define('WP_SITEURL','yourdomain.com');
Thank you

The parameters 'showinfo' and 'rel' doesnt work with the new player version

When I set the config to the iframe with the new player version, it doesn't work.
I'm setting the config on this way on the iframe URL:
<iframe src="{{url}}?controls=0&playsinline=1&autoplay=0&showinfo=0&rel=0&modestbranding=0&enablejsapi=1&widgetid=1" ... />
This is the gist of the debug info of the player
Anyone have a clue about this? I really appreciate any help.
This seems to have been fixed. After clearing the browser data both the player on my site and the Youtube Player Demo are working as expected. When setting rel=0 and showinfo=0 for the url in the iframe, the title and the related videos disappear.
Just an update in case you experience any new behaviour with the mentioned parameters.
According to: https://developers.google.com/youtube/player_parameters#release_notes_08_23_2018
showInfo is now deprecated & the default behaviour of rel has changed so 0 no longer disables videos instead it shows additional videos from the same channel.

Chrome how to open popup in new window instead of new tab (20170629_chrome 59.0.3071.115)

Editted: For my probelm, not sure but I think hat this update of Google Chrome do not support many options for some specific browsers. So when we has them in specs param of window.open(), it omits all the height=h,width=w,left=x,top=y which make chrome open link in new window instead of new tab
For my program, now I only keep this and this solve the problem:
window.open(form_url, form_name, "width=w,height=h,left=x,top=y");
//our problem code below
//window.open(form_url, form_name, "width=w,height=h,left=x,top=y,resizable=yes,location=yes,scrollbars=yes");
//End editted =================
Could someone help me in configuring Chrome so that popup will open in new window, instead of new tab? (Or any programmatically method for asp.net, c#)
It begin from today 2017/06/29, maybe newest update from chrome version 59.0.3071.115, and all popup in chrome would be opened in new tab instead of new window. This change our website behavior (our website use a main menu and others popup forms), and is very unexpected.
(Tested in some others site with ads popup, same behavior).
(Tested in Firefox: open popup in new window ok for all those sites, not new tab).
I have read changelog here but no mention about this change: chrome 59.0.3071.115
I have searched google, too, but got no luck, maybe because of my google skill, maybe because this is new change from Chrome so google can't find question about it?
Thank you for any help.
On programmatically open new window and not new tab, you can do it via JQuery:
<script type="text/javascript">
$(document).ready(fncOpenNewWindow);
function fncOpenNewWindow() {
$('#testURL').unbind();
$('#testURL').on('click', function () {
window.open("", 'Window Name', "height=200,width=200,modal=yes,alwaysRaised=yes");
});
}
</script>
This is the control:
Click Me
This is tested on Chrome. I haven't tested this on other browser but this should work fine with Chrome.
I have the problem too. I fixed by change toolbar=no or remove toolbar feature.
window.open('http://google.com','x', 'height=600,width=600,left=10,top=10,resizable=yes,scrollbars=yes,toolbar=no,menubar=no,location=no,directories=no,status=no')

Chrome inline background-image lost on back-button in Chrome

I have an inline style on element on one of my templates.
- hero_image = article.hero.url(:medium) if article.hero.url
%article{style: "background-image: url('#{hero_image}');background-attachment : fixed;"}
It works marvelously for me. Except when I go to another link and the use the back button to return the page.
When I use the back button to return the page, the inspector the source is the exactly the same, but no image. When I refresh the page, same code, but the image is there. Seriously weird and annoying.
I've seen reports of this being a bug in Chrome related to background-attachment:fixed; but the work arounds they suggest don't work.
Is there a way to force (via Turbolinks?) this element to refresh?
It turns out that the issue is fixed by adding the base url to the url like so:
- hero_image = base_url + article.hero.url(:medium) if article.hero.url
%article{style: "background-image: url('#{hero_image}');background-attachment : fixed;"}
(I added a base_url helper thanks to this: https://stackoverflow.com/a/2952576/1291663)
I've run into the same problem on my app, trying to display user avatars.
There are (many) bug reports related to this particular situation dating back a couple of years, but the bug is still present as of time of this writing.
The solution I've gone with is to replace the background with an actual img tag, and than use z-index tricks to push it back.

connection symbols in wordpress

I want to add some javascript in wordpress, something like
if(iNum==0&&iNum+1!=l)
It shows up wrong, in the source code I found & became & how do I solve it? Thanks.
if(iNum==0&\& iNum+1!=l)
Where did you put that code?
To insert arbitrary javascript code, you need to use HTML mode in post / page edit window.
To do that, just click on 'HTML' just above editor window (to the right of Upload/Insert tools)

Resources