TOPIC: Direct links

Direct links 1 year 2 months ago #1

I had about 10 direct links to some media files. So I read wiki and it says: If you had direct links to media files, (such as from HTML blocks on your home page), then you will need to change these links to use the Media Firewall's URL.

So I changed the link so the link contained /data. But now I get the "403 Forbidden" for my article link

I want to have these links (in articles/blocks ect.)

Can I get an advice how to fix the links please?

P.S.
I noticed in the media module it has a feature with external media (http). I Can not find any documentation about this !
Who is still noobish after 3 years with webtrees (since 7-21-2010). Funny!

My family roots can be found on jaconelli.dk/webtrees (and several other pages)

Crome and FF 13.0.1, Windows 7

webtrees 1.4.4, PHP 5.3., MySQL 5.5.
The administrator has disabled public write access.

Direct links 1 year 2 months ago #2

This means that you need to change

media/photo.jpg

to

mediafirewall.php?mid=M1234
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net
The administrator has disabled public write access.

Direct links 1 year 2 months ago #3

Eh?

the M1234 just an example for a media no?

If so then it only opens the media file in webtrees not the whole pdf file in the browser like this: " www.mydomain.dk/webtrees/mediafirewall.p...database&cb=fbeead61"
Who is still noobish after 3 years with webtrees (since 7-21-2010). Funny!

My family roots can be found on jaconelli.dk/webtrees (and several other pages)

Crome and FF 13.0.1, Windows 7

webtrees 1.4.4, PHP 5.3., MySQL 5.5.
Last Edit: 1 year 2 months ago by Jacoline.
The administrator has disabled public write access.

Direct links 1 year 2 months ago #4

Here is an example from the demo site. It is a link to a PDF file.

svn.webtrees.net/demo-stable/mediafirewa...ged=demo&cb=ded9c355
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net
The administrator has disabled public write access.

Direct links 1 year 2 months ago #5

If I type similar like that (this is my link - you can not see it since it is linked on living people) www.jaconelli.dk/webtrees/mediafirewall....database&cb=fbeead61

Then I get this failure:

ERROR 2: sprintf() [function.sprintf]: Too few arguments
0 Error occurred on in function sprintf
1 called from in function call_user_func_array
2 called from line 272 of file I18N.php in function translate
3 called from line 425 of file module.php in function config
4 called from line 183 of file module.php in function edit
5 called from line 135 of file module.php in function modAction
6 called from line 33 of file module.php

Warning: sprintf() [function.sprintf]: Too few arguments in /home/j/a/ftp_jaconellidk/webtrees/library/WT/I18N.php on line 272

ERROR 2: sprintf() [function.sprintf]: Too few arguments
0 Error occurred on in function sprintf
1 called from in function call_user_func_array
2 called from line 272 of file I18N.php in function translate
3 called from line 425 of file module.php in function config
4 called from line 183 of file module.php in function edit
5 called from line 135 of file module.php in function modAction
6 called from line 33 of file module.php

Warning: sprintf() [function.sprintf]: Too few arguments in /home/j/a/ftp_jaconellidk/webtrees/library/WT/I18N.php on line 272
Who is still noobish after 3 years with webtrees (since 7-21-2010). Funny!

My family roots can be found on jaconelli.dk/webtrees (and several other pages)

Crome and FF 13.0.1, Windows 7

webtrees 1.4.4, PHP 5.3., MySQL 5.5.
The administrator has disabled public write access.

Direct links 1 year 2 months ago #6

  • ToyGuy
  • ToyGuy's Avatar
  • OFFLINE
  • Moderator
  • Live like it's Christmas every day - Santa Stephen
  • Posts: 5092
Obviously you can not display media protected by privacy rules to the public. One would have to have access privileges to view an otherwise private media item, just like any other data.

However, the process works since access is granted to non-private media via this method:
www.jaconelli.dk/webtrees/mediafirewall.php?mid=M1201

Also, please note that you have an incorrect reference to the webtrees trademark in your footer. Please change the capped "W" to lower case.

Powered by webtrees Use of Free Software.
Santa Stephen the Fabled Santa
Latest webtrees at MyArnolds.com
Hosted by webtreesonline.com, a division of GeneHosts LLC
MacOS 10.6.8, Apache 2.2+, PHP 5.4.16, MySQL 5.5.28
Last Edit: 1 year 2 months ago by ToyGuy.
The administrator has disabled public write access.

Direct links 1 year 2 months ago #7

Sorry - was a mt when I upgraded. Have edited it to the correct lower case.

Well it is an article placed on a living person. So I just moved it away from the media library, so I can link it in the article. The bad thing is - it will not be in the media list. I have same problem with the video. So I did the same thing. Moved it away. A bit annoying. But I will have to live with that for now.

Ty for the time to both of you!
Who is still noobish after 3 years with webtrees (since 7-21-2010). Funny!

My family roots can be found on jaconelli.dk/webtrees (and several other pages)

Crome and FF 13.0.1, Windows 7

webtrees 1.4.4, PHP 5.3., MySQL 5.5.
The administrator has disabled public write access.

Direct links 1 year 2 months ago #8

  • kiwi
  • kiwi's Avatar
  • OFFLINE
  • Platinum
  • Posts: 5514
Jacoline wrote:
If I type similar like that (this is my link - you can not see it since it is linked on living people) www.jaconelli.dk/webtrees/mediafirewall....database&cb=fbeead61

Then I get this failure:

ERROR 2: sprintf() [function.sprintf]: Too few arguments
0 Error occurred on in function sprintf
1 called from in function call_user_func_array
2 called from line 272 of file I18N.php in function translate
3 called from line 425 of file module.php in function config
4 called from line 183 of file module.php in function edit
5 called from line 135 of file module.php in function modAction
6 called from line 33 of file module.php

Warning: sprintf() [function.sprintf]: Too few arguments in /home/j/a/ftp_jaconellidk/webtrees/library/WT/I18N.php on line 272

ERROR 2: sprintf() [function.sprintf]: Too few arguments
0 Error occurred on in function sprintf
1 called from in function call_user_func_array
2 called from line 272 of file I18N.php in function translate
3 called from line 425 of file module.php in function config
4 called from line 183 of file module.php in function edit
5 called from line 135 of file module.php in function modAction
6 called from line 33 of file module.php

Warning: sprintf() [function.sprintf]: Too few arguments in /home/j/a/ftp_jaconellidk/webtrees/library/WT/I18N.php on line 272

This error message is definitely NOT related to any changes in the media code. It is a (rare-ish) error generated from the WYSIWYG editor in webtrees when it tries to process certain characters. I have never isolated the exact cause, but tidying up incorrect quotation marks, and using html-entities rather than keyboard punctuation usually cures it.
If so then it only opens the media file in webtrees not the whole pdf file in the browser like this: " www.mydomain.dk/webtrees/mediafirewall.p...database&cb=fbeead61"

What does that mean? Perhaps a language translation problem here, but a pdf file IS a media file, so the sentence as written (in English) makes absolutely no sense to me.
Nigel

www.our-families.info

Hosted at:
Follow me at:
The administrator has disabled public write access.
Do you need a web hosting solution for your webtrees site?
If you prefer a host that specialises in webtrees, the following page lists some suppliers able to provide one for you: Specialist web hosting advertisements.

Direct links 1 year 2 months ago #9

Well it is an article placed on a living person.

If you add an explicit privacy restrictions for these media items, you can force them to be public, even if they are attached to private indiivduals.

Add "Restrictions: show to visitors" (1 RESN none)
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net
The administrator has disabled public write access.

Direct links 1 year 2 months ago #10

  • ToyGuy
  • ToyGuy's Avatar
  • OFFLINE
  • Moderator
  • Live like it's Christmas every day - Santa Stephen
  • Posts: 5092
Or, if you wish just a few items public (a video and a PDF, etc) simply make extra copies, house them in a media folder in the public web space and simply continue to link to them directly. You are not forced to use these items via webtrees media management, only if you wish them to be so.
Santa Stephen the Fabled Santa
Latest webtrees at MyArnolds.com
Hosted by webtreesonline.com, a division of GeneHosts LLC
MacOS 10.6.8, Apache 2.2+, PHP 5.4.16, MySQL 5.5.28
The administrator has disabled public write access.
Moderators: makitso
Powered by Kunena Forum