Print Page | Close Window

class tag in RTE

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=9974
Printed Date: 08 April 2026 at 5:02am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: class tag in RTE
Posted By: jatherton
Subject: class tag in RTE
Date Posted: 13 April 2004 at 3:28am

I would like to have a 'class' tag that is linked to my css inserted into each hyperlink and email that is added inside of a post/reply. 

For instance currently inserts:

<!-- Message body -->
<P>test</P>
<P><A href=" http://www.mysite.com - http://www.mysite.com ">www.test.com</A></P>
<!-- Message body ''"" -->

and I would like for it to do something like:

<!-- Message body -->
<P>test</P>
<P><A class="dash" href=" http://www.mysite.com/ - http://www.mysite.com ">www.test.com</A></P>
<!-- Message body ''"" -->

Thanks in advance for all the help!



-------------
Jason Atherton, USA



Replies:
Posted By: WebWiz-Bruce
Date Posted: 13 April 2004 at 5:31am
You would need to try a write some ASP code that could identify links in a submitted post and place the CSS class tag in the link.

Put something linke the following at line 155 of the file functions_filters.asp

strTempHTMLMessage = Replace(strTempHTMLMessage, "href=", "class=""dash"" href=", 1, -1, 1)



-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: Mart
Date Posted: 13 April 2004 at 5:31am
The easiest way to accomplish that is to modify the forum stylesheet to make links look like whatever. Then you will  not have to dive into the code.


Posted By: jatherton
Date Posted: 13 April 2004 at 6:09am

Thanks -boRg-, works great.

Mart: I have it linked to my main stylesheet, not just the forum css, so it would have been a problem.  But thanks anyway.

 




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net