News:

Create A Forum Installed

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

0 Members and 0 Guests are viewing this topic.

Offline Agent Moose

  • Newbie
  • *
  • Posts: 37
  • Karma: 12
  • Gender: Male
  • Miss me?
  • Location: South Carolina, United States
    • View Profile
[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
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
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: 7090
  • Karma: 322
    • View Profile
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
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
631 Views
Last post October 01, 2011, 02:18:30 am
by aIURbliS
4 Replies
799 Views
Last post August 09, 2012, 12:41:04 am
by aIURbliS
19 Replies
3638 Views
Last post August 29, 2013, 11:49:30 pm
by Sir Rob (from Oz)
4 Replies
2035 Views
Last post October 25, 2019, 02:18:23 am
by Drixxx
1 Replies
84 Views
Last post February 11, 2022, 01:58:41 am
by CreateAForum