Smf® Solutions

Smf 2.0.x => Upload Images => Discussion démarrée par: maximus23 le 20 Mai 2014 à 21:43:04

Titre: New Version 2.0
Posté par: maximus23 le 20 Mai 2014 à 21:43:04
Hello,

Next version 2.0 in progress

Attention

Install WYSIWYGQuickReply-v2.3.zip Before This Mod.

Prevent for Antihotlink and abuse by htaccess except for google.

After install this mod :

Edit the file /uploads/.htaccess

Replace domaine.tld with your domaine name.

Code

RewriteEngine On
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://www.domaine.tld/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://domaine.tld/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?google.com/reader(/)?.*$ [NC]
ReWriteRule .*\.(gif|png|jpg|bmp|jpeg)$ http://domaine.tld/antihotlink/hotlinking.jpg [R]
RemoveHandler .php .php3 .phtml .cgi .fcgi .pl .fpl .shtml
Options -ExecCGI


Replace and Copy This Code.

Save.

Supported Themes

+ Curve Only

Changelog

V 2.0 + Added Files AntiHotlink.
V 2.0 + Added in ACP => 0 To Disable or size in pixel by default.
V 2.0 + Added by select in ACP => Name_id or Member_id.
V 2.0 + Added Resize Manuel if Size Pixels by default is disable.
V 1.9 + BugFix Select BBcode
V 1.9 + Minor Change and BugFix
V 1.9 + Added BBcode Insert Tag Auto
V 1.8 + Added codefix for chmod 644
V 1.8 + Added Custom Auto Resize Admin Panel
V 1.8 + Added Admin Character Truetype / Font and Size (For add TrueType Font see dossier max_upload\fontstruetype -> add the file and report the name whith extension in Admin Panel)
V 1.8 ! Fixed Langage spanish
V 1.7 + Added Admin Character Size Type Gdf
V 1.7 + Added Admin Resize Auto whith Text Options on/off
V 1.7 + Added Resize Auto whith Text Options
V 1.6 ! Minor change or bugfix
V 1.6 + Added Action Barre
V 1.5 + Added Admin Text on/off
V 1.5 + Added Admin Crop on/off
V 1.5 + Added Admin Resize on/off
V 1.4 + Added Texte
V 1.4 + Added Crop
V 1.4 + Added Resize
V 1.3 ! Fixed to work with 2.0.7 user Verify Chmod 664 /max_upload/max_upl_img.php
V 1.2 + Added Quick Reply
V 1.1 ! Fixed to work with Seo and Pretty Url
V 1.0  - Initial Release

Thank's for idea in final version.

:)
Titre: New Version 2.0
Posté par: foropimiento le 21 Mai 2014 à 08:53:47
nice job, thanks  ;D


I cant see the attachment to download...


what is exactly the hotlink protection? never hear about...
Titre: New Version 2.0
Posté par: maximus23 le 21 Mai 2014 à 12:58:13
Hello,

Hotlink protection can save you lots of bandwidth and abuse by preventing other sites from displaying your images.

For test copy the bbcode link of this site => to your site.

New version 2.0 :)
Titre: New Version 2.0
Posté par: foropimiento le 21 Mai 2014 à 13:26:45
thanks for protection link, awesome idea  ;D

just installed , simply perfect mod

default auto resize works perfect, text perfect

directory name works perfect

only 1 bug:

in quickreply the auto insert bbcode img dont work, do nothink when u click

PD: I tried copy the bbcode generated here to my site and see a funny hotlink jpg jeje

thanks  :D
Titre: New Version 2.0
Posté par: maximus23 le 21 Mai 2014 à 14:49:12
Hello,

Code
I tried copy the bbcode generated here to my site and see a funny hotlink jpg jeje



If the file. htaccess is correct all pictures will be replaced by this:

(https://www.smf-fr.com/uploads/maximus23_1/1400676332.jpg)


Code
in quickreply the auto insert bbcode img dont work, do nothink when u click


I don't see anything abnormal I didn't modify anything for the quickreply ?

:)
Titre: New Version 2.0
Posté par: foropimiento le 21 Mai 2014 à 15:56:34
Is a very good trick but i find 1 problem:


Many users enter the forum via tapatalk and I test it and all images I upload get the hotlink.jpg , can fix it? many users enter via tapatalk all days


I don't know but don't work  :(  when I use reply button or new thread its works
Titre: New Version 2.0
Posté par: maximus23 le 21 Mai 2014 à 18:53:51
Hello,

The same problems whit 1.9 ?

Is Tapatalk installed here you know how to test to see if there is the same problem ? 
 
Tapatalk is special and has its own files, a lot of options don't function. 
 
Me I don't have anything to test I don't use this program.

:)
Titre: New Version 2.0
Posté par: foropimiento le 21 Mai 2014 à 18:57:41
problem comes with the hotline modification in htaccess, no problems with the mod itself


I can access via mobile using tapatalk to test it, no problem


can change the htaccess ? to test it?

Titre: New Version 2.0
Posté par: maximus23 le 21 Mai 2014 à 19:11:28


Modified here normal mode for htaccess.

htaccess normal mode :

Code

<Files .*>
order allow,deny
deny from all
</Files>

AddHandler cgi-script .php .pl .py .jsp .asp .htm .shtml .sh .cgi
Options -ExecCGI


:)
Titre: New Version 2.0
Posté par: foropimiento le 21 Mai 2014 à 19:47:25
done

but

the problem continue in the same photos , sometimes bad sometimes well is very stranger....


hotlink htaccess aply in all photos in my upload folder? or only the uploaded during the hotlink htaccess?


tahnks....




Titre: New Version 2.0
Posté par: maximus23 le 21 Mai 2014 à 20:12:31
Hello the stupid bug for htaccess .... For test :)

Code

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www.)?domaine.tld(/)?.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www.)?domaine.tld(/)?.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www.)?google.com(/)?.*$ [NC]
RewriteRule .*.(gif|png|jpg|jpeg)$ http://domaine.tld/antihotlink/hotlinking.jpg [R,NC]

RemoveHandler .php .php3 .phtml .cgi .fcgi .pl .fpl .shtml
Options -ExecCGI
Titre: New Version 2.0
Posté par: foropimiento le 21 Mai 2014 à 20:50:30
google images show my images with this modification?
Titre: New Version 2.0
Posté par: maximus23 le 21 Mai 2014 à 21:51:59
Citation de: foropimiento le 21 Mai 2014 à 21:38:57
I used a pc

Your version IE, FF Chrome other ? Tested with other navigator ?

Sorry for the times of answer I work at present :)

Titre: New Version 2.0
Posté par: maximus23 le 21 Mai 2014 à 22:16:03

Tested whit IE 10  - IE 11 - Chrome 34 and 35 - FF 28 and 29.0.1 no problems :)

Titre: New Version 2.0
Posté par: foropimiento le 21 Mai 2014 à 22:24:51
I tested chrome and safari , win and mac
Titre: New Version 2.0
Posté par: maximus23 le 21 Mai 2014 à 22:33:59

Tested whit chrome ok here :

(https://www.smf-fr.com/uploads/maximus23_1/1400704432.jpg)
Titre: New Version 2.0
Posté par: maximus23 le 21 Mai 2014 à 22:41:52

See for refresh your cache : http://www.refreshyourcache.com/en/home/ (http://www.refreshyourcache.com/en/home/)

:)
Titre: New Version 2.0
Posté par: foropimiento le 22 Mai 2014 à 09:10:01
done , but dont work


dont worry is a minor problem


the mod works awesome


thankss
Titre: New Version 2.0
Posté par: maximus23 le 22 Mai 2014 à 09:49:35
Hello,

One never knows =>

Verifiy the WYSIWYG mode whit Smf. This functionality creates some problems with some navigators.

Do the users also have this problem ?

:)
Titre: New Version 2.0
Posté par: foropimiento le 22 Mai 2014 à 21:30:35
I don't know, I don't even know if they use the auto insert bbcode jejej I was waiting for final version to make a good tutorial for all users..
Titre: New Version 2.0
Posté par: foropimiento le 29 Mai 2014 à 13:41:08
thank you for your work


really works like a charm, perfect  :D


best smf image mod
Titre: New Version 2.0
Posté par: maximus23 le 29 Mai 2014 à 20:08:31
Hello,

Thank you :)