4images Forum & Community

4images Issues / Ausgaben => Installation, Update & Configuration => Topic started by: edwin on December 10, 2006, 10:25:13 PM

Title: link to homeserver (rights problem little bith OT)
Post by: edwin 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
Title: Re: link to homeserver (rights problem little bith OT)
Post by: Jan 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.
Title: Re: link to homeserver (rights problem little bith OT)
Post by: edwin 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>