Jamroom Logo Jamroom 5 Core
is now Open Source!
User Support Forum Archive (Read Only)
Jamroom Developers:
jmTextArea() question regarding the BBcode, HTML, Smileys
musiccreatures



Joined: 20 Jun 2009
Posts: 344
Location: Portland Oregon

Posted: 09/25/10 20:17 
So currently the jmTextArea() will display the title of the field, BBCode on/off, HTML on/off, and smileys

The module I am working on allows the master admin to enable/disable the use of BBcode and HTML when posting and displaying an ad. This works independently from the jamroom BBCode & HTML settings.

I would like to know if there is a way to have jmTextArea display the value of my modules BBCode and HTML settings, rather than the jamroom settings?

For example: If the master admin has the jamroom BBCode and HTML disabled for a quota but has enabled the use of BBCode with my module, i would like it to show BBCode on: in my modules forms(for members of that quota), but any forms that are not part of my module, it would display BBCode: off

Hope that makes sense.
Thanks,
Tim McCune

Back to top
Brian
Jamroom Team


Joined: 09 Jul 2003
Posts: 37583
Location: Seattle, WA

Posted: 09/26/10 08:46 
Since it is handled internally automatically, you need to basically re-assign the proper quota values to your values - i.e.


Code

$_user['quota_bbcode'] = "yes";  // yes or no
$_user['quota_html']  = "yes"  // yes or no
$_user['quota_htmltags'] = "br|hr|..etc.." // pipe delimited list of allowed HTML tags
$_user['quota_bbcodetags'] = 'allow_all';  // or pipe delimited list of allowed BBCode tags


You need to set that before your jmTextArea call.

Hope this helps!

- Brian


_________________
Make sure and check out:
* The Jamroom FAQ
* The Jamroom Documentation
Back to top
Display posts from previous:   
User Support Forum Archive (Read Only)
Jamroom Developers

 
Solutions
• Social Media Platform
• Social Networking Software
• Musician Website Manager
• Community Builder
Products
• Jamroom Core
• Jamroom Addons
• Jamroom Modules
• Jamroom Marketplace
Support
• Support Forum
• Documentation
• Support Center
• Contact Support
Community
• Community Forum
• Member Sites
• Developers
Company
• About Us
• Contact Us
• Privacy Policy
©2003 - 2010 Talldude Networks, LLC.