Subrion CMS Support Forums   Follow Subrion on Twitter Join Us on Facebook

Go Back   Subrion CMS Support Forums > Common Information > General Chat

General Chat That's the right place for your to discuss anything you want.

Reply

 

LinkBack Thread Tools Display Modes
Old 10-10-2008   #1 (permalink)
Member
 
Join Date: Jul 2008
Posts: 34
brainegg is on a distinguished road
Default How do you make the height of the article image 100%?

I want the images on my website to display as 100px in width and 100% in height. That makes it much easier for somebody to resize their image. Whenever I put that in, the system doesn't recognize the 100% in height. How do I modify the article image to display like that?
brainegg is offline   Reply With Quote
Old 10-12-2008   #2 (permalink)
Subrion Tech Support
 
Join Date: Apr 2007
Posts: 644
Sergey Hmelevsky will become famous soon enough
Default Re: How do you make the height of the article image 100%?

In configuration -> Publishing, set
Article Photos width: 100
Article Photos height: 0

Images will be resized only when it width > 100px
__________________
With private requests send a ticket on http://www.subrion.com/desk/
Sergey Hmelevsky is offline   Reply With Quote
Old 10-12-2008   #3 (permalink)
Member
 
Join Date: Jul 2008
Posts: 34
brainegg is on a distinguished road
Default Re: How do you make the height of the article image 100%?

Also, how do you take off the border from around the image? I also want to make the image a regular image instead of a background image.
brainegg is offline   Reply With Quote
Old 10-12-2008   #4 (permalink)
Subrion Tech Support
 
Join Date: Apr 2007
Posts: 644
Sergey Hmelevsky will become famous soon enough
Default Re: How do you make the height of the article image 100%?

If you familiar with HTML and CSS, you can look at function printImage in file includes/classes/sbr.front.smarty.php
__________________
With private requests send a ticket on http://www.subrion.com/desk/
Sergey Hmelevsky is offline   Reply With Quote
Old 10-13-2008   #5 (permalink)
Member
 
Join Date: Jul 2008
Posts: 34
brainegg is on a distinguished road
Default Re: How do you make the height of the article image 100%?

Hi Sergey,

I was able to take off the border but I can't figure out how to change it from a background image to a regular image.
brainegg is offline   Reply With Quote
Old 10-13-2008   #6 (permalink)
Subrion Tech Support
 
Join Date: Apr 2007
Posts: 644
Sergey Hmelevsky will become famous soon enough
Default Re: How do you make the height of the article image 100%?

Add to beginning of the function next line
PHP Code:
$aParams['printpage'] = true
__________________
With private requests send a ticket on http://www.subrion.com/desk/
Sergey Hmelevsky is offline   Reply With Quote
Old 10-14-2008   #7 (permalink)
Member
 
Join Date: Jul 2008
Posts: 34
brainegg is on a distinguished road
Default Re: How do you make the height of the article image 100%?

Hi Sergey,

I'm a little confused with your instructions. Where should I add that?

function printImage($aParams)
{
$config = &sbrConfig::instance();
$thumbUrl = SBR_URL;
$thumbUrl.= $aParams['imgfile'] && is_file("uploads/".$aParams['imgfile']) ?
'uploads/'.$aParams['imgfile'] : $config->get('templates').$config->get('tmpl').'/img/no-preview.gif';
if(isset($aParams['printpage']))
brainegg is offline   Reply With Quote
Old 10-14-2008   #8 (permalink)
Subrion Tech Support
 
Join Date: Apr 2007
Posts: 644
Sergey Hmelevsky will become famous soon enough
Default Re: How do you make the height of the article image 100%?

Make it looks like this

PHP Code:
function printImage($aParams)
{
    
$aParams['printpage'] = true;

    
$config = &sbrConfig::instance();
    
$thumbUrl SBR_URL
__________________
With private requests send a ticket on http://www.subrion.com/desk/
Sergey Hmelevsky is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
Help for upload image jattas Installation & Upgrades 13 06-13-2008 10:43 PM
How to make a backup webgomer General Chat 5 06-09-2008 03:38 AM
Making Article Image Avatar LorenGK Subrion Core Discussion 10 09-20-2007 12:42 PM
How to add an image to an article? plantagenet Subrion Core Discussion 3 05-02-2007 03:44 AM
Upload Image redeye Subrion Core Discussion 8 04-23-2007 11:56 AM


All times are GMT -6. The time now is 01:21 AM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0