• [MOD] Latest pictures on an external page 5 0 5 1
Currently:  

Author Topic: [MOD] Latest pictures on an external page  (Read 44990 times)

0 Members and 1 Guest are viewing this topic.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Latest pictures on an external page
« Reply #30 on: November 12, 2009, 01:18:35 AM »
what if you use full path (http://mysite.com/art/mynewpics.php) or relative path ( ./art/mynewpics.php )?
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline tvcrazyman

  • Pre-Newbie
  • Posts: 8
    • View Profile
Re: [MOD] Latest pictures on an external page
« Reply #31 on: November 12, 2009, 06:36:22 PM »
Well I used the entire web address for a test php page on the outside of my art folder and it just did the same thing. It skips the /art/ folder in the address.

Offline Yan

  • Pre-Newbie
  • Posts: 7
    • View Profile
Re: [MOD] Latest pictures on an external page
« Reply #32 on: December 26, 2009, 08:20:40 PM »
How change the url and img src path to absolute path gallery.site.ru ?

I try to change this code in functions.php

Code: [Select]
//--External thumbnails--------------------------------
function get_thumbnail_extern_code($media_file_name, $thumb_file_name = "", $image_id, $cat_id, $image_name = "", $mode = "", $show_link = 1, $open_window = 1) {
  global $site_sess, $config;

  if (!check_media_type($media_file_name)) {
    $thumb = "<img src=\"".ICON_PATH."/404.gif\" border=\"0\" alt=\"\" />";
  }
  else {
    if (!get_file_path($thumb_file_name, "thumb", $cat_id, 0, 0)) {
      $file_src = ICON_PATH."/".get_file_extension($media_file_name).".gif";
      $image_info = @getimagesize($file_src);
      $width_height = (!empty($image_info[3])) ? " ".$image_info[3] : "";
      $thumb = "<img src=\"".$file_src."\" border=\"0\"".$width_height." alt=\"".$image_name."\" />";
    }
    else {
      $file_src = get_file_path($thumb_file_name, "thumb", $cat_id, 0, 1);
      $image_info = @getimagesize($file_src);
      $width_height = (!empty($image_info[3])) ? " ".$image_info[3] : "";
      $thumb = "<img src=\"".$file_src."\" border=\"".$config['image_border']."\"".$width_height." alt=\"".$image_name."\" />";
    }
  }

  if ($show_link) {
    if ($open_window) {
      $thumb = "<a href=\"".$site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$image_id.((!empty($mode)) ? "&amp;mode=".$mode : ""))."\" onclick=\"opendetailwindow()\" target=\"detailwindow\">".$thumb."</a>";
    }
    else {
      $thumb = "<a href=\"".$site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$image_id.((!empty($mode)) ? "&amp;mode=".$mode : ""))."\">".$thumb."</a>";
    }
  }
  return $thumb;
}

//--End external thumbnails----------------------------

But it works even without this code in functions.php 8O 8O

Offline vitorlima

  • Pre-Newbie
  • Posts: 1
    • View Profile
Re: [MOD] Latest pictures on an external page
« Reply #33 on: January 16, 2010, 04:47:36 AM »
how do I open the images in another window? images in _blank

Offline Jockl

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
    • fanpage-der-wiener-linien
Re: [MOD] Latest pictures on an external page
« Reply #34 on: September 17, 2011, 06:12:40 PM »
Hi!

I used this script for a long time. Now I've had to change the server and now sometimes the following error message is displayed twice:

Code: [Select]
Warning: Cannot modify header information - headers already sent by (output started at .../header.php:31) in .../4images/includes/sessions.php on line 101
What could be the problem? This error message does not show up in 4images, only in the new_images php included on an external site.

Best regards

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Latest pictures on an external page
« Reply #35 on: September 17, 2011, 07:02:29 PM »
What's in your header.php first 50 lines?
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Jockl

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
    • fanpage-der-wiener-linien
Re: [MOD] Latest pictures on an external page
« Reply #36 on: September 18, 2011, 08:43:38 AM »
What's in your header.php first 50 lines?
Why 50 lines? There are only 31 lines in the header.php

It's only one table

Code: [Select]
<table style="width:100%" cellpadding="0" cellspacing="1" border="0" class="tableoutborder">
.....
</table>
<br />

Offline Jockl

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
    • fanpage-der-wiener-linien
Re: [MOD] Latest pictures on an external page
« Reply #37 on: September 19, 2011, 09:27:49 PM »
No more ideas what could be the problem?

Offline midohits

  • Pre-Newbie
  • Posts: 8
    • View Profile
Re: [MOD] Latest pictures on an external page
« Reply #38 on: January 02, 2012, 09:45:59 PM »
i wanna know how i can make a new page for a specific category not to all image directory

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] Latest pictures on an external page
« Reply #39 on: January 03, 2012, 02:23:56 AM »
Hello and welcome to 4images forum.

Replace in new_images.php
Code: [Select]
        WHERE i.image_active = 1 AND c.cat_id = i.cat_id AND i.cat_id NOT IN (".get_auth_cat_sql("auth_viewcat", "NOTIN").")With this:
Code: [Select]
        WHERE i.image_active = 1 AND c.cat_id = i.cat_id AND i.cat_id NOT IN (".get_auth_cat_sql("auth_viewcat", "NOTIN").")" . ($cat_id ? " AND i.cat_id = $cat_id" : "") . "

After that you can use cat_id url query to specify a category: http://example.com/4images/new_images.php?cat_id=123
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Jasi

  • Jr. Member
  • **
  • Posts: 74
    • View Profile
Re: [MOD] Latest pictures on an external page
« Reply #40 on: February 20, 2012, 10:17:05 AM »
Hallo an Alle,

kann via php include nichts ausgegeben bekommen:

Warning: main() [function.include]: Failed opening 'http://www.xyz.net/fotoarchiv/new_images.php' for inclusion (include_path='.:') in /www/htdocs/ariana/schwibboegen_old.php on line 226

Nur via IFRAME und das ist ja nicht so der Hit mit dem weißen Background immer (´Blendeffekt beim IFRAME').

Könnt Ihr mir bitte helfen, danke  :)
LG Jasi