• [Mod] Display image codes on details page (image permalink) 5 0 5 1
Currently:  

Author Topic: [Mod] Display image codes on details page (image permalink)  (Read 171799 times)

0 Members and 1 Guest are viewing this topic.

Offline HowdoI

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: [Mod] Display image codes on details page (image permalink)
« Reply #30 on: August 16, 2008, 07:45:50 AM »
Good Day,

Thank You very much for the help and the solutions to my problems, also I would like to apologize for the lack of the error message and you are correct that would have been helpful but I was running out of time before I had to leave for work.  It was my hope to get a response for when I got home and therefor did not have the time to give all the information.

Both solutions worked out just the way that I was hoping them to.  When I first tried to implement the soultion for the hotlinking I uploaded the .php file and then just clicked the random picture to test and it came back with the error once again.  So after redoing it a few times and getting the same result I them reloaded the main homepage and then clicked on the new images that are displayed on the main screen and it worked, without any error.  Now I can click on any picture including the random image there is no error at all.   I do not understand why I had to go back to the homepage to avoid the error message but it works and that is what matters.

Once again Thank You for your assistance.

Offline MaveriC

  • Newbie
  • *
  • Posts: 32
    • View Profile
Re: [Mod] Display image codes on details page (image permalink)
« Reply #31 on: August 16, 2008, 04:58:13 PM »
Extremely sorry for being offline for so long - got a new job and stuff! But I am currently working on an upgrade. Thanks to all the guys who chipped in for help and support.

Offline Omsky

  • Newbie
  • *
  • Posts: 42
    • View Profile
Re: [Mod] Display image codes on details page (image permalink)
« Reply #32 on: September 23, 2008, 12:35:31 PM »
i install this mod, and i have "friendy urls" mod too
 so now i got two links on the same picture, how to make one visible working link to picture. i don't need a duplicate link?

example one photo duplicate links:
http://avril-lavigne.fanphoto.net/r-avril-lavigne---photosessions-6-avril-lavigne--anna-schori-photoshoot-(004)-558.htm

and standart link from "ImageCodes", on my gallery:
http://avril-lavigne.fanphoto.net/details.php?image_id=558

and links like  details.php?image_id=558xxx should be working as well, because these links to various pictures are installed from forums


Offline Omsky

  • Newbie
  • *
  • Posts: 42
    • View Profile
Re: [Mod] Display image codes on details page (image permalink)
« Reply #33 on: October 16, 2008, 04:14:53 AM »
by alekinna

open details.php
find:
Code: [Select]
$new_name = $image_codes['image_media_file'];
add after:
Code: [Select]
$image_url = get_image_url($image_id);

find
Code: [Select]
$uploaded_image_link = $script_url."/details.php?image_id=".$image_id;
replace
Code: [Select]
$uploaded_image_link = $script_url.$image_url;
worked! :)
and new bugs
in image code link, new URL:
http://avril-lavigne.fanphoto.net-avril-lavigne---photosessions-6-avril-lavigne--anna-schori-photoshoot-(004)-558

in link image code disappears - "/r" & ".htm"

original link:
http://avril-lavigne.fanphoto.net/r-avril-lavigne---photosessions-6-avril-lavigne--anna-schori-photoshoot-(004)-558.htm


Offline boss24

  • Newbie
  • *
  • Posts: 49
    • View Profile
Re: [Mod] Display image codes on details page (image permalink)
« Reply #34 on: November 05, 2008, 05:23:39 PM »
thx bro nice and easy good joob....
sorry my bad english

Offline Omsky

  • Newbie
  • *
  • Posts: 42
    • View Profile
Re: [Mod] Display image codes on details page (image permalink)
« Reply #35 on: November 13, 2008, 05:33:02 AM »
[Mod] Display image codes on details page (image permalink) & [Mod] Search Engine Friendly URLs aka Short URLs

open details.php

find:
Code: [Select]
$new_name = $image_codes['image_media_file'];

add after:
Code: [Select]
$image_url = get_image_url($image_id);
find:
Code: [Select]
$uploaded_image_link = $script_url."/details.php?image_id=".$image_id;
replace
Code: [Select]
$uploaded_image_link = $script_url."/r".$image_url.".htm";

example:
liink - Monica Cruz
thumbnail -

by alekinna

Offline rodier

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: [Mod] Display image codes on details page (image permalink)
« Reply #36 on: December 21, 2008, 08:16:27 AM »
For people with SEO links like  /img000.htm and cat000.htm  use:

Code: [Select]
$uploaded_image_link = $script_url."/img".$image_id.".htm";
« Last Edit: December 21, 2008, 08:40:30 AM by rodier »

Offline mike30

  • Newbie
  • *
  • Posts: 18
    • View Profile
Re: [Mod] Display image codes on details page (image permalink)
« Reply #37 on: December 26, 2008, 10:51:30 AM »
Thanks, worked perfectly!

Offline mike30

  • Newbie
  • *
  • Posts: 18
    • View Profile
Re: [Mod] Display image codes on details page (image permalink)
« Reply #38 on: December 30, 2008, 09:32:39 PM »
Hi all.

Is there a way to upload directly to image hosting and get code on my website?

Offline mike30

  • Newbie
  • *
  • Posts: 18
    • View Profile
Re: [Mod] Display image codes on details page (image permalink)
« Reply #39 on: January 01, 2009, 09:06:36 PM »
Hello again 4images forum!

Could anyone answer my question about how to upload a pic off the site to one of the hostings?

When I upload apicture and place link into "Add Images" it finally gives me this code and when I place this code into a forum signature, it doesn't show up!

Could you please help me, really need this to work...
  :oops:

Code: [Select]
[URL=http://mysite.com][IMG]http://mysite.com/data/media/1/http://i44.tinypic.com/de89k9.png[/img][/URL]

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
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 mike30

  • Newbie
  • *
  • Posts: 18
    • View Profile
Re: [Mod] Display image codes on details page (image permalink)
« Reply #41 on: January 01, 2009, 10:34:59 PM »
http://www.4homepages.de/forum/index.php?topic=17912.msg122679#msg122679

Thank you for your reply. My main idea is to upload pictures to image hostings and then by using their link, insert it into 4images and finally get codes that can be copied by users and will bring back to my 4images gallery once they were put on forums.

I find this a bit complicated.

1 I can't understand where should I place this third piece of code that you mentioned,



2 Do I need to remove all previous codes that were used?

Thanks for your time and help.


Offline yesme

  • Jr. Member
  • **
  • Posts: 61
  • Yes for 4images!
    • View Profile
Re: [Mod] Display image codes on details page (image permalink)
« Reply #42 on: February 11, 2009, 04:00:28 PM »
Hi there,

Now I am getting a problem with this mod. My details page doesnt show up the codes etc.. Empty/Blank?! (Screenshot attached)

But the codes appeared successfully after uploaded an image.

Quite sad because this problem has block my plans for officially open my web to all if there is no problem arise.

Please, help me.

Thank you.
Love 4images! @--^-----

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
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 yesme

  • Jr. Member
  • **
  • Posts: 61
  • Yes for 4images!
    • View Profile
Re: [Mod] Display image codes on details page (image permalink)
« Reply #44 on: February 11, 2009, 04:37:40 PM »
try this:
Re: [Mod] Display image codes on details page (image permalink)

Thank you. The replacement is successfully show up!

Why it is not work as usual? I meant using {image_codes} only??
« Last Edit: February 11, 2009, 04:53:01 PM by yesme »
Love 4images! @--^-----