Skip to Content Skip to Menu

[SOLVED] Userlist/Profile layout & button

  • jpdenny1
  • jpdenny1
  • OFFLINE
  • Posts: 195
  • Thanks: 25
  • Karma: 5
9 years 4 months ago - 9 years 4 months ago #265833 by jpdenny1
Hello Joomlopolis,

I wonder if you could help with this.

1. I want to insert a button with a link into the Userlist and/or Profile of a User.

Let's say to make the 'website' entry appear as a button. I was also looking at a way for either Admin or the User to be able to put in a 'Map' button linked to say Google Map i.e. it would have the button html automatically with instructions of putting in their co-ordinates so it points to them.

2. For the Userlist, how do I create spaces. I have made a blank field. But it has this '-', when I take it out in configuration, I lose the space. See attached.

For 1 above, I have tried Auto Actions. But the button code value shows as it is entered. See attached. For the Map button I tried a Custom Html field, but this doesn't show up in Profile Edit, but the button does appear as a button with the word Map in it - no customization possibility.


Lastly is it possible to move 'Views' in Userlist to - for example bottom right hand corner.

Any help appreciated. Kind 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
Attachments:
Last edit: 9 years 4 months ago by krileon.

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 #265849 by krileon
Replied by krileon on topic Userlist/Profile layout & button

1. I want to insert a button with a link into the Userlist and/or Profile of a User.

Let's say to make the 'website' entry appear as a button. I was also looking at a way for either Admin or the User to be able to put in a 'Map' button linked to say Google Map i.e. it would have the button html automatically with instructions of putting in their co-ordinates so it points to them.

You can add a button using a Custom HTML field or utilizing Parameters > Layouts feature of any of your fields to override an existing fields display. You could supply a textarea field for example that lets them supply their full address or the address of whatever you want mapped. Then in your layout for that field you'd have it setup the button.

2. For the Userlist, how do I create spaces. I have made a blank field. But it has this '-', when I take it out in configuration, I lose the space. See attached.

For 1 above, I have tried Auto Actions. But the button code value shows as it is entered. See attached. For the Map button I tried a Custom Html field, but this doesn't show up in Profile Edit, but the button does appear as a button with the word Map in it - no customization possibility.

I wouldn't add a field just for a space, but instead use some CSS to space the fields apart. The below should work.

Code:
.cbUserListFieldLine + .cbUserListFieldLine { margin-top: 10px; }

If you want to target a specific column you can use the cbUserListRowCol# CSS class where # is the column number. So if you only want this for column 4 it'd be cbUserListRowCol4 or as follows.

Code:
.cbUserListRowCol4 .cbUserListFieldLine + .cbUserListFieldLine { margin-top: 10px; }

Lastly is it possible to move 'Views' in Userlist to - for example bottom right hand corner.

You'd have to use CSS, but yes it's possible. That field row has the CSS class of cbUserListFL_hits. Something like the below would probably do what you're wanting.

Code:
.cbUserListFL_hits { position: absolute; bottom: 0; right: 0; }


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.
The following user(s) said Thank You: jpdenny1

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 #265859 by jpdenny1
Replied by jpdenny1 on topic Userlist/Profile layout & button
Brilliant, thanks for that, buttons work on display.

2 things only: in parameters -> layout, how do I put the button as the 'Address of Site' input (currently just reloads the user profile). I'm using simple code for button: <button type="button">Website</button>

and could you say how to put their inputted Hypertext as the 'Website' value in the above code.

I'm sure it's simple. Tried a few things, no joy.

Thanks will work off your other answers to space the userlist.

:-)

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.

  • jpdenny1
  • jpdenny1
  • OFFLINE
  • Posts: 195
  • Thanks: 25
  • Karma: 5
9 years 4 months ago #265861 by jpdenny1
Replied by jpdenny1 on topic Userlist/Profile layout & button
I got it, never mind!

<button type="button">[value]</button>

Thanks

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