• 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 75499 times)

0 Members and 1 Guest are viewing this topic.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Mod: Display image path, link and BBCode after image upload
« Reply #30 on: November 08, 2008, 04:59:58 PM »
Tell you what, make a copy of your modified member.php (with the error) and rename it to member.phps, then pm me with the link to that file.
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 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 #31 on: November 08, 2008, 06:57:47 PM »
Ok, the problem is your editor.
this is what you have in member.php:
Code: [Select]
Ê Ê Ê $cat_name = $cat_cache[$cat_id]['cat_name'];
every line you've added that had spaces (tabs) infront got these weird characters

So, restore backups and use different editor (don't use notepad or wordpad)
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 #32 on: November 08, 2008, 09:00:00 PM »
Thanxxx, I don´t see that, I´m using Textwrangler  :?: Regular i have no problems with Textwrangler - I have to try something.

Thank you very much for your help.

At mac there is no notepad or wordpad  8)

kr

Michael

Offline wami

  • Pre-Newbie
  • Posts: 7
    • View Profile
Re: Mod: Display image path, link and BBCode after image upload
« Reply #33 on: November 08, 2008, 09:08:10 PM »
And solved, I´ve used a different uploader and now it works - Sometime it is so easy  :oops:

Thanx for your help

kr

Michael

Offline rodier

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: Mod: Display image path, link and BBCode after image upload
« Reply #34 on: December 21, 2008, 09:23:50 AM »
Hi
good mod, but can you fix problem with embeded videos?

if someone upload *.html file (with some code inside) .. it will make code with thubmnail/picture ending .html but thats wrong..
look
http://mmoscreens.com/img1614.htm
OK is:
http://mmoscreens.com/data/thumbnails/57/Stormtrooper_training_video.jpg
but your plugin produce URL:
http://mmoscreens.com/data/thumbnails/57/Stormtrooper_training_video.htm   because the original  (full size) file is htm ..   


I think something like "if $new_name contains .htm  change it to .jpg"  but how to make it ? :)

Offline yesme

  • Jr. Member
  • **
  • Posts: 61
  • Yes for 4images!
    • View Profile
Re: Mod: Display image path, link and BBCode after image upload
« Reply #35 on: February 09, 2009, 06:48:24 AM »
Hi,

May I know how to make the highlighted code copy to clipboard? This is because as common the web is protected by no-right-click.  :?:

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

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Mod: Display image path, link and BBCode after image upload
« Reply #36 on: February 09, 2009, 07:48:57 AM »
clipboard manipulation only available in IE, therefore, I'd suggest you use this modifications instead:

http://www.4homepages.de/forum/index.php?topic=17912.msg122677#post_rightclick
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline yesme

  • Jr. Member
  • **
  • Posts: 61
  • Yes for 4images!
    • View Profile
Re: Mod: Display image path, link and BBCode after image upload
« Reply #37 on: February 10, 2009, 05:02:17 AM »
clipboard manipulation only available in IE, therefore, I'd suggest you use this modifications instead:

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

Thank you. Everything, works well.  :D
Love 4images! @--^-----

Offline Ersen

  • Jr. Member
  • **
  • Posts: 79
    • View Profile
Re: Mod: Display image path, link and BBCode after image upload
« Reply #38 on: September 14, 2009, 07:41:47 PM »

If your direct upload section under the category options was closed to the visitors, image link would be previewed as id=0 like below becouse image is not approved after uploading.


http://www.domain.com/details.php?image_id=0


According to this image codes happens with respect to id=0 links. Links would give errors when people share it some other places.


To correct this, what should we think except changing the category options?

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 #39 on: September 15, 2009, 01:58:08 AM »
Move the new code in member.php below
          }
          
add_searchwords($image_id$search_words);


This way, it will only show links if image does not require validation.
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 Ersen

  • Jr. Member
  • **
  • Posts: 79
    • View Profile
Re: Mod: Display image path, link and BBCode after image upload
« Reply #40 on: September 15, 2009, 11:46:08 AM »
Move the new code in member.php below
          }
          
add_searchwords($image_id$search_words);


This way, it will only show links if image does not require validation.

Hello Vano, i did this but only registered users can see the codes. i want everybody can see links (true links) after uploading image. This is serious problem for 4images validation uploading. What can we do?

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 #41 on: September 15, 2009, 02:29:00 PM »
You'll have to turn off image validation then
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 Ersen

  • Jr. Member
  • **
  • Posts: 79
    • View Profile
Re: Mod: Display image path, link and BBCode after image upload
« Reply #42 on: September 15, 2009, 03:44:55 PM »
You'll have to turn off image validation then

i am not going to close my validation cause some people will upload +18 content.



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 #43 on: September 16, 2009, 02:17:09 AM »
they how do you propose uploaders use urls to the images that are not yet active?
And so you know, when images are awaiting validation, they are stored in different folders, separate from validated images. If you show url to the these images, then once they were validated and images moved to the appropriate folders, these urls will be wrong, pointed to not existing images. Or if you show urls to the images in folders as if they already validated (but not yet), then these urls will be wrong until images validated, which might only confuse.
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 Ersen

  • Jr. Member
  • **
  • Posts: 79
    • View Profile
Re: Mod: Display image path, link and BBCode after image upload
« Reply #44 on: September 17, 2009, 03:18:09 PM »
Which folder is using for the awaiting validation images?

they how do you propose uploaders use urls to the images that are not yet active?
And so you know, when images are awaiting validation, they are stored in different folders, separate from validated images. If you show url to the these images, then once they were validated and images moved to the appropriate folders, these urls will be wrong, pointed to not existing images. Or if you show urls to the images in folders as if they already validated (but not yet), then these urls will be wrong until images validated, which might only confuse.