| 
Welcome, Guest

[SOLVED] Is it possible for users to add a custom widget?
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: [SOLVED] Is it possible for users to add a custom widget?

[SOLVED] Is it possible for users to add a custom widget? 3 months, 2 weeks ago #190275

  • indivisual
  • indivisual
  • OFFLINE
  • Fresh Boarder
    Fresh Boarder
  • Posts: 3
  • Karma: -
I'm trying to add a field to the user profile that would enable users to add a custom widget from a fundraising page (flash). I understand that the code is being cleared after saving the field, but is there a way to not clean up the code on save?

<object type="application/x-shockwave-flash" allowScriptAccess="always" height="230" width="150" align="middle" data="http://www.justgiving.com/widgets/jgwidget.swf" flashvars="EggId=3676896&IsMS=0">
<param name="movie" value="http://www.justgiving.com/widgets/jgwidget.swf" />
<param name="allowScriptAccess" value="always" />
<param name="allowNetworking" value="all" />
<param name="quality" value="high" />
<param name="wmode" value="transparent" />
<param name="flashvars" value="EggId=3676896&IsMS=0" /></object>
 
Last Edit: 3 months, 2 weeks ago by krileon.

Re: Is it possible for users to add a custom widget? 3 months, 2 weeks ago #190286

  • krileon
  • krileon
  • ONLINE
  • Moderator
    Moderator
  • Posts: 24039
  • Karma: 695
You'll need to allow object embeds within CB > Configuration > User Profile as by default they're filtered out. You'll have to use a text area editor field.
Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly
CB links: Documentation - Templates - CBSubs - Hosting - Forge - Incubator - GroupJive
--
If you are a Advanced, Professional, Developer, or CBSubs 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 Advanced, 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 EST to 4:00 PM EST. 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.
--
My personal site(s)/link(s): AllMySocials - Tutorials

Re: Is it possible for users to add a custom widget? 3 months, 2 weeks ago #190304

  • indivisual
  • indivisual
  • OFFLINE
  • Fresh Boarder
    Fresh Boarder
  • Posts: 3
  • Karma: -
Thank you krileon!

I added object to the "Do not filter following tags on editor area fields:":
cb-1.png


And I created a text area for the code:
cb-2.png


But the code still doesn't save in the field and widget doesn't show up.

Is there something I'm still doing wrong?

Re: Is it possible for users to add a custom widget? 3 months, 2 weeks ago #190338

  • nant
  • nant
  • ONLINE
  • Administrator
    Administrator
  • Posts: 17331
  • Karma: 717
I think you need a text editor field and not a text area field.

Re: Is it possible for users to add a custom widget? 3 months, 2 weeks ago #190348

  • indivisual
  • indivisual
  • OFFLINE
  • Fresh Boarder
    Fresh Boarder
  • Posts: 3
  • Karma: -
Thank you nant! That solved my problem.
  • Page:
  • 1
Time to create page: 0.98 seconds