Support Offline : Mon - Fri / 10am - 6pm (GMT +6)

Your Time: Our Time:

Do not show contact info email

Featured Lock Resolved Issue
I am working with this template but this appears to be an issue with all your templates. Only a fool wants to publicly display their email address on their site and yet the contact information bar even if I do not include an email always defaults to include a dummy one ([email protected]), which is of course not at all practical.

First off why are your templates so obstinate about this and require public display of an email address when I dont want one? This should be optional and if I chose not to show my email address to every spammer on the planet that should be my choice. How can I stop the display of the email parameter and keep the rest of the relevant info such as phone number visible without having to do custom work?

14 Answers

Shibbir

More than a month ago #Permalink
Hi there,

Go to templates/shaper_kidzy/features/contact.php file and replace the existing code with following code.


<?php
/**
* @package Helix3 Framework
* @author JoomShaper http://www.joomshaper.com
* @copyright Copyright (c) 2010 - 2014 JoomShaper
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 or Later
*/
//no direct accees
defined ('_JEXEC') or die('resticted aceess');

class Helix3FeatureContact {

private $helix3;

public function __construct($helix3){
$this->helix3 = $helix3;
$this->position = $this->helix3->getParam('contact_position');
}

public function renderFeature() {

if($this->helix3->getParam('enable_contactinfo')) {

$output = '<ul class="sp-contact-info">';

if($this->helix3->getParam('contact_phone')) $output .= '<li class="sp-contact-phone"><i class="fa fa-phone"></i> <a href="tel:' . $this->helix3->getParam('contact_phone') . '">' . $this->helix3->getParam('contact_phone') . '</a></li>';
if($this->helix3->getParam('contact_email') && $this->helix3->getParam('contact_email') != "[email protected]" ) $output .= '<li class="sp-contact-email"><i class="fa fa-envelope"></i> <a href="mailto:'. $this->helix3->getParam('contact_email') .'">' . $this->helix3->getParam('contact_email') . '</a></li>';

$output .= '</ul>';

return $output;
}

}
}


Let me know if It's work for you.

Thanks.

Pieter-Jan de Vries

More than a month ago #Permalink
This problem does not lie in .../features/contact.php. It is caused by the default value '[email protected]' of <field name="contact_email"> in file templateDetails.php. Please remove that default in the next update.

Shibbir

More than a month ago #Permalink
This problem does not lie in .../features/contact.php. It is caused by the default value '[email protected]' of <field name="contact_email"> in file templateDetails.php. Please remove that default in the next update.


Thanks for your suggestion.

Shibbir

More than a month ago #Permalink
This problem does not lie in .../features/contact.php. It is caused by the default value '[email protected]' of <field name="contact_email"> in file templateDetails.php. Please remove that default in the next update.


Thanks for your suggestion. But is that issue is fixed now?

Pieter-Jan de Vries

More than a month ago #Permalink
Not sure who you are asking, since JoomShaper should fix this.

The solution I propose fixes the problem for me. However, I can not update my template now, because it will re-introduce the problem, unless it 's fixed in the next update.

Shibbir

More than a month ago #Permalink
Not sure who you are asking, since JoomShaper should fix this.

The solution I propose fixes the problem for me. However, I can not update my template now, because it will re-introduce the problem, unless it 's fixed in the next update.


Hi there,

I am support engineer from JoomShaper. I already noted the issue. We will try to fix it in our next update.

Thanks.

Kawshar Ahmed - Senior Staff

More than a month ago #Permalink
Not sure who you are asking, since JoomShaper should fix this.

The solution I propose fixes the problem for me. However, I can not update my template now, because it will re-introduce the problem, unless it 's fixed in the next update.


Just do what I did, abandon this thing and create a custom module and use it instead. Solves your problem and cant be changed.

Pieter-Jan de Vries

More than a month ago #Permalink
Kind of a weird response. What's your next suggestion? Abandon Joomla! all together, learn php, html, css and javascript and develop each and every website completely from scratch? Not my cup of tea. I prefer to try improving an otherwise quite useful productivity tool/

Kawshar Ahmed - Senior Staff

More than a month ago #Permalink
Kind of a weird response. What's your next suggestion? Abandon Joomla! all together, learn php, html, css and javascript and develop each and every website completely from scratch? Not my cup of tea. I prefer to try improving an otherwise quite useful productivity tool/


Well I guess if you are not capable of creating a custom module then it might be in your best interest to switch to something easier! Sorry but your reply shows just how much you know about Joomla and that is very little obviously!

Pieter-Jan de Vries

More than a month ago #Permalink
Let's not use this forum to humiliate or insult each other. We simply have a different point of view how to handle issues we encounter in third party products.

As for my knowledge about Joomla!, I do know a thing or two. With more than 30 years professional programming experience with various tools and languages, using the internet since day one (and even before it was called the internet) and building websites with and developing custom stuff for Mambo/Joomla! since day one, I am not quite your average beginner ;) But always humble and eager to learn from colleagues who appear to know more than I do.

Kawshar Ahmed - Senior Staff

More than a month ago #Permalink
Sorry Pieter, but to make the statement you did was so far out there and not even close to someone with your 30 years experience to say. At any rate, I was only trying to help get you or whoever is reading this a fast solution. Since the solution that was posted would be overwritten with an update and waiting to get this fixed at the developer end is clearly not going to happen over night, my solution works and while it does take someone with some html skills, to be working with any CMS without at least that is foolish.

Here is my fast solution for anyone that might need it and trust me it does not take anywhere near the extreem that Pieter made it sound like!

1) Create a custom module
2) Enter this with your phone number:

<li class="sp-contact-phone"><i class="fa fa-phone"></i> <a href="tel:555.555.1212">555.555.1212</a></li>

3) Publish to the top2 position and thats it. No need to abandon Joomla! all together, learn php, html, css and javascript and develop each and every website completely from scratch. All of which is simply absurd!

Pieter-Jan de Vries

More than a month ago #Permalink
Hey Kevin,

Point taken. My comment was meant to be funny, but I can see it may have come across somewhat sarcastic. Apologies for that.

However, I do still believe that my solution is o.k., trusting JoomShaper that it will be fixed in the next release. I'm new to JoomShaper so I don't know yet if that trust is justified. Let's wait and see :)

Kawshar Ahmed - Senior Staff

More than a month ago #Permalink
Likewise, I truly thought you was dead serious, apologies for that as well.

Like you I am new to JoomShaper so it does appear we are in the same position. I tend to have a more negative take on developers by default. Seems like more and more are stretched so thin trying to keep the finances liquid they are incapable of keeping up. It is why I have chosen to alert them to a problem but then consider alternate solutions so I dont end up in the same situation...;)

Pieter-Jan de Vries

More than a month ago #Permalink
Technologies move forward at an incredible pace and software gets increasingly more complex. I made peace with the fact that there is no fault free software. There is a lot of competition and customer demand rises by the day. So yes, it gets increasingly more difficult to keep up for developers.

To be honest, I usually work in a similar fashion as you do, depending on the importance, complexity and time pressure. In this case it was a minor problem that hardly takes any time to fix in the next update. So I trust JoomShaper to do that.

I have another issue for which they didn't provide an adequate solution yet. Take a look at this post: Custom LESS. Maybe you can help me make it work :)


There are no replies made for this post yet.
Be one of the first to reply to this post!

Leaderboard (30 days)

Paul Frankowski

Paul Frankowski

Total Accepted Answers: 105
Toufiq

Toufiq

Total Accepted Answers: 54
Mehtaz Afsana Borsha

Mehtaz Afsana Borsha

Total Accepted Answers: 27
Ofi Khan

Ofi Khan

Total Accepted Answers: 11
Rashida Rahman

Rashida Rahman

Total Accepted Answers: 7

120

Templates

310102

Community Users

Newsletter

Don’t miss any updates of our new templates and extensions and all the astonishing offers we bring for you.
We never spam

Joomla! ® name is used under a limited license from Open Source Matters in the United States and other countries. JoomShaper.com is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.

Connect Us