Author Topic: link to homeserver (rights problem little bith OT)  (Read 4117 times)

0 Members and 2 Guests are viewing this topic.

Offline edwin

  • Full Member
  • ***
  • Posts: 199
    • View Profile
    • http://www.foto-janssen.nl
link to homeserver (rights problem little bith OT)
« on: December 10, 2006, 10:25:13 PM »
Hi guys, i know that it's a little bit off topic but i hope that somebody can help me
I linked/ changed the downloadbutton to my privat static ip adress, it comes to my homeserver behind my router and holds at the big map
This is what i see then

Index of /HiRes
 Name                    Last modified      Size  Description                Parent Directory
 
  216/                    06-dec-2006 01:09   
--------------------------------------------------------------------------------

Apache/2.0.54 (Win32) mod_perl/1.99_16 Perl/v5.8.6 PHP/4.4.0 Server at 213.84.166.170 Port 80

This is the changes i made to my downloadbutton

Code: [Select]
{if user_loggedin}
<?php
$bigpics 
str_replace("./"""$media_src);
echo 
"<a href=\"http://213.84.166.170/HiRes/$bigpics\" target=\"_blank\" /><img src=\"{template_url}/images/download.gif\" border=\"0\" alt=\"\"></a>";
?>

{endif user_loggedin}


Probaly it's an right issue, hopefully somebody is willig with some advice

regadrs Edwin

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Re: link to homeserver (rights problem little bith OT)
« Reply #1 on: December 14, 2006, 12:22:08 PM »
Ensure that you add the code after the {image} tag. Otherwise $media_src will be empty which is obviously the case.
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline edwin

  • Full Member
  • ***
  • Posts: 199
    • View Profile
    • http://www.foto-janssen.nl
Re: link to homeserver (rights problem little bith OT)
« Reply #2 on: December 14, 2006, 01:10:34 PM »
I tested it but i get the same result if i change the code

Is this what you mean


                    {if msg}<b>{msg}<br />
                  </b>{endif msg}
                                  <a class="big" href="javascript:openpopupbig('big')">{image}</a><br />
{if user_loggedin}
<?php
$bigpics = str_replace("./", "", $media_src);
echo "<a href=\"http://213.84.xxx.xxx/HiRes/$bigpics\" target=\"_blank\" /><img src=\"{template_url}/images/download.gif\" border=\"0\" alt=\"\"></a>";
?>
{endif user_loggedin}<br>

« Last Edit: December 14, 2006, 01:25:32 PM by edwin »