Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7967949
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T07:00:00+00:00 2026-06-04T07:00:00+00:00

I have a linked image that I need to specify height and width html

  • 0

I have a linked image that I need to specify height and width html attributes for that is generated by php string. I’ve looked into using getimagesize but its not looking like what I need. I am currently using social engine.

This is the string I have that calls the image link.

<?php echo $this->htmlLink($item->getHref(), $this->itemPhoto($item, 'null'), array('class' => '')) ?>

which outputs html somthing like <a href="#"><img src="#" class="null"/></a>

I need to modify the php to create an image that is specified to be 110px x 110px
ie <a href="#"><img src="#" class="null" width="110" height="110"/></a>

Can anyone give me an example of how I could write my string?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T07:00:01+00:00Added an answer on June 4, 2026 at 7:00 am

    You have to use this:

    <?php echo $this->htmlLink(
        $item->getHref(), 
        $this->itemPhoto(
            $item, 
            'null', 
            null, 
            array('width' => '110px', 'height' => '110px')), 
        array('class' => '')
    ) ?>
    

    That is, add a fourth parameter array to itemPhoto function.

    Socialengine is an extension of Zend framework. You should try to check out the definition of itemPhoto, htmlLink etc. functions in order to customize them. For example itemPhoto can be found here- \application\modules\Core\View\Helper\ItemPhoto.php

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an HTML page (PHP, really) with a table cell that contains a
I have an css background-image that needs to be linked to the site index.
So i have 3 pics that need to be linked to other page, and
I have a linked server on SQL Server that talks to Oracle. Executing the
I need to have a linked text inside a svg graph. Here is what
I have a mysql table that have several records linked to one particular tag.
I have an Image object. I have the Picture type set to linked, so
i have simple html that looks like this : <div class=img> <a target=_blank href=kl_big.htm
I have a page with a linked image, where the link takes a bit
I have website display images, each image has its facebook-like button linked to its

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.