Skip to Content Skip to Menu

Custom html url/link, userlist url/link display, userlist value layout code, link to tab

  • jpdenny1
  • jpdenny1
  • OFFLINE
  • Posts: 195
  • Thanks: 25
  • Karma: 5
9 years 4 months ago #266013 by jpdenny1
Alright it goes to the profile at least but not the tab - good enough, shows the username - fine.

<a href="[value]">Map</a> - tried that before and it just shows the really long url, with ">map or whatever at the end so it doesn't even link properly.

When I put the Userlist Display as [value] everything works. But obviously this looks ugly and wrong. Is there really not a simple solution for this, I almost felt embarrassed asking initially. I know the user can insert a hypertext if enabled but conformity would be lost.

My other major issue that I might aswell throw out there mentioned in initial post, is that the Custom HTML field only shows on one list. I checked the lists at least 10 times and the right field is selected on each.

The two list are basically the same with different usergroups populating each.

Any other ideas, get the feeling you're all out which leaves me in limbo.

My previous ideas:

<button type="button">[value]</button> shows it in a nice button, but with the full value. Any code there to show it as 'Map'for example.

<button type="button">Map</button> brings you to the Profile of the establishment listed on the userlist. When you click on this in profile display it does nothing.

I went from using buttons, to simplifying it to hyperlinks, looking at buttons now again - slowly going mad :( eating 3 days now out of my deadline.

Joomla 3.6.2
CB 2.0.15 Latest Nightly
GJ 3.0.1 nightly
Php version 5.5.35
Auto actions nightly
Activity nightly
Privacy nightly
Conditions nightly
CB Gallery 2.0
.....all nightly!
Uddeim 3.9

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48477
  • Thanks: 8281
  • Karma: 1443
9 years 4 months ago #266016 by krileon

Alright it goes to the profile at least but not the tab - good enough, shows the username - fine.

I've no idea why your URLs don't work. I've tested on 3 installs now and all are working fine. If you've a 3rd party SEF extension try disabling it as it could be removing the tab parameter or breaking it maybe. If you've only Joomla SEF then also try disabling it and see if that helps.

My other major issue that I might aswell throw out there mentioned in initial post, is that the Custom HTML field only shows on one list. I checked the lists at least 10 times and the right field is selected on each.

The two list are basically the same with different usergroups populating each.

As long as a field is in the column it should be on the list. I can't see a reason for it to show on 1 list and not another unless you're maybe viewing 1 userlist while logged in and another while logged out and the tab the field is on is not publicly accessible.

Any other ideas, get the feeling you're all out which leaves me in limbo.

The problem is you're trying to use a text field value as a URL. This will not work. It's not urlencoded, which means it's not URL safe. This is why you're getting broken HTML when you try to use it. You need to use a Web Address field and just have them copy and paste their map URL. The alternative is you need to use 2 integer fields have them supply the latitude and longitude.

For text field as URL you either need the help of some PHP or you need a Joomla content extension that maybe able to replace the URL. There's no other way as it is not URL encoded and it absolutely has to be as you're having users supply an address which could have any number of non-URL safe characters. The best way would be to develop a new fieldtype plugin that provides a fieldtype you're needing. Worst case you use something like Sourcerer to be able to use PHP in Custom HTML field or field layouts (enable content processing under Layouts).


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • jpdenny1
  • jpdenny1
  • OFFLINE
  • Posts: 195
  • Thanks: 25
  • Karma: 5
9 years 4 months ago #266021 by jpdenny1
I'm actually using a Web Address field x 2 and a Custom HTML field x 1.

Re: not showing on list. Spot on, I had a condition on the tab. Thank you for the suggestion. Got a result on something anyway!

I'm throwing in the towel. I will let the user fill in their own Hypertext and suggest they use 'xyz' in the info icon and manage it by editing their profiles if needed (can see this being messy e.g. without Hypertext input the map hyperlink will be the width of the userlist).

I'm shocked I can't auto do this. Thought CB would show a kink for some wild request if any not something that seems so simple.

Thanks for the support Krileon. Much appreciated, I will soldier on yet morale and motivation are after taking a serious beating.

Regards

Joomla 3.6.2
CB 2.0.15 Latest Nightly
GJ 3.0.1 nightly
Php version 5.5.35
Auto actions nightly
Activity nightly
Privacy nightly
Conditions nightly
CB Gallery 2.0
.....all nightly!
Uddeim 3.9

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum