16
Installation, Update & Configuration / Re: Serverumzug
« on: May 04, 2008, 07:54:37 PM »
Geht nicht, beim Upload linkt es auf die alte Datenbank. Habe jetzt neu installiert.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
<td align="center">
{if user_loggedin}{melden_button}{endif user_loggedin}
</td>
bildmelden@xfoto.ch.";
ok, try this:
open /includes/functions.php
Find:Code: [Select]function get_media_code
one line down, in global add $script_url
function get_media_code($media_file_name, $image_id = 0, $cat_id = 0, $image_name = "", $mode = "", $show_link = 0, $detailed_view = 0) {
global $site_template, $site_sess, $lang, $mode, $script_url;
$script_url <a href="{image_path}" target="_blank" title="">pic</a>
ok, try this:
open /includes/functions.php
Find:Code: [Select]function get_media_code
one line down, in global add $script_url
then find:Code: [Select]"image_name" => $image_name,
add after:Code: [Select]"image_path" => $site_sess->url($script_url.(preg_replace("/(\?.*)/", "", str_replace("./", "/", preg_replace("/(\?.*)/", "",$media_src))))),
then in /templates/<yourtemplate>/details.html u can use {image_path}
function get_media_code($media_file_name, $image_id = 0, $cat_id = 0, $image_name = "", $mode = "", $show_link = 0, $detailed_view = 0) {
global $site_template, $site_sess, $lang, $mode, $script_url;
$script_url $site_template->register_vars(array(
"media_src" => $media_src,
"media_icon" => $media_icon,
"image_name" => $image_name,
"image_path" => $site_sess->url($script_url.(preg_replace("/(\?.*)/", "", str_replace("./", "/", preg_replace("/(\?.*)/", "",$media_src))))),
annotation_text*My Fantastic Gallery at http://www.mydomain.com
angepasst.