Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - file upload max width size how to??
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

file upload max width size how to??

 Post Reply Post Reply Page  <123
Author
JohnnySlotCar View Drop Down
Newbie
Newbie
Avatar

Joined: 15 September 2003
Status: Offline
Points: 27
Post Options Post Options   Thanks (0) Thanks(0)   Quote JohnnySlotCar Quote  Post ReplyReply Direct Link To This Post Posted: 28 September 2003 at 5:08am

Oops, spoke too soon  Confused  Still can't get it to work...

I did a 'view source' in IE of the page after making all the 4 changes - The OnLoad event is there, the JS is there, still no re-size??  I even dim'ed a intAvatarWidth and set it to 390px in a lame attempt to make this work.  The JS looks solid - method seems sound - yet I can't figure it out...

Bummin'.Cry

Open to any ideas - sorry to be a pest.

BTW, you mentioned putting a <BR> in, where are you adding that?  That's another good idea, as my users aren't hitting return before inserting their images.

I haven't DL'ed v7.5 yet, but it would be nice if Bruce added some support for 'width control' of some sort.Tongue

Johnny
http://www.shoost.com/JohnnySlotCar

 

 

 

Back to Top
fernan82 View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 17 November 2002
Location: United States
Status: Offline
Points: 362
Post Options Post Options   Thanks (0) Thanks(0)   Quote fernan82 Quote  Post ReplyReply Direct Link To This Post Posted: 28 September 2003 at 8:23pm

I looked at your forum and posted a test and when I looked at the source the id="chkImg1" name="chkImg2" is not being added to the img tags so that's where the problem is. You'll have to make sure that this is added to the tags when the post is formatted, I'm pretty sure the modifications I posted above to the functions_format_post.asp should've done that but to tell you the truth I haven't tried it, probably some other filter is taking that off but I doubt it as I don't think that can be harmfull at all....

The javascript that I posted works, I know it cause I use it for my avatars and it works just fine so once you get the id="chkImg1" name="chkImg2" to be added to your image tags it will work...

Also this just came to my mind that you'll also have to mod the function that formats the html from the WYSIWYG posts too add that code to the img tags too as it doesn't use forum codes... but I tested on your site using the non-WYSIWYG editor and it didn't added that to the img tags so there's still something wrong...

So I'd say put some work into it (you or anyone else) and see if you can get that to be added to the img tags, i'm sure that after you get it there it'll work... I just posted this as an example for somebody to make the mod, not as a mod.... but if you can't get it to work I'll see if I can get the time to make it a mod sometime this week...

Back to Top
JohnnySlotCar View Drop Down
Newbie
Newbie
Avatar

Joined: 15 September 2003
Status: Offline
Points: 27
Post Options Post Options   Thanks (0) Thanks(0)   Quote JohnnySlotCar Quote  Post ReplyReply Direct Link To This Post Posted: 28 September 2003 at 8:52pm
Everything you're saying makes sense.  I did 'pull' the code from my prod site when I found it not working, so I'm sure that's why it wasn't showing up for you.  The WYSIWYG editor hasn't been mod'ed yet and of course that's what I was using.

I do appreciate all your help - I realize it's 'volunteer work' on your part so I don't want you to think it's not appreciated  Smile

I'll give your WYSIWYG suggestion a try...

Thanks again!

Johnny
Back to Top
fernan82 View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 17 November 2002
Location: United States
Status: Offline
Points: 362
Post Options Post Options   Thanks (0) Thanks(0)   Quote fernan82 Quote  Post ReplyReply Direct Link To This Post Posted: 28 September 2003 at 10:55pm

No problem, I just made it a mod and tested it with the WYSIWYG and non-WYSIWYG editor and it works fine.

to test it go to: http://testing.uznetworkz.com:82/img_width_mod/default.asp

to download it: http://forums.webwiz.net/forum_posts.asp?TID=6033&a mp;PN=1&TPN=1

Instructions

just open header.asp and set the var intImgWidth to whatever max width you want for your images (by default it's 300 pixels) and then replace the 3 files on the zip file...
be careful with your header.asp as you'll have to copy any code you've added to that file first.

This mod was done with version 7.1 files.

I'll post it on the mod's forum later...



Edited by fernan82
Back to Top
JohnnySlotCar View Drop Down
Newbie
Newbie
Avatar

Joined: 15 September 2003
Status: Offline
Points: 27
Post Options Post Options   Thanks (0) Thanks(0)   Quote JohnnySlotCar Quote  Post ReplyReply Direct Link To This Post Posted: 28 September 2003 at 11:22pm

very, VERY slick!  Thanks a ton - you've made my life a lot easier  ;-)

I looked at a few forum softwares before settling on the WWF and have only had it up about 10 days.  I'm a Jr. to Med. ASP guy and still have a ways to go with understanding WWF.

Anyone out there who needs resizing, this mod works as advertised and helped me tremendously!

Kudos to Fernan82!  Nice work - and - late on a Sunday nite!! Smile

Thanks again!

Johnny

Back to Top
fernan82 View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 17 November 2002
Location: United States
Status: Offline
Points: 362
Post Options Post Options   Thanks (0) Thanks(0)   Quote fernan82 Quote  Post ReplyReply Direct Link To This Post Posted: 28 September 2003 at 11:28pm

You're welcome...

For anyone else I've organized the zip in folders, added a readme file, and posted it here: http://forums.webwiz.net/forum_posts.asp?TID=6033&a mp;PN=1&TPN=1

Back to Top
fernan82 View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 17 November 2002
Location: United States
Status: Offline
Points: 362
Post Options Post Options   Thanks (0) Thanks(0)   Quote fernan82 Quote  Post ReplyReply Direct Link To This Post Posted: 29 September 2003 at 12:18am
Originally posted by JohnnySlotCar JohnnySlotCar wrote:

BTW, you mentioned putting a <BR> in, where are you adding that?  That's another good idea, as my users aren't hitting return before inserting their images.

Sorry I missed that question... you can put the <br> on this line on function_format_post.asp:

strTempMessageLink = Replace(strTempMessageLink, "[/IMG]", """ id='chkImg1' name='chkImg2'>", 1, -1, 1)

change it to:

strTempMessageLink = Replace(strTempMessageLink, "[/IMG]", """ id='chkImg1' name='chkImg2'><br>", 1, -1, 1)

That's line 211....

<edit> might also want to add a <br> at the beggining of the img tag on line 210, change it from:

strTempMessageLink = Replace(strTempMessageLink, ", "<img src=""", 1, -1, 1)

to:

strTempMessageLink = Replace(strTempMessageLink, ", "<br><img src=""", 1, -1, 1)

but thinking about it I would rather add &nbsp; instead of <br>, that way I can't mess your layout and people can still post a small image next to their text....



Edited by fernan82
Back to Top
Gemma Fairchild View Drop Down
Newbie
Newbie
Avatar

Joined: 19 June 2003
Location: United Kingdom
Status: Offline
Points: 32
Post Options Post Options   Thanks (0) Thanks(0)   Quote Gemma Fairchild Quote  Post ReplyReply Direct Link To This Post Posted: 29 September 2003 at 3:55am
doh! and I swore I wouldn't mod my forum anymore... great stuff people
Back to Top
 Post Reply Post Reply Page  <123

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.