News:

Create A Forum Installed

Author Topic: [ATTN CAF] Can't use Back Slashes in Headers/Footers  (Read 961 times)

0 Members and 2 Guests are viewing this topic.

Offline Agent Moose

  • Newbie
  • *
  • Posts: 37
  • Karma: 12
  • Gender: Male
  • Miss me?
  • Location: South Carolina, United States
    • View Profile

Badges: (View All)
Linux User Mobile User Level 5
[ATTN CAF] Can't use Back Slashes in Headers/Footers
« on: March 22, 2011, 09:37:56 pm »
For some odd reason, if you use any back slashes in the Headers/Footers, they are automatically removed when you save.

I need the back slashes to save so I can use characters such as "\n" for a new line.


Thanks :)
« Last Edit: March 26, 2011, 01:58:47 am by -A- »
Code: [Select]
//Hint hint :)
if(/action=profile;u=(.*);sa=UserPage/i.test(location.href)){
var number = RegExp.$1;
var username = (smf_id_member !== "0") ? document.getElementById("upper_section").getElementsByTagName("li")[0].getElementsByTagName("span")[0].innerHTML : void(0);

Share on Facebook Share on Twitter


Offline Agent Moose

  • Newbie
  • *
  • Posts: 37
  • Karma: 12
  • Gender: Male
  • Miss me?
  • Location: South Carolina, United States
    • View Profile

Badges: (View All)
Linux User Mobile User Level 5
Re: Can't use Back Slashes in Headers/Footers
« Reply #1 on: March 25, 2011, 01:35:37 pm »
Just a heads up, I would also need the backslashes for Regular Expressions such as this:
Code: [Select]
<style(\b[^>]*)>([\s\S]*?)<\/style>
Code: [Select]
//Hint hint :)
if(/action=profile;u=(.*);sa=UserPage/i.test(location.href)){
var number = RegExp.$1;
var username = (smf_id_member !== "0") ? document.getElementById("upper_section").getElementsByTagName("li")[0].getElementsByTagName("span")[0].innerHTML : void(0);

Offline Alex

  • CAF Support Team
  • Full Member
  • ***
  • Posts: 235
  • Karma: 13
  • Gender: Male
  • Location: Greenville, North Carolina
    • View Profile

Badges: (View All)
Eighth year Anniversary Seventh year Anniversary Sixth year Anniversary
Re: [ATTN CAF] Can't use Back Slashes in Headers/Footers
« Reply #2 on: March 26, 2011, 03:08:36 pm »
Hi I sent a note to CAF about this last night. Hopefully it will be fixed soon.  :)
Terms Of Service

Please don't PM me with support questions

Offline CreateAForum

  • Administrator
  • *****
  • Posts: 7186
  • Karma: 327
    • View Profile

Badges: (View All)
Avatar Linux User Tenth year Anniversary
Re: [ATTN CAF] Can't use Back Slashes in Headers/Footers
« Reply #3 on: March 26, 2011, 03:33:11 pm »
Let me know if it is better now.
Like Create A Forum? Support me at https://www.patreon.com/vbgamer45/

Offline Agent Moose

  • Newbie
  • *
  • Posts: 37
  • Karma: 12
  • Gender: Male
  • Miss me?
  • Location: South Carolina, United States
    • View Profile

Badges: (View All)
Linux User Mobile User Level 5
Re: [ATTN CAF] Can't use Back Slashes in Headers/Footers
« Reply #4 on: March 26, 2011, 05:09:24 pm »
Sweet, works perfectly, Thanks guys :)
Code: [Select]
//Hint hint :)
if(/action=profile;u=(.*);sa=UserPage/i.test(location.href)){
var number = RegExp.$1;
var username = (smf_id_member !== "0") ? document.getElementById("upper_section").getElementsByTagName("li")[0].getElementsByTagName("span")[0].innerHTML : void(0);

 

Related Topics

  Subject / Started by Replies Last post
0 Replies
659 Views
Last post October 01, 2011, 02:18:30 am
by aIURbliS
4 Replies
828 Views
Last post August 09, 2012, 12:41:04 am
by aIURbliS
4 Replies
2090 Views
Last post October 25, 2019, 02:18:23 am
by Drixxx
1 Replies
107 Views
Last post February 11, 2022, 01:58:41 am
by CreateAForum
2 Replies
93 Views
Last post January 04, 2024, 06:42:01 pm
by FelicityRBUK