• Mod: Display image path, link and BBCode after image upload 4 0 5 1
Currently:  

Author Topic: Mod: Display image path, link and BBCode after image upload  (Read 75558 times)

0 Members and 1 Guest are viewing this topic.

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: Mod: Display image path, link and BBCode after image upload
« Reply #15 on: November 06, 2007, 01:52:11 AM »
Editor problem -

change:

Quote
$txt_clickstream = get_category_path($comment_row['cat_id'], 1).$config['category_separator']."<a href=%22%22.$site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$comment_row['image_id'])."\" class=\"clickstream\">".format_text($comment_row['image_name'], 2)."</a>".$config['category_separator'];

for:

Code: [Select]
$txt_clickstream = get_category_path($comment_row['cat_id'], 1).$config['category_separator']."<a href=\"" . $site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$comment_row['image_id'])."\" class=\"clickstream\">".format_text($comment_row['image_name'], 2)."</a>".$config['category_separator'];
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline flyfreak

  • Jr. Member
  • **
  • Posts: 63
    • View Profile
    • Flyfreak.dk
Re: Mod: Display image path, link and BBCode after image upload
« Reply #16 on: December 22, 2007, 09:19:53 PM »
Hello.

The mod works fine but it donīt look like the rest of the gallery (i need a blue line like the EXIF info, and the disceiption on different languages)
I am running 5 lang. so it will be nice if the file coud connect to the lang file....
Emil
Main site: www.flyfreak.dk
4Images site: www.flyfreak.dk/foto

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: Mod: Display image path, link and BBCode after image upload
« Reply #17 on: December 22, 2007, 09:45:27 PM »
This might help for connect right language:

http://www.4homepages.de/forum/index.php?topic=6749.0

;)
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline LeaX

  • Newbie
  • *
  • Posts: 12
    • View Profile
    • Lost Jack and Kate
Re: Mod: Display image path, link and BBCode after image upload
« Reply #18 on: March 02, 2008, 02:39:38 PM »
I tried to do this like in the first post but it had no effect  :oops:
http://www.jackandkate.ru/lostuserbar/details.php?image_id=277
Is it because of my Russian files? How can I make it right?
Please answer in two words as it's difficult for me to seach smth I need in such long instructions in English.  :roll:

Hmm... I found out that I've got these codes in the box right after I add file, but then when I go to the category and once again to the file there is no one  8O

And also why my code there is like this?
Code: [Select]
[URL=http://http://www.jackandkate.ru/lostuserbar][IMG]http://http://www.jackandkate.ru/lostuserbar/data/media/6/1.png[/img][/URL]I mean two http:// in the code.  :(

So while it is member.php it's ok, but how can I make this code visible in the category?
« Last Edit: March 03, 2008, 03:58:03 PM by LeaX »

Offline masumcis

  • Newbie
  • *
  • Posts: 13
  • Masum
    • View Profile
    • Photo Gallery
Re: Mod: Display image path, link and BBCode after image upload
« Reply #19 on: June 04, 2008, 12:26:31 PM »
work fine for me. :mrgreen: :P
<<M@sum>>

Offline MaveriC

  • Newbie
  • *
  • Posts: 32
    • View Profile
Re: Mod: Display image path, link and BBCode after image upload
« Reply #20 on: August 16, 2008, 05:01:02 PM »
hello all, I am back on the forum after a really long break. I will be taking all your suggestions and requests. Thanks to all the guys who chipped in while I was away - Great work!

Offline kai

  • Administrator
  • Addicted member
  • *****
  • Posts: 1.423
    • View Profile
    • 4images - Image Gallery Management System
Re: Mod: Display image path, link and BBCode after image upload
« Reply #21 on: August 16, 2008, 06:28:10 PM »
Welcome back! :) Keep up your good work!
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline Omsky

  • Newbie
  • *
  • Posts: 42
    • View Profile
Re: Mod: Display image path, link and BBCode after image upload
« Reply #22 on: August 23, 2008, 01:27:42 PM »
is it possible to do  "image links BB codes" under "thumbnails" (under thumbnails on home page, categories pages), as on picamatic.com "image link BBcode menu" ?

example link BB code menu, on thumbnails, on Picamatic.com :



and possible worked without conflict, with mod [TUT] Tooltip for Thumbnails ?
« Last Edit: August 24, 2008, 03:15:36 PM by Omsky »

Offline MaveriC

  • Newbie
  • *
  • Posts: 32
    • View Profile
Re: Mod: Display image path, link and BBCode after image upload
« Reply #23 on: August 25, 2008, 01:48:24 PM »
thanks for the welcome Kai! :D

@ Omsky - I'll see if it can be done and nudge ya if done!

Offline wami

  • Pre-Newbie
  • Posts: 7
    • View Profile
Re: Mod: Display image path, link and BBCode after image upload
« Reply #24 on: November 07, 2008, 06:20:14 PM »
Thanx for this mod

But it will not work

I receive a t_string error in this line:

 $cat_name = $cat_cache[$cat_id]['cat_name'];

Any help?

kr

Michael

Offline V@nо

  • Addicted member
  • ******
  • Posts: 1.223
    • View Profile
Re: Mod: Display image path, link and BBCode after image upload
« Reply #25 on: November 07, 2008, 07:44:13 PM »
please quote the exact error messages and show 10 lines above and below the error line
Your first three "must do" before you ask a question:
If I asked you to PM me, I meant PM to my primary account, this account doesn't accept PMs.

Offline wami

  • Pre-Newbie
  • Posts: 7
    • View Profile
Re: Mod: Display image path, link and BBCode after image upload
« Reply #26 on: November 07, 2008, 08:31:32 PM »
Thank you

This was error message I get, when want to upload a pic:

Parse error: syntax error, unexpected T_STRING in /xxx/xxxx/xx/xx/xxxxxxx/xxxxxx/xxx.xx.xx/Bildergalerie/member.php on line 694

And that is the code - 20 above and 10 below:

Code: [Select]
      if (!is_remote($file) && $imageinfo = @getimagesize($file)) {
        $width_height = " ".$imageinfo[3];
      }
      $media_icon = "<img src=\"".ICON_PATH."/".$file_extension.".gif\" border=\"0\" alt=\"\" />";
      $site_template->register_vars(array(
        "media_src" => $file,
        "media_icon" => $media_icon,
        "image_name" => format_text(stripslashes($image_name)),
        "width_height" => $width_height
      ));
     
//--- UploadInfo v1.0 Begins --------------------------
//-----------------------------------------------------

// Mod: UploadInfo v1.0
// Version: 1.0
// Description : Display image path, link and bbcode after image upload
// Contact: arjoon@gmail.com
// Last update: June 30 2007

      $cat_name = $cat_cache[$cat_id]['cat_name'];
      $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 .= "<center><font size='1' face='Tahoma'>click on the above thumbnail for the full sized image</font><br /><br />";
      $uploadinfo .= "<font size='2' face='Tahoma'><a href='".$script_url."/member.php?action=uploadform&cat_id=".$cat_id."'><b>Upload another image</b></a> or goto <a href='".$script_url."/categories.php?cat_id=".$cat_id."'><b>".$cat_name."'s gallery</b></a></center><br />";
      $uploadinfo .= "<hr color='#C0C0C0' width='80%' size='1'>";

« Last Edit: November 08, 2008, 07:58:14 AM by wami »

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 path, link and BBCode after image upload
« Reply #27 on: November 07, 2008, 11:44:50 PM »
Strange, just tried your code and everything works fine...maybe restore backups and try again?
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 wami

  • Pre-Newbie
  • Posts: 7
    • View Profile
Re: Mod: Display image path, link and BBCode after image upload
« Reply #28 on: November 08, 2008, 07:59:56 AM »
Maybe there is a problem at the server  :?:

When I replace the line with the old versions, there is no problem. I will ask my provider !!!

kr

Michael

Offline wami

  • Pre-Newbie
  • Posts: 7
    • View Profile
Re: Mod: Display image path, link and BBCode after image upload
« Reply #29 on: November 08, 2008, 12:56:44 PM »
Real strange, Iīve tried to fix it with a php.ini, cause my provider think it was a problem with global_registers, but it will not work  8O


@ V@no: Which php-version is runnig at your server?

thx and kr

Michael