Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - class tag in RTE
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

class tag in RTE

 Post Reply Post Reply
Author
jatherton View Drop Down
Newbie
Newbie
Avatar

Joined: 30 September 2002
Location: United States
Status: Offline
Points: 22
Post Options Post Options   Thanks (0) Thanks(0)   Quote jatherton Quote  Post ReplyReply Direct Link To This Post Topic: class tag in RTE
    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" target="_blank">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" target="_blank">www.test.com</A></P>
<!-- Message body ''"" -->

Thanks in advance for all the help!

Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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)

Back to Top
Mart View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2002
Status: Offline
Points: 2304
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mart Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
jatherton View Drop Down
Newbie
Newbie
Avatar

Joined: 30 September 2002
Location: United States
Status: Offline
Points: 22
Post Options Post Options   Thanks (0) Thanks(0)   Quote jatherton Quote  Post ReplyReply Direct Link To This Post 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.

 

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.