1. Hack to Preview images when uploading

Hack to Preview images when uploading

  |   8
Hack to  Preview images when uploading


Features:

- Automatically create previews of pictures to add news to the administration panel.
- Automatically create previews of images in addition to news site.
- Works with included WYSIWYG and without.


Version DLE: 9.x

Tested on: DLE 9.2


installation:

1. Open the file ... engine/inc/files.php:

Find:

$thumb_link = "<a class=maintitle href="javascript:insertthumb('" . $config['http_home_url'] . "uploads/posts/" . $folder_prefix . $dataimages . "','')">$dataimages</a>";


Replace with:

$thumb_link = "<a class=maintitle href="javascript:insertthumb('" . $config['http_home_url'] . "uploads/posts/" . $folder_prefix . $dataimages . "','')"><img width='100' border='0' src='".$config['http_home_url'] . "uploads/posts/" . $folder_prefix.$dataimages."' alt='Click to insert a thumbnail'></a>";


Find:

$thumb_link = "<a class=maintitle href="javascript:insertimage('" . $config['http_home_url'] . "uploads/posts/" . $folder_prefix . $dataimages . "')">$dataimages</a>";


Replace with:


$thumb_link = "<a class=maintitle href="javascript:insertimage('" . $config['http_home_url'] . "uploads/posts/" . $folder_prefix . $dataimages . "')"><img width='100' border='0' src='".$config['http_home_url']."uploads/posts/".$folder_prefix.$dataimages."' alt='Click to insert a thumbnail'></a> ";




That`s all, engoy! dance
Dear visitor, you are browsing our website as Guest.
We strongly recommend you to register and login to view hidden contents.

Details

+5

do you think this hack is useful for DLE?

yes - 9 (100%)
100%
no - 0 (0%)
0%
sometimes - 0 (0%)
0%
Depend on... - 0 (0%)
0%


Comments 8

spamhater
spamhater
DLE TEAM
Commented By spamhater on November 30, 2011 (8:59 pm)
very well done hack Gozan thumbsup
24 386Forum topics : 12Forum replies : 950Forum likes : 130

Love is a symbol of eternity. It wipes out all sense of time, destroying all memory of a beginning and all fear of an end!
Great achievement is usually born of great sacrifice, and is never the result of selfishness...Without continual growth and progress, such words as improvement, achievement, and success have no meaning.
Gozan
Gozan
V.I.P.
Commented By Gozan on December 1, 2011 (2:39 am)
thanks for your support snegurka
please if someone can check it for 9.3 and 9.4 to be sure in this hack ^^
33 132Forum topics : 20Forum replies : 88Forum likes : 7
romeoluv56
Commented By romeoluv56 on December 1, 2011 (4:48 am)
Tested on 9.3 working fine bro thanks a lot.
Gozan
Gozan
V.I.P.
Commented By Gozan on December 1, 2011 (5:34 am)
thanks to u ROMEOLUV56 for supporting applause
33 132Forum topics : 20Forum replies : 88Forum likes : 7
Keymaster
Keymaster
V.I.P.
Commented By Keymaster on December 1, 2011 (2:36 pm)
Tested on 9.4 and it works Thanks
4 50Forum topics : 13Forum replies : 96Forum likes : 4

The Secret to life is to live life as if there is no tomorrow.
Gozan
Gozan
V.I.P.
Commented By Gozan on December 1, 2011 (3:02 pm)
Tested on 9.4 and it works Thanks

thanks for your supporting superman applause
33 132Forum topics : 20Forum replies : 88Forum likes : 7
Gozan
Gozan
V.I.P.
Commented By Gozan on March 29, 2012 (11:44 am)
tested for 9.5 and works fine snegurka
33 132Forum topics : 20Forum replies : 88Forum likes : 7
Owaiz99
Owaiz99
V.I.P.
Commented By Owaiz99 on April 22, 2012 (9:18 pm)
Thanks..
Work on DLE 9.5
don't miss to add a backslash "\" .
between
<a class=maintitle href=\"javascript:insertthumb
and
$dataimages . "','')\">

CMIIW...
beer
N/A 4Forum topics : 0Forum replies : 1Forum likes : 0
Information!Would you like to leave your comment? Please Login to your account to leave comments. Don't have an account? You can create a free account now.
DLEStarter Notice!Please note...Every hack and every module will get additional queries from your database and some hacks and some modules may result your server overload, so install only what you "need", remove any hacks and modules from your script when you don't need them, all hacks and modules appears in this website are not guaranteed by DLEStarter Team for your script security and compatibility, please read instruction carefully and use hacks and modules at your own risk...Thank you.