-
AuthorPosts
-
questbg Friend
questbg
- Join date:
- May 2008
- Posts:
- 1912
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 146
- Thanked:
- 339 times in 197 posts
March 17, 2009 at 10:17 am #139234Hi 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
Chriswooohanetworks Friendwooohanetworks
- Join date:
- September 2008
- Posts:
- 1239
- Downloads:
- 0
- Uploads:
- 2
- Thanks:
- 148
- Thanked:
- 138 times in 41 posts
March 17, 2009 at 1:48 pm #296422Have 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 Friendscotty
- Join date:
- March 2008
- Posts:
- 2339
- Downloads:
- 0
- Uploads:
- 13
- Thanks:
- 76
- Thanked:
- 827 times in 595 posts
March 17, 2009 at 2:32 pm #296429Hi 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.
1 user says Thank You to scotty for this useful post
scotty Friendscotty
- Join date:
- March 2008
- Posts:
- 2339
- Downloads:
- 0
- Uploads:
- 13
- Thanks:
- 76
- Thanked:
- 827 times in 595 posts
March 17, 2009 at 2:38 pm #296430You 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 Friendwooohanetworks
- Join date:
- September 2008
- Posts:
- 1239
- Downloads:
- 0
- Uploads:
- 2
- Thanks:
- 148
- Thanked:
- 138 times in 41 posts
March 17, 2009 at 2:42 pm #296431Use a better contact form, this default Joomla one is hilarious and spartanic!
http://extensions.joomla.org/extensions/contacts-&-feedback/contacts
questbg Friendquestbg
- Join date:
- May 2008
- Posts:
- 1912
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 146
- Thanked:
- 339 times in 197 posts
March 17, 2009 at 2:59 pm #296435Hi 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 Friendwooohanetworks
- Join date:
- September 2008
- Posts:
- 1239
- Downloads:
- 0
- Uploads:
- 2
- Thanks:
- 148
- Thanked:
- 138 times in 41 posts
March 17, 2009 at 3:44 pm #296447Than 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.:)
-
AuthorPosts
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