Jamroom Logo Jamroom 5 Core
is now Open Source!
User Support Forum Archive (Read Only)
Jamroom Developers:
jrShowNotice with html?
rickallen



Joined: 09 Sep 2006
Posts: 302
Location: Flint, Michigan

Posted: 07/22/10 13:30 
I'm trying to add a mailto link to the account suspension message that is in english.lang.php for variable $language['misc'][115] but tags are stripped out when it displays in the CP.

I'm thinking this must be happening because it is displayed using jrShowNotice. Is there a way to turnoff something or modify jrShowNotice to allow html tags?


_________________
JR 4.X + JR modules and addons ( I keep all of them current )
www.michiganmonster.com
Back to top
Michael
Jamroom Team


Joined: 22 Apr 2008
Posts: 3423
Location: Tokyo

Posted: 07/22/10 19:24 
yeah, the third option of that function is for keeping/throwing away the html

http://www.jamroom.net/Function_jrShowNotice

so right now it is either not set or set to TRUE. set it to FALSE to keep the html


_________________
Michael Ussher
Jamroom Network Team Member: http://www.jamroom.net
Priority Support: http://www.jamroom.net/Support_Center
Back to top
rickallen



Joined: 09 Sep 2006
Posts: 302
Location: Flint, Michigan

Posted: 07/23/10 05:49 

ussher:
yeah, the third option of that function is for keeping/throwing away the html

http://www.jamroom.net/Function_jrShowNotice

so right now it is either not set or set to TRUE. set it to FALSE to keep the html


Thanks Ussher, that is exactly what I was looking for. It would be better if we could allow only certain tags, but this will work.


_________________
JR 4.X + JR modules and addons ( I keep all of them current )
www.michiganmonster.com
Back to top
Brian
Jamroom Team


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

Posted: 07/23/10 10:09 

rickallen:

ussher:
yeah, the third option of that function is for keeping/throwing away the html

http://www.jamroom.net/Function_jrShowNotice

so right now it is either not set or set to TRUE. set it to FALSE to keep the html


Thanks Ussher, that is exactly what I was looking for. It would be better if we could allow only certain tags, but this will work.


You should never allow HTML that is coming from a user to show in jrShowNotice - as the developer the text that goes into that function should be controlled by you, so you can run it through strip_tags with a defined $allowable_list:

http://php.net/strip_tags

Hope this helps!

- Brian


_________________
Make sure and check out:
* The Jamroom FAQ
* The Jamroom Documentation
Back to top
rickallen



Joined: 09 Sep 2006
Posts: 302
Location: Flint, Michigan

Posted: 07/23/10 13:13 
Got it. Thanks for clearing that up. I wasn't comfortable with setting system messages to all html, only really need <a> anyway.


_________________
JR 4.X + JR modules and addons ( I keep all of them current )
www.michiganmonster.com
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.