You have bookmarked items
Jump To:
Viewing Topic "How to display adress of website without http://"

4 Item(s)     Sort:  Newest Oldest

per page
 
  Post
Posted By: Klaus Boomgaarden
Total Posts: 25
Joined Date: Apr 26, 2019

Hi,

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

How can I do this?

https://prnt.sc/nrae7d

 

Best regards,

Klaus

Posted : May 21, 2019
Posted By: George Bara
Total Posts: 1407
Joined Date: Jun 17, 2013

Hi,

 

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

Posted : May 21, 2019
Posted By: Klaus Boomgaarden
Total Posts: 25
Joined Date: Apr 26, 2019

Hi,

I remove http prefix but it does not work.

https://prnt.sc/nrqeo0

https://prnt.sc/nrqh30

 

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

Best regards,

Klaus

Posted : May 22, 2019
Posted By: Slim
Total Posts: 99
Joined Date: May 29, 2015

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.

Posted : May 30, 2019

4 Item(s)     Sort:  Newest Oldest

per page
 

Viewing Topic "How to display adress of website without http://"


      You have bookmarked items
Jump To:

Who is online

 
Users browsing this topic 1 logged customers:: 0 and guest 1 (based on users active over the past 5 minutes)