Check the new Tutorial subforum with helpfull guides and tutorials for modifications and tweaks.
0 Members and 1 Guest are viewing this topic.
I installed 4Images and it working great but I can't firgue out how to get a direct link to the image itself ie http://www.yoursite.com/4images/member?/image.jpg or something like that so they can post the image link in forum and only images would show up in the forum. I don't want the entire page to show up.
Is there a setting or something allowing members to link only images from 4Image Galley to thier forum or websites?
http://www.yoursite.com/4images/data/media/2/sample.jpg
function get_media_code
"image_name" => $image_name,
"image_path" => $site_sess->url($script_url.(str_replace("./", "/",$media_src))),
http://www.yoursite.com/4images/data/media/2/3-31-03h.jpg?s=5dac2660fb96f5d224b77e325853750d
?s=5dac2660fb96f5d224b77e325853750d
http://www.yoursite.com/4images/data/media/2/3-31-03h.jpg
"image_path" => $site_sess->url($script_url.(preg_replace("/(\?.*)/", "", str_replace("./", "/", $media_src)))),
ok, try this: open /includes/functions.php Find: Code: function get_media_code one line down, in global add $script_url then find: Code: "image_name" => $image_name, add after: Code: "image_path" => $site_sess->url($script_url.(str_replace("./", "/",$media_src))), then in /templates/<yourtemplate>/details.html u can use {image_path}
try change: Code: "image_path" => $site_sess->url($script_url.(str_replace("./", "/",$media_src))), to this: Code: "image_path" => $site_sess->url($script_url.(preg_replace("/(\?.*)/", "", str_replace("./", "/", $media_src)))),
}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;
"media_icon" => $media_icon, "image_name" => $image_name, "image_path" => $site_sess->url($script_url.(preg_replace("/(\?.*)/", "", str_replace("./", "/", $media_src)))), "width_height" => $width_height, "width" => $width, "height" => $height,
"image_path" => $site_sess->url($script_url.(preg_replace("/(\?.*)/", "", str_replace("./", "/", preg_replace("/(\?.*)/", "",$media_src))))),
just a thought: is your 4images integrated with some board? what is that "s=sdfsadfsdf" ? I never get this, I know that this shows on vBulletine board. maybe in this query is in $media_src, not in $script_url...