Community @ The Turning Gate

Support community for TTG plugins and products.

NOTICE

The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.

This forum is now closed, and exists here as a read-only archive.

  • New user registrations are disabled.
  • Users cannot create new topics.
  • Users cannot reply to existing topics.

You are not logged in.

#1 2019-02-17 23:24:55

dbfoto
Member
Registered: 2013-01-04
Posts: 121

Link works but not directly

This link I copied from the website of Creative Commons. It works only with the right  (or option) click and not directly with a straight mouseclick. I pasted it in the text on a page copy section. On my website I added some dutch text but in places that should not affect the code. No changes from the original code  in effect.

<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/"><img alt="Creative Commons-Licentie" style="border-width:0" src="https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png" /></a><br />Dit werk valt onder een <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">Creative Commons Naamsvermelding-NietCommercieel-GelijkDelen 4.0 Internationaal-licentie</a>.

Any one with a solution?

Donald

Offline

#2 2019-02-17 23:30:21

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Link works but not directly

It works for me in a test page using your code.

Can you post a link to a page where it’s not working for you?


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#3 2019-02-18 02:21:57

Daniel Leu
Moderator
Registered: 2012-10-11
Posts: 1,624
Website

Re: Link works but not directly

I noticed this in the past and was wondering why.... Your page setup is strange since your photography site is embedded in a frameset:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
</head>
<frameset rows="100%,*" cols="*" > 
<frame name="subdom" src="index.php" marginwidth="0" marginheight="0" scrolling="auto" frameborder="NO">
<frame src="dummy.html">
</frameset>
<noframes>
</noframes>
</html>

Going to https://www.fotograafdonald.nl/2019/, the links work properly. I would get rid of this top-level frameset thingy.


Daniel Leu | Photography   
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com

Offline

#4 2019-02-18 05:28:44

dbfoto
Member
Registered: 2013-01-04
Posts: 121

Re: Link works but not directly

no idea what that is for and where it is from Daniel????

Offline

#5 2019-02-18 05:39:51

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Link works but not directly

Your hosting company may be doing this. Is 2019 a subfolder or just a page you created? I there anything special you're doing?


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#6 2019-02-18 07:20:50

dbfoto
Member
Registered: 2013-01-04
Posts: 121

Re: Link works but not directly

2019 is a folder in the root of my account. the way I keep things apart. the rest... I wouldn't know.

Offline

#7 2019-02-18 09:01:16

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Link works but not directly

Do you also have a page named 2019?


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#8 2019-02-18 16:58:50

Daniel Leu
Moderator
Registered: 2012-10-11
Posts: 1,624
Website

Re: Link works but not directly

dbfoto wrote:

no idea what that is for and where it is from Daniel????

Somehow you defined that the 2019 folder is the root of your site I guess. Who are you hosting with?


Daniel Leu | Photography   
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com

Offline

#9 2019-02-18 19:41:53

dbfoto
Member
Registered: 2013-01-04
Posts: 121

Re: Link works but not directly

I have a php-script redirecting multiple domains to their rootfolders. This website is in the folder 2019, there is no page in the website called 2019. My breadcrumbs are having trouble to to act as links and when they do succeed and show the underlaying albums I can click the album but nothing happens.

Offline

#10 2019-02-18 23:37:53

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Link works but not directly

Does your script do more than redirect?

It looks like a frame set is being created to “house” the redirected site. Is the script doing that? If not, it’s likely something your host is doing.


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#11 2019-02-19 04:20:00

dbfoto
Member
Registered: 2013-01-04
Posts: 121

Re: Link works but not directly

Hi Rod,
I mailed you two files, the screenprint is a mistake so delete that. The second has the php-file.
I placed this posting 2 hours ago but it seemes it never reached the community

Offline

#12 2019-02-19 06:30:36

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Link works but not directly

I don’t really know what’s happening with that last line: Header("Location: $url");
(I can infer what the others do)

Have you discusses the frame set creation with your host.

For Daniel or Ben or someone else who knows php, this is the code Donald sent to me

<?php
$host=getenv("HTTP_HOST");
if($host == "www.fotograafdonald.nl") { $url = "/2019/index.php"; }
elseif($host == "fotograafdonald.nl") { $url = "/2019/index.php"; }
elseif($host == "www.fotogravisie.nl") { $url = "/fotogravisie/index.html"; }
elseif($host == "www.streetmagic.nl") { $url = "/streetmagic/index.html"; }
elseif($host == "fotogravisie.fotograafdonald.nl") { $url = "/fotogravisie/index.html"; }
elseif($host == "backlight.fotograafdonald.nl") { $url = "/backlight/index.php"; }
elseif($host == "www.fotografiemodellen.nl") { $url = "index.shtml"; }
elseif($host == "www.fotografieworkshops.nl") { $url = "index.shtml"; }
else { $url = "index2.html" ; }
Header("Location: $url");
?>

Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#13 2019-02-19 06:33:53

dbfoto
Member
Registered: 2013-01-04
Posts: 121

Re: Link works but not directly

Something strange just came up
I checked the contents of an album from within the admin module and then ALL links work perfectly
When i address the website normally from the address bar on top of the browser, the links don't work

Offline

#14 2019-02-19 06:38:05

dbfoto
Member
Registered: 2013-01-04
Posts: 121

Re: Link works but not directly

could it be this: $host=getenv("HTTP_HOST");
it states HTTP while I use HTTPS?

No not the problem

Last edited by dbfoto (2019-02-19 06:42:34)

Offline

#15 2019-02-19 06:38:24

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Link works but not directly

Have you tried removing that redirect file to eliminate it as a cause?


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#16 2019-02-19 06:43:18

dbfoto
Member
Registered: 2013-01-04
Posts: 121

Re: Link works but not directly

if I remove it the site won't be found

Offline

#17 2019-02-19 06:49:09

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Link works but not directly

Go directly to the site, as if you weren’t relying on the redirect


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#18 2019-02-19 06:55:01

dbfoto
Member
Registered: 2013-01-04
Posts: 121

Re: Link works but not directly

yep that works perfectly

it's possible this started when I swtched from http to https secure... not 100% sure though

Last edited by dbfoto (2019-02-19 06:56:16)

Offline

#19 2019-02-19 06:57:35

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Link works but not directly

Maybe try redirecting with .htaccess instead?

You’ll have to google that one or wait for Ben to come along with suggestions


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#20 2019-02-19 07:05:21

dbfoto
Member
Registered: 2013-01-04
Posts: 121

Re: Link works but not directly

i'll wait. it is beyond me and it is bedtime in the Netherlands, tnx so far Rod

Offline

#21 2019-02-19 08:03:14

Ben
Moderator
From: Melbourne, Australia
Registered: 2012-09-29
Posts: 4,399

Re: Link works but not directly

I'm not really following what's going on.  Is there a specific URL where links aren't working?

Offline

#22 2019-02-19 08:44:28

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Link works but not directly

Hi Ben,

If you go Donald’s site (not using the /2019 url in Daniel’s response) you’ll see the Creative Commons links. Clicking on them does nothing.
Daniel pointed out that his site is in a frame set and that’s probably why the links aren’t working.

He has a php file in the root of his domain that redirects everything. I posted it above. I don’t know what all it does but am wondering if code like that can create a frame set in which the site resides. Or is it something his hosting is doing?


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#23 2019-02-19 09:07:04

Ben
Moderator
From: Melbourne, Australia
Registered: 2012-09-29
Posts: 4,399

Re: Link works but not directly

Hi Rod,  that link works for me without issue from the page https://www.fotograafdonald.nl/2019/.  Tried in Safari and Chrome.  The redirect code above shouldn't impact the behaviour of outgoing links.

Offline

#24 2019-02-19 09:33:46

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Link works but not directly

Ben,
try going here instead: https://www.fotograafdonald.nl/


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#25 2019-02-19 20:30:09

Ben
Moderator
From: Melbourne, Australia
Registered: 2012-09-29
Posts: 4,399

Re: Link works but not directly

I'm not sure why, but it looks like the frame is causing the links to be unclickable.

Offline

Board footer

Powered by FluxBB