J-BusinessDirectory - Beta testing - How to display adress of website without http://

Support Forum

You have 0 bookmarked items
 

 

4 Item(s)

Show per page

Hi,

it would look nicer if adress of website can displayed without http://

How can I do this?

 

Best regards,

Klaus

3 replies

Hi,

 

You will need to edit view and remove the http prefix from the website address. 

Hi,

I remove http prefix but it does not work.

 

http-prefix is only displayed in categories. Other entries use  icon wih link "website"

Best regards,

Klaus

Hi,

 

You can edit this file: {joomla}/components/com_jbusinessdirectory/include/listings_list_style_6.php


On line 120 you will find this:

<i class="la la-home"></i><a target="_blank" rel="<?php echo $followLink ?>" onclick="registerAction(<?php echo $company->id ?>,<?php echo STATISTIC_TYPE_WEBSITE_CLICK ?>)" href="<?php echo $this->escape($company->website) ?>"><?php echo $this->escape($company->website) ?></a>


Replace it with:


<i class="la la-home"></i><a target="_blank" rel="<?php echo $followLink ?>" onclick="registerAction(<?php echo $company->id ?>,<?php echo STATISTIC_TYPE_WEBSITE_CLICK ?>)" href="<?php echo $this->escape($company->website) ?>"><?php echo JText::_('LNG_WEBSITE') ?></a>


The difference between them is written with italic. This will replace the URL with icon and link text "website"


Is not a permanent sollution because when you update the JBD you must do this again.