Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • questbg Friend
    #139234

    Hi Everyone

    Just been customising a contact form for a client to include Mobile numbers, however, the result is somewhat messy:

    I’d really like to widen the Mobile Phone Number column so that the numbers are on one line and also remove ‘Phone’ and ‘Fax’ as these will never be used.

    Any help greatly appreciated.

    Thanks
    Chris

    wooohanetworks Friend
    #296422

    Have you looked for an alternative solution for the contact form, like QContacts. This one offers drop down on the contact form page, so you can switch from one contact to another, captcha included and I think you can also make changes like you need here more easiely.

    scotty Friend
    #296429

    Hi Chris, open /components/com_contact/views/category/tmpl/default_items.php and scroll down to …

    <?php endif; ?>
    <?php if ( $this->params->get( 'show_mobile' ) ) : ?>
    <td width="15%">
    <?php echo $item->mobile; ?>
    </td>

    Change 15% to about 30%.

    You don’t have to edit the other sizes to compensate as they do not all have widths to begin with.

    PS: This will change the ‘Mobile Phone’ column ONLY.

    scotty Friend
    #296430

    You may also want to change it in /components/com_contact/views/category/tmpl/default.php also although you don’t have to.
    <?php if ( $this->params->get( 'show_mobile' ) ) : ?>
    <td height="20" width="15%" class="sectiontableheader<?php echo $this->params->get( 'pageclass_sfx' ); ?>">
    <?php echo JText::_( 'Mobile' ); ?>
    </td>

    wooohanetworks Friend
    #296431

    Use a better contact form, this default Joomla one is hilarious and spartanic!

    http://extensions.joomla.org/extensions/contacts-&-feedback/contacts

    questbg Friend
    #296435

    Hi Scotty

    <em>@scotty 118328 wrote:</em><blockquote>Hi Chris, open /components/com_contact/views/category/tmpl/default_items.php and scroll down to …
    </blockquote>

    Many thanks. Worked perfect and form looks fine now!

    Hi Woooha

    <em>@wooohanetworks 118331 wrote:</em><blockquote>Use a better contact form, this default Joomla one is hilarious and spartanic!
    </blockquote>

    Perhaps, but I was happy to make the fix by just changing one % figure in the CSS rather than installing new modules and testing.

    This was for a client and I offered to fix for free, so changing 15% to 30% in one line of code was just fine for me 🙂

    wooohanetworks Friend
    #296447

    Than don’t get angry later when he misses all the functions Qcontacts brings, or is flooded by spam without the captcha Qcontacts brings.;)

    It is more about the pluspoints of replacing the Joomla component, where you also can make such little changes, but you have a more powerful contact form, and as I see you have several contacts in a list, people will miss out on still being able to chose per drop down menu on the contact form page whom to contact.:cool:

    Just some suggestion.:)

Viewing 7 posts - 1 through 7 (of 7 total)

This topic contains 7 replies, has 3 voices, and was last updated by  wooohanetworks 15 years, 8 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum