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
1 user viewing this forum (1 Guest and 0 Anonymous)
Members:
 
Make New Topic