4images Forum & Community

4images Modifications / Modifikationen => Mods & Plugins (Releases & Support) => Topic started by: MaveriC on June 30, 2007, 09:06:08 PM

Title: [Mod] Display image codes on details page (image permalink)
Post by: MaveriC on June 30, 2007, 09:06:08 PM
Name: ImageCodes v1.0
Works on 1.7.4
Last updated: June 30 2007
Description:
Use this mod to add the image path, image link and BBCode as in UploadInfo v1.0 on your details page.

Check the UploadInfo mod here where you can display this code immediately after image upload:
http://www.4homepages.de/forum/index.php?topic=17911.0

To brief the mod again:
This mod will display the below image codes which we find on most image hosting services and picture galleries these days on the details page.

Image Codes:
1. Hot link for websites
2. Hot link for forums
3. Thumbnail code for websites
4. Thumbnail code for forums
5. Image link
6. Image path

Please take a backup of all the files before modifying the code

Step 1: (only for people who have not installed the UploadInfo mod)

Open templates/your template name/header.html

Add the below code anywhere inside the <head> tag

Code: [Select]
<script type="text/javascript">

function highlight(field) {
        field.focus();
        field.select();
}
</script>

Step 2:

Open templates/your template name/details.html

Add the below code where you want the image codes to appear.

Code: [Select]
{image_codes}
Step 3:

Open details.php

Find
Code: [Select]
$site_template->print_template($site_template->parse_template($main_template));
Above it, paste:
Code: [Select]

//-----------------------------------------------------
//--- ImageCodes v1.0 Begins --------------------------
//-----------------------------------------------------

// Mod: ImageCodes v1.0
// Version: 1.0
// Description : Get image path, link and bbcode on the details page
// Contact: arjoon@gmail.com
// Last update: June 30 2007

$sql = "SELECT image_media_file FROM ".IMAGES_TABLE." WHERE image_id= $image_id";
$image_codes = $site_db->query_firstrow($sql);

$new_name = $image_codes['image_media_file'];

      $uploaded_image_path = $script_url."/".MEDIA_DIR."/".$cat_id."/".$new_name;
      $uploaded_thumb_path = $script_url."/".THUMB_DIR."/".$cat_id."/".$new_name;
      $uploaded_image_link = $script_url."/details.php?image_id=".$image_id;
      $uploaded_thumb_hotlink = "<a href=\"".$uploaded_image_link."\"><img src=\"".$uploaded_thumb_path."\" border=\"0\" alt=\"".$new_name."\"></a>";
      $uploaded_image_hotlink = "<a href=\"".$script_url."\"><img src=\"".$uploaded_image_path."\" border=\"0\" alt=\"".$new_name."\"></a>";
      $uploaded_image_bbcode = "[URL=".$script_url."][IMG]".$uploaded_image_path."[/IMG][/URL]";
      $uploaded_thumb_bbcode = "[URL=".$uploaded_image_link."][IMG]".$uploaded_thumb_path."[/IMG][/URL]";
      $uploadinfo .= "<font size='2' face='Tahoma'><b>Image Codes:</b><br />";
      $uploadinfo .= "<input onclick='highlight(this);' style='border-style:solid; border-width:1; padding:2; width: 300px; background-color:#FFFFFF; color:#000000' size='70' value='".$uploaded_thumb_hotlink."' type='text' name='image'> Thumbnail for websites<br />";
      $uploadinfo .= "<input onclick='highlight(this);' style='border-style:solid; border-width:1; padding:2; width: 300px; background-color:#FFFFFF; color:#000000' size='70' value='".$uploaded_thumb_bbcode."' type='text' name='image'> Thumbnail for forums<br /><br />";
      $uploadinfo .= "<font size='1' face='Tahoma'>Use the below codes to post the full sized image on other websites or forums</font><br />";
      $uploadinfo .= "<input onclick='highlight(this);' style='border-style:solid; border-width:1; padding:2; width: 300px; background-color:#FFFFFF; color:#000000' size='70' value='".$uploaded_image_hotlink."' type='text' name='image'> Hotlink for websites<br />";
      $uploadinfo .= "<input onclick='highlight(this);' style='border-style:solid; border-width:1; padding:2; width: 300px; background-color:#FFFFFF; color:#000000' size='70' value='".$uploaded_image_bbcode."' type='text' name='image'> Hotlink for forums<br /><br />";
      $uploadinfo .= "<font size='1' face='Tahoma'>Share this image with your friends</font><br />";
      $uploadinfo .= "<input onclick='highlight(this);' style='border-style:solid; border-width:1; padding:2; width: 300px; background-color:#FFFFFF; color:#000000' size='70' value='".$uploaded_image_link."' type='text' name='image'> Share this image<br />";
      $uploadinfo .= "<input onclick='highlight(this);' style='border-style:solid; border-width:1; padding:2; width: 300px; background-color:#FFFFFF; color:#000000' size='70' value='".$uploaded_image_path."' type='text' name='image'> Direct path to image<br /><br /></font>";
      $icodes .= "<table border=\"0\" width=\"500px\" align=\"center\">\n<tr>\n<td>\n".$uploadinfo."\n</td>\n</tr>\n</table>\n";

      $site_template->register_vars("image_codes", $icodes);

//-----------------------------------------------------
//--- end of ImageCodes v1.0 --------------------------
//-----------------------------------------------------

That's it! you'r done! :D

I guess am done for this weekend too :p any bugs, changes and suggestions are welcome as usual :)
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: BartAfterDark on July 23, 2007, 05:07:24 PM
nice :) Are you playning on updating it so it uses a template file instead of having the HTML in details.php? :)
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: AZzUrRI on October 05, 2007, 05:30:04 PM
Thaaaaaaaaaanx Alot For this mod .. i was looking for it .. but there is a question ..
how can i add sentence with link back to my site like this (( click to get cool comments ))
under the pic that the user will paste on forum or other site  ..
Note::  under the pic not beside it ...

I try to do it .. but i put this sentence with link beside the pic .. i wasn't able to put this link under the pic ...

Thanx for help ...   8O


Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: skidpics on October 11, 2007, 02:07:03 AM
I have been trying to tweak it so it shows within the link code:  Browse and Host your images as skidpics.com

I have been trying to tweak it, but cannot get the coding right..



</a><br><a href="http://skidpics.com" class="style1">Browse or host your pictures on skidpics.com </a></p>

I would figure we add it after the initial hotlink code..  or even can create a new variable to be included in the linking?

Here is a non working sample added to one of the variables:
$uploaded_thumb_hotlink = "<a href=\"".$uploaded_image_link."\"><img src=\"".$uploaded_thumb_path."\" border=\"0\" alt=\"".$new_name."\"></a>";</a><br><a href="http://skidpics.com" class="style1">Browse or host your pictures on skidpics.com </a></p>

So, in the end, it would appear for an image code like this:
<a href="http://skidpics.com/albums/Outdoor/Sunset/normal_plages.jpg"><img src="http://skidpics.com/albums/Outdoor/Sunset/thumb_plages.jpg" alt="No Title" /></a><br><a href="http://skidpics.com" class="style1">Browse or host your pictures on skidpics.com </a></p>

Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: skidpics on October 17, 2007, 11:46:39 PM
What do I need to add so that when you click in the text field of the code, it will either highlight all of it automatically, or better yet, highlight and copy it to the clipboard all at once?

Thanks for the great mod!
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: KurtW on October 18, 2007, 06:08:42 AM
Quote
Here is a non working sample added to one of the variables:
$uploaded_thumb_hotlink = "<a href=\"".$uploaded_image_link."\"><img src=\"".$uploaded_thumb_path."\" border=\"0\" alt=\"".$new_name."\"></a>";</a><br><a href="http://skidpics.com" class="style1">Browse or host your pictures on skidpics.com </a></p>

And here is a working sample:

Code: [Select]
$uploaded_thumb_hotlink = "<a href=\"".$uploaded_image_link."\"><img src=\"".$uploaded_thumb_path."\" border=\"0\" alt=\"".$new_name."\"></a><br /><a href=\"http://skidpics.com\" class=\"style1\">Browse or host your pictures on skidpics.com </a>";

Kurt
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: skidpics on October 18, 2007, 03:24:17 PM
Thanks Kurt for getting the right coding set up for me! 
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: J.Lond on November 28, 2007, 10:17:47 AM
First off let may say this is a great mod and thanks for putting it together.  Now my problem.  It works great when the images are pictures ie jpg, gif, and so on.  The problem occurs when you deal with other formats.  The thumb hot link takes the extension of the image format.  Thumb link for movie sample.flv will be sample.flv instead of sample.jpg. The thumb path is correct but the thumb file name is incorrect.  Wrong extension.  The following is a sample of how the image code shows up for "thumbnail for websites".

<a href="http://www.yoursite.com/details.php?image_id=6470"><img src="http://www.yoursite.com/data/thumbnails/141/sample.flv" border="0" alt="sample.flv"></a>


Thanks
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: J.Lond on December 10, 2007, 08:51:09 AM
I am bumping this thread to see if anyone has a solution for my problem asked earlier.

Thanks
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: skiemor on December 29, 2007, 07:41:06 PM
Hi @ all,
I want to place only a link "Image-Codes" and show the codes in
a "details_info.html". How to make that.

If I allow to see details for guests, the codes are usable for guest.
That I don't like. How can I get permission only for pic_owner or member?

Chris.
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: thunderstrike on December 29, 2007, 08:16:33 PM
In details.php file,

find:

Code: [Select]
// Last update: June 30 2007

add after:

Code: [Select]
if ($user_info['user_level'] >= USER) {

find:

Code: [Select]
$site_template->register_vars("image_codes", $icodes);

add after:

Code: [Select]
}

In templates/your_template/header.html file,

find:

Code: [Select]
<script type="text/javascript">

function highlight(field) {
        field.focus();
        field.select();
}
</script>

replace:

Code: [Select]
{if user_loggedin}<script type="text/javascript">

function highlight(field) {
        field.focus();
        field.select();
}
</script>
{endif user_loggedin}
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: skiemor on December 29, 2007, 08:45:37 PM
Great!  :D

Quote
I want to place only a link "Image-Codes" and show the codes in
a "details_info.html". How to make that.

How to make that? With permission only for members.

Chris.
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: FotoRalle on January 10, 2008, 12:51:06 AM
Thank you very much for this. It works perfect!
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: Bengie on January 23, 2008, 06:33:27 PM
Can this be made to work with images hosted off site?
I get something like this:

Code: [Select]
<a href="http://mysite.com"><img src="http://mysite.com/data/media/3/http://i140.photobucket.com/albums/r32/image.gif" border="0" alt="http://i140.photobucket.com/albums/r32/image.gif"></a>
Notice the "img src" tag, the path is wrong...

Thanks!
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: maineyak on March 03, 2008, 09:10:28 PM
Anyone know how the codes could be added to the image templates themselves? Like jpg.html, gif.html, etc.... I tried to add it to the templates, but it's not working.
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: satine88 on March 11, 2008, 02:31:02 PM
Thanks :)
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: ccsakuweb on March 21, 2008, 08:36:10 PM
Can this be made to work with images hosted off site?
I get something like this:

Code: [Select]
<a href="http://mysite.com"><img src="http://mysite.com/data/media/3/http://i140.photobucket.com/albums/r32/image.gif" border="0" alt="http://i140.photobucket.com/albums/r32/image.gif"></a>
Notice the "img src" tag, the path is wrong...

Thanks!

There is a function named: is_remote(_) that it see if the image is remote. Ok you need to do the next
Find into the mod:
Code: [Select]
      $uploaded_image_path = $script_url."/".MEDIA_DIR."/".$cat_id."/".$new_name;
      $uploaded_thumb_path = $script_url."/".THUMB_DIR."/".$cat_id."/".$new_name;
and remplace:
Code: [Select]
if(is_remote($new_name)){
      $uploaded_image_path = $new_name;
}else{
  $uploaded_image_path = $script_url."/".MEDIA_DIR."/".$cat_id."/".$new_name;
}
if(is_remote($image_row['image_thumb_file']))
  $uploaded_thumb_path = $image_row['image_thumb_file'];
else
  $uploaded_thumb_path = $script_url."/".THUMB_DIR."/".$cat_id."/".$new_name;
 
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: jany.yar on March 24, 2008, 12:39:19 AM
Can this be made to work with images hosted off site?
I get something like this:

Code: [Select]
<a href="http://mysite.com"><img src="http://mysite.com/data/media/3/http://i140.photobucket.com/albums/r32/image.gif" border="0" alt="http://i140.photobucket.com/albums/r32/image.gif"></a>
Notice the "img src" tag, the path is wrong...

Thanks!

There is a function named: is_remote(_) that it see if the image is remote. Ok you need to do the next
Find into the mod:
Code: [Select]
      $uploaded_image_path = $script_url."/".MEDIA_DIR."/".$cat_id."/".$new_name;
      $uploaded_thumb_path = $script_url."/".THUMB_DIR."/".$cat_id."/".$new_name;
and remplace:
Code: [Select]
if(is_remote($new_name)){
      $uploaded_image_path = $new_name;
}else{
  $uploaded_image_path = $script_url."/".MEDIA_DIR."/".$cat_id."/".$new_name;
}
if(is_remote($image_row['image_thumb_file']))
  $uploaded_thumb_path = $image_row['image_thumb_file'];
else
  $uploaded_thumb_path = $script_url."/".THUMB_DIR."/".$cat_id."/".$new_name;
 


It didn't work for me :( and I am sure I have not made any mistakes.. because I did exactly as you instructed.
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: bogiayeu on March 24, 2008, 01:21:59 PM
Can this be made to work with images hosted off site?
I get something like this:

Code: [Select]
<a href="http://mysite.com"><img src="http://mysite.com/data/media/3/http://i140.photobucket.com/albums/r32/image.gif" border="0" alt="http://i140.photobucket.com/albums/r32/image.gif"></a>
Notice the "img src" tag, the path is wrong...

Thanks!

There is a function named: is_remote(_) that it see if the image is remote. Ok you need to do the next
Find into the mod:
Code: [Select]
      $uploaded_image_path = $script_url."/".MEDIA_DIR."/".$cat_id."/".$new_name;
      $uploaded_thumb_path = $script_url."/".THUMB_DIR."/".$cat_id."/".$new_name;
and remplace:
Code: [Select]
if(is_remote($new_name)){
      $uploaded_image_path = $new_name;
}else{
  $uploaded_image_path = $script_url."/".MEDIA_DIR."/".$cat_id."/".$new_name;
}
if(is_remote($image_row['image_thumb_file']))
  $uploaded_thumb_path = $image_row['image_thumb_file'];
else
  $uploaded_thumb_path = $script_url."/".THUMB_DIR."/".$cat_id."/".$new_name;
 


Not work ! Can you fix it ?
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: ccsakuweb on March 24, 2008, 03:22:12 PM
In details.php i have this code. please try it

Code: [Select]

$new_name = $image_row['image_media_file'];

if(is_remote($new_name)){
      $uploaded_image_path = $new_name;
}else{
  $uploaded_image_path = $script_url."/".MEDIA_DIR."/".$cat_id."/".$new_name;
}
if(is_remote($image_row['image_thumb_file']))
  $uploaded_thumb_path = $image_row['image_thumb_file'];
else
  $uploaded_thumb_path = $script_url."/".THUMB_DIR."/".$cat_id."/".$image_row['image_thumb_file'];
   
      $uploaded_image_link = $script_url."/details.php?image_id=".$image_id;
      $uploaded_thumb_hotlink = "<a href=\"".$uploaded_image_link."\"><img src=\"".$uploaded_thumb_path."\" border=\"0\" alt=\"".$image_row['image_thumb_file']."\"></a>";
      $uploaded_image_hotlink = "<a href=\"".$script_url."\"><img src=\"".$uploaded_image_path."\" border=\"0\" alt=\"".$new_name."\"></a>";
      $uploaded_image_bbcode = "[URL=".$script_url."][IMG]".$uploaded_image_path."[/IMG][/URL]";
      $uploaded_thumb_bbcode = "[URL=".$uploaded_image_link."][IMG]".$uploaded_thumb_path."[/IMG][/URL]";
      $uploadinfo .= "<font size='2' face='Tahoma'><b>Image Codes:</b><br />";
      $uploadinfo .= "<input onclick='highlight(this);' style='border-style:solid; border-width:1; padding:2; width: 300px; background-color:#FFFFFF; color:#000000' size='70' value='".$uploaded_thumb_hotlink."' type='text' name='image'> Thumbnail for websites<br />";
      $uploadinfo .= "<input onclick='highlight(this);' style='border-style:solid; border-width:1; padding:2; width: 300px; background-color:#FFFFFF; color:#000000' size='70' value='".$uploaded_thumb_bbcode."' type='text' name='image'> Thumbnail for forums<br /><br />";
      $uploadinfo .= "<font size='1' face='Tahoma'>Use the below codes to post the full sized image on other websites or forums</font><br />";
      $uploadinfo .= "<input onclick='highlight(this);' style='border-style:solid; border-width:1; padding:2; width: 300px; background-color:#FFFFFF; color:#000000' size='70' value='".$uploaded_image_hotlink."' type='text' name='image'> Hotlink for websites<br />";
      $uploadinfo .= "<input onclick='highlight(this);' style='border-style:solid; border-width:1; padding:2; width: 300px; background-color:#FFFFFF; color:#000000' size='70' value='".$uploaded_image_bbcode."' type='text' name='image'> Hotlink for forums<br /><br />";
      $uploadinfo .= "<font size='1' face='Tahoma'>Share this image with your friends</font><br />";
      $uploadinfo .= "<input onclick='highlight(this);' style='border-style:solid; border-width:1; padding:2; width: 300px; background-color:#FFFFFF; color:#000000' size='70' value='".$uploaded_image_link."' type='text' name='image'> Share this image<br />";
      $uploadinfo .= "<input onclick='highlight(this);' style='border-style:solid; border-width:1; padding:2; width: 300px; background-color:#FFFFFF; color:#000000' size='70' value='".$uploaded_image_path."' type='text' name='image'> Direct path to image<br /><br /></font>";
      $icodes .= "<table border=\"0\" width=\"500px\" align=\"center\">\n<tr>\n<td>\n".$uploadinfo."\n</td>\n</tr>\n</table>\n";

      $site_template->register_vars("image_codes", $icodes);

//-----------------------------------------------------
//--- end of ImageCodes v1.0 --------------------------
//-----------------------------------------------------
i modified the original mod because i think that the thubnail dont have to have the same name that original file
and i think that it is not necessary the SELECT consult because all that exist in $image_row in detail.php
i hope help you all

Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: DilnüvaZ on March 29, 2008, 10:17:29 AM
thanks lots  it is very good.... i did it and it worked.http://www.nuvanda.net/r-cicek-resimleri-50-cicekler-771.htm  (http://www.nuvanda.net/r-cicek-resimleri-50-cicekler-771.htm)
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: cpuswe on March 31, 2008, 12:45:37 AM
Really nice mod!

For us who have added this mod http://www.4homepages.de/forum/index.php?topic=17598.0 to create Googlefriendly URL:s, is it possible to display the page URL as in the mod <a href="http://www.site.net/img-imagename-12345.htm> instead of <a href="http://www.site.net/details.php?image_id=12345">

Thanks!

/Thomas
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: Percolator on March 31, 2008, 06:06:12 AM
Worked like a charm thank you!
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: saggel on April 19, 2008, 12:44:59 AM
Great Mod :)
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: LeaX on May 22, 2008, 01:36:33 PM
I can't undertand why after all these steps only registered people can see these codes.  8O
And I have only one registrated user  :roll: admin
How can I make it work for everybody?
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: rockboy_62 on June 04, 2008, 09:21:48 AM
.i want use image link(permalink) in the home page(index).please help me
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: masumcis on June 04, 2008, 12:37:47 PM
Nice
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: HowdoI on August 15, 2008, 08:20:29 PM
I am extremely new to this program and I am still feeling my way around with different mods etc.

I have successfully installed this mod without a problem, but the problem arises when I try to limit the options to just the second last one, the one titles 'Share this image'  I want to get rid of all the other links as this one would allow for posting to other sites but force the person to come to my site to view it which results in a new member (hopefully).  I am taking something out of the code that results in an error in the detail.php file, can some please advise on what I am sure is a newbie error.

Also I just noticed that you can not highlight the link and then right click to copy as a copyright message appears preventing this.  To me this makes the link option nonvalid.  I am playing around with version 1.7.6 which memory serves me correctly this has only been test to 1.7.4 so is there a way around this second problem?

Any help is appriecated and also I just want to say that I have looked at about 20 - 25 websites offering this type of program and this one blow everyone one of them out of the water 3 times over so Kudos to all that support and work on this program.
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: V@no on August 16, 2008, 12:25:50 AM
Hello and welcome to 4images forum.

I try to limit the options to just the second last one, the one titles 'Share this image'  I want to get rid of all the other links as this one would allow for posting to other sites but force the person to come to my site to view it which results in a new member (hopefully).  I am taking something out of the code that results in an error in the detail.php file, can some please advise on what I am sure is a newbie error.
Next time please show the exact error message (quote it), it might help and speedup the solution.

All you need is remove this block:
      $uploadinfo .= "<input onclick='highlight(this);' style='border-style:solid; border-width:1; padding:2; width: 300px; background-color:#FFFFFF; color:#000000' size='70' value='".$uploaded_thumb_hotlink."' type='text' name='image'> Thumbnail for websites<br />";
      $uploadinfo .= "<input onclick='highlight(this);' style='border-style:solid; border-width:1; padding:2; width: 300px; background-color:#FFFFFF; color:#000000' size='70' value='".$uploaded_thumb_bbcode."' type='text' name='image'> Thumbnail for forums<br /><br />";
      $uploadinfo .= "<font size='1' face='Tahoma'>Use the below codes to post the full sized image on other websites or forums</font><br />";
      $uploadinfo .= "<input onclick='highlight(this);' style='border-style:solid; border-width:1; padding:2; width: 300px; background-color:#FFFFFF; color:#000000' size='70' value='".$uploaded_image_hotlink."' type='text' name='image'> Hotlink for websites<br />";
      $uploadinfo .= "<input onclick='highlight(this);' style='border-style:solid; border-width:1; padding:2; width: 300px; background-color:#FFFFFF; color:#000000' size='70' value='".$uploaded_image_bbcode."' type='text' name='image'> Hotlink for forums<br /><br />";



Also I just noticed that you can not highlight the link and then right click to copy as a copyright message appears preventing this.  To me this makes the link option nonvalid.  I am playing around with version 1.7.6 which memory serves me correctly this has only been test to 1.7.4 so is there a way around this second problem?

You can try this:
in header.html template replace
Code: [Select]
  function right(e) {
    if ((document.layers || (document.getElementById && !document.all)) && (e.which == 2 || e.which == 3)) {
      alert("© Copyright by {site_name}");
      return false;
    }
    else if (event.button == 2 || event.button == 3) {
      alert("© Copyright by {site_name}");
      return false;
    }
    return true;
  }

  if (document.layers){
    document.captureEvents(Event.MOUSEDOWN);
    document.onmousedown = right;
  }
  else if (document.all && !document.getElementById){
    document.onmousedown = right;
  }

document.oncontextmenu = new Function("alert('© Copyright by {site_name}');return false");

With this:
Code: [Select]
  function right(e) {
    if ((document.layers || (document.getElementById && !document.all)) && (e.which == 2 || e.which == 3)) {
      msg(e);
      return false;
    }
    else if (event.button == 2 || event.button == 3) {
      msg(e);
      return false;
    }
    return true;
  }

  function msg(e)
  {
    var target = window.event ? window.event.srcElement : e ? e.target : null;
    if (target.type != "text" && target.type != "textarea" && target.type != "password")
    {
      alert("© Copyright by <?=str_replace("'","\'", "{site_name}");?>");
      return false;
    }
    return true;
  }

  if (document.layers){
    document.captureEvents(Event.MOUSEDOWN);
    document.onmousedown = right;
  }
  else if (document.all && !document.getElementById){
    document.onmousedown = right;
  }

document.oncontextmenu = msg;
This will allow right click on any input fields, text areas and password fields. Tested on FF 3 and IE 6
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: V@no on August 16, 2008, 01:51:25 AM
I believe in unnecessary HTML code should NOT be used inside PHP code, simply because it's hard to adopt it to your template.
Here is a replacement for entire Step 3 that also gives support for remote images:

In details.php find:
show_image($image_row, $mode, 0, 1);


Insert above:
Code: [Select]
//-----------------------------------------------------
//--- ImageCodes v1.1 Begins --------------------------
//-----------------------------------------------------

// Mod: ImageCodes v1.1
// Version: 1.1
// Description : Get image path, link and bbcode on the details page
// Contact: arjoon@gmail.com
// Last update: August 15 2008

$site_template->register_vars(array(
  "uploaded_image_path" => str_replace("'", "&#39;", (is_remote($image_row['image_media_file']) ? $image_row['image_media_file'] : $script_url."/".str_replace(ROOT_PATH, "", get_file_path($image_row['image_media_file'], "media", $cat_id, 0, 0)))),
  "uploaded_thumb_path" => str_replace("'", "&#39;", (is_remote($image_row['image_thumb_file']) ? $image_row['image_thumb_file'] : $script_url."/".str_replace(ROOT_PATH, "", get_file_path($image_row['image_thumb_file'], "thumb", $cat_id, 0, 0)))),
  "uploaded_image_link" => $script_url."/details.php?".URL_IMAGE_ID."=".$image_id,
  "uploaded_file_name"  => str_replace("'", "&#39;", $image_row['image_media_file']),
  "homepage"   => $script_url."/index.php"
));
//-----------------------------------------------------
//--- end of ImageCodes v1.1 --------------------------
//-----------------------------------------------------

After that in Step 2 instead of using {image_codes} you'll have more control over your design, you can use these new tags:
{uploaded_image_path} - full image path
{uploaded_thumb_path} - thumbnail image path
{uploaded_image_link} - url to image details page
{uploaded_file_name} - image filename
{homepage} - site homepage url

i.e.
Code: [Select]
<table border="0" width="500px" align="center">
  <tr>
    <td>
      <font size="2" face="Tahoma"><b>Image Codes:</b></font><br />
      <input onfocus='highlight(this);' onclick='highlight(this);' style='border-style:solid; border-width:1; padding:2; width: 300px; background-color:#FFFFFF; color:#000000' size='70' value='<a href="{uploaded_image_link}"><img src="{uploaded_thumb_path}" border="0" alt="{uploaded_file_name}"></a>' type='text' name='image'> Thumbnail for websites<br />
      <input onfocus='highlight(this);' onclick='highlight(this);' style='border-style:solid; border-width:1; padding:2; width: 300px; background-color:#FFFFFF; color:#000000' size='70' value='[URL={uploaded_image_link}][IMG]{uploaded_thumb_path}[/IMG][/URL]' type='text' name='image'> Thumbnail for forums<br /><br />
      <font size='1' face='Tahoma'>Use the below codes to post the full sized image on other websites or forums</font><br />
      <input onfocus='highlight(this);' onclick='highlight(this);' style='border-style:solid; border-width:1; padding:2; width: 300px; background-color:#FFFFFF; color:#000000' size='70' value='<a href="{homepage}"><img src="{uploaded_image_path}" border="0" alt="{uploaded_file_name}"></a>' type='text' name='image'> Hotlink for websites<br />
      <input onfocus='highlight(this);' onclick='highlight(this);' style='border-style:solid; border-width:1; padding:2; width: 300px; background-color:#FFFFFF; color:#000000' size='70' value='[URL={homepage}][IMG]{uploaded_image_path}[/IMG][/URL]' type='text' name='image'> Hotlink for forums<br /><br />
      <font size='1' face='Tahoma'>Share this image with your friends</font><br />
      <input onfocus='highlight(this);' onclick='highlight(this);' style='border-style:solid; border-width:1; padding:2; width: 300px; background-color:#FFFFFF; color:#000000' size='70' value='{uploaded_image_link}' type='text' name='image'> Share this image<br />
      <input onfocus='highlight(this);' onclick='highlight(this);' style='border-style:solid; border-width:1; padding:2; width: 300px; background-color:#FFFFFF; color:#000000' size='70' value='{uploaded_image_path}' type='text' name='image'> Direct path to image<br /><br />
    </td>
  </tr>
</table>
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: HowdoI 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.
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: MaveriC 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.
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: Omsky 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

Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: Omsky 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

Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: boss24 on November 05, 2008, 05:23:39 PM
thx bro nice and easy good joob....
sorry my bad english
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: Omsky 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 (http://sexy-girls-photo.com/r-m-25-monica-cruz-412-monica-cruz-walks-runway-fashion-for-relief-show-during-london-springsummer-2009-17.09.2008-005-7995.htm)
thumbnail - (http://sexy-girls-photo.com/data/thumbnails/412/Monica-Cruz-Walks-runway-Fashion-For-Relief-show-during-London-SpringSummer-2009-17.09.2008-005.jpg) (http://sexy-girls-photo.com/r-m-25-monica-cruz-412-monica-cruz-walks-runway-fashion-for-relief-show-during-london-springsummer-2009-17.09.2008-005-7995.htm)

by alekinna
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: rodier 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";
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: mike30 on December 26, 2008, 10:51:30 AM
Thanks, worked perfectly!
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: mike30 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?
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: mike30 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]
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: V@no on January 01, 2009, 09:53:33 PM
http://www.4homepages.de/forum/index.php?topic=17912.msg122679#msg122679
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: mike30 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,

(http://i44.tinypic.com/33dgwes.jpg)

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

Thanks for your time and help.

Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: yesme 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.
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: V@no on February 11, 2009, 04:18:14 PM
try this:
Re: [Mod] Display image codes on details page (image permalink) (http://www.4homepages.de/forum/index.php?topic=17912.msg122679#msg122679)
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: yesme on February 11, 2009, 04:37:40 PM
try this:
Re: [Mod] Display image codes on details page (image permalink) (http://www.4homepages.de/forum/index.php?topic=17912.msg122679#msg122679)

Thank you. The replacement is successfully show up!

Why it is not work as usual? I meant using {image_codes} only??
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: V@no on February 11, 2009, 04:45:52 PM
Sorry, no clue. The BBCode is defined in the template (assuming you are using my modification), must be something you did wrong.
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: yesme on February 11, 2009, 05:01:45 PM
I am sorry because I had made a mistake just now. Not insert the <input bla bla bla scripts in details.html. Furthermore, I had already edited in the previous post that I had successfully show up the input together.

:D And I feel that you are currently monitored this thread and quickly edited the previous post before you read it. But you are faster than me. LoL.

Everything works very well but may I know why it is not work as usual using {image_codes} only?

I have tested the original scripts 3 times previously before I made the serious one. The test webs are okay but the serious web is not ok. :?

Fyi, the serious web is installed with Ban Mod, Qucik Edit/Modify images Mod and Maintenance Page Mod. Hope I am not miss some mod installed. :)

Thank you.
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: sigma. on February 14, 2009, 04:29:21 PM
Anyone know how to reduce the size of the text within the text box fields?
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: V@no on February 14, 2009, 05:59:42 PM
Code: (HTML/CSS) [Select]
style="font-size: 10px;"
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: ajh287sjhsdbsdasd on February 16, 2009, 02:21:10 AM
Hi Vano...

Thanks for this MOD, it's great!

I have it installed and it is working. I do have one question and was hoping you could help.

What tweaks do I need to make so that after ADDING an image:

1. the image that is viewable in the gallery is being served from my server
2. the {uploaded_image_path} {uploaded_thumb_path} {uploaded_image_link} {uploaded_file_name} {homepage} embed codes are being served from another site like Photobucket.

Right now, if I add an image I have no way of separating the two. Everything, depending on what URL I paste or if I upload from desktop, either defaults being hosted from my server or to Photobucket.

I'd like to be able to upload from my PC or by URL on my server, and have the permalinks display another image location of my choosing.

EXAMPLE:
4images gallery image: mydomain.com/data/media/1/backgrounda9id7.gif
permalinks: photobucketOrAnyOtherSite.com/albums/uu193/myaccount/backgrounds/funny/background1.gif

Any help is appreciated.

Thanks

I believe in unnecessary HTML code should NOT be used inside PHP code, simply because it's hard to adopt it to your template.
Here is a replacement for entire Step 3 that also gives support for remote images:

In details.php find:
show_image($image_row, $mode, 0, 1);


Insert above:
Code: [Select]
//-----------------------------------------------------
//--- ImageCodes v1.1 Begins --------------------------
//-----------------------------------------------------

// Mod: ImageCodes v1.1
// Version: 1.1
// Description : Get image path, link and bbcode on the details page
// Contact: arjoon@gmail.com
// Last update: August 15 2008

$site_template->register_vars(array(
  "uploaded_image_path" => str_replace("'", "&#39;", (is_remote($image_row['image_media_file']) ? $image_row['image_media_file'] : $script_url."/".str_replace(ROOT_PATH, "", get_file_path($image_row['image_media_file'], "media", $cat_id, 0, 0)))),
  "uploaded_thumb_path" => str_replace("'", "&#39;", (is_remote($image_row['image_thumb_file']) ? $image_row['image_thumb_file'] : $script_url."/".str_replace(ROOT_PATH, "", get_file_path($image_row['image_thumb_file'], "thumb", $cat_id, 0, 0)))),
  "uploaded_image_link" => $script_url."/details.php?".URL_IMAGE_ID."=".$image_id,
  "uploaded_file_name"  => str_replace("'", "&#39;", $image_row['image_media_file']),
  "homepage"   => $script_url."/index.php"
));
//-----------------------------------------------------
//--- end of ImageCodes v1.1 --------------------------
//-----------------------------------------------------

After that in Step 2 instead of using {image_codes} you'll have more control over your design, you can use these new tags:
{uploaded_image_path} - full image path
{uploaded_thumb_path} - thumbnail image path
{uploaded_image_link} - url to image details page
{uploaded_file_name} - image filename
{homepage} - site homepage url

i.e.
Code: [Select]
<table border="0" width="500px" align="center">
  <tr>
    <td>
      <font size="2" face="Tahoma"><b>Image Codes:</b></font><br />
      <input onfocus='highlight(this);' onclick='highlight(this);' style='border-style:solid; border-width:1; padding:2; width: 300px; background-color:#FFFFFF; color:#000000' size='70' value='<a href="{uploaded_image_link}"><img src="{uploaded_thumb_path}" border="0" alt="{uploaded_file_name}"></a>' type='text' name='image'> Thumbnail for websites<br />
      <input onfocus='highlight(this);' onclick='highlight(this);' style='border-style:solid; border-width:1; padding:2; width: 300px; background-color:#FFFFFF; color:#000000' size='70' value='[URL={uploaded_image_link}][IMG]{uploaded_thumb_path}[/IMG][/URL]' type='text' name='image'> Thumbnail for forums<br /><br />
      <font size='1' face='Tahoma'>Use the below codes to post the full sized image on other websites or forums</font><br />
      <input onfocus='highlight(this);' onclick='highlight(this);' style='border-style:solid; border-width:1; padding:2; width: 300px; background-color:#FFFFFF; color:#000000' size='70' value='<a href="{homepage}"><img src="{uploaded_image_path}" border="0" alt="{uploaded_file_name}"></a>' type='text' name='image'> Hotlink for websites<br />
      <input onfocus='highlight(this);' onclick='highlight(this);' style='border-style:solid; border-width:1; padding:2; width: 300px; background-color:#FFFFFF; color:#000000' size='70' value='[URL={homepage}][IMG]{uploaded_image_path}[/IMG][/URL]' type='text' name='image'> Hotlink for forums<br /><br />
      <font size='1' face='Tahoma'>Share this image with your friends</font><br />
      <input onfocus='highlight(this);' onclick='highlight(this);' style='border-style:solid; border-width:1; padding:2; width: 300px; background-color:#FFFFFF; color:#000000' size='70' value='{uploaded_image_link}' type='text' name='image'> Share this image<br />
      <input onfocus='highlight(this);' onclick='highlight(this);' style='border-style:solid; border-width:1; padding:2; width: 300px; background-color:#FFFFFF; color:#000000' size='70' value='{uploaded_image_path}' type='text' name='image'> Direct path to image<br /><br />
    </td>
  </tr>
</table>
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: Marcovich on April 06, 2009, 03:34:24 PM
Am on my iceberg skin its didnt work..
Can you helpo me out?
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: worldce on April 13, 2009, 09:02:23 PM
i tried embed code for swf files. it worked. but  how can i do "width height". can you help me pls.

$uploaded_image_embed = "<embed src=\"".$uploaded_image_path."\" pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" {width_height} wmode=\"transparent\"></embed>";

$uploadinfo .= "<input onclick='highlight(this);' style='border-style:solid; border-width:1; border-color:#dfdfdf; padding:0; width: 330px; background-color:#ffffff; color:#666666' size='70' value='".$uploaded_image_embed."' type='text' name='image'><br />";





Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: GaYan on April 16, 2009, 12:10:34 PM
i followed every thing .. but i coungt get the links in to my details.php page ... heres ma web link * http://www.nuwaragedara.com/wallpaper/
please .. can some 1 help me ?
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: Eagle Eye on April 17, 2009, 06:08:58 AM
People who has implement this mod noticed what kind of links you are getting for "Use the below codes to post the full sized image on other websites or forums" ??

When i tested, i get the image preview correct.. but the link back is not to the image shown, but to the site root.

Anyone getting similar results?

Solved: Just replace {homepage} with {uploaded_image_link}
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: nemonic-berg on June 05, 2009, 07:41:35 PM
Am on my iceberg skin its didnt work..
Can you helpo me out?

hello same as me..my bug error seems on my diffrent template which is "iceberg"

error says

Code: [Select]
Parse error: syntax error, unexpected T_VARIABLE in /home/username/public_html/includes/template.php(101) : eval()'d code on line 1
anybody know how to fix this

thanks in advance whos helping me..

Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: mawenzi on June 05, 2009, 08:39:55 PM
@nemonic-berg

... try to search for your request ...
... and you will find the answer ...
... http://www.4homepages.de/forum/index.php?topic=23072.0 ...
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: nemonic-berg on June 06, 2009, 02:40:49 PM
@nemonic-berg

... try to search for your request ...
... and you will find the answer ...
... http://www.4homepages.de/forum/index.php?topic=23072.0 ...

hello mawenzi...
sorry about not searching first bout this issue.
wha...maybe i will going to chance my template to a standart 4image theme....

once again thanks for the information  :)

Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: harinezumi on June 25, 2009, 08:33:28 AM
Hi! Thanks for a great mod!

Unfortunately my problem with this mod is that sometimes permalinks do not appear on details page for uploaded files. I tried to figure out the "rule" and that's what I get:
- for pictures from my camera permalinks are always present (*.jpg)
- for uploaded pictures which were previously saved from the internet permalinks are almost always missing (*.jpg and *.jpeg)
- for uploaded files of other formats (*.doc and *.pdf) permalinks are missing

What could be the reason for such strange behaviour?
Thanks!
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: Ersen on September 13, 2009, 12:53:26 PM
Hello Maverick,

i saw your this post: http://www.4homepages.de/forum/index.php?topic=17912.0

First of all. Thank you and congrats. This is great. I did this but i have a question.

How can i add image codes in member upload form?

i added function code in  header,
i added {image_codes} in member.html
i find this code:   

$site_template->print_template($site_template->parse_template($main_template));

and above it paste,

ImageCodes v1.0 Begins......................

But this is not work. How can i fix this? Thanks

using 1.7.7 version.
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: Sun on September 30, 2009, 10:53:21 AM
I use MOD Language select. Could anybody help me to add information about language into image codes(if you look on english page then codes for english, if russian - for russian)? My php knowledge is not good for create it by myself.

PS I use V@no's modification of this mod.
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: Rembrandt on September 30, 2009, 01:12:57 PM
Hi!
I use MOD Language select. ...

replace:

$uploaded_image_path = $script_url."/".MEDIA_DIR."/".$cat_id."/".$new_name;
      $uploaded_thumb_path = $script_url."/".THUMB_DIR."/".$cat_id."/".$new_name;
      $uploaded_image_link = $script_url."/details.php?image_id=".$image_id;
      $uploaded_thumb_hotlink = "<a href=\"".$uploaded_image_link."\"><img src=\"".$uploaded_thumb_path."\" border=\"0\" alt=\"".$new_name."\"></a>";
      $uploaded_image_hotlink = "<a href=\"".$script_url."\"><img src=\"".$uploaded_image_path."\" border=\"0\" alt=\"".$new_name."\"></a>";
      $uploaded_image_bbcode = "[URL=http://".$script_url."][IMG]http://".$uploaded_image_path."[/img][/URL]";
      $uploaded_thumb_bbcode = "[URL=http://".$uploaded_image_link."][IMG]http://".$uploaded_thumb_path."[/img][/URL]";
      $uploadinfo .= "<font size='2' face='Tahoma'><b>Image Codes:</b><br />";
      $uploadinfo .= "<input onclick='highlight(this);' style='border-style:solid; border-width:1; padding:2; width: 300px; background-color:#FFFFFF; color:#000000' size='70' value='".$uploaded_thumb_hotlink."' type='text' name='image'> Thumbnail for websites<br />";
      $uploadinfo .= "<input onclick='highlight(this);' style='border-style:solid; border-width:1; padding:2; width: 300px; background-color:#FFFFFF; color:#000000' size='70' value='".$uploaded_thumb_bbcode."' type='text' name='image'> Thumbnail for forums<br /><br />";
      $uploadinfo .= "<font size='1' face='Tahoma'>Use the below codes to post the full sized image on other websites or forums</font><br />";
      $uploadinfo .= "<input onclick='highlight(this);' style='border-style:solid; border-width:1; padding:2; width: 300px; background-color:#FFFFFF; color:#000000' size='70' value='".$uploaded_image_hotlink."' type='text' name='image'> Hotlink for websites<br />";
      $uploadinfo .= "<input onclick='highlight(this);' style='border-style:solid; border-width:1; padding:2; width: 300px; background-color:#FFFFFF; color:#000000' size='70' value='".$uploaded_image_bbcode."' type='text' name='image'> Hotlink for forums<br /><br />";
      $uploadinfo .= "<font size='1' face='Tahoma'>Share this image with your friends</font><br />";
      $uploadinfo .= "<input onclick='highlight(this);' style='border-style:solid; border-width:1; padding:2; width: 300px; background-color:#FFFFFF; color:#000000' size='70' value='".$uploaded_image_link."' type='text' name='image'> Share this image<br />";
      $uploadinfo .= "<input onclick='highlight(this);' style='border-style:solid; border-width:1; padding:2; width: 300px; background-color:#FFFFFF; color:#000000' size='70' value='".$uploaded_image_path."' type='text' name='image'> Direct path to image<br /><br /></font>";
      $icodes .= "<table border=\"0\" width=\"500px\" align=\"center\">\n<tr>\n<td>\n".$uploadinfo."\n</td>\n</tr>\n</table>\n";

      $site_template->register_vars("image_codes", $icodes);

with:

$uploaded_image_path = $script_url."/".MEDIA_DIR."/".$cat_id."/".$new_name;
      $uploaded_thumb_path = $script_url."/".THUMB_DIR."/".$cat_id."/".$new_name;
      $uploaded_image_link = $script_url."/details.php?image_id=".$image_id;
      $uploaded_thumb_hotlink = "<a href=\"".$uploaded_image_link."\"><img src=\"".$uploaded_thumb_path."\" border=\"0\" alt=\"".$new_name."\"></a>";
      $uploaded_image_hotlink = "<a href=\"".$script_url."\"><img src=\"".$uploaded_image_path."\" border=\"0\" alt=\"".$new_name."\"></a>";
      $uploaded_image_bbcode = "[URL=http://".$script_url."][IMG]http://".$uploaded_image_path."[/img][/URL]";
      $uploaded_thumb_bbcode = "[URL=http://".$uploaded_image_link."][IMG]http://".$uploaded_thumb_path."[/img][/URL]";
      $uploadinfo .= "<font size='2' face='Tahoma'><b>Image Codes:</b><br />";
      $uploadinfo .= "<input onclick='highlight(this);' style='border-style:solid; border-width:1; padding:2; width: 300px; background-color:#FFFFFF; color:#000000' size='70' value='".$uploaded_thumb_hotlink."' type='text' name='image'>".$lang['Thumbnail_for_websites']."<br />";
      $uploadinfo .= "<input onclick='highlight(this);' style='border-style:solid; border-width:1; padding:2; width: 300px; background-color:#FFFFFF; color:#000000' size='70' value='".$uploaded_thumb_bbcode."' type='text' name='image'>".$lang['Thumbnail_for_forums']."<br /><br />";
      $uploadinfo .= "<font size='1' face='Tahoma'>Use the below codes to post the full sized image on other websites or forums</font><br />";
      $uploadinfo .= "<input onclick='highlight(this);' style='border-style:solid; border-width:1; padding:2; width: 300px; background-color:#FFFFFF; color:#000000' size='70' value='".$uploaded_image_hotlink."' type='text' name='image'>".$lang['Hotlink_for_websites']."<br />";
      $uploadinfo .= "<input onclick='highlight(this);' style='border-style:solid; border-width:1; padding:2; width: 300px; background-color:#FFFFFF; color:#000000' size='70' value='".$uploaded_image_bbcode."' type='text' name='image'>".$lang['Hotlink_for_forums']."<br /><br />";
      $uploadinfo .= "<font size='1' face='Tahoma'>Share this image with your friends</font><br />";
      $uploadinfo .= "<input onclick='highlight(this);' style='border-style:solid; border-width:1; padding:2; width: 300px; background-color:#FFFFFF; color:#000000' size='70' value='".$uploaded_image_link."' type='text' name='image'>".$lang['Share_this_image']."<br />";
      $uploadinfo .= "<input onclick='highlight(this);' style='border-style:solid; border-width:1; padding:2; width: 300px; background-color:#FFFFFF; color:#000000' size='70' value='".$uploaded_image_path."' type='text' name='image'>".$lang['Direct_path_to_image']."<br /><br /></font>";
      $icodes .= "<table border=\"0\" width=\"500px\" align=\"center\">\n<tr>\n<td>\n".$uploadinfo."\n</td>\n</tr>\n</table>\n";

  $site_template->register_vars(array(
  "image_codes" => $icodes,
   "lang_Thumbnail_for_websites" => $lang['Thumbnail_for_websites'],
  "lang_Thumbnail_for_forums" => $lang['Thumbnail_for_forums'],
  "lang_Hotlink_for_websites" => $lang['Hotlink_for_websites'],
  "lang_Hotlink_for_forums" => $lang['Hotlink_for_forums'],
  "lang_Share_this_image" => $lang['Share_this_image'],
  "lang_Direct_path_to_image" => $lang['Direct_path_to_image']
  ));


search in lang/your language/main.php:
?>

above:

//-----------------------------------------------------
//--- ImageCodes v1.0 Begins --------------------------
//-----------------------------------------------------
$lang['Thumbnail_for_websites'] = " Thumbnail for websites  replace text in your Language";
$lang['Thumbnail_for_forums'] = " Thumbnail for forums";
$lang['Hotlink_for_websites'] = " Hotlink for websites";
$lang['Hotlink_for_forums'] = " Hotlink for forums";
$lang['Share_this_image'] = " Share this image";
$lang['Direct_path_to_image'] = " Direct path to image";


mfg Andi
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: mawenzi on September 30, 2009, 01:37:27 PM
@ Andi,

... I think, that Sun would have the language component directly in the permalink , not in the permalink discription ...
... depended on the selected language with v@nos "[MOD] Language select" ...
... right Sun ... ?
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: Rembrandt on September 30, 2009, 02:03:07 PM
Hi!

hm.. But what's the link to a translated?

or mean you, selectet link:
Code: [Select]
<a href="http://www.example.com/details.php?image_id=26">
<img src="http://www.example.com/data/thumbnails/1/IMG_6485 Kopie.jpg" border="0" alt="IMG_6485 Kopie.jpg">".$lang['Thumbnail_for_websites']."</a>

Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: mawenzi on September 30, 2009, 02:14:57 PM
@ rembrandt

... I think, the permalink sould be look like : " /details.php?image_id=1234&l=english " ...
... depended on the selected language with v@nos "[MOD] Language select" ...
... I don't use this MOD, so it is at moment not my part ...
... but wait for a statement of Sun ...
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: V@no on September 30, 2009, 03:53:48 PM
You can try something like this:
      $uploaded_image_link = $script_url."/details.php?image_id=".$image_id.($l ? "&amp;l=".$l : "");
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: Sun on October 01, 2009, 12:08:07 PM
Rembrandt, mawenzi, V@no thank you.
I mean:
... the permalink sould be look like : " /details.php?image_id=1234&l=english " ...

V@no's code is working. I change it for v1.1 of this mode:
 
Code: [Select]
"uploaded_image_link" => $script_url."/details.php?".URL_IMAGE_ID."=".$image_id.($l ? "&amp;l=".$l : ""),
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: nameless on October 23, 2009, 01:53:30 PM
nice mod

and it work good with picture

but it does't work with .swf

so i hope u can help me
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: V@no on October 23, 2009, 02:35:12 PM
why is that?
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: _erc_ on April 08, 2010, 08:16:43 AM
How do I upload page?
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: surferboy on April 18, 2010, 03:34:54 AM
Hi -

Glad I saw this MOD. It is essential for community sharing.

Began to install it and hit a major road block.

Following the update v1.1 that V@no provides,

http://www.4homepages.de/forum/index.php?topic=17912.msg122679#msg122679

he says to look for this code:

show_image($image_row, $mode, 0, 1); and paste his revised code above.

What's the problem?  That code isn't there since I installed the multi-lightbox MOD.  A Ctrl-F search for 'show_image' reveals this code inside the multi-lightbox MOD:

Quote
//-----------------------------------------------------
//--- Show Image --------------------------------------
//-----------------------------------------------------
$image_allow_comments = (check_permission("auth_readcomment", $cat_id)) ? $image_row['image_allow_comments'] : 0;
$image_name = format_text($image_row['image_name'], 2);
/*
  MOD MULTI-LIGHTBOXES
  START REPLACE
*/
$lightbox_id = (isset($HTTP_POST_VARS['lightbox_id']) && $HTTP_POST_VARS['lightbox_id']) ? $HTTP_POST_VARS['lightbox_id'] : ((isset($HTTP_GET_VARS['lightbox_id']) && $HTTP_GET_VARS['lightbox_id']) ? $HTTP_GET_VARS['lightbox_id'] : 0);
show_image($image_row, $mode.(($lightbox_id) ? "&lightbox_id=".$lightbox_id : ""), 0, 1);
/*
  MOD MULTI-LIGHTBOXES
  END REPLACE
*/

Should I just paste V@no's code between the $lightbox_id line and the show_image line?

Thanks for looking at this.

- Brian
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: V@no on April 18, 2010, 04:08:09 AM
Should I just paste V@no's code between the $lightbox_id line and the show_image line?
Yes, you are correct.
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: alex9193 on April 26, 2010, 08:02:10 AM
V@no, а возможно заточить мод под multilang, чтобы URL были .../img-.......-1-13025.htm
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: V@no on April 26, 2010, 12:02:26 PM
а в чём проблема в текущей версии?
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: alex9193 on April 26, 2010, 04:57:41 PM
Так вот такие ссылки получаются

Code: [Select]
[URL=http://mysite.com/details.php?image_id=13025][IMG]http://max-pix.com/data/thumbnails/2227/1.jpg[/img][/URL]
а не такие
Code: [Select]
[URL=http://mysite.com/img-kristanna-loken-photo-1-13025.htm][IMG]http://max-pix.com/data/thumbnails/2227/1.jpg[/img][/URL]
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: Jinjo52 on August 27, 2010, 02:44:42 PM
HI is it possible to show the Html and bbcode on the category page under the thumbail?
Example:http://gbpicsonline.eu/k-freundschafts-gb-bilder-11.htm (http://gbpicsonline.eu/k-freundschafts-gb-bilder-11.htm) here under the Ecard Button should the code be displayed.Is it possible?and how please help me.Thanks!
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: tramfahrer on September 05, 2010, 06:55:45 PM
Hallo, anscheinend ist das der Mod den ich auch schon lange Suche, wennich richrig verstehe gibt der Mod die BB Codes für Foren Webseiten etc etc auf der Detailansicht der Fotos aus.

Meine Frage: läuft der Mod unter der Version 1.7.8 problemlos?  und eine weitere Frage
Gibt es die Möglichkeit, dass der BB Code zu den Bildern nur für den jeweilig einen User sichtbar ist der sein Bild hocgeladen hat.?? Sprich Gäste oder andere User sehen diesen BB-Code gar nicht in der Detailansicht ....

Die frage stelle ich deswegen, um einen eventeullen Missbrauch der Bilder auf anderen Webseiten zu verhindern.

Grüße
Tobias
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: Rembrandt on September 05, 2010, 07:04:26 PM
...
Meine Frage: läuft der Mod unter der Version 1.7.8 problemlos?  und eine weitere Frage
Gibt es die Möglichkeit, dass der BB Code zu den Bildern nur für den jeweilig einen User sichtbar ist der sein Bild hocgeladen hat.?? ...
zu 1.) wenn nicht bekommen wir das schon hin.  :)
zu 2.) das geht auch   http://www.4homepages.de/forum/index.php?topic=17912.msg108080#msg108080

mfg Andi

Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: tramfahrer on September 06, 2010, 10:50:02 AM
Funktioniert wunderbar :-)

folgende Änderung wäre vllt Sinnvoll:

Code: [Select]
$uploaded_thumb_hotlink = "<a href=\"".$uploaded_image_link."\"><img src=\"".$uploaded_thumb_path."\" border=\"0\" alt=\"".$new_name."\"></a>";
$uploaded_image_hotlink = "<a href=\"".$script_url."\"><img src=\"".$uploaded_image_path."\" border=\"0\" alt=\"".$new_name."\"></a>";

dieses $new_name scheint den Dateinamen anzuzeigen, wie ich finde ziemlich blöd, welche Variable lässt denn den Namen des Bildtitels da erscheinen?

EDIT habe es selber gefunden es ist $image_name

find
Code: [Select]
$uploaded_thumb_hotlink = "<a href=\"".$uploaded_image_link."\"><img src=\"".$uploaded_thumb_path."\" border=\"0\" alt=\"".$inew_name."\"></a>";
$uploaded_image_hotlink = "<a href=\"".$script_url."\"><img src=\"".$uploaded_image_path."\" border=\"0\" alt=\"".$new_name."\"></a>";

replace
Code: [Select]
$uploaded_thumb_hotlink = "<a href=\"".$uploaded_image_link."\"><img src=\"".$uploaded_thumb_path."\" border=\"0\" alt=\"".$image_name."\"></a>";
$uploaded_image_hotlink = "<a href=\"".$script_url."\"><img src=\"".$uploaded_image_path."\" border=\"0\" alt=\"".$image_name."\"></a>";

dass der Code nur für registrierte User sichtbar iist, ist schomal sehr gut, nur müsste das noch soweit verfeinert werden das man den Verlinkungscode NUR bei den eignen Bildern sehen kann, und bei den Bildern der anderen User nicht ... um einen eventuellen Missbrauch durch ungefragte Verlinkungen zu vermeiden ...

Grüße
Tobias
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: Rembrandt on September 06, 2010, 11:44:43 AM
nur müsste das noch soweit verfeinert werden das man den Verlinkungscode NUR bei den eignen Bildern sehen kann,...

in dem von mir verlinkten post, statt:
if ($user_info['user_level'] >= USER) {

das hier:
if ($user_info['user_id'] == $image_row['user_id']) {

mfg Andi
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: tramfahrer on September 06, 2010, 12:47:51 PM
Klasse Danke funktioniert wunderbar

ich habe noch folgende Änderungen vorgenommen

 - das beim Vollansicht BB Code für Foren nicht die Haupt URL (www.xyz.de) angezeigt wird, sondern der Link zum Bild in der Galerie (www.xyz.de/Link-zum-Bild-in-der-Galerie)

- aus dem von mir vorangegangenen Beitrag ist noch das mit dem Bildtitel statt Dateinamen für den HTML Code eingeflossen

- dazu von Rembrandt das die Codes nur bei den Eignen Bildern angezeigt werden, jedoch NICHT bei Bildern anderer User.

- und die Feldbreite von 300 px auf 600 px verlängert

das ganze sieht dann so aus:

Code: [Select]
//-----------------------------------------------------
//--- ImageCodes v1.0 Begins --------------------------
//-----------------------------------------------------

// Mod: ImageCodes v1.0
// Version: 1.0
// Description : Get image path, link and bbcode on the details page
// Contact: arjoon@gmail.com
// Last update: June 30 2007
if ($user_info['user_id'] == $image_row['user_id']) {
$sql = "SELECT image_media_file FROM ".IMAGES_TABLE." WHERE image_id= $image_id";
$image_codes = $site_db->query_firstrow($sql);

$new_name = $image_codes['image_media_file'];

      $uploaded_image_path = $script_url."/".MEDIA_DIR."/".$cat_id."/".$new_name;
      $uploaded_thumb_path = $script_url."/".THUMB_DIR."/".$cat_id."/".$new_name;
      $uploaded_image_link = $script_url."/details.php?image_id=".$image_id;
      $uploaded_thumb_hotlink = "<a href=\"".$uploaded_image_link."\"><img src=\"".$uploaded_thumb_path."\" border=\"0\" alt=\"".$image_name."\"></a>";
      $uploaded_image_hotlink = "<a href=\"".$uploaded_image_link."\"><img src=\"".$uploaded_image_path."\" border=\"0\" alt=\"".$image_name."\"></a>";
      $uploaded_image_bbcode = "[URL=".$uploaded_image_link."][IMG]".$uploaded_image_path."[/IMG][/URL]";
      $uploaded_thumb_bbcode = "[URL=".$uploaded_image_link."][IMG]".$uploaded_thumb_path."[/IMG][/URL]";
      $uploadinfo .= "<font size='2' face='Tahoma'><b>Image Codes:</b><br />";
      $uploadinfo .= "<input onclick='highlight(this);' style='border-style:solid; border-width:1; padding:2; width: 600px; background-color:#FFFFFF; color:#000000' size='70' value='".$uploaded_thumb_hotlink."' type='text' name='image'> Vorschaubild für Webseiten<br />";
      $uploadinfo .= "<input onclick='highlight(this);' style='border-style:solid; border-width:1; padding:2; width: 600px; background-color:#FFFFFF; color:#000000' size='70' value='".$uploaded_thumb_bbcode."' type='text' name='image'> Vorschaubild für Foren<br /><br />";
      $uploadinfo .= "<font size='1' face='Tahoma'>Benutze diesen Code für die Vollansicht in Foren und Webseiten</font><br />";
      $uploadinfo .= "<input onclick='highlight(this);' style='border-style:solid; border-width:1; padding:2; width: 600px; background-color:#FFFFFF; color:#000000' size='70' value='".$uploaded_image_hotlink."' type='text' name='image'> Hotlink für Webseiten<br />";
      $uploadinfo .= "<input onclick='highlight(this);' style='border-style:solid; border-width:1; padding:2; width: 600px; background-color:#FFFFFF; color:#000000' size='70' value='".$uploaded_image_bbcode."' type='text' name='image'> Hotlink für Foren<br /><br />";
      $uploadinfo .= "<font size='1' face='Tahoma'>Share this image with your friends</font><br />";
      $uploadinfo .= "<input onclick='highlight(this);' style='border-style:solid; border-width:1; padding:2; width: 600px; background-color:#FFFFFF; color:#000000' size='70' value='".$uploaded_image_link."' type='text' name='image'> Link zum weitergeben<br />";
      $uploadinfo .= "<input onclick='highlight(this);' style='border-style:solid; border-width:1; padding:2; width: 600px; background-color:#FFFFFF; color:#000000' size='70' value='".$uploaded_image_path."' type='text' name='image'> Direktlink zum Bild<br /><br /></font>";
      $icodes .= "<table border=\"0\" width=\"500px\" align=\"center\">\n<tr>\n<td>\n".$uploadinfo."\n</td>\n</tr>\n</table>\n";

      $site_template->register_vars("image_codes", $icodes);
 }

//-----------------------------------------------------
//--- end of ImageCodes v1.0 --------------------------
//-----------------------------------------------------

Beispielausgabe:

sieht dann so aus:

Quote

Image Codes:
 Vorschaubild für Webseiten
<a href="http://www.tram-und-bahnbilder.de/details.php?image_id=3617"><img src="http://www.tram-und-bahnbilder.de/data/thumbnails/1202/IMG_6340_-_Kopie.jpg" border="0" alt="Weltuntergang ..."></a>


 Vorschaubild für Foren
Code: [Select]
[URL=http://www.tram-und-bahnbilder.de/details.php?image_id=3617][IMG]http://www.tram-und-bahnbilder.de/data/thumbnails/1202/IMG_6340_-_Kopie.jpg[/img][/URL]Benutze diesen Code für die Vollansicht in Foren und Webseiten
 
Hotlink für Webseiten
<a href="http://www.tram-und-bahnbilder.de/details.php?image_id=3617"><img src="http://www.tram-und-bahnbilder.de/data/media/1202/IMG_6340_-_Kopie.jpg" border="0" alt="Weltuntergang ..."></a>

 Hotlink für Foren
Code: [Select]
[URL=http://www.tram-und-bahnbilder.de/details.php?image_id=3617][IMG]http://www.tram-und-bahnbilder.de/data/media/1202/IMG_6340_-_Kopie.jpg[/img][/URL]Share this image with your friends
 Link zum weitergeben
http://www.tram-und-bahnbilder.de/details.php?image_id=3617

 Direktlink zum Bild
Code: [Select]
http://www.tram-und-bahnbilder.de/data/media/1202/IMG_6340_-_Kopie.jpg

Vorschau Foren
(http://www.tram-und-bahnbilder.de/data/thumbnails/1202/IMG_6340_-_Kopie.jpg) (http://www.tram-und-bahnbilder.de/details.php?image_id=3617)

Großansicht Foren
(http://www.tram-und-bahnbilder.de/data/media/1202/IMG_6340_-_Kopie.jpg) (http://www.tram-und-bahnbilder.de/details.php?image_id=3617)

Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: sklez on October 06, 2010, 11:52:04 AM
Ïîäñêàæèòå, êàê ñäåëàòü òàê, ÷òî áû íà ñòðàíèöå ñ äåòàëÿìè èçîáðàæåíèÿ áûëà ññûëêà íà BBcode à íå ñàì êîä.....
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: x23piracy on December 11, 2010, 02:31:14 PM
Hi,

bekommt das jemand bei sich Funktionsfähig eingebaut?
http://www.4homepages.de/forum/index.php?topic=28605.0 (http://www.4homepages.de/forum/index.php?topic=28605.0)

Klappt bei mir leider nicht und ich verstehe nicht warum, evtl. liegt es
am Slide Login Panel. Vielleicht mag mal jemand ausprobieren.


Gruß Jens
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: Nosferatu on December 11, 2010, 03:28:32 PM

Edit: meine leider nicht deinen code x23piracy sondern allgemein das script hier

Habs eben eingebaut in 1.7.9 lauft super

das script vom ersten Post.

Da gibts nur 1 Bug

einfach statt

$uploaded_image_hotlink = "<a href=\"".$script_url."\"><img src=\"".$uploaded_image_path."\" border=\"0\" alt=\"".$new_name."\"></a>";

diesen code verwenden

$uploaded_image_hotlink = "<a href=\"".$uploaded_image_link."\"><img src=\"".$uploaded_image_path."\" border=\"0\" alt=\"".$new_name."\"></a>";

Gruß

Jeff
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: MrAndrew on March 26, 2011, 06:30:35 PM
If uploaded images have a .JPG format (Capital letters), images codes not show thumbnails or any! But with .jpg work fine!!! What`s the problem... Please help!
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: Allround on May 01, 2011, 10:53:53 AM


Above it, paste:
Code: [Select]

//-----------------------------------------------------
//--- ImageCodes v1.0 Begins --------------------------
//-----------------------------------------------------

// Mod: ImageCodes v1.0
// Version: 1.0
// Description : Get image path, link and bbcode on the details page
// Contact: arjoon@gmail.com
// Last update: June 30 2007

$sql = "SELECT image_media_file FROM ".IMAGES_TABLE." WHERE image_id= $image_id";
$image_codes = $site_db->query_firstrow($sql);

$new_name = $image_codes['image_media_file'];

      $uploaded_image_path = $script_url."/".MEDIA_DIR."/".$cat_id."/".$new_name;
      $uploaded_thumb_path = $script_url."/".THUMB_DIR."/".$cat_id."/".$new_name;
      $uploaded_image_link = $script_url."/details.php?image_id=".$image_id;
      $uploaded_thumb_hotlink = "<a href=\"".$uploaded_image_link."\"><img src=\"".$uploaded_thumb_path."\" border=\"0\" alt=\"".$new_name."\"></a>";
      $uploaded_image_hotlink = "<a href=\"".$script_url."\"><img src=\"".$uploaded_image_path."\" border=\"0\" alt=\"".$new_name."\"></a>";
      $uploaded_image_bbcode = "[URL=".$script_url."][IMG]".$uploaded_image_path."[/IMG][/URL]";
      $uploaded_thumb_bbcode = "[URL=".$uploaded_image_link."][IMG]".$uploaded_thumb_path."[/IMG][/URL]";
      $uploadinfo .= "<font size='2' face='Tahoma'><b>Image Codes:</b><br />";
      $uploadinfo .= "<input onclick='highlight(this);' style='border-style:solid; border-width:1; padding:2; width: 300px; background-color:#FFFFFF; color:#000000' size='70' value='".$uploaded_thumb_hotlink."' type='text' name='image'> Thumbnail for websites<br />";
      $uploadinfo .= "<input onclick='highlight(this);' style='border-style:solid; border-width:1; padding:2; width: 300px; background-color:#FFFFFF; color:#000000' size='70' value='".$uploaded_thumb_bbcode."' type='text' name='image'> Thumbnail for forums<br /><br />";
      $uploadinfo .= "<font size='1' face='Tahoma'>Use the below codes to post the full sized image on other websites or forums</font><br />";
      $uploadinfo .= "<input onclick='highlight(this);' style='border-style:solid; border-width:1; padding:2; width: 300px; background-color:#FFFFFF; color:#000000' size='70' value='".$uploaded_image_hotlink."' type='text' name='image'> Hotlink for websites<br />";
      $uploadinfo .= "<input onclick='highlight(this);' style='border-style:solid; border-width:1; padding:2; width: 300px; background-color:#FFFFFF; color:#000000' size='70' value='".$uploaded_image_bbcode."' type='text' name='image'> Hotlink for forums<br /><br />";
      $uploadinfo .= "<font size='1' face='Tahoma'>Share this image with your friends</font><br />";
      $uploadinfo .= "<input onclick='highlight(this);' style='border-style:solid; border-width:1; padding:2; width: 300px; background-color:#FFFFFF; color:#000000' size='70' value='".$uploaded_image_link."' type='text' name='image'> Share this image<br />";
      $uploadinfo .= "<input onclick='highlight(this);' style='border-style:solid; border-width:1; padding:2; width: 300px; background-color:#FFFFFF; color:#000000' size='70' value='".$uploaded_image_path."' type='text' name='image'> Direct path to image<br /><br /></font>";
      $icodes .= "<table border=\"0\" width=\"500px\" align=\"center\">\n<tr>\n<td>\n".$uploadinfo."\n</td>\n</tr>\n</table>\n";

      $site_template->register_vars("image_codes", $icodes);

//-----------------------------------------------------
//--- end of ImageCodes v1.0 --------------------------
//-----------------------------------------------------

That's it! you'r done! :D

I guess am done for this weekend too :p any bugs, changes and suggestions are welcome as usual :)


Leider ist diese "Input" Geschichte mit den Codes nicht scrollbar! Bekommt man es auch hin, Scrollbare Codefelder einzubauen, zum Beispiel Textarea oder ähnliches?
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: Rembrandt on May 01, 2011, 11:15:26 AM
...
Leider ist diese "Input" Geschichte mit den Codes nicht scrollbar! Bekommt man es auch hin, Scrollbare Codefelder einzubauen, zum Beispiel Textarea oder ähnliches?
hast du schon versucht anstatt:
Code: [Select]
<input
Code: [Select]
<textareazu schreiben
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: Allround on May 01, 2011, 11:27:58 AM
hab ich schon probiert.. ist zwar dann ne Textarea aber sie zeigt dann den Quellcode der seite an und nicht den Image Code
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: hotvins on May 22, 2011, 06:44:32 AM
Can this be done for batch processing of the category ? I mean all images of the category ? i.e. all images in a album/category and their multiple image codes ?
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: hotvins on July 03, 2011, 12:39:30 PM
A bump to remind about my request  :oops:
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: freaksbilder on July 30, 2011, 05:45:25 PM
Hallöle zusammen,

nach dem ich nun gute zwei Tage versucht habe, den BB-Code in meiner 4Images-Galerie für Gäste sichtbar zu bekommen, hier im Board nichts finde, was mir weiter hilft, frag ich einfach mal um Hilfe.

Wer kann mir bitte den Trick (Code) verraten, den ich einbauen (wo?) muss, so dass es auch ohne Registrierung möglich ist, den BB-Code zu sehen?

Ich wünsche allen noch einen angenehmen Samstag-Abend!

Liebe Grüße Dani

Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: Rembrandt on July 30, 2011, 07:51:36 PM
Willkommen Nochmal!
....4Images-Galerie für Gäste sichtbar zu bekommen, hier im Board nichts finde, was mir weiter hilft, frag ich einfach mal um Hilfe.

Wer kann mir bitte den Trick (Code) verraten, den ich einbauen (wo?) muss, so dass es auch ohne Registrierung möglich ist, den BB-Code zu sehen?
...
erst einmal, wenn du eine Frage zu einen Mod hast dann Poste Bitte auch dort deine Frage, Danke!
Deinen ersten Post habe ich hier her verschoben.

so jetzt mein Frage hast du das auch eingebaut?
http://www.4homepages.de/forum/index.php?topic=17912.msg108080#msg108080
wenn ja dann entferne das wieder dann klappt es auch mit den Gästen.

mfg Andi

Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: freaksbilder on July 30, 2011, 08:24:24 PM
Ok, ich werde das nächste Mal darauf achten, richtig zu posten. :oops:

Nein, dass hab ich nicht mit eingebaut, aber es geht trotzdem nicht.

Das ist die header.html:
Code: [Select]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="{direction}">
<head>
<title>{prepend_head_title}{site_name}</title>
<meta http-equiv="content-type" content="text/html; charset={charset}">
<meta name="description" content="{detail_meta_description}{site_name}">
<meta name="keywords" content="{detail_meta_keywords}">
<meta name="robots" content="index,follow">
<meta name="revisit-after" content="10 days">
<meta http-equiv="imagetoolbar" content="no">
<link rel="stylesheet" href="{template_url}/style.css" type="text/css">
<link rel="shortcut icon" href="{home_url}favicon.ico">
<script language="javascript" type="text/javascript">
<!--

  var captcha_reload_count = 0;
var captcha_image_url = "{url_captcha_image}";
  function new_captcha_image() {
    if (captcha_image_url.indexOf('?') == -1) {
  document.getElementById('captcha_image').src= captcha_image_url+'?c='+captcha_reload_count;
} else {
  document.getElementById('captcha_image').src= captcha_image_url+'&c='+captcha_reload_count;
}

    document.getElementById('captcha_input').value="";
    document.getElementById('captcha_input').focus();
    captcha_reload_count++;
  }

function opendetailwindow() {
    window.open('','detailwindow','toolbar=no,scrollbars=yes,resizable=no,width=680,height=480');
  }
 
  function right(e) {
    if ((document.layers || (document.getElementById && !document.all)) && (e.which == 2 || e.which == 3)) {
      alert("© Copyright by {site_name}");
      return false;
    }
    else if (event.button == 2 || event.button == 3) {
      alert("© Copyright by {site_name}");
      return false;
    }
    return true;
  }

  if (document.layers){
    document.captureEvents(Event.MOUSEDOWN);
    document.onmousedown = right;
  }
  else if (document.all && !document.getElementById){
    document.onmousedown = right;
  }

document.oncontextmenu = new Function("alert('© Copyright by {site_name}');return false");

// -->
</script>
{if has_rss}
<link rel="alternate" type="application/rss+xml" title="{rss_title}" href="{rss_url}">
{endif has_rss}
</head>
<body bgcolor="#FFFFFF" text="#0F5475" link="#0F5475" vlink="#0F5475" alink="#0F5475">
<br />

Und die details.html:

Code: [Select]
{header}
<table width="640" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr>
    <td>
      <table width="100%" border="0" cellspacing="0" cellpadding="0" class="tablehead">
        <tr>
          <td width="100%" colspan="4"><table cellpadding="0" cellspacing="0" width="100%">
    <tr>
        <td width="6"><img src="{template_url}/images/header_top_left.gif" width="6" height="6" alt="" /></td>
        <td width="100%"><img src="{template_url}/images/header_top.gif" width="100%" height="6" alt="" /></td>
<td width="6"><img src="{template_url}/images/header_top_right.gif" width="6" height="6" alt="" /></td>
    </tr>
</table>
</td>
        </tr>
        <tr>
          <td width="6"><img src="{template_url}/images/header_left.gif" width="6" height="60" alt="" /></td>
          <td width="100%"><img src="{template_url}/images/header_logo.gif" width="405" height="60" alt="" /></td>
          <td width="225" align="right">
            <form method="post" action="{url_search}">
              <table border="0" cellspacing="0" cellpadding="1">
                <tr>
                  <td>
                    <input type="text" name="search_keywords" size="15" class="searchinput" />
                  </td>
                  <td>
                    <input type="submit" value="{lang_search}" class="button" name="submit" />
                  </td>
                </tr>
                <tr valign="top">
                  <td colspan="2"><a href="{url_search}" class="smalltext">{lang_advanced_search}</a></td>
                </tr>
              </table>
            </form>
          </td>
          <td align="right" width="6"><img src="{template_url}/images/header_right.gif" width="6" height="60" alt="" /></td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td class="bordercolor">
      <table width="100%" border="0" cellspacing="1" cellpadding="0">
        <tr>
          <td class="tablebgcolor">
            <table width="100%" border="0" cellspacing="1" cellpadding="0">
              <tr>
                <td class="navbar" height="23">
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td><img src="{template_url}/images/spacer.gif" width="4" height="4" alt="" />{clickstream}</td>
                      <td align="right">
<a href="{url_top_images}"><b>{lang_top_images}</b></a>&nbsp;
<a href="{url_new_images}"><b>{lang_new_images}</b></a>&nbsp;
  </td>
                    </tr>
                  </table>
                </td>
              </tr>
            </table>
            <table width="638" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="150" valign="top" class="row2">
                  <table width="150" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td class="head2" height="20"><img src="{template_url}/images/spacer.gif" alt="" width="4" height="4" />{lang_registered_user}</td>
                    </tr>
                    <tr>
                      <td class="tablebgcolor"><img src="{template_url}/images/spacer.gif" alt="" width="1" height="1" /></td>
                    </tr>
                    <tr>
                      <td align="center" class="row1">{user_box}</td>
                    </tr>
                    <tr>
                      <td class="tablebgcolor"><img src="{template_url}/images/spacer.gif" alt="" width="1" height="1" /></td>
                    </tr>
                  </table>
                  {if random_cat_image}
                  <table width="150" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td class="head2" height="20"> <img src="{template_url}/images/spacer.gif" alt="" width="4" height="4" />{lang_random_image}</td>
                    </tr>
                    <tr>
                      <td class="tablebgcolor"><img src="{template_url}/images/spacer.gif" alt="" width="1" height="1" /></td>
                    </tr>
                    <tr>
                      <td align="center" class="row1"> <br>
                        {random_cat_image} <br>
                        <br>
                      </td>
                    </tr>
                    <tr>
                      <td class="tablebgcolor"><img src="{template_url}/images/spacer.gif" alt="" width="1" height="1" /></td>
                    </tr>
                  </table>
                  {endif random_cat_image} </td>
                <td width="1" class="bordercolor" valign="top"><img src="{template_url}/images/spacer.gif" width="1" height="1" alt="" /></td>
                <td width="18" valign="top"><img src="{template_url}/images/spacer.gif" width="18" height="18" alt="" /></td>
                <td width="100%" valign="top"><br>
                  <b class="title">{image_name}</b>{if image_is_new} <sup class="new">{lang_new}</sup>{endif
                  image_is_new}
                  <hr size="1" />
                  {if msg}<b>{msg}<br>
                  <br>
                  </b>{endif msg}
                  <div align="center">
  {image}
{if admin_links}<br>
                   


{image_codes}

 {admin_links}<br>
                    {endif admin_links}<br>
                    {lightbox_button}&nbsp;&nbsp;{postcard_button}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{download_button}&nbsp;&nbsp;{download_zip_button}
</div>
                  <br>
                  <table width="100%" border="0" cellspacing="0" cellpadding="1">
                    <tr>
                      <td class="bordercolor">
                        <table width="100%" border="0" cellpadding="3" cellspacing="0">
                          <tr>
                            <td class="head1" valign="top" colspan="2">{image_name}</td>
                          </tr>
                          <tr>
                            <td valign="top" class="row1" width="33%"><b>{lang_description}</b></td>
                            <td valign="top" class="row1">{image_description}</td>
                          </tr>
                          <tr>
                            <td valign="top" class="row2"><b>{lang_keywords}</b></td>
                            <td valign="top" class="row2">{image_keywords}</td>
                          </tr>
                          <tr>
                            <td valign="top" class="row1"><b>{lang_date}</b></td>
                            <td valign="top" class="row1">{image_date}</td>
                          </tr>
                          <tr>
                            <td valign="top" class="row2"><b>{lang_hits}</b></td>
                            <td valign="top" class="row2">{image_hits}</td>
                          </tr>
                          <tr>
                            <td valign="top" class="row1"><b>{lang_downloads}</b></td>
                            <td valign="top" class="row1">{image_downloads}</td>
                          </tr>
                          <tr>
                            <td valign="top" class="row2"><b>{lang_rating}</b></td>
                            <td valign="top" class="row2">{image_rating} ({image_votes}
                              {lang_votes})</td>
                          </tr>
                          <tr>
                            <td valign="top" class="row1"><b>{lang_file_size}</b></td>
                            <td valign="top" class="row1">{image_file_size}</td>
                          </tr>
                          <tr>
                            <td valign="top" class="row2"><b>{lang_added_by}</b></td>
                            <td valign="top" class="row2">{user_name_link}</td>
                          </tr>
                        </table>
                      </td>
                    </tr>
                  </table>
                  {if iptc_info}
<br>
                  <table width="100%" border="0" cellspacing="0" cellpadding="1">
                    <tr>
                      <td class="bordercolor">
                        <table width="100%" border="0" cellpadding="3" cellspacing="0">
                          <tr>
                            <td class="head1" valign="top" colspan="2">IPTC Info</td>
                          </tr>
                          {iptc_info}
                        </table>
                      </td>
                    </tr>
                  </table>
                  {endif iptc_info}
{if exif_info}
<br>
                  <table width="100%" border="0" cellspacing="0" cellpadding="1">
                    <tr>
                      <td class="bordercolor">
                        <table width="100%" border="0" cellpadding="3" cellspacing="0">
                          <tr>
                            <td class="head1" valign="top" colspan="2">EXIF Info</td>
                          </tr>
                          {exif_info}
                        </table>
                      </td>
                    </tr>
                  </table>
                  {endif exif_info}
{if rate_form}
                  <br>
<div align="center">{rate_form}</div>
                  {endif rate_form}
{if allow_comments}
<a name="comments"></a>
<br>
                  <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
                    <tr>
                      <td class="head1" valign="top">
                        <table width="100%" border="0" cellpadding="3" cellspacing="1">
                          <tr>
                            <td valign="top" class="head1">{lang_author}</td>
                            <td valign="top" class="head1">{lang_comment}</td>
                          </tr>
                          {comments}
                        </table>
                      </td>
                    </tr>
                  </table>
                  <br>
                  {comment_form} {endif allow_comments} <br>
                  <br>
                  <table width="100%" border="0" cellspacing="0" cellpadding="1">
                    <tr>
                      <td class="bordercolor">
                        <table width="100%" border="0" cellspacing="0" cellpadding="3">
                          <tr valign="top">
                            <td class="row2"> {if prev_image_name}{lang_prev_image}<br>&nbsp;&nbsp;
                              <b><a href="{prev_image_url}">{prev_image_name}</a></b>
                              <!-- <br><br><a href="{prev_image_url}"><img src="{prev_thumb_file}" border="1"></a> -->
                              {endif prev_image_name}&nbsp;</td>
                            <td align="right" class="row2"> &nbsp;{if next_image_name}{lang_next_image}<br>
                              <b><a href="{next_image_url}">{next_image_name}</a>&nbsp;&nbsp;&nbsp;</b>
                              <!-- <br><br><a href="{next_image_url}"><img src="{next_thumb_file}" border="1"></a> -->
                              {endif next_image_name}</td>
                          </tr>
                        </table>
                      </td>
                    </tr>
                  </table>
                  <p>&nbsp;</p>
                </td>
                <td width="20" valign="top"><img src="{template_url}/images/spacer.gif" width="19" height="19" alt="" /></td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td>
      <table width="100%" border="0" cellspacing="0" cellpadding="0" class="tablebottom">
        <tr>
          <td width="6" nowrap><img src="{template_url}/images/footer_left.gif" width="6" height="19" alt="" /></td>
          <td width="100%"></td>
          <td width="6" nowrap><img src="{template_url}/images/footer_right.gif" width="6" height="19" alt="" /></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
{footer}

Sorry für die Umstände...

LG Dani
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: Rembrandt on July 30, 2011, 08:36:57 PM
für das "{image_codes}" hast du dir den denkbar schlechtesten platz ausgesucht :)

so wie du ihn jetzt plaziert hast siehst du ihn nur als admin, setze "{image_codes}" z.b. nach "{image}" oder z.b. nach {download_zip_button}
wo auch immer du  möchtest nur nicht zwischen {if ......} und {endif........}

mfg Andi
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: hotvins on August 19, 2011, 09:16:10 AM
Kann diese für die Stapelverarbeitung der Kategorie getan werden? Ich meine, alle Bilder der Kategorie? dh alle Bilder in einem Album / Kategorie und ihre vielfältigen Bild-Codes ?
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: Rembrandt on August 19, 2011, 05:56:54 PM
Kann diese für die Stapelverarbeitung der Kategorie getan werden? Ich meine, alle Bilder der Kategorie? dh alle Bilder in einem Album / Kategorie und ihre vielfältigen Bild-Codes ?
^
k.a. was du da jetzt meinst, aber ein jedes bild hat seine eigenen links.

mfg Andi
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: hotvins on August 20, 2011, 12:41:56 PM
Kann diese für die Stapelverarbeitung der Kategorie getan werden? Ich meine, alle Bilder der Kategorie? dh alle Bilder in einem Album / Kategorie und ihre vielfältigen Bild-Codes ?
^
k.a. was du da jetzt meinst, aber ein jedes bild hat seine eigenen links.

mfg Andi

I want codes like shown in photobucket.com when we upload images in one album and go for album codes.

For Example, for album viz. "banglasong01"

Quote
[IMG*]http://i679.photobucket.com/albums/vv158/justvids1/banglasong01/banglasong01.jpg[/img]

[IMG*]http://i679.photobucket.com/albums/vv158/justvids1/banglasong01/banglasong01310.jpg[/img]
[IMG*]http://i679.photobucket.com/albums/vv158/justvids1/banglasong01/banglasong01293.jpg[/img]
[IMG*]http://i679.photobucket.com/albums/vv158/justvids1/banglasong01/banglasong01292.jpg[/img]
[IMG*]http://i679.photobucket.com/albums/vv158/justvids1/banglasong01/banglasong01284.jpg[/img]
[IMG*]http://i679.photobucket.com/albums/vv158/justvids1/banglasong01/banglasong01255.jpg[/img]
[IMG*]http://i679.photobucket.com/albums/vv158/justvids1/banglasong01/banglasong01210.jpg[/img]
[IMG*]http://i679.photobucket.com/albums/vv158/justvids1/banglasong01/banglasong01198.jpg[/img]
[IMG*]http://i679.photobucket.com/albums/vv158/justvids1/banglasong01/banglasong01184.jpg[/img]
[IMG*]http://i679.photobucket.com/albums/vv158/justvids1/banglasong01/banglasong01159.jpg[/img]
[IMG*]http://i679.photobucket.com/albums/vv158/justvids1/banglasong01/banglasong01154.jpg[/img]
[IMG*]http://i679.photobucket.com/albums/vv158/justvids1/banglasong01/banglasong01112.jpg[/img]
[IMG*]http://i679.photobucket.com/albums/vv158/justvids1/banglasong01/banglasong01105.jpg[/img]

I want these kind of codes to be displayed under all the thumbnails on the category page.

Additionally I want only admins to be able to view these codes and not general members. :)
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: hotvins on August 22, 2011, 12:02:40 PM
I want codes like shown in photobucket.com when we upload images in one album and go for album codes.

For Example, for album viz. "banglasong01"

Quote
[IMG*]http://i679.photobucket.com/albums/vv158/justvids1/banglasong01/banglasong01.jpg[/img]

[IMG*]http://i679.photobucket.com/albums/vv158/justvids1/banglasong01/banglasong01310.jpg[/img]
[IMG*]http://i679.photobucket.com/albums/vv158/justvids1/banglasong01/banglasong01293.jpg[/img]
[IMG*]http://i679.photobucket.com/albums/vv158/justvids1/banglasong01/banglasong01292.jpg[/img]
[IMG*]http://i679.photobucket.com/albums/vv158/justvids1/banglasong01/banglasong01284.jpg[/img]
[IMG*]http://i679.photobucket.com/albums/vv158/justvids1/banglasong01/banglasong01255.jpg[/img]
[IMG*]http://i679.photobucket.com/albums/vv158/justvids1/banglasong01/banglasong01210.jpg[/img]
[IMG*]http://i679.photobucket.com/albums/vv158/justvids1/banglasong01/banglasong01198.jpg[/img]
[IMG*]http://i679.photobucket.com/albums/vv158/justvids1/banglasong01/banglasong01184.jpg[/img]
[IMG*]http://i679.photobucket.com/albums/vv158/justvids1/banglasong01/banglasong01159.jpg[/img]
[IMG*]http://i679.photobucket.com/albums/vv158/justvids1/banglasong01/banglasong01154.jpg[/img]
[IMG*]http://i679.photobucket.com/albums/vv158/justvids1/banglasong01/banglasong01112.jpg[/img]
[IMG*]http://i679.photobucket.com/albums/vv158/justvids1/banglasong01/banglasong01105.jpg[/img]

I want these kind of codes to be displayed under all the thumbnails on the category page.

Additionally I want only admins to be able to view these codes and not general members. :)
[/quote]

Can anyone help me in this regard ?
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: hotvins on August 26, 2011, 05:02:11 AM
A gentle bump for experts.  :oops:
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: Purwokerto on October 31, 2015, 05:42:49 AM
how to make code / text automatically copied when clicked
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: Allround on February 13, 2017, 06:35:33 PM
Gibts eine alternative zum ".$uploaded_image_path."?

oder wie bekomme das "https" aus den codefelder in details raus, wenn die Seite mit "https" aufgerufen wird?

Ich möchte die Bildercodes weiter in "http" belassen auch wenn die Seite als "https" aufgerufen wird.

Was kann ich tun?
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: m_daneshgah on February 17, 2017, 04:07:53 PM
can you help me in subject ?thanks
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: mahsabk on April 17, 2018, 01:28:37 PM
i dont know too if you could find the answer tell me too
Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: Lukas on June 11, 2018, 11:11:35 AM

Hallo ich heiße Lukas,

und bin ein Neuling LOL, ich suche schon seit über 9 Stunden das Form ab - hier muss ich erst einmal sagen "Danke an alle, besonders den Moderatoren / Administratoren" Die Mod´s und wie es hier erklärt wird, ist selbst für einen Laien wie mich noch Teilweise umsetzbar.

Es wurde zu dieser Mod schon öfters die Frage gestellt, wie man den diesen BBCode auch auf der Hauptseite für die Vorschaubilder (Thumps) genutzt werden kann, auch nach 9 Stunden des durchforsten des Forums bekam ich nur die Fragen zu sehen aber noch nie eine Antwort darauf.

Bin ich Blind? Okay ich muss schmunzeln.

Habe versucht das : {image_codes} einzubauen aber nichts  :oops:

Ich hatte den Mitgliedern es versprochen, da es auf der Detailseite ja prima funktioniert, ach ja vielleicht erbarmt sich ja einer und Antwortet mir auf diese Nachricht, denke auch für andere die - dieses Suchen - wäre es Hilfreich zumal es ja hier bei der Mod gefragt wird.

Vorab bereits ein riesen Dankeschön
Lukas.


Da ich kein Englisch kann, benutze ich den Google Übersetzer  :cry:
__________________________________________

Hello my Name Is Lukas,

and I'm a freshman LOL, I'm looking for more than 9 hours from the form - here I must first say "Thanks to all, especially the moderators / administrators" The mod's and how it is explained here is even for a layman like me still partially implementable.

It has been asked to this mod often the question of how to use this BBCode also on the main page for the thumbnails (thumps), even after 9 hours of scouring the forum I only got the questions to see but never an answer thereon.

Am I blind? Okay, I have to smile.

I tried that: {image_codes} but nothing to do: oops:

I had the members promised it, because it works fine on the detail page, oh yes maybe one has pity and answers me to this message, think for others the - this search - it would be helpful, especially since it is here at the mod asked becomes.

First of all a big thank you
Lukas.


Since I do not speak English, I use the Google translator :cry:

Title: Re: [Mod] Display image codes on details page (image permalink)
Post by: david.radpoor on July 15, 2018, 04:03:13 PM
woooow
very good