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

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

0 Members and 1 Guest are viewing this topic.

Rembrandt

  • Guest
Re: [Mod] Display image codes on details page (image permalink)
« Reply #60 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

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [Mod] Display image codes on details page (image permalink)
« Reply #61 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 ... ?
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Rembrandt

  • Guest
Re: [Mod] Display image codes on details page (image permalink)
« Reply #62 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>


Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [Mod] Display image codes on details page (image permalink)
« Reply #63 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 ...
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [Mod] Display image codes on details page (image permalink)
« Reply #64 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 "");
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Sun

  • Jr. Member
  • **
  • Posts: 96
    • View Profile
Re: [Mod] Display image codes on details page (image permalink)
« Reply #65 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 : ""),
Tatyana.
I use 4images v.1.7.6
You can answer me in English and Russian languages.
Sorry, my English is not very good.

Offline nameless

  • Full Member
  • ***
  • Posts: 147
    • View Profile
Re: [Mod] Display image codes on details page (image permalink)
« Reply #66 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

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [Mod] Display image codes on details page (image permalink)
« Reply #67 on: October 23, 2009, 02:35:12 PM »
why is that?
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline _erc_

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: [Mod] Display image codes on details page (image permalink)
« Reply #68 on: April 08, 2010, 08:16:43 AM »
How do I upload page?

Offline surferboy

  • Full Member
  • ***
  • Posts: 142
    • View Profile
Re: [Mod] Display image codes on details page (image permalink)
« Reply #69 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

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [Mod] Display image codes on details page (image permalink)
« Reply #70 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.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline alex9193

  • Newbie
  • *
  • Posts: 36
    • View Profile
Re: [Mod] Display image codes on details page (image permalink)
« Reply #71 on: April 26, 2010, 08:02:10 AM »
V@no, а возможно заточить мод под multilang, чтобы URL были .../img-.......-1-13025.htm

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [Mod] Display image codes on details page (image permalink)
« Reply #72 on: April 26, 2010, 12:02:26 PM »
а в чём проблема в текущей версии?
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline alex9193

  • Newbie
  • *
  • Posts: 36
    • View Profile
Re: [Mod] Display image codes on details page (image permalink)
« Reply #73 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]

Offline Jinjo52

  • Pre-Newbie
  • Posts: 8
    • View Profile
Re: [Mod] Display image codes on details page (image permalink)
« Reply #74 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 here under the Ecard Button should the code be displayed.Is it possible?and how please help me.Thanks!