var quickFindCodes; var j; var quickFindCode; var forumLink; // //Locals end. // try { //Get all posted quickfind codes. quickFindCodes = postMessage .match(/\d{1,3}-\d{1,3}-\d{1,3}-\d{7,8}/g); //Loop through quick find codes. for (j = 0; j < quickFindCodes.length; j++) { //Get one quick find code, and replace -'s with ,'s. quickFindCode = quickFindCodes[j] .replace(/-/g, ","); //Generate forum link string. forumLink = "" + quickFindCodes[j] + ""; //Replace quick find code in post string, //with forum link. //Fixed by Pah Psi, thanks! postMessage = postMessage .replace(RegExp(quickFindCodes[j],"g" ), forumLink); } } catch (e) {} }
Welcome Guest [Log In] [Register]
Make New Topic
Announcements & News
  Title Topic Starter Replies Views Topic Info
Regular hi
Trevor 0 80
Feb 6 2011, 03:42 PM
Last Post By: Trevor
Make New Topic