Topics

User Functions

Events

There are no upcoming events

What's New

Stories

No new stories

Comments last 2 weeks

No new comments

Trackbacks last 2 weeks

No new trackback comments

Links last 2 weeks

No recent new links

NEW FILES last 14 days

No new files

Welcome to Geeklog Tuesday, May 21 2013 @ 08:02 PM EDT


 Forum Index > Support > General Geeklog Support New Topic Post Reply
 Adding commented out html to stories
   
mrjeff
 07/18/04 02:53PM (Read 1413 times)  
+++--
Chatty

Status: offline


Registered: 01/28/04
Posts: 36
I am trying to add some javascript code to stories. I added the script and type attributes to config.php for admin, so I have javascript working in stories. The problem is I need to have it commented out for browsers or users that have javascipt disabled so they do not see a bunch of code. How can I make it so I can use html comments in stories, just for admin?
I did a search here and didn't find anything about this.

Thanks
Jeff

"friends don't help friends run windows"
 
Profile Email Website
 Quote
Blaine
 07/20/04 07:51AM  
+++++
Full Member

Status: offline


Registered: 07/16/02
Posts: 1233
In the config.php, you have 2 settings to define the allowable HTML. One for admin and one of general users. Can you not use that to only allow your JS if admin ?

Geeklog components by PortalParts -- www.portalparts.com
 
Profile Email Website
 Quote
mrjeff
 07/20/04 08:48AM  
+++--
Chatty

Status: offline


Registered: 01/28/04
Posts: 36
Yes, I have the script tag and type attribute added in the config.php and JS works fine, and only for admin. The problem for me is that some people have JS disabled, which a buch of JS code will appear in the story, to make it so this does not happen, you comment out the code. Geeklog does not allow you to use html comments in a story. Adding the comment to the config.php does not work becuase geeklog will close the tag/comment I would like to know where or in what direction I need to go to get this to work. Thanks for the reply Blaine

PHP Formatted Code
 <!-- SGML Special Tag (comment) -->

 


Anyone have any ideas? I have been looking at kses.class.php, but I am at a loss as how to make this allowable.

Thanks
Jeff

"friends don't help friends run windows"
 
Profile Email Website
 Quote
Content generated in: 2.67 seconds
New Topic Post Reply

Normal Topic Normal Topic
Sticky Topic Sticky Topic
Locked Topic Locked Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Able to post 
Filtered HTML Allowed 
Censored Content