Montego Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic
Author Message
Faytal
Newbie
Newbie



Joined: Feb 21, 2012
Posts: 60

PostPosted: Sun May 05, 2013 11:38 pm Reply with quote

I need a mod that resizes images posted in the forums.
Thanks.
 
View user's profile Send private message
nuken
Newbie
Newbie



Joined: Mar 12, 2007
Posts: 24

PostPosted: Mon May 06, 2013 7:14 am Reply with quote

Use css. Add something like img {max-width: 300px;} in the ravennuke.css and it will resize images.

_________________
Tricked Out News 
View user's profile Send private message
Faytal
Newbie
Newbie



Joined: Feb 21, 2012
Posts: 60

PostPosted: Mon May 06, 2013 7:26 am Reply with quote

nuken wrote:
Use css. Add something like img {max-width: 300px;} in the ravennuke.css and it will resize images.


Yes, I've heard that I could do that before, but wouldn't that apply to all images, including the logo? Or just to the forums?
 
View user's profile Send private message
nuken
Newbie
Newbie



Joined: Mar 12, 2007
Posts: 24

PostPosted: Mon May 06, 2013 7:46 am Reply with quote

Just make the min size big enough so as to not interfere with other images or just add a class element to the images you want resized. This is basic css stuff. If you plan on being able to maintain your site and modify it, you should learn the basics.

_________________
Tricked Out News 
View user's profile Send private message
nuken
Newbie
Newbie



Joined: Mar 12, 2007
Posts: 24

PostPosted: Mon May 06, 2013 6:37 pm Reply with quote

Another, simpler way would be to open all your themes bbcode.tpl and the one in the forums templates folder and find;

Code:

<!-- BEGIN img --><img src="{URL}" border="0" /><!-- END img -->

and change to what ever size you want for each theme like so:
Code:

<!-- BEGIN img --><img style="max-width:500px;" src="{URL}" border="0" /><!-- END img -->

_________________
Tricked Out News 
View user's profile Send private message
Faytal
Newbie
Newbie



Joined: Feb 21, 2012
Posts: 60

PostPosted: Mon May 06, 2013 7:39 pm Reply with quote

Thanks, but I found this:

http://www.clanthemes.com/downloaddetails-10-758-easy-resize-posted-images-mod.html
 
View user's profile Send private message
nuken
Newbie
Newbie



Joined: Mar 12, 2007
Posts: 24

PostPosted: Mon May 06, 2013 7:43 pm Reply with quote

Most of the javascript resize scripts have a delay in resizing the image. You may notice the image appears full size for a second before it resizes.

_________________
Tricked Out News 
View user's profile Send private message
Faytal
Newbie
Newbie



Joined: Feb 21, 2012
Posts: 60

PostPosted: Mon May 06, 2013 8:53 pm Reply with quote

nuken wrote:
Most of the javascript resize scripts have a delay in resizing the image. You may notice the image appears full size for a second before it resizes.


Yes, so your way may be better.
 
View user's profile Send private message
recthor
Newbie
Newbie



Joined: Jun 05, 2013
Posts: 1

PostPosted: Wed Jun 05, 2013 5:06 am Reply with quote

you can also try some other ways, some professional softwares for example. I use an imaging sdk found on the internet which can resize images . Install it and it becomes a selectable processing option.Then you can resize images in any program at all, including Adobe Acrobat . Just open the images, select resize ,and follow the setps given in the sdk, the task will be finished in several seconds.you can then zoom in and zoom out the picture on your own will. if you havenīt found a good choice , you can have a try. best wishes.
 
View user's profile Send private message
Guardian
Site Admin
Site Admin



Joined: Jul 18, 2005
Posts: 397

PostPosted: Wed Jun 05, 2013 8:08 pm Reply with quote

recthor - not sure how C# software is going to help dynamically resize images on an Apache web server.
 
View user's profile Send private message
hicux
Newbie
Newbie



Joined: Jan 30, 2009
Posts: 92
Location: NL

PostPosted: Thu Jun 27, 2013 6:48 am Reply with quote

In templates/subSilver/bbcode.tpl u can only find this code.

Code:
[code]<!-- BEGIN img --><img src="{URL}" alt="Image" title="Image" /><!-- END img -->[/code]


it should be almost the same right?

Code:
<!-- BEGIN img --><img style="max-width:500px;" src="{URL}" alt="Image" border="0" /><!-- END img -->
 
View user's profile Send private message Visit poster's website
Guardian
Site Admin
Site Admin



Joined: Jul 18, 2005
Posts: 397

PostPosted: Thu Jun 27, 2013 8:32 am Reply with quote

Well thats the same code nuken already posted but the border attribute is actually deprecated so this would be better
Code:
<!-- BEGIN img --><img style="max-width:500px; border:0px;" src="{URL}" alt="Image" /><!-- END img -->
 
View user's profile Send private message
hicux
Newbie
Newbie



Joined: Jan 30, 2009
Posts: 92
Location: NL

PostPosted: Sat Jun 29, 2013 8:40 pm Reply with quote

Thank you Guardian, I made the changes already. Wink
 
View user's profile Send private message Visit poster's website
kguske
Community Giant



Joined: Dec 11, 2005
Posts: 32

PostPosted: Sun Jun 30, 2013 1:10 am Reply with quote

Thanks, nuken and Guardian. I evaluated all the JS approaches, and wasn't pleased with any of them. This works, but it might also be helpful to add a link so if you click you can see the full picture. Of course, a poster could add a link, too, so not sure that would be a good idea...

_________________
nukeSEO.com - PHPNuke SEO search engine optimization and other professional tools for PHP-Nuke 
View user's profile Send private message
kguske
Community Giant



Joined: Dec 11, 2005
Posts: 32

PostPosted: Thu Jul 18, 2013 9:34 pm Reply with quote

Looking to implement this on other sites, I considered using a simple class (e.g. forumIMG) so that a webmaster could change the setting by manipulating the CSS, instead of changing code.

_________________
nukeSEO.com - PHPNuke SEO search engine optimization and other professional tools for PHP-Nuke 
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 4 Hours
 
Forums ©
linear-bunchlinear-bunch
linear-bunch