Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

[SOLVED] Quick question regarding the CB profile page

9 years 3 months ago #268270 by delhi-expat
Replied by delhi-expat on topic Quick question regarding the CB profile page
Thanks for the detailed response Kyle, it is much appreciated. I've disabled Page Cache on my system now (still have the base Joomla! cache enabled though) and will play around with the positioning as you say.

In terms of the JavaScript, is there any reason it shouldn't work when linked to an image i.e. are there any settings in Joomla! I'd need to modify for this?

What I have right now is the usual i-m-g-s-r-c link followed by the o-n-c-li-c-k parameter(apologies for this - the system won't let me paste code for whatever reason)

Not sure if it's an issue with the code itself, or if there are some other Joomla! settings I need to modify in order to enable Javascript with images. . .

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48473
  • Thanks: 8281
  • Karma: 1443
9 years 3 months ago #268292 by krileon
Replied by krileon on topic Quick question regarding the CB profile page
onclick works fine for img tags. My guess is whatever JS you're trying to trigger isn't valid or z-index is causing the image to seam like it's on top, but really isn't.

I can't really suggest anything further in regards to the positioning without a URL to a profile where the field is visible. I can take a quick look if you want to PM login credentials.


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.

9 years 3 months ago #268294 by delhi-expat
Replied by delhi-expat on topic Quick question regarding the CB profile page
Hi Kyle

Thanks for the response. The JS is actually valid since it worked when I had a text link "Call me" with the onClick - but for whatever reason, it's not working with the img tag. . .

Yes, I'll PM you admin details soon - I haven't published the field as it's not working right now so can't send a URL.

As always - your help is much appreciated!

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48473
  • Thanks: 8281
  • Karma: 1443
9 years 3 months ago #268298 by krileon
Replied by krileon on topic Quick question regarding the CB profile page
The below will work to position it directly to the right of the online status icon. You can adjust the left/bottom/top/right position styles to move it around as needed.

Code:
#cbfv_93 { position: absolute; bottom: -9px; left: 15px; z-index: 7; } #cbfv_93 img { position: relative; }

Your onclick works fine after properly positioned as I set its z-index to place it on top of everything else where as before it was actually under 2 other fields.


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: delhi-expat

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

9 years 3 months ago - 9 years 3 months ago #268317 by delhi-expat
Replied by delhi-expat on topic Quick question regarding the CB profile page
Thanks Kyle - seems to work fine now in IE - and I'll keep the "z-index" property in mind as well! The one remaining "bug" (if I can call it that) is that it seems not to work in Firefox and Chrome (works fine in IE though), although it worked fine across all 3 when I had it set up via "link". Not sure if there is any other CSS property I need to look at here? I checked my settings and Javascript is enabled for Chrome/Firefox. . .
Last edit: 9 years 3 months ago by delhi-expat.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48473
  • Thanks: 8281
  • Karma: 1443
9 years 3 months ago #268338 by krileon
Replied by krileon on topic Quick question regarding the CB profile page
I wrote and tested it as working in Chrome. The CSS is functional as is and doesn't need to be changed for it to work and the z-index places it on top of all other canvas elements. Not sure what you mean by setup via link?


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.

Moderators: beatnantkrileon
Powered by Kunena Forum