Please login or register.

Login with username, password and session length
Advanced search  

News:

You need/want an older version of sNews ? Download an older/unsupported version here.

Author Topic: [MOD] Very simple image preview (sNews 1.4)  (Read 2384 times)

benjer

  • Newbie
  • *
  • Karma: 0
  • Posts: 20
[MOD] Very simple image preview (sNews 1.4)
« on: July 19, 2006, 09:08:50 pm »

inside function images()

change this line
Code: [Select]
        echo "

".$_FILES['imagefile']['name']. "  [ " .$kb_size. " KB ] [ " .$_FILES['imagefile']['type']." ]";to

Code: [Select]
        echo "

".$_FILES['imagefile']['name']."  [ " .$kb_size. " KB ] [ " .$_FILES['imagefile']['type']." ]";Added class to the p - imgUpload so you can style as you want.

Obviously, you can repeat the same idea to show images when you click on the images link too.

Ben

Logged

4Sandrix

  • Hero Member
  • *****
  • Karma: -13
  • Posts: 597
    • http://fedrick.deviantart.com
[MOD] Very simple image preview (sNews 1.4)
« Reply #1 on: July 19, 2006, 10:37:36 pm »

Nice and simple,  thanks benjer. keep it up :P
Logged
I'm kind of like Han Solo always strokin' my own Wookiee
I'm the root of all that's evil yeah but you can call me Cookie